From owner-freebsd-arm@FreeBSD.ORG Thu Feb 22 17:50:12 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6FB5F16A400 for ; Thu, 22 Feb 2007 17:50:12 +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 DE4EF13C48D for ; Thu, 22 Feb 2007 17:50:11 +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 l1MHnwvb098863; Thu, 22 Feb 2007 18:49:58 +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 l1MHno3i094839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Feb 2007 18:49:50 +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 l1MHnn5r048410; Thu, 22 Feb 2007 18:49:49 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l1MHnliM048409; Thu, 22 Feb 2007 18:49:47 +0100 (CET) (envelope-from ticso) Date: Thu, 22 Feb 2007 18:49:47 +0100 From: Bernd Walter To: Krassimir Slavchev Message-ID: <20070222174946.GE24769@cicely12.cicely.de> References: <45DD6E45.5000505@bulinfo.net> <20070222.082227.-2001110508.imp@bsdimp.com> <45DDC686.50405@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DDC686.50405@bulinfo.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, 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: SD card 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: Thu, 22 Feb 2007 17:50:12 -0000 On Thu, Feb 22, 2007 at 06:36:22PM +0200, Krassimir Slavchev wrote: > M. Warner Losh wrote: > >In message: <45DD6E45.5000505@bulinfo.net> > > Krassimir Slavchev writes: > >: Hello, > >: > >: I've read that SD is not supported by qdmmc and now qdmmc does not exist > >: in the source tree. > >: Are the SD cards supported by mmcsd driver? > > > >Yes. The qdmmc driver is no more. The at91_mci driver is the host > >adapter driver, mmc is the bus, and mmcsd is support for mmc/sd cards > >(although only sd will work at the moment due to lack of hardware). > > > > > Good! > > I am going to investigate why my SD card is not detected. > > dmesg says only: > > at91_mci0: Setting controller bus width to 1 > at91_mci0: Setting controller bus width to 1 > at91_mci0: Setting controller bus width to 1 > at91_mci0: Setting controller bus width to 1 > mmc0: setting transfer rate to 30.000MHz > at91_mci0: Setting controller bus width to 1 I noticed a problem when netbooting, that cards are only detected on reboot. Booting via boot2 doesn't hsow this problem. Another point, which I noticed yesterday is that the kernel did not find a verbatim media, although boot2 sucessfully loaded the kernel. > >: Also what this line in dmesg means: > >: 'Cannot get 100 Hz clock; using 100Hz' > >: May be something is not initialized? > > > >No, that just means you can't divide 32768 by 100 evenly. > > > >Warner > > > > > And another problem: > > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > ate0: Cannot find my PHY. > device_attach: ate0 attach returned 6 > > Looks like nothing on miibus. Very strange because the bootspi is able > to boot from tftp server. > The PHY is RTL8201CP and I use rlphy driver which is for RTL8201L. > > Any hints where to look? Enhance the rlphy driver - should be enough to add the device ID. The additional automdix feature should be tranparent. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de