[PATCH] fwu: Allow code to properly decode trial state

Jassi Brar jaswinder.singh at linaro.org
Sat Jul 15 16:45:11 CEST 2023

On Thu, 13 Jul 2023 at 09:35, Michal Simek <michal.simek at amd.com> wrote:
> 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 at amd.com>
> ---
Acked-by: Jassi Brar <jaswinder.singh at linaro.org>

More information about the U-Boot mailing list