This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: RedBoot's load and fileio
- From: Ross Younger <wry at ecoscentric dot com>
- To: eCos discuss-list <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 08 Sep 2009 10:22:55 +0100
- Subject: Re: [ECOS] RedBoot's load and fileio
- References: <20090908090117.GA7098@sg-laptop>
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.
It all Just Worked for me when I tried it out a few months ago. (I was using
a YAFFS filesystem and my NAND library, but there's no reason why jffs2
shouldn't work.)
Ross
--
Embedded Software Engineer, eCosCentric Limited.
Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK.
Registered in England no. 4422071. www.ecoscentric.com
>>>> Visit us at ESC-UK http://www.embedded.co.uk <<<<
>>>> Oct 7-8 on Stand 433 at FIVE ISC, Farnborough <<<<
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss