All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter A. Bigot" <pab@pabigot.com>
To: Diego Sueiro <diego.sueiro@gmail.com>
Cc: meta-ti mailing list <meta-ti@yoctoproject.org>
Subject: Re: BBB + uboot 2014.07 - not booting
Date: Mon, 01 Sep 2014 18:28:14 -0500	[thread overview]
Message-ID: <5405010E.2070400@pabigot.com> (raw)
In-Reply-To: <CAMCfZKEqU=Ric8131BA=nrToyAWxaEbHs0e-3EzKAz6CQUrtNA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3446 bytes --]

On 09/01/2014 04:53 PM, Diego Sueiro wrote:
> Peter,
>
> On Mon, Sep 1, 2014 at 6:10 PM, Peter A. Bigot <pab@pabigot.com 
> <mailto:pab@pabigot.com>> wrote:
>
>     I am seeing the same behavior with an SD card with u-boot from
>     current meta-ti master
>     (MLO-beaglebone-2014.07-r1+gitrAUTOINC+8bd803d2c5)
>
>     I partition the cards and create the boot/root partitions with:
>
>     sudo dd if=/dev/zero of=${MMC} bs=1024 count=1024
>     ( echo ,9,0x0C,* ; echo ,,,- ) \
>       | sudo sfdisk -D -H 255 -S 63 ${MMC}
>
>     ${SUDO} mkfs.vfat -F 16 -n boot ${MMC}1
>     ${SUDO} mkfs -t ${FSTYPE} -L rootfs ${MMC}2
>
>     ${SUDO} cp -p MLO u-boot.img ${MPROOT}/boot
>
>     This process works with poky master and yocto-bsp on beaglebone.
>
>     I recall from long ago that some TI systems were picky about the
>     partitioning of the boot media.
>
>
> This is not true for recent Sitara SoCs:
> http://permalink.gmane.org/gmane.comp.handhelds.openembedded/64088
>
>     Would somebody with an SD card image that boots the current
>     meta-ti master provide the output of fdisk -lu from it, or a
>     pointer to instructions for doing the formatting?  For reference,
>     what doesn't work is:
>
>     llc[325]$ sudo fdisk -lu /dev/sdh
>
>     Disk /dev/sdh: 7892 MB, 7892631552 bytes
>     255 heads, 63 sectors/track, 959 cylinders, total 15415296 sectors
>     Units = sectors of 1 * 512 = 512 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disk identifier: 0x00000000
>
>
>        Device Boot      Start         End      Blocks  Id  System
>     /dev/sdh1   *          63      144584       72261    c W95 FAT32 (LBA)
>     /dev/sdh2          144585    15406334     7630875   83 Linux
>
>
> I'm using the following partition layout (both working on eMMC and 
> sdcard with u-boot_2014.07.bb <http://u-boot_2014.07.bb>):
>
>     # fdisk -lu /dev/mmcblk0
>
>     Disk /dev/mmcblk0: 1920 MB, 1920991232 bytes, 3751936 sectors
>     Units = sectors of 1 * 512 = 512 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disk label type: dos
>     Disk identifier: 0x00000000
>
>             Device Boot      Start     End      Blocks   Id  System
>     /dev/mmcblk0p1   *          63   80324       40131    c  W95 FAT32
>     (LBA)
>

Thanks.  That does appear to be an eMMC partition, which probably 
shouldn't matter, but I replicated the configuration on a 2GB class 4 
uSD card, and an 8GB class 6, and it doesn't work on either one.

llc[77]$ sudo fdisk -lu /dev/sdh

Disk /dev/sdh: 3965 MB, 3965190144 bytes
255 heads, 63 sectors/track, 482 cylinders, total 7744512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/sdh1   *          63       80324       40131    c  W95 FAT32 (LBA)
/dev/sdh2           80325     7743329     3831502+  83  Linux

Anybody got a uSD partition layout that works?  I'm suspecting an issue 
with the heads/sectors/cylinders configuration.

(FWIW: I'm also using u-boot-staging-ti, as that's the default for 
beaglebone on the master branch.)

Peter

[-- Attachment #2: Type: text/html, Size: 7347 bytes --]

  reply	other threads:[~2014-09-01 23:29 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 [this message]
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
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=5405010E.2070400@pabigot.com \
    --to=pab@pabigot.com \
    --cc=diego.sueiro@gmail.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.