From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4142 invoked by alias); 12 Aug 2004 16:09:29 -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 4135 invoked from network); 12 Aug 2004 16:09:28 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org with SMTP; 12 Aug 2004 16:09:28 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1BvI8x-0002Vd-00; Thu, 12 Aug 2004 18:09:31 +0200 Date: Thu, 12 Aug 2004 16:09:00 -0000 To: Samie Hassan Ghauri Cc: ecos-discuss@sources.redhat.com Message-ID: <20040812160931.GT27052@lunn.ch> Mail-Followup-To: Samie Hassan Ghauri , ecos-discuss@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040722i From: Andrew Lunn Subject: Re: [ECOS] Accessing File from host system's OS filesystem X-SW-Source: 2004-08/txt/msg00214.txt.bz2 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 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss