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

2020-03-12 Thread Simon Glass
Hi Frédéric, On Thu, 12 Mar 2020 at 08:36, Frédéric Danis wrote: > > Hi Simon, > > On 12/03/2020 04:22, Simon Glass wrote: > > Hi Frédéric, > > On Wed, 11 Mar 2020 at 05:00, Frédéric Danis > wrote: > > > > After a successful upgrade, multiple problem during boot sequence may > > trigger the

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

2020-03-12 Thread Frédéric Danis
Hi Simon, On 12/03/2020 04:22, Simon Glass wrote: Hi Frédéric, On Wed, 11 Mar 2020 at 05:00, Frédéric Danis mailto:frederic.da...@collabora.com>> wrote: > > After a successful upgrade, multiple problem during boot sequence may > trigger the altbootcmd process. > This patch adds a 3rd byte

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

2020-03-11 Thread Simon Glass
Hi Frédéric, On Wed, 11 Mar 2020 at 05:00, Frédéric Danis wrote: > > After a successful upgrade, multiple problem during boot sequence may > trigger the altbootcmd process. > This patch adds a 3rd byte to the bootcount file to enable/disable the > bootcount check. > When reading old bootcount

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

2020-03-11 Thread Frédéric Danis
After a successful upgrade, multiple problem during boot sequence may trigger the altbootcmd process. This patch adds a 3rd byte to the bootcount file to enable/disable the bootcount check. When reading old bootcount file, 2 bytes long, it will consider that bootcount is enabled, and update the