Restore the bad block flag in OOB of NAND flash

Thomas Gleixner tglx at linutronix.de
Thu Apr 17 15:14:31 EDT 2003


On Thursday 17 April 2003 19:21, Paul wrote:
>  Dear All,
>
>     How can I restore the 0xFF in the OOB[5]?   i understood the oob[5] is
>  the bad block indicator. The YAFFS set accidentally the byte to 0x00 . I
>  want to use JFFS2 but the eraseall command said they are invalid block. I
> am
>  sure that the block is health . So, I want to force set the oob[5] to
> oxFF, pls. how can i do? Thank you.

There is no "legal" way to do so. The only way is to erase it. The sanity 
check is in erase function drivers/mtd/nand/nand.c. 

But think about, if it's worth do so for 16KiB flash memory :)

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




More information about the linux-mtd mailing list