From owner-freebsd-mips@FreeBSD.ORG Sat Jan 23 18:42:02 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44C44106566B for ; Sat, 23 Jan 2010 18:42:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 08BB08FC14 for ; Sat, 23 Jan 2010 18:42:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o0NIaD2v020817; Sat, 23 Jan 2010 11:36:13 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 23 Jan 2010 11:37:10 -0700 (MST) Message-Id: <20100123.113710.715074405929305890.imp@bsdimp.com> To: kvedulv@kvedulv.de From: "M. Warner Losh" In-Reply-To: <20100123155657.GG23141@darkthrone.kvedulv.de> References: <20100123155657.GG23141@darkthrone.kvedulv.de> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: NIC on RouterBoard 411 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2010 18:42:02 -0000 In message: <20100123155657.GG23141@darkthrone.kvedulv.de> Michael Moll writes: : Hi All, : : I'm experimenting with FreeBSD/mips and a RouterBoard 411. It's booting : via BOOTP/TFTP, but the NICs are not detected correctly. See full dmesg : here: http://space.kvedulv.de/rb411_dmesg.txt : : When tcpdumping I see no pakets comming from the board, so I suppose : arge0 is the "real" interface with some PHY that gets not detected ATM. : : Any hints to get more information? In the hints file for the AR71XX file we see: # PHY4 = 1 << 4 hint.arge.0.phymask=0x10 # Uncomment this hint for RS (not PRO) # PHY20 = 1 << 20 # hint.arge.0.phymask=0x100000 # PHY1, PHY2, PHY3 hint.arge.1.phymask=0x0e ... # should be 100 for RS hint.arge.1.media=1000 hint.arge.1.fduplex=1 # Uncomment this hint for RS (not PRO) # hint.arge.0.phymask=70000 This is the mask of PHY addresses. If you have the documentation for the PHY addresses on your board, create a bitmask from that. If you lack documentation, trial an error likely can have good results since there's only 32 possible addresses the PHYs could be wired to. Warner