Hello,
I'm trying to use the watchdog 1 on an IMX6ULL, meaning I want the system to restart once the system freeze (for example after a forkbomb).
Here's the definition in my device tree :
pinctrl_wdog: wdoggrp {
fsl,pins = <
MX6UL_PAD_LCD_RESET__WDOG1_WDOG_ANY 0x30b0
>;
};
&wdog1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wdog>;
fsl,wdog_b;
fsl,use-wre;
fsl,ext-reset-output;
};
During the boot, I can see that the imx2-wdt is correctly initialized :
imx2-wdt 20bc000.wdog: timeout 20 sec (nowayout=1)
I wanted to test the watchdog with the unit-tests recipe, but I'm building on a custom machine (and I can't built it with this machine). So I'm using a fork bomb to force a freeze of the system :
:(){ :|:& };:
The system freeze but doesn't restart at all.
Am I missing something ?
Solved! Go to Solution.
Solved ! My configuration was correct. I was just missing the software in the userland to interact with the watchdog driver, in my case I use the Yocto recipe watchdog : https://layers.openembedded.org/layerindex/recipe/90007/
Solved ! My configuration was correct. I was just missing the software in the userland to interact with the watchdog driver, in my case I use the Yocto recipe watchdog : https://layers.openembedded.org/layerindex/recipe/90007/