SUMMARY patch for JFFS2

Niraj Maheshwari niraj.maheshwari at gmail.com
Wed May 11 01:45:13 EDT 2005


On 5/10/05, Ferenc Havasi <havasi at inf.u-szeged.hu> wrote:
> Hi Niraj,
> 
> > It gets mounted..and then i completely full this partition ( 5.5 MB)
> > with data... then i  remove few of the files from this partition..then
> > i do a sync.
> > In the next reboot, i get to see lot of error while mounting this parition.
> 
> Can you send some more information about your flash chip? (erase block
> size, ...)


Flash chip is Intel W18 NOR Flash and erase block size is 0x10000,
Flash Size=16MB.

 
> If you also can send us JFFS2 image before it goes wrong and after that
> also would be very big help for us to investigate what the problem is.

I didn't understand..what do you mean by JFFS2 image. As i told in the
earlier mail that we are not flashing the JFFS2 image in the Flash.

Process is explained below.

1. Erase the JFFS2 partition ( 5.5 MB ) of the Flash by using some tool. 
2. Now boot the kernel in which JFFS2 Summary support is enabled.
3. After booting mount the JFFS2 parition from the flash in SDRAM.
    mount -t jffs2 /dev/mtdblock0 tmp/
4. Try to copy 6 MB of data in the tmp/ directory. As space available is 5.5MB,
    it will give Disk  Space Full error..and comes out.
5. "df" command shows 100% full on the mounted parition.
6. Remove few files to make it 80% in the mounted partition.
7. Run "sync" command.
8. Unmount the partition.
9. Reboot the system, then again mount it. You will get lot of errors.
   "Magic bitmask 0x1985 not found at 0x4f0018: 0x00b0 instead"
10. It does mount the partition but files/directories which i removed
in step-6, are
    still there.

Pl. note if i just disable the Summary Option in the Kernel,
everything work smoothly. I have thoroughly tested without Summary
Option.

Let me know if you need further information on this. I just want to
repeat again that the same behaviour is seen in latest MTD code as
well for JFFS3 with Summary Option. Without Summary options, JFFS3
also works fine on the same flash.

Thanks
Niraj
  

 
> Thanks,
> Ferenc
>




More information about the linux-mtd mailing list