Hi,
I have a partition that has some bad blocks and would like to dump
it to a file (including the bad block markings), then write this same
file to a good partition of the same size/type along with the bad
blocks. What I'm looking for is a byte-for-byte copy. Is this
possible with nandwrite/nanddump? I tried it but it doesn't seem to
work that way. Or maybe I don't have the right options
./nandwrite -f -y -n -o /dev/mtd2 /root/ryan.fs2.bin # done on bad NAND
./nanddump -i /dev/mtd2 > /root/ryan.fs2.test.bin # done on good NAND
cmp /root/ryan.fs2.bin /root/ryan.fs2.test.bin # different!
Thanks very much for any help.
Rick Bronson
------------------------------------------------------------------
Here are my Linux 2.6.22 specifics:
yaffs2 version:
yaffs2-ian-20070523.tgz
NAND chip (512/16):
Flash chip found:
Manufacturer ID: 0x98, Chip ID: 0x75 (Toshiba TC58256FT/DC)
1 flash chips found. Total nand_chip size: 32 MB
kernel:
Linux acq 2.6.22-rc1 #170 Thu Jul 5 13:58:14 PDT 2007 armv4tl GNU/Linux
.config file:
CONFIG_YAFFS_FS=y
CONFIG_YAFFS_YAFFS1=y
CONFIG_YAFFS_9BYTE_TAGS=y
CONFIG_YAFFS_YAFFS2=y
CONFIG_YAFFS_AUTO_YAFFS2=y
# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS=10
# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set