[ECOS] writable file system

Andrew Lunn andrew@lunn.ch
Mon Nov 8 14:16:00 GMT 2004

On Sun, Nov 07, 2004 at 10:39:03AM +0800, Lenny wrote:
> Hi,
> (1) How do I load the contents of a rom file system into ram file
> sytem and write back to rom file system from the ram file system ?

The are very different formats, so you cannot do this at the
filesystem level. You have to copy each file from the romfs into the
ramfs. The romfs is obviously read only, so copying into it is not

> (2) My target don't have flash but I want to simulate a writable
> file system so could I put the rom file system on the ram ?

This will not work either. You can put a romfs in ram, but it is still
read only. There are no functions to write to the filesystem.

You you might want to consider is emulating a flash device in RAM so
you can use jffs2. Or you could emulate a disk in ram and use
fat. Which every you choose, you will need to write some new code.


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list