Success on G4 XServe

Pyun YongHyeon pyunyh at gmail.com
Mon Jan 21 20:05:00 PST 2008


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: <Apple UniNorth2 GMAC Ethernet> mem 0xf5200000-0xf53fffff irq 41  
 > at device 15.0 on pci4
 > miibus1: <MII bus> on gem0
 > brgphy1: <BCM5754 10/100/1000baseTX PHY> 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
-------------- next part --------------
--- 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 */


More information about the freebsd-ppc mailing list