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: file system on eCos !!


rakesh wrote:

I was trying to port a samll http server on eCos
(written for Linux). Can somebody give me details
about file system on eCos. Say I want to open some
file as
fd = open("/home/rakesh/xyz.data", O_RDWR);
So how to install file system so that I can have files
like /home/rakesh/xyz.data? And how and where to
download file on target board?


Please have a look at ROMFS and RAMFS tests. You can build a static image of your web content (in ROMFS) and use it, in case you want some more files to be created during webserver run, make use of RAMFS.

you may also want to have a look at GoAhead webserver that has eCos port. they use their own webromfs (static image of web content). If you search goahead newsgroup you can find patch to make it use eCos's ROMFS instead. In case you don't manage it for some reasons, send me offlist mail.

In all the cases the ROMFS (or equivalent) content is part of executable that you create.


I hope I interpreted your question correctly?


regards
sandeep
--------------------------------------------------------------------------
"He flung himself on his horse and rode madly off in all directions"
--------------------------------------------------------------------------


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


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