Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

jffs2 filesystem image

Hello,

Can someone tell me how to create and use a jffs2 filesystem image ?

I have correctly partitionned my flash, and I can mount it (in /home for now). I would like to use it for things like /etc, but for this I need to create an image of my system.

I have downloaded mkfs.jffs2 from www.psyent.com (as read in another thread) and I have generated an image from a directory (mkfs.jffs2 -pad=0x1A00000 -d etc -o jffs2.img).

I am using an AMD S29GL256M flash with 64K erase blocks size, and the size of the partition I want to mount is 0x1A00000.

But now, what can I do with the jffs2.img ? I have read that I should copy it somewhere before mounting it (dd if=jffs2.img of=/dev/mtdblock1), but it doesn't seem to work, i.e. there is nothing in the filesystem, and it is not writeable. Anyway it seems normal since /dev/mtdblock1 is on a romfs, so I cannot copy anything on it with dd !

I am obviously missing something here...

Can somebody help me ?

Thanks

Regards

pod

11 Replies