From: "Lluís Batlle i Rossell" <viriketo@gmail.com>
To: linux-mtd@lists.infradead.org
Subject: block2mtd and ubi
Date: Sat, 20 Nov 2010 18:58:58 +0100 [thread overview]
Message-ID: <20101120175856.GD9645@vicerveza.homeunix.net> (raw)
Hello,
I'm trying to use the qemu mipsel malta board to boot an ubifs image, prepared
with 'ubinize', and using block2mtd on /dev/hda, where qemu receives the image
through -hda ubifs.img.
The problem I have summarizes in this UBI complain while booting:
block2mtd: mtd0: [/dev/hda] erase_size = 512KiB [524288]
UBI: attaching mtd0 to ubi0
UBI: physical eraseblock size: 524288 bytes (512 KiB)
UBI: logical eraseblock size: 524160 bytes
UBI: smallest flash I/O unit: 1
UBI: VID header offset: 64 (aligned 64)
UBI: data offset: 128
UBI warning: check_what_we_have: 1008 PEBs are corrupted
corrupted PEBs are: 0 1 2 3 4 5 6 7 .....
UBI error: check_what_we_have: too many corrupted PEBs, refusing this device
UBI error: ubi_init: cannot attach mtd0
The ubifs.img file I create first with ubinize, and then I append zeros until it
has the size of 512MiB.
The ubi volume is set to be dynamic and of 256MiB in size (so there should be
plenty of space in the block2mtd mtd0 device)
The kernel commandline I use is
root=ubi0:rootfs rootfstype=ubifs block2mtd.block2mtd=/dev/hda,524288 ubi.mtd=0
I don't know what I am doing bad. Other examples I see on the net seem to do as
I do, and everything works. Not in my case.
Can somebody explain me what I am missing on block2mtd and ubi?
Thank you,
Lluís.
next reply other threads:[~2010-11-20 17:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-20 17:58 Lluís Batlle i Rossell [this message]
2010-11-21 0:01 ` block2mtd and ubi Lluís Batlle i Rossell
2010-11-22 8:12 ` Artem Bityutskiy
2010-11-22 9:09 ` Lluís Batlle i Rossell
2010-11-22 9:32 ` Artem Bityutskiy
2010-11-22 10:00 ` Lluís Batlle i Rossell
2010-11-22 10:21 ` Artem Bityutskiy
2010-11-22 10:37 ` Lluís Batlle i Rossell
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=20101120175856.GD9645@vicerveza.homeunix.net \
--to=viriketo@gmail.com \
--cc=linux-mtd@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox