[ECOS] Accessing File from host system's OS filesystem
Samie Hassan Ghauri
Thu Aug 12 15:58:00 GMT 2004
I have made the romfs including the bmp file using the utility given with
the ecos package. But the image file is romfs.img. How can make it part of
my image? When it IS finally included, can I then use fdopen() and ssize_t
read(int fd, void *buf, size_t nbyte) to extract bytes from the file, as
they are POSIX defined APIs?
Sorry for asking, perhaps quite basic questions but I am new to the world of
RTOS, especially to eCos.
>From: Andrew Lunn <firstname.lastname@example.org>
>To: Samie Hassan Ghauri <email@example.com>
>Subject: Re: [ECOS] Accessing File from host system's OS filesystem
>Date: Thu, 12 Aug 2004 09:40:58 +0200
>On Wed, Aug 11, 2004 at 10:28:31PM +0000, Samie Hassan Ghauri wrote:
> > Hi
> > I am running eCos on my PC on which Windows XP is installed. I want to
> > parse a BMP file in an application I wrote in ANSI C, which I now want
> > port to eCos. I have read how fileio system in the reference guide, but
> > still not sure how to read the BMP file that is saved in host system's
> > filesystem.
> > Can anyone share some fragment of code if somebody ever opened a file
> > native hard disk so that will serve as an example for me to follow?
>There is no support for NTFS in eCos. Only FAT is supported. So this
>is not possible. Maybe you can make a romfs and put the BMP file into
>that and make it part of the image. Take a look at the romfs test case
>for an example how to do this.
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
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