
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