Watchdog doesn't restart IMX6ULL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Watchdog doesn't restart IMX6ULL

Jump to solution
1,413 Views
glecocq
Contributor II

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 ?

Labels (2)
0 Kudos
1 Solution
1,407 Views
glecocq
Contributor II

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/

View solution in original post

0 Kudos
1 Reply
1,408 Views
glecocq
Contributor II

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/

0 Kudos