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

Remy Bohmer linux at bohmer.net
Tue May 6 16:05:09 CEST 2008


Hello All,

Commit c0559be371b2a64b1a817088c3308688e2182f93 introduces a bug in
the environment setting storage in U-boot-1.3.3-rc3.
Settings are retrieved from dataflash when only settings in RAM are
valid, resulting in corrupt environment settings, failing printenv
command, and
duplicate variables.

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

See attached (Sorry, my mailer does not handle inline-patches properly)


Kind Regards,

Remy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-corrupt-environment.patch
Type: text/x-patch
Size: 1175 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080506/f81120ca/attachment.bin 


More information about the U-Boot mailing list