My plan is to start the watchdog from U-Boot, because I want to detect and resolve Linux kernel panic as well. As I read the Watchog (Linux) page, I thought this well be easy because I can start the watchdog manually in U-Boot over i2c and after Linux boots up, it takes the control over feeding it with keepalive signals.
But the reality is different. Even though Linux boots up successfully, the watchdog still resets the board. After some investigating I discovered in dmesg
, that this board (iMX7D) don’t use the mentioned rn5t618-wdt
in PMIC, rather imx2-wdt
on SoC. Dmesg: [ 1.962425] imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
Maybe I misunderstood but you stated in Watchog (Linux):
On the NXP i.MX 7 based modules we make use of the PMIC watchdog, the driver is called rn5t618-wdt. The watchdog driver creates one device under /dev/watchdog. By default, the watchdog resets the system after 128 seconds.
And also in thread (Figure out reset reason) you are speaking about PMIC watchdog.
Further the Watchdog Reset is also done by the external Power Supply aka PMIC.
Did I miss something? Can you please explain me what happened to the PMIC watchdog? Why is not used on iMX7 anymore?