mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
42d44f631c
commit
920a5dd232
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue