Subject: Boots that used to work and now don't
To: None <port-mac68k@NetBSD.ORG>
From: None <ADAMGOOD@delphi.com>
List: port-mac68k
Date: 06/18/1996 02:28:09
Hi Everyone,

Well, thing wouldn't be in balance with out some MacBSD weirdness, and so
I've got a truckload for somebody smarter than me to chew on.

A few weeks ago I finally got MacBSD to boot serial on my PB160.  The kernel
I was using was GENERIC-6 from Puma.  I later tried GENERIC-7, and that worked
well also.

That was all too easy, so since my HD was really short of AUX space, I
decided to re-format my drive and re-install MacBSD.  This is when things
got interesting.  First of all, when I do an 'ls' from within the installer
it shows me this weird / directory listing:

> ls
     2 drwxr-xr-x   17        0      512 Nov 17  1929 .
     2 drwxr-xr-x   17        0      512 Nov 17  1929 ..
     3 drwxr-xr-x    2        0     8192 Jun  8  1996 lost+found
   896 drwxr-xr-x    2        0      512 Oct 21  1929 altroot
  1792 drwxr-xr-x    2        0      512 Nov 17  1929 bin
  2688 drwxr-xr-x    3        0     2560 Nov 17  1929 dev
  4480 drwxr-xr-x    8        0     1024 Nov 17  1929 etc
 10752 drwxr-xr-x    2        0      512 Oct 21  1929 home
 11648 drwxr-xr-x    2        0      512 Oct 21  1929 mnt
 12544 drwxr-xr-x    2        0      512 Nov 17  1929 root
 13440 drwxr-xr-x    2        0     1536 Nov 17  1929 sbin
 14336 drwxr-xr-x    2        0      512 Oct 21  1929 stand
 15232 drwxrwxrwt    2        0      512 Oct 21  1929 tmp
 16128 drwxr-xr-x   14        0      512 Oct 21  1929 usr
  4492 drwxr-xr-x   18        0      512 Oct 21  1929 var
fstat : No such file or directory
    66 -rw-r--r--    2        0      629 Nov 17  1929 .cshrc
    67 -rw-r--r--    2        0      138 Nov 17  1929 .profile
   142 -rw-rw-rw-    1        0   919570 Jun  8 03:03 netbsd
 13501 drwxr-xr-x    2        0      512 Jun  8 03:03 proc
 13502 drwxr-xr-x    2        0      512 Jun  8 03:03 kern
> 

Does anyone know what the line:

fstat : No such file or directory

is doing there?  It sure doesn't look right but I don't know what
it means or how it got there.  Except for changing my formating
software from Silverlining (which kept causing my PB to crash after
I formatted my drive with it) to APS PowerTools, I used exactly
the same formatting procedure.

Anyway, the really good weirdness started when I tried to boot.
Now, neither GENERIC-7 nor GENERIC-6 work, but G-7 gets further
and actually looks like it starts to recognize some of the PB
ADB and MRG routines!  Not that that matters, because it
actually works LESS now than it did before, so a fat lot of
good that does me.  I have included 2 sets of boot sequences:
1st are the GENERIC-7 sequences, both the earlier one that
worked, and the new one that failed, and 2nd are the GENERIC-6
sequences, both the working and now non-working versions.

If anyone can provide some insight here (beyond just "reformat
with the old software" (which kept crashing my Mac))  I'd really
appreciate it.  Better yet, if anyone can use these things to
get the PB100s booting from internal video, I'd be ecstatic!

Thanks for your help, boot sequences to follow.

-Adam

SUCCESSFUL GENERIC-7 SERIAL BOOT:

NetBSD/mac68k console
[ preserving 93910 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 12582912 bytes in 3072 pages.
     Low = 0x0, high = 0xc00000
Checking for Internal Video get_mapping(): PB/IIvx (0x60?00000).  False start.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x9df000.
Video address 0x60040000 -> 0xbdf000.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1B (GENERIC) #7: Sat May 25 13:30:10 EDT 1996
    briggs@puma:/u/home/briggs/netbsd/sys/arch/mac68k/compile/GENERIC
Apple Macintosh PowerBook 160  (68030)
real mem = 12582912
avail mem = 9363456
using 179 buffers containing 733184 bytes of memory
mrg: kernel has no ROM vectors for this machine!
adb: no ROM ADB driver in this kernel for this machine
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
asc0 at obio0 Apple sound chip.
ite0 at obio0 (minimal console)
ncrscsi0 at obio0
scsibus0 at ncrscsi0
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, GO120S, 2.58> SCSI2 0/direct fixed
sd0: 120MB, 1097 cyl, 4 head, 56 sec, 512 bytes/sec
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, TRB850S, 0403> SCSI2 0/direct fixed
sd1: 810MB, 3653 cyl, 4 head, 113 sec, 512 bytes/sec
cd0 at scsibus0 targ 2 lun 0: <NEC, CD-ROM DRIVE:210, 1.0> SCSI1 5/cdrom removab
le
sd2 at scsibus0 targ 3 lun 0: <iomega, jaz 1GB, G.60> SCSI2 0/direct removable
sd2: drive offline
zsc0 at obio0 chip type 3
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
fpu0 at obio0 (emulator)
nubus0 at mainbus0
Changing root device to sd1a.
PRAM time does not appear to have been read correctly.
PRAM: 0x83da4f80, macos_boottime: 0x31a79e89.
Automatic boot in progress: starting file system checks.
/dev/rsd1a: file system is clean; not checking
setting tty flags
starting network
add host myname.my.domain: gateway localhost
starting rpc daemons: portmap.
starting system logger, time daemontimed: no network usable
.
checking for core dump...
savecore: can't find device 229/195
May 25 21:58:19 myname savecore: can't find device 229/195
checking quotas: done.
building databases...

/: write failed, file system is full
May 25 21:58:23 myname /netbsd: uid 0 on /: file system full

/: write failed, file system is full
kvm_mkdb: /var/db/kvm_netbsd.tmp: No space left on device

/: write failed, file system is full

/: write failed, file system is full
clearing /tmp
standard daemons: update cron.
starting network daemons: routed printer inetd.
creating runtime link editor directory cache.

/: write failed, file system is full
ldconfig: /var/run/ld.so.hints: No space left on device
starting local daemons:.
Sat May 25 21:58:33 PDT 1996
May 25 21:58:33 myname last message repeated 4 times
May 25 21:58:34 myname init: kernel security level changed from 0 to 1

myname.my.domain login: root
Last login: Sat May 25 21:50:21 on tty00
May 25 21:58:44 myname login: ROOT LOGIN (root) ON tty00
May 25 21:58:44 myname login: ROOT LOGIN (root) ON tty00
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.   All rights reserved.

NetBSD 1.1B (GENERIC) #7: Sat May 25 13:30:10 EDT 1996

Welcome to NetBSD!

Terminal type? [unknown] vt100
Don't login as root, use su
myname#


UNSUCCESSFUL GENERIC-7 SERIAL BOOT:

NetBSD/mac68k console
[ preserving 93910 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 12582912 bytes in 3072 pages.
     Low = 0x0, high = 0xc00000
Checking for Internal Video get_mapping(): PB/IIvx (0x60?00000).  False start.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x9df000.
Video address 0x60040000 -> 0xbdf000.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1B (GENERIC) #7: Sat May 25 13:30:10 EDT 1996
    briggs@puma:/u/home/briggs/netbsd/sys/arch/mac68k/compile/GENERIC
Apple Macintosh PowerBook 160  (68030)
real mem = 12582912
avail mem = 9363456
using 179 buffers containing 733184 bytes of memory
mrg: '2nd Powerbook class ROMs' ROM glue, tracing off, debug off, silent traps
adb: bus subsystem
Got following HwCfgFlags: 0xed00, 0x  405f3f, 0x  213902, 0x       0
mrg: Not setting up egret.
mrg: ADB interrupts enabled.
trap type 1, code = f24d, v= 42a77939
kernel: Address error trap
pid = 0, pc = 0x009e9836, ps = 0x00002000, sfc = 0x00000001, dfc = 0x00000001
Registers:
             0        1        2        3        4        5        6        7
dreg: 42a748e7 00000044 00000124 00000001 00000002 00000000 0000000c 00000002
areg: 42a77939 009e9818 00020efa 000d6a4c 00102f78 00b22c18 00102ef4 ffffcffc

Kernel stack (00102e08):
00102e08: 42a77939  42a748e7  00000044  00000124  00000001  00000002  00000000
0000000c
00102e28: 00000002  42a77939  009e9818  00020efa  000d6a4c  00102f78  00b22c18
00102ef4
00102e48: ffffcffc  00000000  2000009e  9836b00c  fc2af24d  007c0700  009e9838
00102eac
00102e68: 009e9838  4e904e90  42a7793d  42a7793b  009e9838  42a748e7  007cff0d
000ff07c
panic: Address error
Stopped at      _Debugger+0x6:  unlk    a6
db>


SUCCESSFUL GENERIC-6 SERIAL BOOT:

console on zs0 (ttya)
Whee! we are the console!
[ preserving 92914 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 12582912 bytes in 3072 pages.
     Low = 0x0, high = 0xc00000
get_mapping(): IIvx/PB kludge.  False start.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0xadf000.
Video address 0x60040000 -> 0xbdf000.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1B (GENERIC) #6: Sun May  5 23:45:39 EDT 1996
    briggs@puma:/u/home/briggs/netbsd/sys/arch/mac68k/compile/GENERIC
Apple Macintosh PowerBook 160  (68030)
real mem = 12582912
avail mem = 9375744
using 179 buffers containing 733184 bytes of memory
mrg: kernel has no ROM vectors for this machine!
adb: no ROM ADB driver in this kernel for this machine
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
asc0 at obio0 Apple sound chip.
ite0 at obio0 (minimal console)
ncrscsi0 at obio0
scsibus0 at ncrscsi0
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, GO120S, 2.58> SCSI2 0/direct fixed
sd0: 120MB, 1097 cyl, 4 head, 56 sec, 512 bytes/sec
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, TRB850S, 0403> SCSI2 0/direct fixed
sd1: 810MB, 3653 cyl, 4 head, 113 sec, 512 bytes/sec
cd0 at scsibus0 targ 2 lun 0: <NEC, CD-ROM DRIVE:210, 1.0> SCSI1 5/cdrom removab
le
sd2 at scsibus0 targ 3 lun 0: <iomega, jaz 1GB, G.60> SCSI2 0/direct removable
sd2: drive offline
ser0 at obio0
fpu0 at obio0 (emulator)
nubus0 at mainbus0
Changing root device to sd1a.
PRAM time does not appear to have been read correctly.
PRAM: 0x83da4f80, macos_boottime: 0x31a79c7b.
Automatic boot in progress: starting file system checks.
/dev/rsd1a: 2691 files, 50455 used, 2175 free (127 frags, 256 blocks, 0.2% fragm
entation)
/dev/rsd1a: MARKING FILE SYSTEM CLEAN
setting tty flags
starting network
add host myname.my.domain: gateway localhost
starting rpc daemons: portmap.
starting system logger, time daemontimed: no network usable
.
checking for core dump...
savecore: reboot after panic: kernel jump to zero
May 25 21:49:45 myname savecore: reboot after panic: kernel jump to zero
savecore: system went down at Thu May 23 14:29:39 1996
savecore: dump performed, but free space threshold crossed
savecore: writing core to /var/crash/netbsd.10.core
 10236K
/: write failed, file system is full
May 25 21:49:53 myname /netbsd: uid 0 on /: file system full
savecore: /var/crash/netbsd.10.core: No space left on device
May 25 21:49:53 myname savecore: /var/crash/netbsd.10.core: No space left on dev
ice
savecore: WARNING: core may be incomplete

checking quotas: done.
building databases...

/: write failed, file system is full
May 25 21:49:56 myname /netbsd: uid 0 on /: file system full
clearing /tmp
standard daemons: update cron.
starting network daemons: routed printer inetd.
creating runtime link editor directory cache.
starting local daemons:.
Sat May 25 21:50:06 PDT 1996
May 25 21:50:07 myname init: kernel security level changed from 0 to 1

myname.my.domain login: root
Last login: Sat May 25 15:41:27 on tty00
May 25 21:50:21 myname login: ROOT LOGIN (root) ON tty00
May 25 21:50:21 myname login: ROOT LOGIN (root) ON tty00
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.   All rights reserved.

NetBSD 1.1B (GENERIC) #6: Sun May  5 23:45:39 EDT 1996

Welcome to NetBSD!

Terminal type? [unknown]
tset: terminal type   is unknown
Terminal type? vt100
Don't login as root, use su
myname#


UNSUCCESSFUL GENERIC-6 SERIAL BOOT:

Whee! we are the console!
[ preserving 92914 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 12582912 bytes in 3072 pages.
     Low = 0x0, high = 0xc00000
get_mapping(): IIvx/PB kludge.  False start.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0xadf000.
Video address 0x60040000 -> 0xbdf000.
trap type 1, code = 560d, v= 1
kernel: Address error trap
pid = 0, pc = 0x00b67d00, ps = 0x00002108, sfc = 0x00000001, dfc = 0x00000001
Registers:
             0        1        2        3        4        5        6        7
dreg: 0000279e 00000007 00000004 00002709 00000000 00000004 00000000 00000040
areg: 00b675ec 000015c6 000c72f0 00000000 01900280 000fadda 000fac66 ffffcffc

Kernel stack (000fab76):
000fab76: 00000001  0000279e  00000007  00000004  00002709  00000000  00000004
00000000
000fab96: 00000040  00b675ec  000015c6  000c72f0  00000000  01900280  000fadda
000fac66
000fabb6: ffffcffc  00000000  210800b6  7d00b00c  beee560d  00041046  000fac1c
000fac20
000fabd6: 00b67d00  10460000  00000003  00000001  00b67d04  00000001  0000ff0a
000ff30e
panic: Address error
Stopped at      _Debugger+0x6:  unlk    a6
db>


Hope this helps someone figure out what's going on.

Thanks again,

-Adam