I am using a habanero-dvk board from 8devices and use an additional external nand-flash. The flash memory is accessible through /dev/mtdblock0. I can mount the device via command line interface using mount -t jffs2 /dev/mtdblock0 /mnt/nand-flash, so all good.
However, I am trying to get the device mounted at startup. What I tried first was to modify the /etc/fstab with /dev/mtdblock0 /mnt/nand-flash jffs2 rw,relatime 0 0. This lets me mount it with mount -a, but it is not mounted at startup.
So, I thought I should probably follow this: fstab . However, I could not see an option to select the jffs2 filesystem type. Also, I installed the block-mount package, but block info does not show me the /dev/mtdblock0 only the main flash:
JFFS2 must not be used on bare NAND flash because it has no handling for bad blocks. If a block in the flash fails or is already bad, the filesystem will be corrupted. Use ubi + ubifs instead.
JFFS2 must not be used on bare NAND flash because it has no handling for bad blocks. If a block in the flash fails or is already bad, the filesystem will be corrupted. Use ubi + ubifs instead.
Thanks a lot for the hint. I did not quite manage to do it, though.
I tried to generate an UBI devie for mtdbblock0 by doing ubiattach -m 0 /dev/ubi_ctrl
My flash than showed up here, and I also see a device /dev/ubi0.