
On Friday 23 April 2010 05:22:16 Wolfgang Wegner wrote:
Signed-off-by: Wolfgang Wegner w.wegner@astro-kom.de
This patch adds redundant environment for environment in SPI flash. I took env_flash.c as an example and slightly modified it. Apart from adapting things to SF, I also slightly changed the decision logic to use area 2 as a default in case the flags are wrong.
I did not add a section for CONFIG_ENV_IS_IN_SPI_FLASH in environment.h because I did not understand if this is desired and/or needed. So to use the feature, one has to set CONFIG_ENV_OFFSET_REDUND _and_ CONFIG_SYS_REDUNDAND_ENVIRONMENT.
I checked it by powering off my board several times during flash erase or write, because I do not know if there are other stress test scenarios.
this is a change log and belongs above your Signed-off-by tag, not after the --- marker. please resend your patch. -mike