UBIFS Corrupt during power failure
dedekind1 at gmail.com
Sun Aug 9 00:59:28 EDT 2009
On 07/28/2009 03:01 PM, news wrote:
> We have similar problems with a SPANSION falsh (S29GL01GP).
> I think the reason of the problem is a feature of the chip.
> I reduced the problem to the MTD access (without ubi/ubifs).
> We noticed toggle flash-bit(s) after power off during a write cycle.
> The toggle flash-bit(s) may occure after power of during an sector-erase
> Simple testsequence:
> * flash_erase ...
> * cp testfile /dev/mtd0
> - automatic or manuel power off during the cp
> Check the flash after reboot (e.g md5sum /dev/mtd0 helps).
> We used the default settings from the CFI (MaxBufWriteSize=6 == 64 byte
This was fixed. See the latest UBI/UBIFS git trees. The fixes are also
in the back-port trees:
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd