nanddump shows all bad blocks

Bishop, Mark Mark.Bishop at cooperindustries.com
Thu Apr 5 13:04:29 EDT 2012


When I do this:
root:/> nanddump  -l 0x20000 -s 0x60000   --bb=padbad -f testfile
/dev/mtd0

It shows that the ECC has failed, but I know there is good data in there
as that I can read the data in uboot.
0x60000-0x7ffff holds my uboot environment.

ECC failed: 429
ECC corrected: 0
Number of bad blocks: 4
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00060000 and ending at 0x00080000...

My 'testfile' is full of 0xFFs as the option specifies (padbad:  dump
flash data, substituting 0xFF for any bad blocks).

I know mtd0 is mapped to that partition:
...
Creating 4 MTD partitions on "MT29F2G08ABAEAWP":
0x000000000000-0x000000080000 : "bootloader(nand)"
0x000000080000-0x000000880000 : "linux kernel(nand)"
0x000000880000-0x000006c80000 : "file system(nand)"
0x000006c80000-0x000010000000 : "file system(ubifs)"
...

Any idea how I can make this work?




More information about the linux-mtd mailing list