public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* nanddump shows all bad blocks
@ 2012-04-05 17:04 Bishop, Mark
  2012-04-05 19:16 ` Peter Barada
  0 siblings, 1 reply; 6+ messages in thread
From: Bishop, Mark @ 2012-04-05 17:04 UTC (permalink / raw)
  To: linux-mtd

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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-05 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 17:04 nanddump shows all bad blocks Bishop, Mark
2012-04-05 19:16 ` Peter Barada
2012-04-05 19:38   ` Bishop, Mark
2012-04-05 20:18     ` Bishop, Mark
2012-04-05 20:22     ` Bishop, Mark
2012-04-05 21:00     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox