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 From owner-freebsd-ppc@FreeBSD.ORG Mon Jan 21 11:07:05 2008 Return-Path: Delivered-To: freebsd-ppc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8703F16A469 for ; Mon, 21 Jan 2008 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 774D713C469 for ; Mon, 21 Jan 2008 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0LB75Jc047096 for ; Mon, 21 Jan 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0LB74kE047092 for freebsd-ppc@FreeBSD.org; Mon, 21 Jan 2008 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jan 2008 11:07:04 GMT Message-Id: <200801211107.m0LB74kE047092@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org 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: Mon, 21 Jan 2008 11:07:05 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/111296 ppc [kernel] [patch] Support IMISS, DLMISS an DSMISS inter o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f o power/117601 ppc [patch] Comments (style) in /sys/powerpc/conf/{GENERIC 3 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 22 04:05:00 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 787DB16A419 for ; Tue, 22 Jan 2008 04:05:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 2DA4613C455 for ; Tue, 22 Jan 2008 04:05:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so4144168waf.3 for ; Mon, 21 Jan 2008 20:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=UtgoJc/6uaAUdEr3aJ/Lue+dUKCKX55DMQg5pBv54sU=; b=xveMU3EpNxIKl8FfvoUv4TnH8vJJS7DXAG+PHAwt6Epv4MnbfwPEn2g3Ywny0OjKOlW61QYLKmdsre8jEkgVOF14dN88soUrbDY9pxrasNC9cuV2j7jfyu3JzWlLxmnSUO6RNwsMbav0sbsLw0fNLQ6mlB0PcPeEHuZUJqWoNkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=OYezv5k+Xj5SrDjjTBbnTnF3q5NjYv+2OXjJ7zqQh6KH8RRg5GLQ5ZnYNEOKjbYOLFs66gbnm9swJJUDngrOr3FyRO/riZMlkUJ1d+OUIuC0X4LI7nIH4aBDlB6wmppT9115YtGx+vcbKqXWP+yMqlxFeY9GZ/PB8ruAvxQifgw= Received: by 10.114.88.1 with SMTP id l1mr6158948wab.79.1200973253512; Mon, 21 Jan 2008 19:40:53 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id v38sm16779368wah.7.2008.01.21.19.40.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 19:40:52 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m0M3ek3F010628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Jan 2008 12:40:46 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m0M3ej5m010627; Tue, 22 Jan 2008 12:40:45 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 22 Jan 2008 12:40:45 +0900 From: Pyun YongHyeon To: Kevin Day Message-ID: <20080122034045.GA10560@cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-ppc@freebsd.org Subject: Re: Success on G4 XServe X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 04:05:00 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jan 20, 2008 at 10:22:41AM -0600, Kevin Day wrote: [...] > 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] > Would you show me the output of 'ifconfig gem0'? Also how about trying attached patch? -- Regards, Pyun YongHyeon --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="brgphy.diff" --- sys/dev/mii/brgphy.c.orig 2008-01-22 10:23:10.000000000 +0900 +++ sys/dev/mii/brgphy.c 2008-01-22 12:32:41.000000000 +0900 @@ -364,16 +364,13 @@ break; } -#if 0 - /* Todo: Is this correct? */ /* Announce link loss right after it happens. */ if (sc->mii_ticks++ == 0) break; -#endif /* Only retry autonegotiation every mii_anegticks seconds. */ if (sc->mii_ticks <= sc->mii_anegticks) - goto brgphy_service_exit; + break; /* Retry autonegotiation */ --HlL+5n6rz5pIUxbD-- From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 22 15:40: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 B7ABF16A418 for ; Tue, 22 Jan 2008 15:40:42 +0000 (UTC) (envelope-from frasconebulk@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by mx1.freebsd.org (Postfix) with ESMTP id 86A4B13C461 for ; Tue, 22 Jan 2008 15:40:42 +0000 (UTC) (envelope-from frasconebulk@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so90111ele.3 for ; Tue, 22 Jan 2008 07:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=922A0HRKbvb4MZw6hQfTvLoIxQC+Ee9LsUR+2BJPD/Y=; b=hrhpKeyuRb5qqXl2M38XUGLXDtYDYwnkbooTnn2bLprkFo7VJoETSnKcye4rVYmeQikhULPhtEXIkWDGy0jfmo5EFTod6ZCMXUgQrpfrlKUL3EFV2M6qX/4VKRG3fQa4gZ3UvMvwzBv9OsQtj+rgf2eniRtwq2GHiCiYvkoBB+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=UiDSpKHVweGxBj7RbiqxcBPZVxeuWES61TlqKHPT8s8i33s4IDhc+ANA3CXoUitLzsnoFXzqDuYntjxmZChospxPr78byQfXkU59eb5B0KNyh20zr1GW1zdANMIuJa2OOF6oRuIKaLMP6G/sOwIr2i3rCEmEGSXRNli+bwlRWHI= Received: by 10.150.54.6 with SMTP id c6mr2951069yba.43.1201014797978; Tue, 22 Jan 2008 07:13:17 -0800 (PST) Received: by 10.150.133.11 with HTTP; Tue, 22 Jan 2008 07:13:17 -0800 (PST) Message-ID: <681a18e40801220713m4bf11abcx3f463d6ca3729188@mail.gmail.com> Date: Tue, 22 Jan 2008 10:13:17 -0500 From: "David Frascone" To: freebsd-ppc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Best way to boot / install a mac? 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: Tue, 22 Jan 2008 15:40:42 -0000 I think I'm becoming an expert on installing BSD on macs now . . . I've done it many times :) But, I would like some advice from those who are also doing it: 1) Is there any alternative to 4-fingering the boot? Also, why not wipe all partitions and boot from TFTP to get the loader? Would that work? i.e. boot enet:,loader -- and then let loader somehow find the kernel / filesystems on the disk? 2) If you don't care about OS X, is there any alternative way to partition the disk? My powermac does not have a DVD drive in it, so I have to plug in a PC drive to boot off of my OS X dvd. I'd prefer to repartition more natively -- even if it means getting the loader via TFTP. Let me know what you think! -Dave From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 22 19:44:51 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 68ACA16A41B for ; Tue, 22 Jan 2008 19:44:51 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 045DC13C45B for ; Tue, 22 Jan 2008 19:44:50 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from excfreebsd.hq.netapp.com (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id DMO32556 (AUTH peterg@ptree32.com.au); Wed, 23 Jan 2008 05:44:42 +1000 (EST) Message-ID: <479647A0.5070606@freebsd.org> Date: Tue, 22 Jan 2008 11:44:32 -0800 From: Peter Grehan User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: Kevin Day References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Success on G4 XServe X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 19:44:51 -0000 Hi Kevin, > 1) Very strange, very rare but specific problems with the USB keyboard. This may be a generic USB problem: there have been a few similar reports on x86 platforms. > 2) Some acd errors get spit out on boot, but the cd still works fine: I noticed this appearing at some point during the 7.0 beta's. It's GEOM probing how large the media is. I'll investigate. > 3) The onboard "gem" ethernet interface doesn't seem to work right. I'll let Pyun YongHyeon take care of this one. > 4) ZFS doesn't seem to be getting built... Is it x86 only? It/s x86/amd64 for FreeBSD, though it runs on 32-bit big-endian sparc on Solaris so it's probably a matter of getting it to build. However, I doubt there is enough kernel virtual address space on FreeBSd/ppc for it to work effectively (512Mb). > 5) No SMP support yet, but I can't complain too much. :) I know Marcel has a dual G4 Xserve and was looking into getting it going. > 6) Running bison on here seems to produce incorrect output when building > mysql's parser. ... > The bison output of the parser built on a ppc system doesn't match > what's built on x86. One thing to look at here is any build warnings in the bison port on ppc. Anything to do with signed/unsigned chars, e.g. warnings about comparisons always succeeding, may be the issue. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 22 20:06:39 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 70AFD16A41A for ; Tue, 22 Jan 2008 20:06:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 0C01713C468 for ; Tue, 22 Jan 2008 20:06:38 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from excfreebsd.hq.netapp.com (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id DMO34601 (AUTH peterg@ptree32.com.au); Wed, 23 Jan 2008 06:06:18 +1000 (EST) Message-ID: <47964CB1.5060401@freebsd.org> Date: Tue, 22 Jan 2008 12:06:09 -0800 From: Peter Grehan User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: David Frascone References: <681a18e40801220713m4bf11abcx3f463d6ca3729188@mail.gmail.com> In-Reply-To: <681a18e40801220713m4bf11abcx3f463d6ca3729188@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Best way to boot / install a mac? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 20:06:39 -0000 Hi Dave, > I think I'm becoming an expert on installing BSD on macs now . . . > I've done it many times :) > > But, I would like some advice from those who are also doing it: > > 1) Is there any alternative to 4-fingering the boot? You can set up a CHRP boot script on the bootable partition to automatically boot into FreeBSD. This is what the install CD does (src/release/powerpc/boot.tbxi). See also: http://marc.info/?l=freebsd-ppc&m=112950480911251&w=2 > Also, why not wipe all partitions and boot from TFTP to get the > loader? Would that work? For a long time there was no native partitioning tool, and even now I'm not sure if g_part can do it. Also, the loader can't read HFS, and that's the usual filesystem used for a boot partition. I think it's possible to use iso9660 as a hd boot partition, though it would require the creating of an iso filesystem image on the fly to populate the partition. > i.e. boot enet:,loader -- and then let loader somehow find the kernel > / filesystems on the disk? As above on loader/HFS support. > 2) If you don't care about OS X, is there any alternative way to > partition the disk? My powermac does not have a DVD drive in it, so > I have to plug in a PC drive to boot off of my OS X dvd. I'd prefer > to repartition more natively -- even if it means getting the loader > via TFTP. My suggestion is to - boot up in firewire target mode (hold down 't' as the system boots), - hook it up to a machine running OSX/OS9/Linux - format a HFS boot partition. Copy the loader (and boot.tbxi) into this. - format the remainder of the disk as you see fit - install from CD or the net. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 22 22:52:46 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 5E1B016A417; Tue, 22 Jan 2008 22:52:46 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.75]) by mx1.freebsd.org (Postfix) with ESMTP id 4E89613C459; Tue, 22 Jan 2008 22:52:45 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp010-s [10.150.69.73]) by smtpoutm.mac.com (Xserve/smtpout012/MantshX 4.0) with ESMTP id m0MMqjKY025206; Tue, 22 Jan 2008 14:52:45 -0800 (PST) Received: from mini-g4.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp010/MantshX 4.0) with ESMTP id m0MMqes8008747 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 22 Jan 2008 14:52:42 -0800 (PST) Message-Id: From: Marcel Moolenaar To: grehan@freebsd.org In-Reply-To: <47964CB1.5060401@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: Tue, 22 Jan 2008 14:52:40 -0800 References: <681a18e40801220713m4bf11abcx3f463d6ca3729188@mail.gmail.com> <47964CB1.5060401@freebsd.org> X-Mailer: Apple Mail (2.915) Cc: freebsd-ppc@freebsd.org Subject: Re: Best way to boot / install a mac? 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: Tue, 22 Jan 2008 22:52:46 -0000 On Jan 22, 2008, at 12:06 PM, Peter Grehan wrote: >> Also, why not wipe all partitions and boot from TFTP to get the >> loader? Would that work? > > For a long time there was no native partitioning tool, and even now > I'm not sure if g_part can do it. Yes, g_part supports APM. It would be great if sysinstall would work with g_part so that one can repartition while installing. For now, you can use Mac OS X to repartition and then change the partition types with g_part or further add new partitions... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 00:49:34 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9879316A41A for ; Fri, 25 Jan 2008 00:49:34 +0000 (UTC) (envelope-from dsteklof@cisco.com) Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by mx1.freebsd.org (Postfix) with ESMTP id 73D6C13C45A for ; Fri, 25 Jan 2008 00:49:34 +0000 (UTC) (envelope-from dsteklof@cisco.com) Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-3.cisco.com with ESMTP; 24 Jan 2008 16:21:32 -0800 Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id m0P0LWJD022262 for ; Thu, 24 Jan 2008 16:21:32 -0800 Received: from [10.25.62.2] (sjc-dsteklof-vpn1.cisco.com [10.25.62.2]) by sj-core-1.cisco.com (8.12.10/8.12.6) with SMTP id m0P0LW3V008027 for ; Fri, 25 Jan 2008 00:21:32 GMT Message-ID: <47992B9F.1050802@cisco.com> Date: Thu, 24 Jan 2008 16:21:51 -0800 From: Daniel Stekloff User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: powerpc@freebsd.org Content-Type: multipart/mixed; boundary="------------020107010108070900060604" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=2186; t=1201220492; x=1202084492; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=dsteklof@cisco.com; z=From:=20Daniel=20Stekloff=20 |Subject:=20[PATCH]=20Add=20openfirmio=20and=20ofwdump=20to =20powerpc=20build |Sender:=20; bh=PFP3LDhdVH7uklFOWcXBXwZvlHC/UDvzbnoiLpkxivM=; b=Yr8bxGNgwpFfTYIohW3XWXS5/sVDPLpdHZ3uU6GO9j3TrfvlON9M1KF5G9 PZ110/hGxY+2MCgshH5U+DfpMDyq40tGQTd+N8gKQrdkN+lZqqLNEwnshToS Oi7sPY/hYz; Authentication-Results: sj-dkim-2; header.From=dsteklof@cisco.com; dkim=pass ( sig from cisco.com/sjdkim2002 verified; ); Cc: Subject: [PATCH] Add openfirmio and ofwdump to powerpc build 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: Fri, 25 Jan 2008 00:49:34 -0000 This is a multi-part message in MIME format. --------------020107010108070900060604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This patch adds openfirmio device to powerpc target as well as ofwdump. They can be used to dump the OF device tree. If this looks useful, please commit. All comments are welcome. Thanks, Dan --------------020107010108070900060604 Content-Type: text/x-patch; name="add_openfirmio_powerpc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="add_openfirmio_powerpc.patch" ? test.patch Index: sys/conf/files.powerpc =================================================================== RCS file: /home/ncvs/src/sys/conf/files.powerpc,v retrieving revision 1.71 diff -u -p -r1.71 files.powerpc --- sys/conf/files.powerpc 19 Dec 2007 18:00:48 -0000 1.71 +++ sys/conf/files.powerpc 24 Jan 2008 22:13:10 -0000 @@ -31,6 +31,7 @@ dev/fb/fb.c optional sc dev/hwpmc/hwpmc_powerpc.c optional hwpmc dev/kbd/kbd.c optional sc dev/ofw/openfirm.c optional aim +dev/ofw/openfirmio.c optional aim dev/ofw/ofw_bus_if.m optional aim dev/ofw/ofw_bus_subr.c optional aim dev/ofw/ofw_console.c optional aim Index: usr.sbin/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/Makefile,v retrieving revision 1.380 diff -u -p -r1.380 Makefile --- usr.sbin/Makefile 5 Dec 2007 17:54:59 -0000 1.380 +++ usr.sbin/Makefile 24 Jan 2008 22:13:35 -0000 @@ -366,6 +366,7 @@ _zzz= zzz .if ${MACHINE_ARCH} == "powerpc" _mount_smbfs= mount_smbfs _nvram= nvram +_ofwdump= ofwdump .endif .if ${MACHINE_ARCH} == "sparc64" Index: usr.sbin/ofwdump/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/ofwdump/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- usr.sbin/ofwdump/Makefile 22 May 2004 16:51:11 -0000 1.4 +++ usr.sbin/ofwdump/Makefile 24 Jan 2008 22:13:38 -0000 @@ -2,7 +2,6 @@ PROG= ofwdump MAN= ofwdump.8 -MANSUBDIR= /sparc64 SRCS= ofwdump.c ofw_util.c WARNS?= 6 --------------020107010108070900060604-- From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 01:19:05 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 49F2C16A468 for ; Fri, 25 Jan 2008 01:19:05 +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 166AE13C465 for ; Fri, 25 Jan 2008 01:19:05 +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 82CCE2AD55CD; Fri, 25 Jan 2008 01:19:03 +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 BC14DA0A44E; Fri, 25 Jan 2008 01:19:02 +0000 (UTC) Message-Id: From: Kevin Day To: pyunyh@gmail.com In-Reply-To: <20080122034045.GA10560@cdnetworks.co.kr> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Thu, 24 Jan 2008 19:18:20 -0600 References: <20080122034045.GA10560@cdnetworks.co.kr> X-Mailer: Apple Mail (2.915) Cc: freebsd-ppc@freebsd.org Subject: Re: 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: Fri, 25 Jan 2008 01:19:05 -0000 On Jan 21, 2008, at 9:40 PM, Pyun YongHyeon wrote: > On Sun, Jan 20, 2008 at 10:22:41AM -0600, Kevin Day wrote: > [...] >> 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. >> >> > > Would you show me the output of 'ifconfig gem0'? > Also how about trying attached patch? > gem0: flags=8843 metric 0 mtu 1500 options=b ether 00:0a:95:75:6e:d0 inet 69.31.99.18 netmask 0xffffffc0 broadcast 69.31.99.63 media: Ethernet autoselect (100baseTX ) status: active I can SSH to the system and do some light work, but attempting to download any large-ish file results in the interface hanging. Even applying the patch doesn't seem to fix it. I did just discover that unplugging/replugging the ethernet cable brings it back to life though. If you'd like remote access to this system let me know and I could arrange something. -- Kevin From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 01:26:01 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 D9DE016A417 for ; Fri, 25 Jan 2008 01:26:01 +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 A003B13C467 for ; Fri, 25 Jan 2008 01:26:01 +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 CECDC2AD551D; Fri, 25 Jan 2008 01:26:00 +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 1C93CA0A454; Fri, 25 Jan 2008 01:26:00 +0000 (UTC) Message-Id: <9511002D-9B3B-497B-BB7C-8EC917B323F7@dragondata.com> From: Kevin Day To: grehan@freebsd.org In-Reply-To: <479647A0.5070606@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: Thu, 24 Jan 2008 19:25:17 -0600 References: <479647A0.5070606@freebsd.org> X-Mailer: Apple Mail (2.915) Cc: freebsd-ppc@freebsd.org Subject: Re: 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: Fri, 25 Jan 2008 01:26:01 -0000 On Jan 22, 2008, at 1:44 PM, Peter Grehan wrote: >> 1) Very strange, very rare but specific problems with the USB >> keyboard. > > This may be a generic USB problem: there have been a few similar > reports on x86 platforms. > This seems specific to this keyboard. If I use a real Apple keyboard, or a keyboard that came with one of our Dell servers the problem doesn't occur. But, the keyboard that does have this problem works fine in OSX and the OF console on this server... very strange. :) >> 4) ZFS doesn't seem to be getting built... Is it x86 only? > > It/s x86/amd64 for FreeBSD, though it runs on 32-bit big-endian > sparc on Solaris so it's probably a matter of getting it to build. > However, I doubt there is enough kernel virtual address space on > FreeBSd/ppc for it to work effectively (512Mb). > Yeah, I didn't think it'd be very efficient due to that exact problem. > >> 6) Running bison on here seems to produce incorrect output when >> building mysql's parser. > ... >> The bison output of the parser built on a ppc system doesn't match >> what's built on x86. > > One thing to look at here is any build warnings in the bison port on > ppc. Anything to do with signed/unsigned chars, e.g. warnings about > comparisons always succeeding, may be the issue. I'm still digging through what's wrong here, I don't think the problem is where I thought it was originally. Completely wiping/reinstalling mysql made the problem go away. So, I'm looking at what else could be going on. -- Kevin From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 03:00:12 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E97F516A420 for ; Fri, 25 Jan 2008 03:00:12 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [202.45.126.103]) by mx1.freebsd.org (Postfix) with ESMTP id A737713C461 for ; Fri, 25 Jan 2008 03:00:12 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id EC5581CC6D; Fri, 25 Jan 2008 13:41:57 +1100 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 Received: from urtzweil.blueboxdevices.com (eth785.vic.adsl.internode.on.net [150.101.222.16]) by mail.jeamland.net (Postfix) with ESMTP id 977631CC11; Fri, 25 Jan 2008 13:41:57 +1100 (EST) Message-Id: <92E540C5-FF19-4C17-BCCA-EF65192D4845@jeamland.net> From: Benno Rice To: Daniel Stekloff In-Reply-To: <47992B9F.1050802@cisco.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Fri, 25 Jan 2008 13:41:48 +1100 References: <47992B9F.1050802@cisco.com> X-Mailer: Apple Mail (2.915) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: powerpc@freebsd.org Subject: Re: [PATCH] Add openfirmio and ofwdump to powerpc build 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: Fri, 25 Jan 2008 03:00:13 -0000 On 25/01/2008, at 11:21 AM, Daniel Stekloff wrote: > > Hi, > > This patch adds openfirmio device to powerpc target as well as > ofwdump. They can be used to dump the OF device tree. > > If this looks useful, please commit. > > All comments are welcome. It looks fairly straightforward but unfortunately I don't have any hardware to test it on at the moment. I'm happy to commit it if someone can provide me with a success report though. -- Benno Rice benno@jeamland.net From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 07:11:20 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06B9E16A41B; Fri, 25 Jan 2008 07:11:20 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C171013C458; Fri, 25 Jan 2008 07:11:19 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id m0P74gfl023957; Fri, 25 Jan 2008 00:04:42 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 25 Jan 2008 00:08:42 -0700 (MST) Message-Id: <20080125.000842.-1572316594.imp@bsdimp.com> To: obrien@freebsd.org, powerpc@freebsd.org From: "M. Warner Losh" X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Small buglet in binutils build 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: Fri, 25 Jan 2008 07:11:20 -0000 Greetings, While creating patches to allow the start of data to be marked, like newer versions of binutils do on Linux, I had a college point out that the gnu/usr.bin/binutils/ld/Makefile.powerpc was different than all the others in FreeBSD: % grep ^NATIVE Makefile.* Makefile.alpha:NATIVE_EMULATION= elf64alpha_fbsd Makefile.amd64:NATIVE_EMULATION= elf_x86_64_fbsd Makefile.arm:NATIVE_EMULATION= armelfb_fbsd Makefile.arm:NATIVE_EMULATION= armelf_fbsd Makefile.i386:NATIVE_EMULATION= elf_i386_fbsd Makefile.ia64:NATIVE_EMULATION= elf64_ia64_fbsd Makefile.powerpc:NATIVE_EMULATION= elf32ppc Makefile.sparc64:NATIVE_EMULATION= elf64_sparc_fbsd Notice a lack of _fbsd for the Makefile.powerpc line. I believe this is just a simple oversight as it is different than all the rest, has no comment explaining it, and adding _fbsd works too. The effect of this is that anything that's in elf_fbsd.sh doesn't get included. Any objections to my correcting this oversight? Warner P.S. Many thanks to Peter Lei and Xiaode Xu for bringing this to my attention. From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 07:30:57 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CD9A16A417; Fri, 25 Jan 2008 07:30:57 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id BBA9A13C448; Fri, 25 Jan 2008 07:30:56 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from excfreebsd.hq.netapp.com (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id DMS92991 (AUTH peterg@ptree32.com.au); Fri, 25 Jan 2008 17:30:49 +1000 (EST) Message-ID: <4799901D.2050206@freebsd.org> Date: Thu, 24 Jan 2008 23:30:37 -0800 From: Peter Grehan User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: "M. Warner Losh" References: <20080125.000842.-1572316594.imp@bsdimp.com> In-Reply-To: <20080125.000842.-1572316594.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Small buglet in binutils build X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 07:30:57 -0000 Hi Warner, > The effect of this is that anything that's in elf_fbsd.sh doesn't get > included. > > Any objections to my correcting this oversight? Not from me, though: %cat contrib/binutils/ld/emulparams/elf_fbsd.sh ELF_INTERPRETER_NAME=\"/usr/libexec/ld-elf.so.1\" .. that's wrong but it doesn't appear to be used. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Jan 25 07:40:53 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A165416A417; Fri, 25 Jan 2008 07:40:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4EDC113C46E; Fri, 25 Jan 2008 07:40:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id m0P7XwRN024189; Fri, 25 Jan 2008 00:33:58 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 25 Jan 2008 00:37:58 -0700 (MST) Message-Id: <20080125.003758.1573403215.imp@bsdimp.com> To: grehan@freebsd.org From: "M. Warner Losh" In-Reply-To: <4799901D.2050206@freebsd.org> References: <20080125.000842.-1572316594.imp@bsdimp.com> <4799901D.2050206@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Small buglet in binutils build 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: Fri, 25 Jan 2008 07:40:53 -0000 In message: <4799901D.2050206@freebsd.org> Peter Grehan writes: : Hi Warner, : : > The effect of this is that anything that's in elf_fbsd.sh doesn't get : > included. : > : > Any objections to my correcting this oversight? : : Not from me, though: : : %cat contrib/binutils/ld/emulparams/elf_fbsd.sh : ELF_INTERPRETER_NAME=\"/usr/libexec/ld-elf.so.1\" : : .. that's wrong but it doesn't appear to be used. If it were, we'd have noticed other issues... Maybe we should fix it at the same time, or delete it... Since it is in the upstream sources, I'm sure David will have an opinion as to the best way to go about that... Warner