All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter A. Bigot" <pab@pabigot.com>
To: meta-ti@yoctoproject.org
Subject: Re: BBB + uboot 2014.07 - not booting
Date: Mon, 01 Sep 2014 22:08:10 -0500	[thread overview]
Message-ID: <5405349A.4050207@pabigot.com> (raw)
In-Reply-To: <5087658.bcI9hl3Jbj@localhost.localdomain>

On 08/19/2014 04:29 AM, Maciej Borzecki wrote:
> Hi all,
>
> There seems to be a problem booting BBB from SD card with uboot 2014.07 from
> meta-ti, 2013.07 from yocto seems to work.
> The card is partitioned as follows:
>
> Device         Boot     Start       End Blocks  Id System
> /dev/mmcblk0p1 *         2048     22527  10240   c W95 FAT32 (LBA)
> /dev/mmcblk0p2          22528    227327 102400  83 Linux
>
> I've already tried different cards.
>
> This is all I get on the serial console:
>
> U-Boot SPL 2014.07 (Aug 19 2014 - 10:45:01)
> MMC: block number 0x100 exceeds max(0x0)
> MMC: block number 0x200 exceeds max(0x0)
> *** Error - No Valid Environment Area found
> Using default environment
>
> MMC: block number 0x1 exceeds max(0x0)
> ** Can't read partition table on 0:0 **
> ** Partition 1 not valid on device 0 **
> spl_register_fat_device: fat register err - -1
> ### ERROR ### Please RESET the board ###

This is a bug in handling mmc_switch_part: what's happening is that the 
code reconfigures the mmc device to look at the partition on which the 
environment is to be found, but fails to restore it to reflect the state 
of the whole device.  I.e., the mmc capacity and lba are zero in my case 
(I have no partition 2 on the uSD card), but mmc_switch_part() returns 
-ENODEV on the attempt to switch back in fini_mmc_for_env() without also 
resetting the capacity to what the rest of the system expects.

I'll follow up here with a patch based on the ti-uboot repository. It 
conflicts with an upstream patch in u-boot master; I'll let Tom or 
somebody else sort that out.

Peter



  parent reply	other threads:[~2014-09-02  3:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19  9:29 BBB + uboot 2014.07 - not booting Maciej Borzecki
2014-08-19 14:39 ` Diego Sueiro
2014-08-19 20:00   ` Diego Sueiro
2014-08-19 20:40     ` Cooper Jr., Franklin
2014-09-01 21:10 ` Peter A. Bigot
2014-09-01 21:53   ` Diego Sueiro
2014-09-01 23:28     ` Peter A. Bigot
2014-09-01 23:54       ` Robert Nelson
2014-09-02  7:56       ` Maciej Borzecki
2014-09-02 11:42         ` Peter A. Bigot
2014-09-03  7:43           ` Maciej Borzecki
2014-09-02  3:08 ` Peter A. Bigot [this message]
2014-09-02  3:11   ` [ti-uboot][PATCH] mmc: restore capacity when switching to partition 0 Peter A. Bigot
2014-09-02 16:44     ` Tom Rini
2014-09-02 17:00       ` Peter A. Bigot
2014-09-02 22:01         ` Tom Rini
2014-09-02 22:41           ` Peter A. Bigot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5405349A.4050207@pabigot.com \
    --to=pab@pabigot.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.