Hi,
 
I am doing a project that need all of the data include valid and invalid on flash. So i just use ./nanddump -p -f rootfs.img /dev/mtd0 and try to get the whole information on flash.  And when i try to write the new img to flash, it says:
 
Image 519045120 bytes, NAND page 2112 bytes, OOB area 64 bytes, device size 268435456 bytes
Input file does not fit into device: Success
Data was only partially written due to error
: Success
 
Can anyone tell me whats wrong in it?