From owner-freebsd-arm@FreeBSD.ORG Tue May 13 14:17:43 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 88D4C766; Tue, 13 May 2014 14:17:43 +0000 (UTC) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0029B2AB3; Tue, 13 May 2014 14:17:42 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id u56so459872wes.28 for ; Tue, 13 May 2014 07:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EPmXXrkPxtQfstu1so19zJeEwfcN4f5x0gOOxinT4/s=; b=XvMAG0lsOwfzkS0auxuNhzee09ow40lSuNdgz9oqtnU1tr2AJtkdGoceV6WVpQTy41 x6i39dn70RzoYxPSpp8r7b/t6MWLbCz87O6e2EtAVfxidBxNUGNeJ/9cw7FN3434wEeC Uv/je5i/mTU8xkK2TNSYPXYul1z8drKfTylSXmMZlefYGSwYBX5WrHSFJzxI8/SCgNEe JgHR9fEHUFUj7u/iFnTP3isDY8A69MLv4Zi48ZReoPbQ7xU+i6o9RKdBsuTLyTPKMinC DmkJh3FEUq5nV9vHS1CpIp2LhbL+DaVLeWAOoSbh6lHQWtcbFG6nDKBFwqO20CryLFzy JcFQ== MIME-Version: 1.0 X-Received: by 10.180.8.136 with SMTP id r8mr21270092wia.60.1399990661125; Tue, 13 May 2014 07:17:41 -0700 (PDT) Received: by 10.217.10.195 with HTTP; Tue, 13 May 2014 07:17:41 -0700 (PDT) In-Reply-To: <1399987808.56626.2.camel@revolution.hippie.lan> References: <5371E1F3.6080002@hot.ee> <1399987808.56626.2.camel@revolution.hippie.lan> Date: Tue, 13 May 2014 10:17:41 -0400 Message-ID: Subject: Re: Patch to make BBB properly boot from eMMC every time From: Winston Smith To: Ian Lepore Content-Type: text/plain; charset=UTF-8 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:17:43 -0000 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