This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: any tool/strategy present in eCos to load ram image stored in flash and run it ???
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Ram Sudhir Tadavarthi <ram dot tadavarthi at netco dot de>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 01 Jun 2006 09:43:54 -0600
- Subject: Re: [ECOS] any tool/strategy present in eCos to load ram image stored in flash and run it ???
- References: <20060601135337.89F41215207@gemmini.netco.de>
On Thu, 2006-06-01 at 16:07 +0200, Ram Sudhir Tadavarthi wrote:
> Hi all,
>
> I am new to eCos. I have redboot working for my platform(PQ2FADS-ZU board).
> Now I am creating ram images on the host and loading the ram images to the
> target using the redboot load via tftp and running them successfully.
>
> However in production series, we would like to store the ram image in flash,
> copy the image in ram and run it from ram.
>
> Is there any tool/strategy/option in eCos to do this? Can we configure
> redboot to do it?
>
> In my point of view, most of you might have done this already. Can anybody
> give me hint how to do this.
This is exactly what the FIS (create/load) commands are for. You can
create a boot script to load the image and execute it.
To create the image:
RedBoot> lo program_image
RedBoot> fi create program
To run it in your boot script:
(boot) fi lo program
(boot) g
--
------------------------------------------------------------
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