JFFS2: file contents in case of data CRC error
Korolev, Alexey
alexey.korolev at intel.com
Thu Jan 31 14:19:58 EST 2008
Hi
Could you please give information about how you can get this error? I
need to know use case.
>I have a JFFS2 partition on 32MByte NAND device.
>When reading a specific file - see below for details - JFFS2 reports a
>Data CRC error but function nand_correct_data never returns -1, so I
>assume ECC algorithm is able to correct errors.
>However the file is not equal to the original one that has been written
>to NAND. In fact, in the middle of the file, I see a 4-kByte "hole"
>where all bytes are 0.
It is Ok. NAND error correction could return that data is correct even
if it is not correct. It finds the issues with guarantee only in case of
1 or 2 bits errors.
>Anybody can help me about understanding if this is the expected
>behaviour of JFFS2?
>Thanks in advance.
>bash-2.05# mount -t jffs2 -o ro /dev/mtdblock0 /mnt/nand0
>mtdblock_open
>ok
>bash-2.05# cp -v /mnt/nand0/f.img /tmp/
>jffs2_get_inode_nodes(): Data CRC failed on node at 0x01d55544: Read
>0x80b8997f, calculated 0x57f0ea8e
>`/mnt/nand0/f.img' -> `/tmp/f.img'
This is a bad error! How obtained you this? What you did before getting
this?
Alexey
--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: 125252, Moscow, Russian Federation,
Chapayevsky Per, 14.
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the linux-mtd
mailing list