From owner-freebsd-mips@FreeBSD.ORG Sun Jan 24 01:56:59 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 393721065694 for ; Sun, 24 Jan 2010 01:56:59 +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 EC1098FC13 for ; Sun, 24 Jan 2010 01:56:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o0O1moY0024747; Sat, 23 Jan 2010 18:48:50 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 23 Jan 2010 18:49:48 -0700 (MST) Message-Id: <20100123.184948.807935107107560660.imp@bsdimp.com> To: gonzo@bluezbox.com From: "M. Warner Losh" In-Reply-To: References: <20100123204257.GH23141@darkthrone.kvedulv.de> <20100123.144216.1084339115216047983.imp@bsdimp.com> 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: Sun, 24 Jan 2010 01:56:59 -0000 In message: Oleksandr Tymoshenko writes: : : On 2010-01-23, at 1:42 PM, M. Warner Losh wrote: : : > In message: <20100123204257.GH23141@darkthrone.kvedulv.de> : > Michael Moll writes: : > : Hi Warner, : > : : > : On Sat, Jan 23, 2010 at 11:37:10AM -0700, M. Warner Losh wrote: : > : > 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. : > : : > : Thanks, it now boots multiuser with hint.arge.0.phymask=0x0e : > : > Cool. Maybe I'll create a hints file for it. : > : > btw, do you know if there's a way to determine at run-time if we're : > booting on this board? : : Last time I checked hardware configuration was set at : build-time. There are files named mach-XXXX.c. Each file acts : effectively like FreeBSD's XXXX.hints. Only that C file is a little : bit more flexible then hints description language :) I thought it grovelled through the information passed in from the boot loader to figure it out... Warner