Skip to contentSkip to conversation

Resend: The dreaded embedded environment - linker barf!]

U-Boot-Users Robin Gilks 1 participant 1 message Aug 27, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Wolfgang Denk

Dear Robin,

Quoted 1 line · in message <[email protected]> you wrote:

If I change my memory map for 'top' booting I *should* just need to set

What do you mean with "should" here? Is this what you think should happen? Maybe your expectations do not match the reality given by the current implementation / configuration.

My assumptions here are based in part on the names of the #defines

Quoted 9 lines
Quoted 5 lines

It looks as though the CFG_FLASH_BASE define is being used inappropriately where CFG_MONITOR_BASE would be a more sensible value (for example to see if the environment is embedded should depend on where in flash that u-boot image is, not where the flash starts!!)

These defines are used all fine, as long as your configuration makes sense (as demonstrated by the 100+ existing board configurations).

It was only later I re-read the README file where it states that CFG_MONITOR_START = CFG_FLASH_BASE - makes one of them somewhat redundant if they are equal anyway. Certainly it appears that the code assumes they are the same!!

Quoted 6 lines
Quoted 1 line

Any ideas appreciated!

Try to understand what the image should look like, where the environment is located, and which #defines are used to configure the environment to that location.

I fixed the problem by putting the environment into EEPROM - the FLASH implementation is broken. If it happens that I have to revisit the FLASH environment then I'll try and fix it :-))

Signature · 5 lines
Robin Gilks
Senior Design Engineer          Phone: (+64)(3) 357 1569
Tait Electronics                Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks at tait.co.nz
New Zealand