This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: RedBoot's load and fileio
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Ross Younger <wry at ecoscentric dot com>
- Cc: eCos discuss-list <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 8 Sep 2009 13:20:06 +0300
- Subject: Re: [ECOS] RedBoot's load and fileio
- References: <20090908090117.GA7098@sg-laptop> <4AA6226F.3030107@ecoscentric.com>
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