From: Alexander Holler Date: Thu, 20 Jan 2011 01:17:48 +0000 (+0100) Subject: NAND: Fix saving of redundand environment X-Git-Tag: v2011.03-rc2~101^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=920a5dd2325438a82b6ac8102c5ea5e0c43276fd;p=u-boot 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 --- diff --git a/common/env_nand.c b/common/env_nand.c index 2682f07fdc..a4480cb22b 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");