jffs2 summary problem
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=yCONFIG_JFFS2_FS_DEBUG=0CONFIG_JFFS2_FS_WRITEBUFFER=yCONFIG_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
Quoted 14 lines · Takács Áron
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=yCONFIG_JFFS2_FS_DEBUG=0CONFIG_JFFS2_FS_WRITEBUFFER=yCONFIG_JFFS2_SUMMARY=y
Quoted 4 lines
Now I create the jffs2 image:
mkfs.jffs2 -r rootfs/adatok -o colibri.jffs2 -e
0x40000--pad=0xa40000
Result: colibri.jffs2 10,2Mb
Is the eraseblock size of your chip really 256KiB? Most NOR flashes have an eraseblock size of 128KiB ( -e 0x20000).
Quoted 6 lines
After that I am running sumtool:
sumtool -e
0x40000-p0xa40000-v -icolibri.jffs2 -ocolibri_sum.jffs2
Result: colibri_sum.jffs2 256kb
Quoted 7 lines
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.
A log of the errors might be useful if verifying your eraseblock size doesn't work.
josh