From: Alexander Holler Date: Thu, 20 Jan 2011 02:17:48 +0100 Subject: [U-Boot] [PATCH] NAND: Fix saving of redundand environment Message-ID: <1295486268-7009-1-git-send-email-holler@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When redundand environments are used the serial needs to get increased, otherwise the old one will still be used. Signed-off-by: Alexander Holler --- common/env_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/env_nand.c b/common/env_nand.c index 2682f07..a4480cb 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"); -- 1.7.3.4