From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13532 invoked by alias); 8 Sep 2009 10:20:28 -0000 Received: (qmail 13492 invoked by uid 22791); 8 Sep 2009 10:20:27 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f228.google.com (HELO mail-bw0-f228.google.com) (209.85.218.228) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Sep 2009 10:20:15 +0000 Received: by bwz28 with SMTP id 28so2953321bwz.30 for ; Tue, 08 Sep 2009 03:20:12 -0700 (PDT) Received: by 10.204.34.9 with SMTP id j9mr13020456bkd.10.1252405212323; Tue, 08 Sep 2009 03:20:12 -0700 (PDT) Received: from localhost ([93.85.55.158]) by mx.google.com with ESMTPS id k29sm8418161fkk.50.2009.09.08.03.20.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Sep 2009 03:20:11 -0700 (PDT) Date: Tue, 08 Sep 2009 10:20:00 -0000 From: Sergei Gavrikov To: Ross Younger Cc: eCos discuss-list Message-ID: <20090908102006.GA4220@sg-laptop> Mail-Followup-To: Ross Younger , eCos discuss-list References: <20090908090117.GA7098@sg-laptop> <4AA6226F.3030107@ecoscentric.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AA6226F.3030107@ecoscentric.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] RedBoot's load and fileio X-SW-Source: 2009-09/txt/msg00074.txt.bz2 On Tue, Sep 08, 2009 at 10:22:55AM +0100, Ross Younger wrote: > Hi Sergei, > > > Does anybody know what was a reason to suppress in RedBoot an ability > > to load files in RAM from a file on the mounted filesystem(s)? > > Support for loading from fileio is present, but hiding; I think what you > found was the old code. It really lives in fs/fileio.c, switched on by the > option CYGPKG_REDBOOT_FILEIO. > > All you should need to do is add CYGPKG_IO_FILEIO to your config, and > resolve any conflicts, before you build RedBoot. Then, the syntax "load -m > fileio /some/file" is what you're looking for. Hi Ross, Thank you! I really missed this :-) grep -qr -- '-m file' $ECOS_REPOSITORY/redboot/current/doc&&echo documented documented I will try it. I saw that commented out block in CVS'ed load.c and I became "to build" my guesses. Once again thank you for the tip. Regards, Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss