jffs2 and suggestions
i have actually a custom board with Coldfire MCF5307, a 4MB flash and 16MB of sdram.
Actually linux start from a ROMFS located in the flash just after the kernel. So, bootloader load "image.bin" (kernel+romfs) into ram and execute it.
It works fine, but i cannot save anything as non-volatile.
So my idea is to create a jffs2 partition on the last megabyte of the flash, to store some sensible data.
Reading some docs, seems i have to create a jffs2 partition image file from a folder on disk. This is clear. What i don't know is that if i save then this image file on last megabyte of the flash, MTD driver is able to see it automatically at boot.
Is it a right approach ?
Anyone can suggest some links that help on how to do this better ?