From owner-freebsd-arm@FreeBSD.ORG Fri Dec 14 13:27:29 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3445216A417 for ; Fri, 14 Dec 2007 13:27:29 +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 ED47313C46E for ; Fri, 14 Dec 2007 13:27:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lBEDPB3I018152; Fri, 14 Dec 2007 06:25:12 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 14 Dec 2007 06:25:11 -0700 (MST) Message-Id: <20071214.062511.74732956.imp@bsdimp.com> To: gary.jennejohn@freenet.de From: Warner Losh In-Reply-To: <20071214115226.0b2cb7e2@peedub.jennejohn.org> References: <20071213222654.GE17356@dracon.ht-systems.ru> <20071214090128.GM31230@cicely12.cicely.de> <20071214115226.0b2cb7e2@peedub.jennejohn.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 13:27:29 -0000 From: Gary Jennejohn Subject: Re: MMC cards support Date: Fri, 14 Dec 2007 11:52:26 +0100 > On Fri, 14 Dec 2007 10:01:28 +0100 > Bernd Walter wrote: > > > On Fri, Dec 14, 2007 at 01:26:54AM +0300, Stanislav Sedov wrote: > > > Probably. It seems that FreeBSD is trying to read MAC address from the chip's > > > registers, and I though that if the ethernet works in u-boot then this registers > > > have been set. I'll investigate this further. > > > > Sounds logical, but I don't know u-boot and FreeBSD won't complain > > without a reason. > > At least there is no standard place to get the system MAC beside the > > ate registers. > > Of course you can hack the ate driver and hardcode a MAC into the kernel. > > Or you can switch to FreeBSDs own bootcode. > > > > u-boot passes this information to Linux in the board info (bd_t) > structure at boot time. A lot of Linux ethernet drivers read the MAC > out of this structure and then set it in the hardware/software. > > Very few u-boot ethernet drivers set the MAC in the hardware themselves. > > With FreeBSD this mechanism is missing. I did it this way because the Linux driver for the Atmel driver did it this way. I thought it was the de-facto way things work. Patches to implement this would be welcome. Warner