This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: writable file system


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
possible.

> (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.

        Andrew

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]