Skip to contentSkip to conversation

how to handle the invalid block of the NAND flash?

DISCUSSION Paul Wong 2 participants 2 messages Nov 4, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Paul Wong

author
#0 lore raw

Hi! all,
I know that the NAND flash memory is not guaranteed to be good in all
block. Has the MTD/NAND driver handle this condition? If not, how to implement this?

Thanks.
Paul

#1 lore raw
Quoted 5 lines · Paul Wong

Hi! all,
I know that the NAND flash memory is not guaranteed to be good in all
block. Has the MTD/NAND driver handle this condition? If not, how to implement this?

The NAND driver itself does not handle bad blocks, except that it denies the request to erase a bad block. The bad block management has to be done in the filesystem layer. There are two NAND aware filesystems: JFFS2 and YAFFS. See also http://www.linux-mtd.infradead.org/tech/nand.html

Signature · 5 lines
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]