[Yaffs] yaffs2 - bad block marking and mtd write.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Naushad K
Date:  
To: yaffs
Subject: [Yaffs] yaffs2 - bad block marking and mtd write.
Hi,

I am trying to put yaffs2 on to the Samsung K9F1G08 nand. I am using
2.6.10 kernel.

I observed that all blocks used by the yaffs are being marked bad
block by mtd, and as per the info i got from mailing list, I commented
out the bad block marking part in the mtd. With this yaffs2 is
mounting.

And when yaffs tries to write to nand flash, the mtd nand_write
function modifies the ecc part and the oobdata gets modified. So I
modified the nand_write not to recalculate the ecc, but to just write
same oobdata from yaffs to the nand.


Are these methods correct? Is there better way or patches available for these ?

How does the yaffs2 handle a genuine bad block in the nand flash?

Thanks,
Naushad