This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Address calculation in RedBoot load function
- From: Wolfram Kattanek <wolfram dot kattanek at imms dot de>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: Wolfram Kattanek <wolfram dot kattanek at imms dot de>, eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 03 Sep 2003 15:50:01 +0200
- Subject: Re: [ECOS] Address calculation in RedBoot load function
- References: <1062595339.3f55eb0b7fc9a@memphis.imms.de> <1062595886.20604.1580.camel@hermes>
Quoting Gary Thomas <gary@mlbassoc.com>:
> Yes, this is how it is designed to work. If you want RedBoot to be
> able to load the code where it was compiled for (i.e. 0x450000), why
> are you putting it at 0x220000 when you download it?
Because 0x450000 could be mapped to flash and 0x220000 could be in RAM.
At least this results in wrong or misleading mem address and entry point
entries in the FIS directory. Sometimes this makes it harder to
differentiate between images built for flash and images built for RAM.
> There are times when it makes sense to override the offsets in the
> S-record (or ELF) file, but most of the time you should just let
> things get loaded where they "belong."
Can you give an example for intended overriding of s-record defaults?
Thanks anyway!
Wolfram
--
Wolfram 'L.A.' Kattanek Institut fuer Mikroelektronik- und
Email: LA@imms.de Mechatronik-Systeme (IMMS) gGmbH
Tel: +49 3677 / 6783-55 Langewiesener Str. 22
Fax: +49 3677 / 6783-38 98693 Ilmenau / Germany
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss