From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 4 02:40:16 2007 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9714F16A468 for ; Wed, 4 Jul 2007 02:40:16 +0000 (UTC) (envelope-from emre@uoregon.edu) Received: from smtp.uoregon.edu (mserv2.uoregon.edu [128.223.142.41]) by mx1.freebsd.org (Postfix) with ESMTP id 7D47513C46C for ; Wed, 4 Jul 2007 02:40:16 +0000 (UTC) (envelope-from emre@uoregon.edu) Received: from [128.223.91.164] (d91-164.uoregon.edu [128.223.91.164]) (authenticated bits=0) by smtp.uoregon.edu (8.13.8/8.13.8) with ESMTP id l642eFgQ006193 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 3 Jul 2007 19:40:16 -0700 In-Reply-To: <20070704012730.GC72486@cdnetworks.co.kr> References: <6938E4E6-5A05-4793-BB99-4F2D33952561@uoregon.edu> <20070704012730.GC72486@cdnetworks.co.kr> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <08B90B8B-8CA7-4624-BCDA-3886AE29FD2F@uoregon.edu> Content-Transfer-Encoding: 7bit From: emre n/a Date: Tue, 3 Jul 2007 19:40:05 -0700 To: pyunyh@gmail.com X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: ClamAV 0.90.3/3589/Tue Jul 3 16:20:58 2007 on mserv2 X-Virus-Status: Clean Cc: freebsd-ppc@freebsd.org Subject: Re: gem0 problems with 6.2 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: Wed, 04 Jul 2007 02:40:16 -0000 Hello, Thanks for the quick reply. I'm not sure what I did, but networking is somewhat working, not smoothly however. I unplugged the cable, plugged it back in, and then manually ran dhclient gem0 after reboot (after an unsuccessful configuration). I got an IP address back and IPv6 configured itself fine as well. I put ifconfig_gem0="DHCP" instead of the static IP address into rc.conf. Then I rebooted. dhclient tries to get an IP address at boot-up but fails to get any offers, and ultimately gives up. It then uses the 'recorded lease' IP address, and then everything works....sometimes. It's very random and rarely works. I changed my rc.conf back to what it was (static IP config), and added 'media 100baseTX' at the end. It seems that it might've fixed the problem. I have no problem getting networking to work now, however DHCP still remains problematic. Maybe it wasn't unable to correctly determine the media type? See dmesg below. Take care Copyright (c) 1992-2007 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 6.2-RELEASE #0: Sat Jan 13 14:51:58 UTC 2007 root@xserve.pn.xcllnt.net:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "decrementer" frequency 33304845 Hz quality 0 cpu0: Motorola PowerPC 7455 revision 2.1, 866.67 MHz cpu0: HID0 8450c0bc real memory = 795967488 (759 MB) avail memory = 769077248 (733 MB) nexus0: openpic0: on nexus0 unin0: on nexus0 unin0: Version 36 pcib0: on nexus0 pci0: on pcib0 pci0: at device 16.0 (no driver attached) pcib1: on nexus0 pci1: on pcib1 pci1: at device 18.0 (no driver attached) macio0: mem 0x80000000-0x8007ffff at device 23.0 on pci1 ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19 on macio0 ata1 mem 0x20000-0x20fff,0x8b00-0x8bff irq 20 on macio0 ohci0: mem 0x80081000-0x80081fff irq 27 at device 24.0 on pci1 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: Apple OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0x80080000-0x80080fff irq 28 at device 25.0 on pci1 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: Apple OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcib2: on nexus0 pci2: on pcib2 ata2: mem 0xf5004000-0xf5007fff irq 39 at device 13.0 on pci2 fwohci0: mem 0xf5000000-0xf5000fff irq 40 at device 14.0 on pci2 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:03:93:ff:fe:bb:ea:de fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:03:93:bb:ea:de fwe0: Ethernet address: 02:03:93:bb:ea:de fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci2 miibus0: on gem0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: Ethernet address: 00:03:93:bb:ea:de sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> uhub2: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 2 uhub2: 3 ports with 2 removable, bus powered ukbd0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/1 uhid0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/1 ums0: Mitsumi Apple USB Mouse, rev 1.00/5.01, addr 4, iclass 3/1 ums0: 1 buttons. Timecounters tick every 10.000 msec acd0: DVDR at ata1-master BIOSPIO ad0: 38166MB at ata2-master BIOSPIO ad1: 9641MB at ata2-slave BIOSPIO Trying to mount root from ufs:/dev/ad0s10 On Jul 3, 2007, at 6:27 PM, Pyun YongHyeon wrote: > On Tue, Jul 03, 2007 at 02:02:12PM -0700, emre n/a wrote: >> Hello, >> >> I'm having a lot of difficulty getting networking to work. I have a >> grey 867Mhz PowerMac G4 (with mirrored drive doors). It's a vanilla >> install. >> >> In dmesg I get: >> >> [...] >> gem0: mem >> 0xf5200000-0xf53fffff irq 41 >> at device 15.0 on pci2 >> miibus0: on gem0 >> ukphy0: > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX. 1000baseT, >> 1000baseT-FDX, auto > ^^^^^^^^^^^^^ >> gem0: 10kB RX FIFO, 4kB TX FIFO >> gem0: Ethernet address: 00:03:93:bb:ea:de >> > > It seems that ukphy(4) claims to support 1000baseT on your PHY. > I'm unsure that Apple GMAC3 really have gigabit PHY and it would > be great if you can show me verbose boot output. The verbose boot > message will show additional information(e.g. model and revision > number) of your PHY. > >> In rc.conf I have defaultrouter="xxx.xxx.xxx.xxx" and >> ifconfig_gem0="inet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx" set. >> Netstat shows absolutely no traffic, I can't even connect to machines >> on the local subnet. Our network is setup to give out IPs using >> DHCP, and also automatically assigns a 2001: IPv6 number. Neither >> happens here. The network cable is plugged in and I can confirm that >> nothing is wrong with the network (plugging a different machine into >> the same ethernet jack works without any problems -- static, DHCP and >> IPv6 configs all work fine and as planned). >> >> here's the ifconfig gem0 output: >> >> gem0: flags=8843 mtu 1500 >> options=9 >> inet xxx.xxx.xxx.xxx netmask 0ffffff00 broadcast >> xxx.xxx.xxx.255 >> ether 00:003:93:bb:ea:de >> media: Ethernet autoselect (none) >> >> with "xxx.xxx.xxx.xxx" being my real IP and netmask respectively. >> netstat -rn also shows me the correct gateway. >> >> I've also tried NetBSD/macppc with these settings and it seems to >> work fine. I've run out of possible solutions for this. Does anyone >> know what could be wrong? I wanted to try out one of the -current >> ISOs, but unfortunately they don't boot (gives me kernel panic in the >> middle of booting sysinst). >> >> Take care >> >> >> (P.S. I'm not yet on this list, so feel free to cc or reply to me in >> private) > -- > Regards, > Pyun YongHyeon >