[U-Boot-Users] Resend: The dreaded embedded environment - linker barf!]

Robin Gilks robin.gilks at tait.co.nz
Wed Aug 27 23:54:59 CEST 2003


Wolfgang Denk wrote:
> Dear Robin,
> 
> in message <3F4A75FC.7020907 at tait.co.nz> 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

> 
>>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!!

>>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 :-))


-- 
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





More information about the U-Boot mailing list