[U-Boot-Users] statically defined CFG_ENV_ADDR

Wolfgang Denk wd at denx.de
Fri Jan 20 08:56:59 CET 2006


In message <OF5CAC867F.44E1474B-ON482570FC.00153F84 at uk.marconicomms.com> you wrote:
>
>       What happens is that the size of u-boot loaded into the flash of my
> board occupies more than one sector of the flash and CFG_ENV_ADDR is
> located at the second sector of the flash imimediately following u-boot
> with the flash sector size of 0x40000:

Than your configuration is broken and must be fixed. This is  not  an
U-Boot problem.

>       In fact CFG_ENV_ADDR is statically defined in all of the config files

Yes, and this is intentional - the purpose is to be able to find  out
if  the  environment is embedde dor not etc. at compile time )instead
of generating code which just adds to the memory footprint).

> in ./include/configs/*. I wonder if it is possible to use an external _end
> symbol as the start address for environmental flash section. But then, when

No, this is not intended.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
ADVISORY:  There is  an  Extremely Small  but  Nonzero  Chance  That,
Through a Process Know as "Tunneling," This Product May Spontaneously
Disappear  from Its Present Location and Reappear at Any Random Place
in the Universe, Including Your Neighbor's Domicile. The Manufacturer
Will Not Be Responsible for Any Damages  or  Inconvenience  That  May
Result.




More information about the U-Boot mailing list