jffs2 summary problem

Takács Áron takacs.aron at infracont.hu
Thu Oct 12 06:15:34 EDT 2006


Hi,

I have to shorten the mount time of a jffs2 filesystem. I am working on 
a PXA270 based board witha 2.6.18 kernel. I have the jffs2 filesystem in 
the fourth partition of the flash  (dev/mtdblock3), its size is about 
10Mb. The mount time is about 1.5sec. I am doing the followings:

My kernel config looks likde this:

CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
CONFIG_JFFS2_SUMMARY=y

Now I create the jffs2 image:

mkfs.jffs2 -r rootfs/adatok -o colibri.jffs2 -e 0x40000 --pad=0xa40000
Result: colibri.jffs2 10,2Mb

After that I am running sumtool:

sumtool -e 0x40000 -p 0xa40000 -v -icolibri.jffs2 -ocolibri_sum.jffs2
Result: colibri_sum.jffs2 256kb

Now I copy the file (from filesystem on nfs) to the flash:

dd if=/colibri_sum.jffs2 of=/dev/mtdblock3 bs=256k

After all I have the following situation:
Mount time is the same. After mounting the first "ls" takes a long time. 
On the serial console I can se a lot of characters.
What I am doing wrong?
Thanks for your help!


Best regards:
Áron Takács




More information about the linux-mtd mailing list