mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
fwu: Allow code to properly decode trial state
Current code after capsule update (mtd write) is not changing active_index in mdata to previous_active_index. On the reboot this is shown but showing message "Boot idx 1 is not matching active idx 0, changing active_idx" which is changing active_idx and writing mdata to flash. But when this message is visible it is not checking which state that images are. If they have acceptance bit setup to yes everything is fine and valid images are booted (doesn't mean the latest one). But if acceptance bit is no and images are in trial state in_trial variable is never setup. Which means that from new flashed image stable image can be rewritten because in_trial is not setup properly. Signed-off-by: Michal Simek <michal.simek@amd.com> Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
d6c0d7087f
commit
a6dd927f5b
1 changed files with 0 additions and 2 deletions
|
@ -666,8 +666,6 @@ static int fwu_boottime_checks(void *ctx, struct event *event)
|
|||
ret = fwu_set_active_index(boot_idx);
|
||||
if (!ret)
|
||||
boottime_check = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (efi_init_obj_list() != EFI_SUCCESS)
|
||||
|
|
Loading…
Reference in a new issue