imx8mn: bootcount does not increment

Heiko Schocher hs at denx.de
Fri Apr 26 05:40:17 CEST 2024


Hello Fabio,

On 26.04.24 03:55, Fabio Estevam wrote:
> Hi,
> 
> When enabling bootcount on the imx8mm-evk like this:
> 
> --- a/configs/imx8mm_evk_defconfig
> +++ b/configs/imx8mm_evk_defconfig
> @@ -120,3 +120,5 @@ CONFIG_SDP_LOADADDR=0x40400000
>   CONFIG_USB_GADGET_DOWNLOAD=y
>   CONFIG_SPL_USB_SDP_SUPPORT=y
>   CONFIG_IMX_WATCHDOG=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y

No chance for a bootcounter in a register?

> It works as expected, and the "bootcount" environment variable gets
> incremented after a reset.

Good!

> However, if I try the same on an imx8mn_evk, the "bootcount" variable
> always stays at 1 and never increments.

Uff... environment code should be independent from the board...

> Do you happen to have any idea as to why imx8mn behaves differently in
> this aspect?

saveenv works on the board? Does it use protected Environment?

No more ideas ... sorry...

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list