aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Holler <holler@ahsoftware.de>2011-01-20 02:17:48 +0100
committerScott Wood <scottwood@freescale.com>2011-02-02 16:14:08 -0600
commit920a5dd2325438a82b6ac8102c5ea5e0c43276fd (patch)
treee4c0f73c0def1815d16366794dd0a43e7e804edc
parent42d44f631c4e8e5359775bdc098f2fffde4e5c05 (diff)
downloadu-boot-linaro-natty-920a5dd2325438a82b6ac8102c5ea5e0c43276fd.tar.gz
NAND: Fix saving of redundand environment
When redundand environments are used the serial needs to get increased, otherwise the old one will still be used. Signed-off-by: Alexander Holler <holler@ahsoftware.de>
-rw-r--r--common/env_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_nand.c b/common/env_nand.c
index 2682f07fd..a4480cb22 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -205,7 +205,7 @@ int saveenv(void)
return 1;
}
env_new.crc = crc32(0, env_new.data, ENV_SIZE);
- env_new.flags = ACTIVE_FLAG;
+ ++env_new.flags; /* increase the serial */
if(gd->env_valid == 1) {
puts("Erasing redundant NAND...\n");