From owner-freebsd-ppc@FreeBSD.ORG Sat Jul 19 21:17:14 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2BB51065670 for ; Sat, 19 Jul 2008 21:17:14 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 82D488FC0A for ; Sat, 19 Jul 2008 21:17:14 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0K4900100SCPLE00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sat, 19 Jul 2008 15:17:13 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-99-153-133-60.dsl.mdsnwi.sbcglobal.net [99.153.133.60]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0K49000MBSCO5O00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sat, 19 Jul 2008 15:17:12 -0500 (CDT) Date: Sat, 19 Jul 2008 15:19:38 -0500 From: Nathan Whitehorn To: freebsd-ppc@freebsd.org Message-id: <48824C5A.2010805@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.153.133.60 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.7.19.200100, SenderIP=99.153.133.60 User-Agent: Thunderbird 2.0.0.14 (X11/20080628) Subject: Single user mode on G5! X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2008 21:17:14 -0000 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@trantor.tachypleus.net:/usr/obj/powerpc/usr/src/sys/CETO cpu0: IBM PowerPC 970FX revision 3.0 cpu0: HID0 4 real memory = 790847488 (754 MB) avail memory = 740294656 (706 MB) kbd0 at kbdmux0 nexus0: powermac_nvram0: on nexus0 powermac_nvram0: both banks appear to be corrupt device_attach: powermac_nvram0 attach returned 6 pcib0: on nexus0 pci0: on pcib0 vgapci0: mem 0x91000000-0x91ffffff,0xa0000000-0xa7ffffff irq 59 at device 16.0 on pci0 cpcht0: on nexus0 pcib1: on cpcht0 pci1: on pcib1 gem0: mem 0x80400000-0x805fffff irq 40 at device 15.0 on pci1 miibus0: on gem0 bmtphy0: 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: on cpcht0 pci2: on pcib2 pci2: at device 1.0 (no driver attached) macio0: mem 0x80000000-0x8007ffff at device 7.0 on pci2 openpic0: mem 0x40000-0x7ffff on macio0 scc0: 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: on scc0 uart0: [FILTER] uart1: on scc0 uart1: [FILTER] ohci0: mem 0x80082000-0x80082fff irq 70 at device 11.0 on pci2 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0x80081000-0x80081fff irq 70 at device 11.1 on pci2 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ehci0: 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: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 5 ports with 5 removable, self powered pcib3: on cpcht0 pci3: on pcib3 atapci0: mem 0x80102000-0x80103fff at device 12.0 on pci3 atapci0: unable to map interrupt device_attach: atapci0 attach returned 6 pci3: 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: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:0d:93:48:c2:86 fwe0: Ethernet address: 02:0d:93:48:c2:86 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x1db4000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0x8800ffc0, gen=2, non CYCLEMASTER mode sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> uhub3: on uhub1 uhub3: 3 ports with 2 removable, bus powered ukbd0: on uhub3 kbd1 at ukbd0 uhid0: 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>