From owner-freebsd-arm@FreeBSD.ORG Tue May 13 14:33:56 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C914BE6 for ; Tue, 13 May 2014 14:33:56 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F38E2C3B for ; Tue, 13 May 2014 14:33:55 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WkDmE-000GFp-OA; Tue, 13 May 2014 14:33:54 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s4DEXqFn035273; Tue, 13 May 2014 08:33:52 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/dzB0QfU4clB4FWMMPbx2c Subject: Re: Patch to make BBB properly boot from eMMC every time From: Ian Lepore To: Winston Smith In-Reply-To: References: <5371E1F3.6080002@hot.ee> <1399987808.56626.2.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Tue, 13 May 2014 08:33:52 -0600 Message-ID: <1399991632.56626.7.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 14:33:56 -0000 On Tue, 2014-05-13 at 10:17 -0400, Winston Smith wrote: > On Tue, May 13, 2014 at 9:30 AM, Ian Lepore wrote: > > Confused about the cause of the results, yes. I think the printf I had > > you add to help me figure out the problem just changed the timing of the > > retry to make it work on the second try, but I have no idea why. > > > > Does anybody else with a BBB see the device randomly boot up as 1 or 4 > > or 8 bits, changing from one boot to the next? The bits are reported in > > the mmcsd0 line: > > > > mmcsd0: 8GB at mmc0 > > 50.0MHz/4bit/65535-block > > > > That's from a wandboard, but a BBB eMMC should always be 8 bits. > > BBB rev A6A shows 8-bits (for the eMMC): > > mmcsd1: 2GB > at mmc1 48.0MHz/8bit/65535-block > > > But shows 4-bits for the SD card: > > mmcsd0: 4GB at mmc0 > 48.0MHz/4bit/65535-block 4 bits is normal for an sdcard, that's all the data lines an sdcard has. An emmc card/chip can have 1, 4, or 8. Does your emmc come up as 8-bit reliably every time? -- Ian