i.MX6UL: Adding bootcount support
Fabio Estevam
festevam at gmail.com
Mon Jul 7 03:18:24 CEST 2025
Hi,
I'm trying to enable bootcount support on the imx6ul-evk board like this:
--- a/configs/mx6ul_14x14_evk_defconfig
+++ b/configs/mx6ul_14x14_evk_defconfig
@@ -110,3 +110,8 @@ CONFIG_SPLASH_SCREEN=y
CONFIG_SPLASH_SCREEN_ALIGN=y
CONFIG_BMP_16BPP=y
CONFIG_IMX_WATCHDOG=y
+CONFIG_SYS_BOOTCOUNT_ADDR=0x020B0068
+CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_SYS_BOOTCOUNT_MAGIC=0xB0C4000
+CONFIG_SYS_BOOTCOUNT_BE=y
However, the 'bootcount' variable does not increment after a 'reset' command:
=> print bootcount
bootcount=1
Has anyone managed to get bootcount working on it?MX6UL?
Thanks,
Fabio Estevam
More information about the U-Boot
mailing list