Watchdog doesn't restart IMX6ULL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Watchdog doesn't restart IMX6ULL

跳至解决方案
1,770 次查看
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 ?

标签 (2)
0 项奖励
回复
1 解答
1,764 次查看
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 项奖励
回复
1 回复
1,765 次查看
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 项奖励
回复