From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29669 invoked by alias); 12 Aug 2004 15:58:17 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 29662 invoked from network); 12 Aug 2004 15:58:16 -0000 Received: from unknown (HELO hotmail.com) (64.4.35.37) by sourceware.org with SMTP; 12 Aug 2004 15:58:16 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 12 Aug 2004 08:58:15 -0700 Received: from 195.195.244.6 by by12fd.bay12.hotmail.msn.com with HTTP; Thu, 12 Aug 2004 15:58:15 GMT X-Originating-IP: [195.195.244.6] X-Originating-Email: [samiehg@hotmail.com] X-Sender: samiehg@hotmail.com From: "Samie Hassan Ghauri" To: andrew@lunn.ch Cc: ecos-discuss@sources.redhat.com Bcc: Date: Thu, 12 Aug 2004 15:58:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Aug 2004 15:58:15.0719 (UTC) FILETIME=[2D987B70:01C48085] Subject: Re: [ECOS] Accessing File from host system's OS filesystem X-SW-Source: 2004-08/txt/msg00213.txt.bz2 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. Thanks Samie >From: Andrew Lunn >To: Samie Hassan Ghauri >CC: ecos-discuss@sources.redhat.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 >to > > 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 >OS > > filesystem. > > > > Can anyone share some fragment of code if somebody ever opened a file >from > > 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. > > Andrew _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss