Bad Block Handling in jffs2
Kschoo70C at netscape.net
Kschoo70C at netscape.net
Thu Jan 30 11:17:34 EST 2003
Hi,
My nand device has a few bad blocks. Therefore if I copy the jffs2 formated
image to the device, some files are missing from the file systems.
In http://www.linux-mtd.infradead.org/tech/nand.html, it is stated that
"if you have a bad block on your chip, just skip this block and copy
the data to the next block. JFFS2 is able to handle this gap.".
So, I write a program to skip the bad block, and copy the data to the next block.
The missing file seems to appear on the file system now, the size looks correct.
But when I diff the binary of the file to that of original, they are different
and the binary failed to execute.
I don't know much about jffs2 bad block handling, the only information I have is
as mentioned above. Am I missing any other information ?
Is anyone manage to transfer an image to the nand device that has bad blocks
without losing any files ?
Note that there is no problem to copy the same image to nand devices
which are bad blocks free
Thanks in advance.
regards
choo
__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
More information about the linux-mtd
mailing list