Single user mode on G5!

Nathan Whitehorn nwhitehorn at freebsd.org
Sat Jul 19 21:17:14 UTC 2008


Patches at http://banshee.uchicago.edu/~nwhitehorn/g5.diff. Beware that 
kernels with INVARIANTS enabled do not run on G5s because of some issues 
writing to the console in early boot and that the patch breaks building 
loader, and thus world. These should be easy to fix, and will be fixed 
once the system is working.

A failed attempt to start multi-user is listed below -- remounting / 
read-write causes a panic for some reason that is not currently clear to 
me. A kernel built with G5 support should work fine on G3/G4 machines 
(tested on a G3). The patches also change a few things that may affect 
Book-E systems; I'd appreciate comments from people with such hardware.
-Nathan

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #724: Sat Jul 19 15:01:10 CDT 2008
     root at trantor.tachypleus.net:/usr/obj/powerpc/usr/src/sys/CETO
cpu0: IBM PowerPC 970FX revision 3.0
cpu0: HID0 4<BHT>
real memory  = 790847488 (754 MB)
avail memory = 740294656 (706 MB)
kbd0 at kbdmux0
nexus0: <Open Firmware Nexus device>
powermac_nvram0: <Apple NVRAM> on nexus0
powermac_nvram0: both banks appear to be corrupt
device_attach: powermac_nvram0 attach returned 6
pcib0: <Apple U3 Host-AGP bridge> on nexus0
pci0: <PCI bus> on pcib0
vgapci0: <VGA-compatible display> mem 
0x91000000-0x91ffffff,0xa0000000-0xa7ffffff irq 59 at device 16.0 on pci0
cpcht0: <IBM CPC925 HyperTransport Tunnel> on nexus0
pcib1: <HyperTransport-PCI bridge> on cpcht0
pci1: <PCI bus> on pcib1
gem0: <Apple Shasta GMAC Ethernet> mem 0x80400000-0x805fffff irq 40 at 
device 15.0 on pci1
miibus0: <MII bus> on gem0
bmtphy0: <BCM5221 10/100baseTX PHY> PHY 0 on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem0: 10kB RX FIFO, 4kB TX FIFO
gem0: Ethernet address: 00:0d:93:48:c2:86
gem0: [ITHREAD]
pcib2: <HyperTransport-PCI bridge> on cpcht0
pci2: <PCI bus> on pcib2
pci2: <network> at device 1.0 (no driver attached)
macio0: <Shasta I/O Controller> mem 0x80000000-0x8007ffff at device 7.0 
on pci2
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
scc0: <Zilog Z8530 dual channel SCC> mem 
0x13000-0x13fff,0x8400-0x84ff,0x8500-0x
85ff,0x8600-0x86ff,0x8700-0x87ff irq 23,17,18,24,19,20 on macio0
scc0: [FILTER]
scc0: [FILTER]
uart0: <z8530, channel A> on scc0
uart0: [FILTER]
uart1: <z8530, channel B> on scc0
uart1: [FILTER]
ohci0: <NEC uPD 9210 USB controller> mem 0x80082000-0x80082fff irq 70 at 
device 11.0 on pci2
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0
usb0: <NEC uPD 9210 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 3 ports with 3 removable, self powered
ohci1: <NEC uPD 9210 USB controller> mem 0x80081000-0x80081fff irq 70 at 
device 11.1 on pci2
ohci1: [GIANT-LOCKED]
ohci1: [ITHREAD]
usb1: OHCI version 1.0
usb1: <NEC uPD 9210 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: <NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
ehci0: <NEC uPD 720100 USB 2.0 controller> mem 0x80080000-0x800800ff irq 
70 at device 11.2 on pci2
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb2: EHCI version 1.0
usb2: companion controllers, 3 ports each: usb0 usb1
usb2: <NEC uPD 720100 USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: <NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2
uhub2: 5 ports with 5 removable, self powered
pcib3: <HyperTransport-PCI bridge> on cpcht0
pci3: <PCI bus> on pcib3
atapci0: <ServerWorks K2 SATA150 controller> mem 0x80102000-0x80103fff 
at device 12.0 on pci3
atapci0: unable to map interrupt
device_attach: atapci0 attach returned 6
pci3: <unknown> at device 13.0 (no driver attached)
fwohci0: <1394 Open Host Controller Interface> mem 0x80100000-0x80100fff 
irq 39 at device 14.0 on pci3
fwohci0: [FILTER]
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:0d:93:ff:fe:48:c2:86
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:0d:93:48:c2:86
fwe0: Ethernet address: 02:0d:93:48:c2:86
dcons_crom0: <dcons configuration ROM> on firewire0
dcons_crom0: bus_addr 0x1db4000
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0x8800ffc0, gen=2, non CYCLEMASTER mode
sc0: <System console> on nexus0
sc0: Unknown <16 virtual consoles, flags=0x300>
uhub3: <Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, 
rev 1.10/1.00, addr 2> on uhub1
uhub3: 3 ports with 2 removable, bus powered
ukbd0: <Mitsumi Electric Apple Extended USB Keyboard, class 0/0, rev 
1.10/1.01, addr 3> on uhub3
kbd1 at ukbd0
uhid0: <Mitsumi Electric Apple Extended USB Keyboard, class 0/0, rev 
1.10/1.01, addr 3> on uhub3
Timecounter "decrementer" frequency 33333333 Hz quality 0
Timecounters tick every 10.000 msec
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1
Trying to mount root from nfs:trantor:/tank/powerpc
NFS ROOT: 10.0.1.100:/tank/powerpc
gem0: link state changed to UP
firewire0: New S400 device ID:0011066645555bf7
Interface gem0 IP-Address 10.0.1.99 Broadcast 10.0.1.255
Loading configuration files.
No suitable dump device was found.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
mount_nfs: can't update /var/db/mounttab for trantor:/tank/powerpc

fatal kernel trap:

    exception       = 0x3 (data storage interrupt)
    virtual address = 0x18159d0
    srr0            = 0x310548
    srr1            = 0x9032
    lr              = 0x4147ac
    curthread       = 0xd14f8d20
           pid = 73, comm = mount_nfs

[thread pid 73 tid 100040 ]
Stopped at      0x310548:       lbz     r0, r3, 0x0
db> bt
Tracing pid 73 tid 100040 td 0xd14f8d20
0xe219f980: at nfs_decode_args+0x638
0xe219f9b0: at nfs_mount+0x124
0xe219fae0: at vfs_donmount+0x1320
0xe219fca0: at nmount+0xd8
0xe219fce0: at trap+0x45c
0xe219fda0: at powerpc_interrupt+0x11c
0xe219fdd0: user SC trap by 0x218a6408: srr1=0xd032
             r1=0x7fffd8c0 cr=0x24000084 xer=0 ctr=0x218a6400
db>


More information about the freebsd-ppc mailing list