JFFS2 loss of power expectations
Artem Bityutskiy
dedekind1 at gmail.com
Fri Apr 22 03:36:21 EDT 2011
Hi,
On Fri, 2011-04-22 at 01:05 -0400, Cliff Brake wrote:
> I'm helping debug a system that is running the 2.6.27 kernel with
> JFFS2 (with summary) on SLC NAND. The CPU is a PXA270 (cm-x270), and
> appears to be using NAND_ECC_SOFT. We are experiencing some file
> system corruption if we lose power when the system is booting up.
> There is some amount of file system activity when udev and other
> system components start, but overall there is not much that is being
> written to the file system.
>
> A few questions:
>
> 1) should this combination be fairly robust to power failure (are
> failures expected, or possible)?
Probably, but you have to test this anyway.
1. Despite JFFS2 is considered old and robust - it is not maintained
very well for the last couple of years.
2. SLC NANDs in the past were more robust than modern SLCs and new
challenges like unstable bits may have changed the situation with JFFS2
robustness.
So - test it.
> 2) any suggestions for debugging this?
Some kind of device which may cut power is needed. Then you may write a
test program or script, cut power at random point, boot up, make sure
the FS look ok.
Or simply cut the power at random point between [0-N] seconds, then boot
up all the way to the end, check everything is ok, reboot, cut power,
etc.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list