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

Frédéric Danis frederic.danis at collabora.com
Wed Mar 18 09:17:25 CET 2020

Hi Simon,

Sorry I missed to add the change log.

Since v1:
- Add doc/README.bootcount
- Add version number in bootcount_ext file and change Magic byte


On 18/03/2020 03:17, Simon Glass wrote:
> Hi Frédéric,
> On Tue, 17 Mar 2020 at 10:59, Frédéric Danis
> <frederic.danis at collabora.com> 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>
> Is there a change log? I see that this is v2.
> Regards,
> Simon

More information about the U-Boot mailing list