Date: Tue, 3 Jul 2007 19:40:05 -0700 From: emre n/a <emre@uoregon.edu> To: pyunyh@gmail.com Cc: freebsd-ppc@freebsd.org Subject: Re: gem0 problems with 6.2 Message-ID: <08B90B8B-8CA7-4624-BCDA-3886AE29FD2F@uoregon.edu> In-Reply-To: <20070704012730.GC72486@cdnetworks.co.kr> References: <6938E4E6-5A05-4793-BB99-4F2D33952561@uoregon.edu> <20070704012730.GC72486@cdnetworks.co.kr>
next in thread | previous in thread | raw e-mail | index | archive | help
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<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT> real memory = 795967488 (759 MB) avail memory = 769077248 (733 MB) nexus0: <Open Firmware Nexus device> openpic0: <OpenPIC Interrupt Controller> on nexus0 unin0: <Apple UniNorth System Controller> on nexus0 unin0: Version 36 pcib0: <Apple UniNorth Host-PCI bridge> on nexus0 pci0: <PCI bus> on pcib0 pci0: <display, VGA> at device 16.0 (no driver attached) pcib1: <Apple UniNorth Host-PCI bridge> on nexus0 pci1: <PCI bus> on pcib1 pci1: <network, ethernet> at device 18.0 (no driver attached) macio0: <KeyLargo I/O Controller> 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: <Apple KeyLargo USB controller> mem 0x80081000-0x80081fff irq 27 at device 24.0 on pci1 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0 usb0: <Apple KeyLargo USB controller> 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: <Apple KeyLargo USB controller> mem 0x80080000-0x80080fff irq 28 at device 25.0 on pci1 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0 usb1: <Apple KeyLargo USB controller> 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: <Apple UniNorth Host-PCI bridge> on nexus0 pci2: <PCI bus> on pcib2 ata2: <Uninorth2 Kauai ATA Controller> mem 0xf5004000-0xf5007fff irq 39 at device 13.0 on pci2 fwohci0: <Apple UniNorth> 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: <IEEE1394(FireWire) bus> on fwohci0 fwe0: <Ethernet over FireWire> 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: <SBP-2/SCSI over FireWire> 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: <Apple GMAC3 Ethernet Adaptor> mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci2 miibus0: <MII bus> on gem0 ukphy0: <Generic IEEE 802.3u media interface> 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: <System console> 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 <HL-DT-ST RW/DVD GCC-4521B/1.00> at ata1-master BIOSPIO ad0: 38166MB <Seagate ST340014A 3.06> at ata2-master BIOSPIO ad1: 9641MB <IBM DTTA-371010 T77OA73A> 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: <DEFANGED_Apple GMAC3 Ethernet Adaptor> mem >> 0xf5200000-0xf53fffff irq 41 >> at device 15.0 on pci2 >> miibus0: <MII bus> on gem0 >> ukphy0: <Generic IEEE 802.3u media interface 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 >> > > 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 >> options=9<VLAN_MTU> >> 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?08B90B8B-8CA7-4624-BCDA-3886AE29FD2F>