Bad Block Handling in jffs2

Thomas Gleixner tglx at linutronix.de
Thu Jan 30 14:16:00 EST 2003


On Thursday 30 January 2003 17:17, Kschoo70C at netscape.net wrote:
>    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.".
That's correct.

>    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.
Strange.
Have you built your fs-image with the correct block size ?

>    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 ?
No

>    Is anyone manage to transfer an image to the nand device that has bad
> blocks without losing any files ?
Yes, I do

-- 
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de





More information about the linux-mtd mailing list