i.MX6UL: Adding bootcount support
Fabio Estevam
festevam at gmail.com
Tue Jul 8 13:37:53 CEST 2025
Hi Heiko,
On Tue, Jul 8, 2025 at 12:49 AM Heiko Schocher <hs at denx.de> wrote:
> Ah, looked into RM of imx6ul ... it has also a SRC_GPR2 with the same
> comment as imx6ull has ... uff... why does this not work for you than?
>
> Try with md and mw and make soft resets (not power off/on !)
Thanks for your help. It works now with the changes below:
diff --git a/arch/arm/dts/imx6ul-14x14-evk.dtsi
b/arch/arm/dts/imx6ul-14x14-evk.dtsi
index 1a18c41ce385..0239a153080c 100644
--- a/arch/arm/dts/imx6ul-14x14-evk.dtsi
+++ b/arch/arm/dts/imx6ul-14x14-evk.dtsi
@@ -384,7 +384,6 @@
&wdog1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wdog>;
- fsl,ext-reset-output;
};
&iomuxc {
diff --git a/configs/mx6ul_14x14_evk_defconfig
b/configs/mx6ul_14x14_evk_defconfig
index 0e35e5e6af57..4a6a35346759 100644
--- a/configs/mx6ul_14x14_evk_defconfig
+++ b/configs/mx6ul_14x14_evk_defconfig
@@ -110,3 +110,7 @@ CONFIG_SPLASH_SCREEN=y
CONFIG_SPLASH_SCREEN_ALIGN=y
CONFIG_BMP_16BPP=y
CONFIG_IMX_WATCHDOG=y
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
+CONFIG_SYS_BOOTCOUNT_ADDR=0x20d8024
+CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
+CONFIG_BOOTCOUNT_LIMIT=y
Thanks,
Fabio Estevam
More information about the U-Boot
mailing list