[Yaffs] cvs YAFFS + MTD cvs + 2.4.27-vrs1 problems

Timofei V. Bondarenko thom@ipi.ac.ru
Mon, 06 Dec 2004 16:19:44 +0300


Hi.

Aras Vaichas wrote:
> Thomas Gleixner wrote:

>>>Surely it's not the easy to "break" a NAND chip? Can my original NAND be recovered?
>>>
>> It's quite easy, if the timing is wrong or if the rdy/busy check is not
>> reliable.
> 
> Is there a utility that writes to every single page, reads back the data and then marks the pages correctly? Or are those "bad eraseblocks" permanently lost?
> 

AFAIK, the eraseall can't erase blocks already marked bad.

To do it i'm just comment out a 'goto' near "attempt to erase bad block" 
warning in drivers/mtd/nand/nand_base.c
Not the best way, though there were no appropriate ioctl to do it else.
You'll have to reboot after eraseall, since bad block list still reside 
in memory.

Regards.
	Timofei.