This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

JFFS2 for NOR flash device

Hey all,

I am trying to mount a JFFS2 on a NOR flash device and am a little confused about the process of building the JFFS2 image.

I understand how the mkfs.jffs2 works and how it is supposed to look, but I am unsure how to setup and/or find the root filesystem used to build the JFFS2 image. Is the root FS already existing, or does it need to be built from scratch? If it does need to be built from scratch, what are the contents of this FS?

                             mkfs.jffs2 -r <rootfs> -e 128K  -o <output file>

If it's not already obvious, I am very new Linux...

Thanks for your help,

Chris

 

 

  • You'll have to construct a rootfs first, that provides the kernel with an init an other needfull things.

    Take a look at OpenEmbedded, it can build kernels and rootfs for you, and already knows about many EVM boards so there's a fair chance it can build a nice image for yours too. I'm using it to built a bootloader, kernel and (squshfs) rootfs that can be loaded and run from the 8MB NOR flash on the L138 SoM.