[U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM.

Wolfgang Denk wd at denx.de
Fri May 9 22:46:21 CEST 2008


In message <20080506172309.1dff34bc at hskinnemo-gx620.norway.atmel.com> you wrote:
>
> Hmm...maybe this is a stupid question, but why can't it _always_ use
> the RAM area to look up the environment? env_init() is one of the first
> things to be called during bootstrap...

One of the first accesses to the environment happens when we need  to
read  the  console  baudrate to initialize the serial interface. This
happens very, very early in the initialization, long  before  RAM  is
even usable.

> Maybe it's wishful thinking, but if we could get rid of this extra
> logic, u-boot would become simpler, smaller and faster, right?

Unfortunately this is not the case.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All I ask is a chance to prove that money can't make me happy.




More information about the U-Boot mailing list