persistence of files using jffs
Me again. More questions. Oy!
Our system is using a ramdisk (with a prebuilt image) as its root device. Before I boot up the system I burn a small image into flash (this image was created with mkfs.jffs and contains a couple of files and one directory).
So, the system boots up and I do the following:
(1) mknod /dev/mtd3 b 31 3 (mtd3 is where the fs 'partition' is,
using examples from nora.c)
(2) mount -t jffs /dev/mtd3 /mnt
The mount is successful and after this I can see the files and directory I burned into flash. I can copy another file from the ramdisk to this mount. And I can 'umount /mnt' successfully as well.
However, when I cycle power on the system,
any *new* files I create or copy into this space are lost.
Everytime I restart the system I have to 'mknod /dev/mtd3', does this have something to do with that? What am I missing to get the new files to be present when I remount JFFS?
Thanks,
-- kelly
_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 2 lines · [email protected] said:
(1) mknod
/dev/mtd3b 31 3 (mtd3 is where the fs 'partition' is,
using examples fromnora.c)
The block devices should be /dev/mtdblock<n>. /dev/mtd3 should be a character device. But the names don't really matter.
Quoted 3 lines · [email protected] said:
And I can 'umount /mnt' successfully as well.
However, when I cycle power on the system, any *new* files I create or copy into this space are lost.
Hmmm. Are they there when you unmount and remount? Can you make sure you're using the latest version from CVS, and enable CONFIG_JFFS_FS_VERBOSE?
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]