mount problem with JFFS2 summary feature on NOR flash

Siddharth Choudhuri sid at igor.ics.uci.edu
Wed Sep 12 15:27:34 EDT 2007


Hi,

I am trying to enable JFFS2 summary feature on NOR flash (Erase Block 
Summary). However it breaks the JFFS2 mount with the following message:

Mounting root file system jffs2 as /dev/mtdblock0...
jffs2_scan_eraseblock(): Node at 0x002a0000 {0x1985, 0x2000, 0x00000008) 
has invalid CRC 0xed38)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0004: 
0x0008 instead
...
>From the MTD FAQs, this message is being generated probably because the 
image is not a valid JFFS2 image. I did the following steps:

1. run mkfs.jffs2 -o out.img -q -e 128KiB -d rootdir
2. sumtool -l -i out.img -o out.img.summary -e 128KiB

I do erase flash (/dev/mtd0) before running nandwrite -p

The kernel configuration is as follows:
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
CONFIG_JFFS2_SUMMARY=y
# CONFIG_JFFS2_FS_XATTR is not set
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y # CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y

If I omit the sumtool step i.e., JFFS2 without summary, there is no 
problem mounting the image. Is there something that I am missing here ?

thanks,
-siddharth



More information about the linux-mtd mailing list