From owner-freebsd-ppc@FreeBSD.ORG Sat Oct 15 23:54:48 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D2D216A41F for ; Sat, 15 Oct 2005 23:54:48 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from hummer.onthenet.com.au (hummer.onthenet.com.au [203.13.68.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FB2F43D46 for ; Sat, 15 Oct 2005 23:54:47 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.18.185] (CPE-18-185.dsl.OntheNet.net [203.144.18.185]) by hummer.onthenet.com.au (Postfix) with ESMTP id B305219FC41; Sun, 16 Oct 2005 09:54:45 +1000 (EST) Message-ID: <435196C2.2090501@freebsd.org> Date: Sun, 16 Oct 2005 09:54:42 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ben Rosengart References: <20051015010107.GA88834@absinthe.tinho.net> <43505BDC.8060705@freebsd.org> <20051015165835.GA13681@absinthe.tinho.net> In-Reply-To: <20051015165835.GA13681@absinthe.tinho.net> Content-Type: multipart/mixed; boundary="------------060504080201060008020107" Cc: freebsd-ppc@freebsd.org Subject: Re: sawtooth: no carrier on gem0 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: Sat, 15 Oct 2005 23:54:48 -0000 This is a multi-part message in MIME format. --------------060504080201060008020107 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Ben, > I had to transcribe this by hand, I hope it's all correct. > > gem0: mem 0xf5200000-0xf53fffff irq 41 > at device 15.0 on pci3 > miibus0: on gem0 > brgphy0: on miibus0 > brgphy0: 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto Thanks for that. Looking at sys/dev/mii/brgphy.c, this shows it is a BCM5400 phy. Two things: - are you hooked up to a 10mb port ? As you can see from the list of supported speeds, this model doesn't handle 10mb/s. From Darwin source, it looks like Apple hooked up an additional BCM5201 phy to handle the 10mb case, but the multi-phy case isn't supported in FreeBSD. - I scanned back thru the NetBSD source and noticed that there was a reset case missing for the 5400. It's present only for the 5401 in the FreeBSD version, so this could be the culprit. If you install kernel source during the install, you should be able to re-build a kernel. I've attached a patch which may fix the 5400 reset case - would you be able to give it a try ? later, Peter. --------------060504080201060008020107 Content-Type: text/plain; name="brgphy.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="brgphy.c.diff" Index: sys/dev/mii/brgphy.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mii/brgphy.c,v retrieving revision 1.35 diff -u -r1.35 brgphy.c --- sys/dev/mii/brgphy.c 30 Sep 2005 19:39:27 -0000 1.35 +++ sys/dev/mii/brgphy.c 15 Oct 2005 23:50:32 -0000 @@ -388,6 +388,7 @@ sc->mii_media_status != mii->mii_media_status || cmd == MII_MEDIACHG) { switch (brgphy_mii_model) { + case MII_MODEL_xxBROADCOM_BCM5400: case MII_MODEL_xxBROADCOM_BCM5401: bcm5401_load_dspcode(sc); break; @@ -617,6 +618,7 @@ mii_phy_reset(sc); switch (brgphy_mii_model) { + case MII_MODEL_xxBROADCOM_BCM5400: case MII_MODEL_xxBROADCOM_BCM5401: bcm5401_load_dspcode(sc); break; --------------060504080201060008020107--