From owner-freebsd-current@FreeBSD.ORG Tue Sep 22 21:21:07 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FC1E1065679 for ; Tue, 22 Sep 2009 21:21:07 +0000 (UTC) (envelope-from kristof@sigsegv.be) Received: from yorgi.telenet-ops.be (yorgi.telenet-ops.be [195.130.133.69]) by mx1.freebsd.org (Postfix) with ESMTP id 0FE2D8FC17 for ; Tue, 22 Sep 2009 21:21:06 +0000 (UTC) Received: from brigitte.telenet-ops.be (brigitte.telenet-ops.be [195.130.137.66]) by yorgi.telenet-ops.be (Postfix) with ESMTP id EE8AC680B14 for ; Tue, 22 Sep 2009 23:10:24 +0200 (CEST) Received: from triton.sigsegv.be ([213.119.96.179]) by brigitte.telenet-ops.be with bizsmtp id jxAM1c0073sCccd0GxAMft; Tue, 22 Sep 2009 23:10:21 +0200 Received: from nereid (nereid.neptune.sigsegv.be [IPv6:2001:470:c8f4:0:200:ff:fe00:8]) by triton.sigsegv.be (Postfix) with SMTP id 3759A1C24E for ; Wed, 23 Sep 2009 01:11:24 +0200 (CEST) Received: by nereid (sSMTP sendmail emulation); Tue, 22 Sep 2009 23:10:20 +0200 Date: Tue, 22 Sep 2009 23:10:18 +0200 From: Kristof Provost To: current@freebsd.org Message-ID: <20090922211012.GE19069@nereid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Fingerprint: 6B6E 5EED 8ECF FAE7 1F61 7458 5046 7D0E 11B0 0EE8 User-Agent: Mutt/1.5.14 (2007-03-31) Cc: Subject: mge, mii/e1000phy X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 21:21:07 -0000 Hi, I've been trying to get CURRENT running on a TS-7800 [1]. It's based around a Marvell Orion SoC, with a Marvell 88E1118 PHY. It boots and tries to do bootpc_init. This fails because there are no packets coming in or going out. A few thing's I've noticed: - The PHY is misdetected as an 88E1116. Changing sys/dev/mii/miidevs so it's detected as the 88E1118 it really is doesn't help. - sys/dev/mii/e1000phy.c appears to contain a bug: e1000phy_reset performs a switch on MII_MODEL(esc->mii_model) while the rest of the code just uses esc->mii_model. This seems to be wrong as the cases for 1118 (or 1116) are not triggered. Changing this also doesn't appear to help. - Forcing the mge driver to IFM_100_TX (in mge_set_port_serial_control) does work. The system manages to acquire a DHCP address. - CURRENT does work correctly on my Sheevaplug, which has a Marvell 88E1116R PHY (at least, it's identified as one, I've not checked any further). Does anyone have any ideas on what might be causing this or what to try next? Kristof [1] http://www.embeddedarm.com/products/board-detail.php?product=TS-7800