U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@oss.nxp.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: hs@denx.de, U-Boot-Denx <u-boot@lists.denx.de>,
	Francesco Dolcini <francesco.dolcini@toradex.com>,
	Schrempf Frieder <frieder.schrempf@kontron.de>,
	Michael Trimarchi <michael@amarulasolutions.com>,
	Marek Va??ut <marex@denx.de>
Subject: Re: i.MX6UL: Adding bootcount support
Date: Fri, 11 Jul 2025 12:00:52 +0800	[thread overview]
Message-ID: <20250711040052.GC1654@nxa18884-linux> (raw)
In-Reply-To: <CAOMZO5Bsdx__qUGmwkYAAKTCbYcBVC2wExsV8o5c5mf9_N8CvQ@mail.gmail.com>

On Tue, Jul 08, 2025 at 08:37:53AM -0300, Fabio Estevam wrote:
>Hi Heiko,
>
>On Tue, Jul 8, 2025 at 12:49???AM Heiko Schocher <hs@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;

Without this, there is no wdog output to 
reset pmic, so only SoC reset, the value will
be retained for bootcount.

Regards
Peng

> };
>
> &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

      reply	other threads:[~2025-07-11  2:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-07  1:18 i.MX6UL: Adding bootcount support Fabio Estevam
2025-07-07  4:31 ` Heiko Schocher
2025-07-08  1:36   ` Fabio Estevam
2025-07-08  3:50     ` Heiko Schocher
2025-07-08 11:37       ` Fabio Estevam
2025-07-11  4:00         ` Peng Fan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250711040052.GC1654@nxa18884-linux \
    --to=peng.fan@oss.nxp.com \
    --cc=festevam@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=hs@denx.de \
    --cc=marex@denx.de \
    --cc=michael@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox