From owner-freebsd-arm@FreeBSD.ORG Fri Dec 14 09:26:15 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 0CBD116A417; Fri, 14 Dec 2007 09:26:15 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 943B113C468; Fri, 14 Dec 2007 09:26:14 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id lBE91ZY6020123; Fri, 14 Dec 2007 10:01:35 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id lBE91TfD004223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Dec 2007 10:01:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id lBE91TjQ044603; Fri, 14 Dec 2007 10:01:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id lBE91SxQ044602; Fri, 14 Dec 2007 10:01:28 +0100 (CET) (envelope-from ticso) Date: Fri, 14 Dec 2007 10:01:28 +0100 From: Bernd Walter To: Stanislav Sedov Message-ID: <20071214090128.GM31230@cicely12.cicely.de> References: <20071213205502.GD17356@dracon.ht-systems.ru> <20071213.145828.1650439159.imp@bsdimp.com> <20071213222654.GE17356@dracon.ht-systems.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071213222654.GE17356@dracon.ht-systems.ru> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.144, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de 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 09:26:15 -0000 On Fri, Dec 14, 2007 at 01:26:54AM +0300, Stanislav Sedov wrote: > On Thu, Dec 13, 2007 at 02:58:28PM -0700 M. Warner Losh mentioned: > > There's no MMC support in the boot loader at the moment. Only SD > > support. There's some preliminary MMC support in the infrastructure, > > but I never fleshed it out. > > Well, I'm not talking about the boot loader's support, but abouth the > support in the kernel - I need the this to mount root from. From the > older posts I've seens that there was some secret driver - qdmmc, whicn > supported mmc cards (if I got this correctly). Can I found this somewhere? It was comited to perforce tree, but retired long time ago after the new system worked - qd stands for quick'n dirty, which it really was. It was easier for me to implement MMC since I had better documents at that time, but SD cards are cheaper so unless you want to support multiple cards at the same time, which is only supported by MMC, there is no win with MMC, and qdmmc only supported a single card anyway. > > : Also, I have a little question about if_ate. I'm receiving the error > > : when initializing it: > > : ate0: No MAC address setdevice_attach: ate0 attach returned 6 > > > > This means that the MAC address wasn't set by the boot loader. > > > > : Is it u-boot (that I use to boot the FreeBSD kernel) sets up incorrect > > : MAC (though the network works flawlessly in u-boot), or probably there're > > : some other issues that can cause it? > > > > I tought one needed to so something special with uboot to set the MAC > > address. Is that not right? > > > > 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. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de