This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: There is a way to change a 'fconfig' redboot value from a linux program
- From: Gary Thomas <gary at mlbassoc dot com>
- To: thierry langlais <thierry dot langlais at efixo dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 18 Apr 2006 10:09:11 -0600
- Subject: Re: [ECOS] There is a way to change a 'fconfig' redboot value from a linux program
- References: <1145376176.13516.7.camel@DEV01>
On Tue, 2006-04-18 at 18:02 +0200, thierry langlais wrote:
> Hi All,
>
> The purpose is to change the redboot's "boot script" value from a linux
> program.
>
> Does someone know if it could be done ?
>
> More details:
> from redboot fconfig command, it is possible to set the boot script
> value. This value is written in the RedBoot config partition. Currently,
> this boot script launches a linux embedded distribution. Is there a way
> to access to get and set fconfig api from a linux program ?
Sorry, you're on your own here.
Once Linux is running, RedBoot is out of the picture (i.e. no longer
usable), so you'd need to duplicate the functionality that's used by
RedBoot to handle the 'fconfig' data. All of the details of what this
entails can be found by reading
.../ecos/packages/redboot/current/src/fconfig.c
In Linux, you could use MTD to access the 'fconfig' data.
n.b. I've thought about writing these functions (for years), but
haven't found the time.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss