Subject: single-user boot on 170 works (*** long***)
To: None <port-mac68k@NetBSD.ORG>
From: Brian Wimberly <brianw@scripps.edu>
List: port-mac68k
Date: 03/02/1996 20:10:52
For other PB 170 owners out there who have not yet tried to boot macbsd:

I got the single-user boot (using the serial console) to work with the standard
NetBSD1.1/mac release (minus the kernel) and the netbsd.960206.3 kernel
by Walter Reutten, as well as with the ADBTEST110 kernel by John Wittkoski.

The multi-user boot fails with these kernels, however. The panic starts right
after the statement "mrg: no trace functionality enabled" (see the attached
output for all the gory details including register values).

Thanks to several of you who pointed me to these kernels.

Brian
*******

msgs from netbsd.960206.3 boot in multi-user mode:

Whee! we are the console!
[ preserving 91292 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 8388608 bytes in 2048 pages.
     Low = 0x0, high = 0x800000
Non-system RAM (nubus, etc.):
     Log = 0xf9000000, Phys = 0xf9000000, Len = 0x5e00000 (98566144d)
     Log = 0xfee00000, Phys = 0xfee08000, Len = 0xffff0000 (4294901760d)
     Log = 0xfee10000, Phys = 0xfee10000, Len = 0x1f0000 (2031616d)
  no internal video at address 0 -- videoaddr is 0xfee08000.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x1800000.
Video address 0xfee08000 -> 0x8608000.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1A (ISLINGTON) #275: Tue Feb  6 21:44:15 MET 1996
    walter@islington.ihf.rwth-aachen.de:/usr/src/sys/arch/mac68k.vi/compile/ISLI
NGTON
Apple Macintosh PowerBook 170  (68030)
real mem = 8388608
avail mem = 5414912
using 128 buffers containing 524288 bytes of memory
mrg: Resources found:
PACK 0x 5   PACK 0x 4   PACK 0x 5   PACK 0x 4   DRVR 0x33   DRVR 0xbf81   DRVR 0
x 3   DRVR 0x 9   DRVR 0x a   DRVR 0x28   INIT 0x12   lmgr 0x 0   ltlk 0x 1   lt
lk 0x 0   atlk 0x 1   iopc 0x7f   ltlk 0x 3   ltlk 0x 2   atlk 0x 3   iopc 0x80
  atlk 0x a   DRVR 0x7f   CURS 0x 1   CURS 0x 2   CURS 0x 3   CURS 0x 4   FONT 0
x 0   FONT 0x c   FONT 0x180   FONT 0x189   FONT 0x18c   FONT 0x200   FONT 0x209
   KCHR 0x 0   KMAP 0x 0   KMAP 0x 2   KCAP 0x 6   KCAP 0x 7   snd  0x 1   PACK
0x 7   CDEF 0x 0   CDEF 0x 1   MBDF 0x 0   MDEF 0x 0   WDEF 0x 1   WDEF 0x 0   a
pad 0x 2   clut 0x 1   clut 0x 2   clut 0x 4   clut 0x 8   clut 0x7f   gama 0x 0
   mitq 0x 0   wctb 0x 0   cctb 0x 0   DRVR 0x 4   SERD 0x 0   apad 0x 1   iopc
0x 0   SERD 0x3c   SERD 0x3d   iopc 0x 1   attx 0x 1   PICT 0x1f5   apad 0x 0
RSRC 0x 3   DRVR 0x32   DRVR 0x31
mrg: w_count_resources called for resource DRVR :  found 10 resources of request
ed type!
mrg: Number of resources: 10
mrg: w_get_int_resource called for resource DRVR, no. 1 :  found at addr 0x8c07a
10 -> 0x18e7500
mrg: w_get_int_resource called for resource DRVR, no. 1 :  found at addr 0x8c07a
10 -> 0x18e7500
mrg: w_get_int_resource called for resource DRVR, no. 1 :  found at addr 0x8c07a
10 -> 0x18e7500
mrg: Address of 1st DRVR rsrc: 0x8c07a10, -> 0x18e7500, -> 0x4f000000
mrg:           testing mrg_CountResources
mrg: w_count_resources called for resource DRVR :  found 10 resources of request
ed type!
mrg: back from testing mrg_CountResources. No. or resources is: 0xa0000
mrg:           testing mrg_GetIndResource
mrg: w_get_int_resource called for resource DRVR, no. 1 :  found at addr 0x8c07a
10 -> 0x18e7500
mrg: back from testing mrg_GetIndResource. Handle is: 0x8c07a10
mrg: Back from Delay trap
mrg: kernel has no ROM vectors for this machine!
adb: no ROM ADB driver in this kernel for this machine
mainbus0 (root)
ite0 at mainbus0 (minimal console)
adb0 at mainbus0 (ADB event device)
ser0 at mainbus0
nubus0 at mainbus0
ncrscsi0 at mainbus0
scsibus0 at ncrscsi0
ncrscsi0 targ 0 lun 0: <QUANTUM, DAYTONA341S, 5110> SCSI2 0/direct fixed
sd0 at scsibus0: 326MB, 1704 cyl, 6 head, 65 sec, 512 bytes/sec
ncrscsi0 targ 3 lun 0: <QUANTUM, GO80S, 5.46> SCSI2 0/direct fixed
sd1 at scsibus0: 82MB, 870 cyl, 4 head, 48 sec, 512 bytes/sec
ncr96scsi0 at mainbus0 not configured
asc0 at mainbus0 Apple sound chip.
fpu0 at mainbus0 (mc68882)
floppy0 at mainbus0 not configured
Changing root device to sd1a.
PRAM time does not appear to have been read correctly.
PRAM: 0x83da4f80, macos_boottime: 0x31387101.
Automatic boot in progress: starting file system checks.
/dev/rsd1a: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rsd1a: 3816 files, 54985 used, 8569 free (209 frags, 1045 blocks, 0.3% frag
mentation)
/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: no core dump
checking quotas: done.
building databases...
clearing /tmp
standard daemons: update cron.
starting network daemons: routed printer inetd.
creating runtime link editor directory cache.
starting local daemons:.
Sat Mar  2 13:03:02 PST 1996
Mar  2 13:03:04 myname init: kernel security level changed from 0 to 1
mrg: no trace functionality enabled
panic: kernel jump to zero
Stopped at      _Debugger+0x6:  unlk    a6
db> _Debugger(170d8,2e1e,76fd64,0,76fd80) + 6
_panic(2e1e,7ef2a,0,0,a) + 34
_jmp0panic(?)
_grfiv_phys(35,0,8c18e00,76fda0,1cef2) + 18
_itestart(8c18e00,76fe38,1d78c,8c18e00,35) + 4e
_ttstart(8c18e00) + 14
_ttwrite(8c18e00,76ff28,1,76fe9c,33d9a) + 220
_itewrite(b00,76ff28,1) + 26
_spec_write(76fed8,76feec,2eb0c,76fed8,e8) + a2
_ufsspec_write(76fed8) + 28
_vn_write(8c3b180,76ff28,8c0b880) + ca
_sys_write(8c3c300,76ff88,76ff80) + a4
_syscall(4) + 13a
_trap0() + e
db>  show registers
d0                   0
d1                0x54
d2               0x100
d3                 0x4
d4                   0
d5            0x76ff28  _end+0x69d880
d6                0x35
d7                 0x1
a0            0x804002  _end+0x73195a
a1               0x258  _KbdType+0x3a
a2                   0
a3                   0
a4           0x8c18e40  _end+0x8b46798
a5               0x4e0  _Lo3Bytes+0x1c6
a6            0x76fd40  _end+0x69d698
ssp           0x76fd40  _end+0x69d698
usp         0xffffcd90
pc             0x7997e  _Debugger+0x6
sr              0x2000  _ADBState+0x1220
_Debugger+0x6:  unlk    a6
db> continue
syncing disks... 6 6 5 2 done
NetBSD/mac68k does not trust itself to try and write to the pram on this system.

dumping to dev 409, offset 19624
dump 7 6 5 4 3 2 1 succeeded

**********

msgs from ADBTEST110 boot in multi-user mode:


Whee! we are the console!
[ preserving 93041 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 8388608 bytes in 2048 pages.
     Low = 0x0, high = 0x800000
Non-system RAM (nubus, etc.):
     Log = 0xf9000000, Phys = 0xf9000000, Len = 0x5e00000 (98566144d)
     Log = 0xfee00000, Phys = 0xfee08000, Len = 0xffff0000 (4294901760d)
     Log = 0xfee10000, Phys = 0xfee10000, Len = 0x1f0000 (2031616d)
  no internal video at address 0 -- videoaddr is 0xfee08000.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x1800000.
Video address 0xfee08000 -> 0x8608000.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1A (ADBTEST) #110: Sat Feb 24 21:15:40 EST 1996
    root@daedalus.microserve.com:/usr/src/sys/arch/mac68k/compile/ADBTEST
Apple Macintosh PowerBook 170  (68030)
real mem = 8388608
avail mem = 5386240
using 128 buffers containing 524288 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)
ite0 at mainbus0 (minimal console)
adb0 at mainbus0 (ADB event device)
ser0 at mainbus0
nubus0 at mainbus0
ncrscsi0 at mainbus0
scsibus0 at ncrscsi0
ncrscsi0 targ 0 lun 0: <QUANTUM, DAYTONA341S, 5110> SCSI2 0/direct fixed
sd0 at scsibus0: 326MB, 1704 cyl, 6 head, 65 sec, 512 bytes/sec
ncrscsi0 targ 3 lun 0: <QUANTUM, GO80S, 5.46> SCSI2 0/direct fixed
sd1 at scsibus0: 82MB, 870 cyl, 4 head, 48 sec, 512 bytes/sec
ncr96scsi0 at mainbus0 not configured
sbc0 at mainbus0 not configured
asc0 at mainbus0 Apple sound chip.
fpu0 at mainbus0 (mc68882)
floppy0 at mainbus0 not configured
Changing root device to sd1a.
PRAM time does not appear to have been read correctly.
PRAM: 0x83da4f80, macos_boottime: 0x3138911a.
Automatic boot in progress: starting file system checks.
/dev/rsd1a: 3826 files, 56055 used, 7499 free (203 frags, 912 blocks, 0.3% 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: no core dump
checking quotas: done.
building databases...
clearing /tmp
standard daemons: update cron.
starting network daemons: routed printer inetd.
creating runtime link editor directory cache.
starting local daemons:.
Sat Mar  2 15:20:01 PST 1996
Mar  2 15:20:02 myname init: kernel security level changed from 0 to 1
panic: kernel jump to zero
Stopped at      _Debugger+0x6:  unlk    a6
db> show registers
d0              0x2704  _get_pte+0x73e
d1                0x54
d2               0x100
d3                 0x4
d4                   0
d5            0x776f28  _end+0x69d310
d6                0x35
d7                 0x1
a0            0x804002  _end+0x72a3ea
a1               0x257  _KbdType+0x39
a2                   0
a3                   0
a4           0x8c18e40  _end+0x8b3f228
a5               0x4e0  _Lo3Bytes+0x1c6
a6            0x776d40  _end+0x69d128
sp          0xffffcd90
pc             0x88b46  _Debugger+0x6
sr              0x2000  _get_pte+0x3a
_Debugger+0x6:  unlk    a6
db> continue
syncing disks... 6 6 5 done
NetBSD/mac68k does not trust itself to try and write to the pram on this system.

dumping to dev 409, offset 19624
dump 7 6 5 4 3 2 1 succeeded