JFFS2 softlinks problem

Jakub Bednar bednar at hnilux.racom.cz
Sat May 19 05:55:35 EDT 2007


Hi everybody, I have a trouble with JFFS2 and softlinks.

  I have a device with NOR and NAND flash.
  On the NOR flash there are some partitions:
      - kernel image
      - cramfs initrd image
      - JFFS2 rootfs with links into cramfs initrd
         image (busybox and so on)
         This partiotion is mounted read-only
         and is created with flash_erase /dev/mtd3 0x00 48;
	 mounted with mount -t jffs2 mtd0 /mnt;
         and decompresing of rootfs from tarbal to /mnt;

On the NAND flash there are other JFFS2 partitions created with
flash_eraseall -j /dev/mtd4;

If I fill the NAND JFFS2 partition with data several times, the links from
rootfs to cramfs and some folders in tmpfs got broken and lot of things
stop working. After reboot  the links are OK again.

How is it possible? Can something got wrong in RAM? Moving erase blocks
can broke links?

Thanks for Your help, really dont know where to start.
Regards Jakub




More information about the linux-mtd mailing list