Hi,
I'm working with DM8148 running linux 2.6.37 kernel from a nand flash partition with UBIFS + BCH8 ECC.
we have an issue with a single corrupted bit in empty space causing the file system to be mounted read only on startup:
[ 36.980000] UBIFS error (pid 258): ubifs_scan: corrupt empty space at LEB 424:19741
[ 36.980000] UBIFS error (pid 258): ubifs_scanned_corruption: corruption at LEB 424:19741
[ 36.990000] 00000000: fffffffe ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................
[ 37.000000] UBIFS error (pid 258): ubifs_scan: LEB 424 scanning failed [ 37.010000] UBIFS warning (pid 258): ubifs_ro_mode: switched to read-only mode, error -117
I see on the forum that this issue has been raised before - my understanding is that the omap2 nand driver does not perform ECC detection/correction on empty pages so when UBIFS checks the empty space data and doesn't read all 0xFF then it fails and mounts read-only. I didn't find any good solution - only a workaround to remove the UBIFS check..
I have applied all the latest nand and ubifs patches from arago repository as suggested in the posts below:
http://e2e.ti.com/support/embedded/linux/f/354/t/171839.aspx
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/269235/945842.aspx#945842
Any help here would be appreciated - is there any fix from TI for this?