From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:49:51 2013 Return-Path: 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 50159CAE for ; Tue, 1 Jan 2013 01:49:51 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id AD8658FC0C for ; Tue, 1 Jan 2013 01:49:50 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id C85B83AC92; Tue, 1 Jan 2013 10:49:49 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id B07FE39FA3; Tue, 1 Jan 2013 10:49:49 +0900 (JST) Message-ID: <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> From: "Daisuke Aoyama" To: "Tim Kientzle" , "Ian Lepore" References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> In-Reply-To: <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> Subject: Re: Rpi boot process stuck on mountroot Date: Tue, 1 Jan 2013 10:49:51 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 01 Jan 2013 01:49:51 -0000 > On Dec 31, 2012, at 5:01 PM, Ian Lepore wrote: > >> On Mon, 2012-12-31 at 16:42 -0800, hiren panchasara wrote: >>> Hi All, >>> >>> I am using Tim Kientzle's scripts and have been harassing him with >>> stupid questions. >>> Many thanks to him for his work. >>> >>> I am LX Series 8gig Class 10 sd card with Tim's most current scripts >>> and -head as my sources. >>> >>> dmesg on attaching the card: >>> >>> mmc0: on sdhci0 >>> mmcsd0: 7600MB at >>> mmc0 50.0MHz/4bit/65535-block >>> >>> But getting error on mountroot as shown in the attachment. >>> >>> Any help/pointers would be appreciated. >>> >> >> Hmm. If it's an 8gb card it's HC by definition, and it says it detected >> an SDHC card, so running at 50mhz shouldn't be a problem. It would be >> interesting to see if it works if you force it to run as a non-HC at >> 25mhz, using this patch... >> >> http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff > > My build scripts already apply that patch when > they build U-Boot. > > Hiren's problem is the FreeBSD kernel failing to mountroot. > The kernel should be doing its own probe and configuration > of the SD card. > > I saw a similar problem a little while back here and > noticed it failed exactly when the kernel probed it at > 50MHz. When the kernel probed at 25MHz all was > good. There is two factor. One of is dev/mmc never check an error condition of the result. Other is RPI does not work 50MHz with some SD cards. I have posted the workaround patch today. http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html -- Daisuke Aoyama