From owner-freebsd-arm@FreeBSD.ORG Tue Jan 20 18:49:00 2009 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 7955310656BF for ; Tue, 20 Jan 2009 18:49:00 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id EC8518FC1B for ; Tue, 20 Jan 2009 18:48:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 232093696; Tue, 20 Jan 2009 19:48:58 +0200 Message-ID: <49760E8E.1000609@FreeBSD.org> Date: Tue, 20 Jan 2009 19:49:02 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.19 (X11/20090118) MIME-Version: 1.0 To: Krassimir Slavchev References: <1232392983.00063248.1232380802@10.7.7.3> <1232400185.00063286.1232389201@10.7.7.3> <1232450582.00063538.1232438401@10.7.7.3> In-Reply-To: <1232450582.00063538.1232438401@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: Mount root from SD card? 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: Tue, 20 Jan 2009 18:49:01 -0000 Krassimir Slavchev wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > M. Warner Losh wrote: > ... >> mmcsd0: 1983MB at mmc0 30MHz/1bit >> Trying to mount root from ufs:/dev/mmcsd0s1 >> >> Manual root filesystem specification: >> : Mount using filesystem >> eg. ufs:/dev/da0a >> ? List valid disk boot devices >> Abort manual input >> >> mountroot> ? >> >> List of GEOM managed disk devices: >> mmcsd0 >> >>> Looks like that should be working. >>> mav@ has done a lot of hacking on the mmc code... >>> Do you have 1 wire or 4 wires for your mmc bus on your board? > > On the board all 4 bus wires are connected (MCD A0-A3) but I've never > seen working 4-bit mode on AT91RM9200 (See PR128987 too). I have just committed MMCBR_IVAR_CAPS implementation into CURRENT. Without having it implemented, results can be unpredictable. For example, mmc layer could enable high-speed timings to reach 30MHz, but this mode is not implemented for this controller. Booting with verbose messages enabled could give a bit more information. What's about 4-bit mode, I see some sc->wire4 variable checked by the driver, which is never initialized. I don't very understand how this thing expected to work. PS: For MMC cards bus width testing routine implemented. May be we could do something alike for SD cards. It is not part of SD specification, but may be we could just issue some other command, transferring data, to check effective bus width. -- Alexander Motin