Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Sagaert <sagaert.johan@proximus.be>
To: buildroot@busybox.net
Subject: [Buildroot] problem booting from ext2 µsd card
Date: Thu, 17 Sep 2015 10:03:37 +0200	[thread overview]
Message-ID: <55FA73D9.6080800@proximus.be> (raw)
In-Reply-To: <CA+BsyQ6yskQ6TFpZQCTMWtZka+TBNaNj2XzgWhu7RqskLN0HhA@mail.gmail.com>

Thanks Brendan,  see below.

Brendan Heading schreef op 17/09/2015 om 2:27:
> On 17 September 2015 at 00:56, Johan Sagaert <sagaert.johan@proximus.be> wrote:
>> Hi
>> just extracted my rootfs to a ?sd card
>> configured u-boot to boot from it
>>
>> Any idea ? i have a single ext2 partition on a 4GB transcend class 10 card.
>> not sure where to start searching...
>> Tried several cards with equal results.
>> used cfdisk as tool.
> It looks a bit like your ext2 partition has been set up to be much
> larger than 4GB.
>
>> mmc0: new high speed SDHC card at address 59b4
>> mmcblk0: mmc0:59b4 USD   3.74 GiB
>>   mmcblk0: p1
> As you already highlighted - 4GB SD card.
>
>> attempt to access beyond end of device
>> mmcblk0p1: rw=0, want=11524007040, limit=7857074
> So with a block size of 512 bytes, 7857074 blocks = 3.83GB (give or
> take) which matches up with your SD card.
>
> However something is trying to access block 11524007040. that ain't right.
>
> I suspect that somehow, the ext2 filesystem on the card has been
> corrupted, or has been created incorrectly, or incorrectly copied to
> the card. How did you format it ?
I used an usb (?) sd card reader connected to my linux host.(debian 6)

Then used cfdisk to create a single partition type 83 and maximum size 
as suggested by cfdisk.

#! /bin/sh
IMAGES_DIR=/home/johan/srcmain
ROOTFS=$IMAGES_DIR/rootfs.tar
DRIVE=/dev/sdb
PART1=$DRIVE'1'

echo formatting $PART1
mkfs.ext2 $PART1 -L rootfs

echo Set check interval to NONE for $PART1
tune2fs -c 0 -i 0 $PART1

echo mount drive $PART1
mount -t ext2 $PART1 /mnt/usd -o noatime,nodiratime

echo extracting ...
tar -xvf $ROOTFS -C /mnt/usd

echo syncing ...
sync

echo unmount
umount $DRIVE?


The only thing i can think of is that my debian host is messing up the 
partition.
and also tried  cfdisk /z

Maybe i should bring up my board over nfs and do the partitioning from 
my board where it will
be used later.

Best Regards , Johan

> Brendan
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

  reply	other threads:[~2015-09-17  8:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-16 23:56 [Buildroot] problem booting from ext2 µsd card Johan Sagaert
2015-09-17  0:27 ` Brendan Heading
2015-09-17  8:03   ` Johan Sagaert [this message]
2015-09-17 11:20     ` Brendan Heading
2015-09-20 23:59       ` Johan Sagaert

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=55FA73D9.6080800@proximus.be \
    --to=sagaert.johan@proximus.be \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox