JFFS2 Mount issue

Suresh K sureshkanniappan at gmail.com
Tue Aug 23 06:49:25 EDT 2005


Hai,

I solved the JFFS2 mount time issue. The kernel version is 2.6.10. I
have faced following problems after successful mounting.

  1. Compiled the kernel with JFFS2 summary support. Created the JFFS2
image with the following command.
      mkfs.jffs2 -d testjffs2 -e 0x40000 --pad=0x7800000 -o jffs2.img -v

      This comand created the JFFS2 image of size 120MB.
      Copied the jffs2.img to one of the partition in Hard Disk.
Mounted
      the partition using blkmtd support. It takes around 27 seconds
to
      mount.

      Why the mount time is high even if the kernel having the "JFFS2
summary" support?.

   2. Created the JFFS2 image with summary information inbuilt support
using sumtool2 utility.
         sumtool2 -e 0x40000 -i jffs2.img -o jffs2-sum.img

       Copied the jffs2-sum.img to other partition in Hard Disk.
Mounted
       the partition using blkmtd support. It takes around 6 seconds
to
       mount.
Another problem is that "Segmentation fault" occurs when copying a
directory of size 10MB to JFFS2 partition after mount.

Following are the error posted when copying the directory.

JFFS2: jffs2_sum_write_sumnode(): empty summary info!!!
--------------[ cut here ]-----------
kernel bug at fs/jffs2/summary.c:572
invalid operand: 0000 [#1]
....
....
Segmentation fault

Segmantation fault occured only in 2.6.10 kernel but not with 2.4.x kernel.
This is occured in both partitions. Kindly help me in this regard. 
How to solve this problem.

Regards,
K. Suresh


On 8/23/05, Suresh K <sureshkanniappan at gmail.com> wrote:
> Hai,
> 
> I am looking for reliable compressed R/W file system. I came to know
> that JFFS2 is the reliable one. I started implementing the same in
> 2.4.26 kernel. Created a JFFS2 image of 80MB and copied to one of
> partition in Hard Disk. I am trying to mount a 80MB JFFS2 image in
> Hard disk. The time taken to mount the JFFS2 image is 30 seconds.
> 
> I tried with 2.6.10 kernel also. The time taken to mount the JFFS2
> image is too large. Also i am not able to create multiple JFFS2
> partition.
>         cp jffs2.imf /dev/mtdblock0 - Copied the JFFS2 image to one
> partition in Hard Disk
>         cp jffs2.imf /dev/mtdblock1 - cannot create regular file
> '/dev/mtdblock1' : No Such Device or Address
> 
> How cai reduce the more mounting time. Kindly help me in this regard.
> 
> Regards,
> K. Suresh
>




More information about the linux-mtd mailing list