Skip to contentSkip to conversation

jffs2: filesystem corruption caused by writing and powercycle

SOLVED [email protected] 1 participant 1 message Apr 3, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines

I have a problem with jffs2 filesystem corruption. My environment is kernel 2.6.23.4, running on PPC. Flash is Spansion 29GL512 NOR-Flash.

The problem can be reproduced simply by turning off power while writing.
After 3 or 4 powercycles I get errormessages when trying to copy the file I wrote before turning off power:

/ # cp /data/tst /data/tst2
Data CRC ee9173b1 != calculated CRC 6af6806d for node at 0221f108
cp: read error: Input/output error
/ #

The problem is solved by patch
"[JFFS2] Fix data CRC checking on NOR flash."
from David Woodhouse, 21 Nov 2007.

Cheers
Dirk