ubiattach error!

Timon ter Braak timonterbraak at gmail.com
Fri May 20 10:14:37 EDT 2011


Artem Bityutskiy <dedekind1 <at> gmail.com> writes:

> 
> > # ubiattach /dev/ubi_ctrl -m 3
> > UBI: attaching mtd3 to ubi0
> > UBI: physical eraseblock size:   524288 bytes (512 KiB)
> > UBI: logical eraseblock size:    516096 bytes
> > UBI: smallest flash I/O unit:    4096
> > UBI: VID header offset:          4096 (aligned 4096)
> > UBI: data offset:                8192
> > UBI error: ubi_scan_add_used: two LEBs with same sequence number 4
> > ubiattach: error!: cannot attach mtd3
> >           error 22 (Invalid argument)
> 
> Looks weird, is this reproducible with nandsim?
> 

After a power cut / reset, we experience similar problems.
I just upgraded to linux 2.6.39 as more and more UBIFS 'bugs' seem to get solved.
Unfortunately, we use a Spansion GL512P (64MB) NOR Flash chip,
which makes life kind of hard:

[    0.510000] UBI: attaching mtd1 to ubi0
[    0.510000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.520000] UBI: logical eraseblock size:    130944 bytes
[    0.530000] UBI: smallest flash I/O unit:    1
[    0.530000] UBI: VID header offset:          64 (aligned 64)
[    0.540000] UBI: data offset:                128
[    0.540000] UBI error: ubi_scan_add_used: two LEBs with same sequence number 9
[    0.550000] UBI error: ubi_init: cannot attach mtd1





More information about the linux-mtd mailing list