This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Address calculation in RedBoot load function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]