This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: file system on eCos !!
- From: sandeep <sandeep at codito dot com>
- To: rakesh <mljangir at yahoo dot co dot in>
- Cc: ecos-mailing-list <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 12 Sep 2003 12:40:27 +0900
- Subject: Re: [ECOS] file system on eCos !!
- References: <20030912002123.5719.qmail@web8007.mail.in.yahoo.com>
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