When fw_setenv calls function 'set_obsolete_flag' to set environment
flags from active to obsolete, the flags are addressed without an
offset from struct uboot_env_redund. Thus the redundant environment
flags are not updated, but the first byte of CRC32 is clean. The
redundant environment becomes invalid.
The issue is fixed by adding flags offset for setting obsolete flag.
Signed-off-by: Leo Ruan <firstname.lastname@example.org>
Signed-off-by: Mark Jonas <email@example.com>
Acked-by: Stefano Babic <firstname.lastname@example.org>