This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to build a executed-in-flash application?
- From: "wang cui" <iucgnaw at msn dot com>
- To: andrew at lunn dot ch
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 08 Sep 2006 02:53:43 +0000
- Subject: Re: [ECOS] How to build a executed-in-flash application?
- Bcc:
You are right.
I looked through the source code:
Because the last "load" write the image into flash, which means the values
of "entry_address/load_address/load_address_end" are not located in the
"ram_start - ram_end" region.
So these values are treated as invalid in fis_create() function.
I use the commands below and it works.
"fis create -f 0x80040000 -l 0x000C0000 -n twothreads"
"go 0x80040000"
From: Andrew Lunn <andrew@lunn.ch>
To: wang cui <iucgnaw@msn.com>
CC: andrew@lunn.ch, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] How to build a executed-in-flash application?
Date: Thu, 7 Sep 2006 11:43:43 +0200
On Thu, Sep 07, 2006 at 09:35:40AM +0000, wang cui wrote:
> Thank you Andrew. I have create and run it successfully.
>
> There are still little problem:
> Since the applications has been wrote into flash, how to use "fis
create"
> command to add it into FIS? I tried "fis create -n twothreads", but
doesn't
> work. It report "*** invalid 'fis' command: required parameter
missing".
>
> However, I can use "fis create twothreads" to directly add the
application
> after "load".
You probably need to pass all the parameters. Eg the example in the
documentation at
http://ecos.sourceware.org/docs-latest/redboot/fis-create-command.html
is
fis create RedBoot -f 0xa0000000 -b 0x8c400000 -l 0x20000
ie load it into flash at address 0xa0000000 from RAM address
0x8c400000 with 0x20000 bytes of image data.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss