From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5784 invoked by alias); 13 Aug 2004 14:28:16 -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 5762 invoked from network); 13 Aug 2004 14:28:14 -0000 Received: from unknown (HELO hotmail.com) (64.4.35.40) by sourceware.org with SMTP; 13 Aug 2004 14:28:14 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 13 Aug 2004 07:28:14 -0700 Received: from 195.93.34.7 by by12fd.bay12.hotmail.msn.com with HTTP; Fri, 13 Aug 2004 14:28:14 GMT X-Originating-IP: [195.93.34.7] 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: Fri, 13 Aug 2004 14:28:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Aug 2004 14:28:14.0381 (UTC) FILETIME=[C48F75D0:01C48141] Subject: Re: [ECOS] Accessing File from host system's OS filesystem X-SW-Source: 2004-08/txt/msg00238.txt.bz2 Thanks for your help. i successessfully compiled the code in test file "file I01.c" that included testRomss.h. I built the Ecos library using template for leon which is my target processor.But when I run it on GRrMon, the simulator for leon, it seems the root directory is not been picked up because the following error come: OpenDirreturned-1,No such entity Any idea??? Regards 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 18:09:31 +0200 > >On Thu, Aug 12, 2004 at 03:58:15PM +0000, Samie Hassan Ghauri wrote: > > 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? > >Take a closer look at the test case. It does exactly this. The cdl >file contains some magic to uses some tcl to convert the binary to a >char array in a header file which is compiled into the test case >image. > Andrew _________________________________________________________________ Add photos to your messages 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