[PATCH v2] bootcount_ext: Add flag to enable/disable bootcount

Tom Rini trini at konsulko.com
Fri Apr 24 19:09:16 CEST 2020


On Tue, Mar 17, 2020 at 05:59:09PM +0100, Frédéric Danis wrote:

> After a successful upgrade, multiple problem during boot sequence may
> trigger the altbootcmd process.
> This patch adds a version and an upgrade_available entries to the
> bootcount file to enable/disable the bootcount check.
> When failing to read the bootcount file it will consider that bootcount is
> enabled, acting as previously, and update the file accordingly.
> 
> The bootcount file is only saved when `upgrade_available` is true, this
> allows to save writes to the filesystem.
> 
> Signed-off-by: Frédéric Danis <frederic.danis at collabora.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- 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/20200424/9f7c93c2/attachment.sig>


More information about the U-Boot mailing list