From owner-freebsd-ppc@FreeBSD.ORG Sun Jan 20 16:51:42 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 BD6D916A41A for ; Sun, 20 Jan 2008 16:51:42 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from tokyo01.jp.mail.your.org (tokyo01.jp.mail.your.org [204.9.54.5]) by mx1.freebsd.org (Postfix) with ESMTP id 5870513C458 for ; Sun, 20 Jan 2008 16:51:42 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from mail.your.org (server3-a.your.org [64.202.112.67]) by tokyo01.jp.mail.your.org (Postfix) with ESMTP id 406A12AD549F for ; Sun, 20 Jan 2008 16:23:22 +0000 (UTC) Received: from pool014.dhcp.your.org (pool014.dhcp.your.org [69.31.99.14]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.your.org (Postfix) with ESMTP id 43809A0A44E for ; Sun, 20 Jan 2008 16:23:21 +0000 (UTC) Message-Id: From: Kevin Day To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Sun, 20 Jan 2008 10:22:41 -0600 X-Mailer: Apple Mail (2.915) Subject: Success on G4 XServe 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: Sun, 20 Jan 2008 16:51:42 -0000 I gave 7.0-RC1 a try on a dual 1.3GHz G4/7455 Xserve. Overall success, with a few hangups: 1) Very strange, very rare but specific problems with the USB keyboard. Certain sequences of keystrokes come out wrong. If I type "reboot" it will always show up as "rebeoot". As soon as I press "b" an extra "e" comes out, but only if the preceding keys were "r" then "e". I can type "boot", "unboot", "noboot", "meboot" fine, but "reboot" always gets entered wrong. If I press r e (backspace) e b o o t it's fine. I'm positively stumped. The same keyboard works fine in OS X and in the OF console. This also happens with the word "divert" getting converted to "divertr". 2) Some acd errors get spit out on boot, but the cd still works fine: acd0: CDRW at ata0-master BIOSPIO ad0: 57241MB at ata2-master UDMA133 ad1: 57241MB at ata3-master UDMA133 ad2: 57241MB at ata4-master UDMA133 ad3: 57241MB at ata5-master UDMA133 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x02 ascq=0x00 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 GEOM_LABEL: Label for provider acd0 is iso9660/CDROM. acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x02 ascq=0x00 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x02 ascq=0x00 3) The onboard "gem" ethernet interface doesn't seem to work right. I can dhcp an address, but connecting to anything doesn't seem to work. I haven't been able to troubleshoot any further. A bge interface on a PCI card works fine. gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci4 miibus1: on gem0 brgphy1: PHY 0 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: Ethernet address: 00:0a:95:75:6e:d0 gem0: [ITHREAD] 4) ZFS doesn't seem to be getting built... Is it x86 only? 5) No SMP support yet, but I can't complain too much. :) 6) Running bison on here seems to produce incorrect output when building mysql's parser. mysql> select 1+1; +-----+ | 1+1 | +-----+ | 2 | +-----+ 1 row in set (0.01 sec) mysql> select (1+1); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 The bison output of the parser built on a ppc system doesn't match what's built on x86. Copying the final parser files from an x86 over to here and rebuilding mysql makes it work fine. I haven't narrowed down the problem yet though. Sorry for the vagueness in some of this, I only had an hour to play on here and I wanted to post my results so far before I forget. :) Full dmesg posted below for those who care. -- Kevin 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 7.0-RC1 #0: Fri Dec 28 11:35:24 UTC 2007 root@marcel-osx.englab.juniper.net:/usr/obj/usr/src/sys/GENERIC cpu0: Motorola PowerPC 7455 revision 3.3, 1333.34 MHz cpu0: HID0 8450c0bc real memory = 1332215808 (1270 MB) avail memory = 1286868992 (1227 MB) kbd0 at kbdmux0 nexus0: unin0: on nexus0 unin0: Version 36 pcib0: on nexus0 pci0: on pcib0 bge0: mem 0xa0000000-0xa000ffff irq 48 at device 16.0 on pci0 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:03:93:f4:4d:62 bge0: [ITHREAD] pcib1: on nexus0 pci1: on pcib1 pcib2: at device 13.0 on pci1 pci2: on pcib2 macio0: mem 0x80000000-0x8007ffff at device 7.0 on pci2 openpic0: mem 0x40000-0x7ffff on macio0 scc0: mem 0x13000-0x13fff,0x8400-0x84ff, 0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,23 on macio0 scc0: [FILTER] scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart1: on scc0 uart1: [FILTER] ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19 on macio0 ata0: [ITHREAD] ohci0: mem 0x80081000-0x80081fff irq 27 at device 8.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: 2 ports with 2 removable, self powered ohci1: mem 0x80080000-0x80080fff irq 28 at device 9.0 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 pcib3: at device 17.0 on pci1 pci3: on pcib3 pcib1: failed to reserve resource for (null) vgapci0: port 0x1000-0x10ff mem 0x88000000-0x8fffffff,0x80100000-0x8010ffff irq 52 at device 2.0 on pci3 atapci0: port 0x1090-0x1097,0x1080-0x1083,0x1070-0x1077,0x1060-0x1063,0x1050-0x105f mem 0x90030000-0x9003ffff irq 58 at device 21.0 on pci1 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] atapci1: port 0x1040-0x1047,0x1030-0x1033,0x1020-0x1027,0x1010-0x1013,0x1000-0x100f mem 0x90010000-0x9001ffff irq 63 at device 27.0 on pci1 atapci1: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] pcib4: on nexus0 pci4: on pcib4 ata1: mem 0xf5004000-0xf5007fff irq 39 at device 13.0 on pci4 ata1: [ITHREAD] fwohci0: mem 0xf5000000-0xf5000fff irq 40 at device 14.0 on pci4 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:0a:95:ff:fe:75:6e:d0 fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: on fwohci0 sbp0: on firewire0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:0a:95:75:6e:d0 fwe0: Ethernet address: 02:0a:95:75:6e:d0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc1, gen=2, CYCLEMASTER mode gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci4 miibus1: on gem0 brgphy1: PHY 0 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: Ethernet address: 00:0a:95:75:6e:d0 gem0: [ITHREAD] sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> ukbd0: on uhub0 kbd1 at ukbd0 ums0: on uhub0 ums0: 3 buttons and Z dir. Timecounter "decrementer" frequency 41537897 Hz quality 0 Timecounters tick every 10.000 msec firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me) firewire0: bus manager 1 (me) acd0: CDRW at ata0-master BIOSPIO ad0: 57241MB at ata2-master UDMA133 ad1: 57241MB at ata3-master UDMA133 ad2: 57241MB at ata4-master UDMA133 ad3: 57241MB at ata5-master UDMA133 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x02 ascq=0x00 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 GEOM_LABEL: Label for provider acd0 is iso9660/CDROM. acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x02 ascq=0x00 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x02 ascq=0x00 Trying to mount root from ufs:/dev/ad0s3