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

Tom Rini trini at konsulko.com
Tue Jul 25 23:13:03 CEST 2023

On Thu, Jul 13, 2023 at 04:35:24PM +0200, Michal Simek 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>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230725/e2011ba4/attachment.sig>

More information about the U-Boot mailing list