Skip to contentSkip to conversation

JFFS2 question

DISCUSSION Vahid Fereydunkolahi 2 participants 2 messages Nov 10, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,
If on the JFFS2 Erase block 0 (jeb0) I wrote pages
p0, p1, p2, and p3, and then I updated these pages on jeb1 with p0', p1', p2' and on the jeb2 with p3', what would happen if the jeb1 goes bad (When I read the data back, is it goint to be p0, p1, p2, p3')?

Regards,
--vahid

__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

#1 lore raw
Quoted 6 lines · Vahid Fereydunkolahi

Hi,
If on the JFFS2 Erase block 0 (jeb0) I wrote pages
p0, p1, p2, and p3, and then I updated these pages on jeb1 with p0', p1', p2' and on the jeb2 with p3', what would happen if the jeb1 goes bad (When I read the data back, is it goint to be p0, p1, p2, p3')?

Can you define what "goes bad" means? If you're using NAND flash and you get an ECC error, it can be a soft error and doesn't necessarily mean the block itself is bad. See the "How does JFFS2 handle a block going bad in NAND flash" topic here:

http://linux-mtd.infradead.org/faq/jffs2.html

If you mean something else it depends which nodes are effected. Each node (p0', p1', p2'), has it's own CRC. If any/all of those are bad, you'll see an error message displayed and the previous node will be used.

Hope that helps.

josh