ubi image only mounts once
Artem Bityutskiy
dedekind1 at gmail.com
Mon Jun 6 14:53:46 EDT 2011
On Mon, Jun 6, 2011 at 9:31 PM, Douglass, Woody
<Woodrow.Douglass at qinetiq-na.com> wrote:
>
> Artem,
>
> Thanks, you're correct, subpages aren't working properly! First I tried applying this patch to solve the issue: https://patchwork.kernel.org/patch/749762/
>
> The test still fails. Next, I changed the -s argument to ubinize from 512 to 2048; I also added -s 2048 to my ubiformat arguments.
>
> Now, on boot, this happens:
>
> [ 357.992767] UBI: attaching mtd4 to ubi0
> [ 357.996673] UBI: physical eraseblock size: 131072 bytes (128 KiB)
> [ 358.003631] UBI: logical eraseblock size: 129024 bytes
> [ 358.009185] UBI: smallest flash I/O unit: 2048
> [ 358.013916] UBI: sub-page size: 512
> [ 358.018646] UBI: VID header offset: 512 (aligned 512)
> [ 358.024505] UBI: data offset: 2048
> [ 358.030639] UBI error: validate_ec_hdr: bad VID header offset 2048, expected 512
> [ 358.038085] UBI error: validate_ec_hdr: bad EC header
> [ 358.043426] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
> [ 358.050292] UBI error: ubi_init: cannot attach mtd4
> [ 358.057708] UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
>
> How can I re set the sub-page size?
Take a look here:
http://linux-mtd.infradead.org/faq/ubi.html#L_vid_offset_mismatch
Also modinfo ubi
If you attach UBI using the kernel boot parameters, use mtd=X,2048,
where X is your number.
--
Best Regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list