mount ubi volume fails: No such device

Lars Michael lh_post at yahoo.com
Wed Feb 9 03:32:34 EST 2011


> On Mon, 2011-02-07 at 07:05 -0800, Lars Michael wrote:
> > UBI: scrubbed PEB 863, data moved to PEB 1097 UBI warning:
> ubi_eba_copy_leb: read data back from PEB 1092 and it is different UBI
> error: wear_leveling_worker: error -22 while moving PEB 868 to PEB 1092
> UBI warning: ubi_ro_mode: switch to read-only mode UBI error: do_work:
> work failed with error code -22 UBI error: ubi_thread: ubi_bgt0d: work
> failed with error code -22
> 
> It says you that it wrote some date, then read it back, compared, and
> the data did not match. You need to start with validating your falash
> drivers - use mtd tests:
> 
> http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests
> 

The speedtest, stresstest, readtest, pagetest ran ok, but showing 1 bad eraseblock. I guess that is acceptable?

The oobtest and subpagetest found 3 errors, see below. Does it explain
my initial problem?

=================================================
mtd_oobtest: MTD device: 0
mtd_oobtest: MTD device size 1048576, eraseblock size 131072, page size 2048, count of eraseblocks 8, pages per eraseblock 64, OOB size 64
mtd_oobtest: scanning for bad eraseblocks
mtd_oobtest: block 0 is bad
mtd_oobtest: scanned 8 eraseblocks, 1 are bad
mtd_oobtest: test 1 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: erased 8 eraseblocks
mtd_oobtest: writing OOBs of whole device
mtd_oobtest: written 8 eraseblocks
mtd_oobtest: verifying all eraseblocks
mtd_oobtest: error: verify failed at 0xa0000
mtd_oobtest: verified 8 eraseblocks
mtd_oobtest: test 2 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: erased 8 eraseblocks
mtd_oobtest: writing OOBs of whole device
mtd_oobtest: written 8 eraseblocks
mtd_oobtest: verifying all eraseblocks
mtd_oobtest: verified 8 eraseblocks
mtd_oobtest: test 3 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: erased 8 eraseblocks
mtd_oobtest: writing OOBs of whole device
mtd_oobtest: written 8 eraseblocks
mtd_oobtest: verifying all eraseblocks
mtd_oobtest: verified 8 eraseblocks
mtd_oobtest: test 4 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: erased 8 eraseblocks
mtd_oobtest: attempting to start write past end of OOB
mtd_oobtest: an error is expected...
mtd_oobtest: error occurred as expected
mtd_oobtest: attempting to start read past end of OOB
mtd_oobtest: an error is expected...
mtd_oobtest: error occurred as expected
mtd_oobtest: attempting to write past end of device
mtd_oobtest: an error is expected...
mtd_oobtest: error occurred as expected
mtd_oobtest: attempting to read past end of device
mtd_oobtest: an error is expected...
mtd_oobtest: error: read past end of device
mtd_oobtest: attempting to write past end of device
mtd_oobtest: an error is expected...
mtd_oobtest: error occurred as expected
mtd_oobtest: attempting to read past end of device
mtd_oobtest: an error is expected...
mtd_oobtest: error: read past end of device
mtd_oobtest: test 5 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: erased 8 eraseblocks
mtd_oobtest: writing OOBs of whole device
mtd_oobtest: written 7 eraseblocks
mtd_oobtest: verifying all eraseblocks
mtd_oobtest: verified 7 eraseblocks
mtd_oobtest: finished with 3 errors
=================================================
=================================================
mtd_subpagetest: MTD device: 0
mtd_subpagetest: MTD device size 1048576, eraseblock size 131072, page size 2048, subpage size 2048, count of eraseblocks 0, pages per eraseblock 0, OOB size 64
mtd_subpagetest: scanning for bad eraseblocks
mtd_subpagetest: block 0 is bad
mtd_subpagetest: scanned 8 eraseblocks, 1 are bad
mtd_subpagetest: erasing whole device
mtd_subpagetest: erased 8 eraseblocks
mtd_subpagetest: writing whole device
mtd_subpagetest: written 8 eraseblocks
mtd_subpagetest: verifying all eraseblocks
mtd_subpagetest: error: verify failed at 0xa0000
mtd_subpagetest: ------------- written----------------
290a823d1a832f294f3a152962dc06ad94bbe2a0556a0c65921a9092c1b7106f
<cut>
0d4441159c41f58ff943fe9fc93847c9f6d46b283a2b27736d1381b18f37b4bc
mtd_subpagetest: -------------------------------------
mtd_subpagetest: verified 8 eraseblocks
mtd_subpagetest: erasing whole device
mtd_subpagetest: erased 8 eraseblocks
mtd_subpagetest: verifying all eraseblocks for 0xff
mtd_subpagetest: verified 8 eraseblocks
mtd_subpagetest: writing whole device
mtd_subpagetest: written 8 eraseblocks
mtd_subpagetest: verifying all eraseblocks
mtd_subpagetest: error: verify failed at 0x40000
mtd_subpagetest: error: verify failed at 0xc0000
mtd_subpagetest: verified 8 eraseblocks
mtd_subpagetest: erasing whole device
mtd_subpagetest: erased 8 eraseblocks
mtd_subpagetest: verifying all eraseblocks for 0xff
mtd_subpagetest: verified 8 eraseblocks
mtd_subpagetest: finished with 3 errors
=================================================



      



More information about the linux-mtd mailing list