This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
problem saving application to flash
- From: Aaron Richardson <aarichar at cisco dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 25 Aug 2003 17:27:52 -0500
- Subject: [ECOS] problem saving application to flash
- Reply-to: aarichar at cisco dot com
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?
thanks,
--
Aaron Richardson
aarichar@cisco.com
512-378-1286
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss