This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: problem saving application to flash
- From: Gary Thomas <gary at mlbassoc dot com>
- To: aarichar at cisco dot com
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 25 Aug 2003 16:43:41 -0600
- Subject: Re: [ECOS] problem saving application to flash
- Organization: MLB Associates
- References: <200308251727.52389.aarichar@cisco.com>
On Mon, 2003-08-25 at 16:27, Aaron Richardson wrote:
> I am trying to write my application to flash so that I can start it when the
> card boots from redboot. Here is what I am doing to create the image in fis.
>
> download application to redboot(hello.srec):
> RedBoot> load -v -m y
> Entry point: 0x00200040, address range: 0x00200000-0x0020c958
> xyzModem - CRC mode, 1161(SOH)/0(STX)/0(CAN) packets, 3 retries
> RedBoot>
>
> create image in fis:
> RedBoot> fis create -b 0x200000 -l 0x10000 -e 0x200040 -r 0x200000 -n hello -f
> 0xc4100000
> ... Unlock from 0xc4fe0000-0xc5000000: .
> ... Erase from 0xc4fe0000-0xc5000000: .
> ... Program from 0x01fdf000-0x01fff000 at 0xc4fe0000: .
> ... Lock from 0xc4fe0000-0xc5000000: .
> RedBoot>
>
> load and run application:
> RedBoot> fis load hello
> RedBoot> go
> $T050f:40002000;0d:00000001;#d4
>
>
> If I cut out the fis create and the fis load (ie dont try and save the
> application), then it runs fine from memory.
>
>
> Any idea on what I am doing wrong?
You didn't let RedBoot write the image to the FLASH! Look at the
messages above - there is no "Program" from your image location
of 0x200000.
Try leaving out the "-n" option - that tells RedBoot that all you
want to do is update the FIS entry and not actually write any data
to the FLASH region. n.b. the "-n" option is just a hack for those
that want to write to the FLASH and later tell RedBoot how to manipulate
it via FIS.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss