JFFS2 warning "CLEANMARKER not first node in block"
After configuring my PetaLinux system for JFFS2 root, I receive warning messages from JFFS2 upon boot about CLEANMARKER nodes
Problem Description
This warning is generated because the default flash blocksize used when creating the image (64Kbyte) is different from the actual flash block size in your system.
This warning is harmless but it could delay the mount process.
Background
If "JFFS2" has been selected as the root filesystem type, the 'petalinux-gen-jffs2' tool is used to automatically generate the JFFS2 root file system during system build process.
petalinux-gen-jffs2 calls mkfs.jffs2 and sumtool to generate JFFS2 file system image. As of PEtaLinux SDK v1.1 , petalinux-gen-jffs2 uses the default flash eraseblock size, size which is 64KiB..
If the your FLASH has different erase block size to the default one, you can get this warning when the filesystem is mounted.
Workaround
To work around this problem, you may re-run sumtool with the option
-e ERASE_BLOCK_SIZE
to regenerate the rootfs.jffs2 file based on the old rootfs.jffs2 file. Here is an example:
(Assume that the petalinux-dist/images/rootfs.jffs2 is the one generated by petalinux-gen-jffs2.)
$ sumtool -b -i petalinux-dist/images/rootfs.jffs2 -o /tftpboot/rootfs.jffs2 -e 128KiB
The /tftpboot/rootfs.jffs2 is generated with a erase block size value of 128KiB
Update the JFFS2 image in Flash using the u-boot 'run update_jffs2' script, and reboot the MicroBlaze kernel.
Resolution
The PetaLinux configuration menu and petalinux-gen-jffs2 will be improved to allow specifying erase block size in PetaLinux version 1.2
Our users say

