UBIFS issue - corrupt empty space

Informations from Internet

UBIFS - UBI File-System

http://www.linux-mtd.infradead.org/doc/ubifs.html

mtd:gpmi patch for Deal with bitflips in erased regions

--> Already tested this patch, seems not work in our device.

http://lists.infradead.org/pipermail/linux-mtd/2013-December/050794.html

 

The BCH block typically used with a i.MX28 and GPMI block is only

able to correct bitflips on data actually streamed through the block.

When erasing a block the data does not stream through the BCH block

and therefore not ECC data is written to the NAND chip. This causes

gpmi_ecc_read_page to return failure as soon as a single non-1-bit is

found in an erased page. Typically causing problems at higher levels

(ubifs corrupted empty space warnings).

 

This patch configures the BCH block to mark a block as 'erased' if

no more than ecc_strength bitflips are found. The result is that

erased blocks are doublechecked by software for bitflips and that

bitflips are corrected and reported, allowing the upper layers to

take proper actions.

 

Link:

[Patch] http://lists.infradead.org/pipermail/linux-mtd/2013-December/050794.html

[Patch] http://lists.infradead.org/pipermail/linux-mtd/2012-March/040350.html

 

https://community.nxp.com/thread/283818

http://www.linux-mtd.infradead.org/doc/ubifs.html#L_unstable_bits

http://e2e.ti.com/support/embedded/linux/f/354/t/171839#627875

 

Suggestion:

1. if mount ubifs, please do not use “sync” option.

2. make sure flush data before close file or power off camera.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章