Subject: More Centris 660AV stuff
To: None <port-mac68k@NetBSD.ORG>
From: Dave Huang <khym@bga.com>
List: port-mac68k
Date: 05/22/1996 02:31:46
Well, I decided to try booting my 660av again with a more recent
kernel, and much to my surprise, it gets much further than it used
to...

Here's a log of the kernel output when booting with the Mac as
console:

[ preserving 80070 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Faked range to byte 0xc00000.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0xa87000.
mrg: ROM adbintr 0x4080cac6 -> 0x00a93ac6
mrg: ROM pmintr 0x00000000 -> 0x00000000
mrg: OS trap 0x77 (CountADBs) = 0x40839600 -> 0x00ac0600
mrg: OS trap 0x78 (GetIndADB) = 0x4083961a -> 0x00ac061a
mrg: OS trap 0x79 (GetADBInfo) = 0x40839646 -> 0x00ac0646
mrg: OS trap 0x7a (SetADBInfo) = 0x4083964c -> 0x00ac064c
mrg: OS trap 0x7b (ADBReInit) = 0x408397b8 -> 0x00ac07b8
mrg: OS trap 0x7c (ADBOp) = 0x4083967c -> 0x00ac067c
mrg: OS trap 0x85 (PMgrOp) = 0x00000000 -> 0x00000000
mrg: OS trap 0x92 (Egret) = 0x4080cada -> 0x00a93ada
mrg: ROM ADBAltInit 0x408398c2 -> 0x00ac08c2
mrg: ROM ADBReInit_JTBL 0x00000000 -> 0x00000000
mrg: ROM InitEgret  0x4080de14 -> 0x00a94e14
mrg: ROM Resource list-head 0x00000000 -> 0x00000000
Video address 0x50100800 -> 0xb87800.
delay calibrated, factor = 355
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1B (GEDD) #26: Wed May 22 01:49:15 CDT 1996
    khym@dahan.metonymy.com:/usr/src/sys/arch/mac68k/compile/GEDD
Apple Macintosh Centris 660AV  (68040)
real mem = 12582912
avail mem = 9580544
using 179 buffers containing 733184 bytes of memory
mrg: 'Quadra AV ROMs' ROM glue, tracing on (verbose), debug on, verbose traps
mrg: start init
After setting globals
after setting jump points
mrg: end init
adb: bus subsystem
adb: call mrg_initadbintr
Got following HwCfgFlags: 0xfc00, 0x4900081f, 0x2300bf26, 0x       0
mrg: setup_egret:

and it hangs right there...


With a serial console, I get:

Whee! we are the console!
[ preserving 80070 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Faked range to byte 0xc00000.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0xa87000.
Video address 0x50100800 -> 0xb87800.
delay calibrated, factor = 355
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1B (GEDD) #26: Wed May 22 01:49:15 CDT 1996
    khym@dahan.metonymy.com:/usr/src/sys/arch/mac68k/compile/GEDD
Apple Macintosh Centris 660AV  (68040)
real mem = 12582912
avail mem = 9580544
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)
zsc0 at obio0 chip type 3 
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
fpu0 at obio0 (unknown type)
nubus0 at mainbus0
probing slot 9, first probe at 0xf9ffffff (PA 0x0x0).
bytelanes not found for slot 0x9.
probing slot 10, first probe at 0xfaffffff (PA 0x0x0).
bytelanes not found for slot 0xa.
probing slot 11, first probe at 0xfbffffff (PA 0x0x0).
bytelanes not found for slot 0xb.
probing slot 12, first probe at 0xfcffffff (PA 0x0x0).
bytelanes not found for slot 0xc.
probing slot 13, first probe at 0xfdffffff (PA 0x0x0).
bytelanes not found for slot 0xd.
probing slot 14, first probe at 0xfeffffff (PA 0x0x0).
bytelanes not found for slot 0xe.
ARGH!!  No boot device????Only supports DISK device for booting.
Changing root device to a.
panic: cannot mount root
Stopped at      _Debugger+0x6:  unlk    a6
db>

The serial console actually seems to work fine... at least I can give
ddb commands:

db> trace
_Debugger(1fb0c,15280,cdf88,2004,cdfac) + 6
_panic(15280,0,1b380,800206f2,ffffcffc) + 34
_main() + 338
_main() + 338

If I do:

db> c
syncing disks... done
NetBSD/mac68k does not trust itself to update the RTC on shutdown.

dumping to dev 1, offset 0

it hangs (not that I really expected it to do anything
different... maybe reboot or something :)


So, I've got a couple of questions... I'm still wondering where I can
find values for the romvecs[] table in machdep.c... I filled in most
of them, but I have no idea if I'm right or not :) A brief description
of each of the entries would be nice :)

Is it likely that I'd be able to boot with a miniroot and serial
console? Where can I get a miniroot image to try?

Any other tips on how I might get the machine to work? :)

Thanks...

Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 20 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++