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

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Tue May 6 17:23:09 CEST 2008


"Remy Bohmer" <linux at bohmer.net> wrote:
> This patch fixes this by always using the RAM area when it is created
> and initialized. (Matches more the behavior as it was prior to this
> particular commit.)

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

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

Haavard




More information about the U-Boot mailing list