JFFS2 and Dataflash write support - data corruption

Ivan Kuten ivan.kuten at promwad.com
Sat Apr 14 09:38:53 EDT 2007


Hi all,

I use JFFS2 on r/w partition on Atmel Dataflash AT45DB642 with the following kernel config options enabled:
------- snip ----------
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
--------snip-------------

Linux kernel is 2.6.20 + 2.6.20-at91.patch from http://maxim.org.za/at91_26.html

JFFS2 is created with:
mkfs.jffs2 -r . -o jffs2.img -s 1056 -e 8448 -n -p

I'm observing occasional data corruption (md5sums are different) when my apps which also reside on that r/w partition do writes on dataflash.

"Occasional" means the following:
- 3 apps doing 1Kb writes once 2-3 seconds
- md5sums for those 3 apps are calculated and compared to original
- once 5 mins hardware reset is performed
- after several hours of work md5sums don't match


Can anybody confirm that JFFS2 writes + Dataflash are reliable?

Thank you.

Ivan







More information about the linux-mtd mailing list