Subject: Re: "Blue & White" G3 (long)
To: Dan Winship <danw@MIT.EDU>
From: William O Ferry <woferry@iname.com>
List: port-macppc
Date: 03/09/1999 00:38:50
In message <199903090459.EAA05179@antharia.MIT.EDU>, Dan Winship writes:
>OK, after applying the pci.c, obio.c, wdc_obio.c, and ukbd.c kludges,
>I get as far as:
>
>wscons: wskbd1 glued to wsdisplay0
>trap type 300 at 15c300
>Stopped in swapper at 0x22acec: lwz r0, r1, 0x14,
>db>
Might have missed something, I wasn't particularly clear about all of my
kludges.. =) Don't know if there's a better way, but try an "nm -no netbsd |
grep 0015" and see what function 15c300 would be in? The "swapper" seems
bogus, I sit at the same instruction (the lwz) in "Debugger" (which makes a
lot more sense) when my kernels die.
>Asking for a stack trace gives:
>
>db> t
>at ?+ffffffff
[...]
Yeah, GDB (or whatever we use in the kernel) is currently broken on the
PowerPC's as I understand it. Doesn't really hurt me much, I know very little
about GDB, and tend to take the approach of many printfs/recompiles (and
nm|grep's) to see what's going on.. =)
>Oh, and I don't think it found a wd0, even though it did find the cd0.
That's correct. Since the CMD PCI0640 controller was "not configured", it
was unable to find wd0. cd0 (and sd0 if you have a Zip drive) are off of
Paddington's internal IDE controller, which is detected with some changes, but
still does not work (it seems that most interrupts are not getting through the
bridge, it's why bm0 is sending but not receiving, and when I tried booting
off a zip I got lost interrupts and lots of timeouts (the drive was never
accessed). It's not everything, as USB seems to work just fine. But it seems
that at least interrupts from Paddington aren't making it through the bridge,
at least that's my guess on things. Would the Paddington IDE drive detection
work without interrupts, or is that proof that it works at least some of the
time?). As far as the CMD controller goes I'm going to give a shot at porting
pciide to macppc, it seems like it should be fairly easy, when I tried this
past weekend it seemed that at least the iot's were getting filled out
incorrectly upon entry to the pciide routines. Will take a closer look at
things, probably not until this coming weekend, though (really don't have time
to code during the week).
>PS - Not especially related, but does the PowerMac Open Firmware have
>an equivalent to the Sparc Open Firmware "power-off" command?
Yes: "shut-down" (if power-off does what I'd imagine it does.. =)
Will Ferry
-----------------
woferry@iname.com