watchdog timeout ,but it can't reboot in ls1046

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

watchdog timeout ,but it can't reboot in ls1046

跳至解决方案
1,656 次查看
940785652
Contributor I

I write something in source codes of watchdog,

struct watchdog_device *wdog = (struct watchdog_device *)arg;
struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog);
static int watchdog_reboot=0;
watchdog_reboot++;
pr_err("watchdog is ping....,time=%d \n",watchdog_reboot);
/* ping it every wdog->timeout / 2 seconds to prevent reboot */
if(watchdog_reboot<5)
imx2_wdt_ping(wdog);
else
pr_err("wdog isn't ping\n");
mod_timer(&wdev->timer, jiffies + wdog->timeout * HZ / 2);

and the console print


ls1046ardb login: root
root@ls1046ardb:~# [ 32.098606] watchdog is ping....,time=2
[ 62.178629] watchdog is ping....,time=3
[ 92.258654] watchdog is ping....,time=4
[ 122.338607] watchdog is ping....,time=5
[ 122.342538] wdog isn't ping

root@ls1046ardb:~#
root@ls1046ardb:~# [ 152.418606] watchdog is ping....,time=6
[ 152.422535] wdog isn't ping
[ 182.498647] watchdog is ping....,time=7
[ 182.502577] wdog isn't ping

the watchdog is timeout,and it can't reboot ,why???

0 项奖励
回复
1 解答
1,480 次查看
ufedor
NXP Employee
NXP Employee

Please refer to the QorIQ LS1046A Reference Design Board Getting Started Guide, Table 8. DIP switch settings, SW4[8] SW_RST_MODE - it is not in default position.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,480 次查看
940785652
Contributor I

   the board is ls1046ardb whitch is designed by nxp,I don't know what RESET_REQ_B connects,this is my board's picture.

IMG_20190830_092811.jpg

0 项奖励
回复
1,481 次查看
ufedor
NXP Employee
NXP Employee

Please refer to the QorIQ LS1046A Reference Design Board Getting Started Guide, Table 8. DIP switch settings, SW4[8] SW_RST_MODE - it is not in default position.

0 项奖励
回复
1,480 次查看
ufedor
NXP Employee
NXP Employee

Please refer to the QorIQ LS1046A Reference Manual, Chapter 35 Watchdog Timer (WDOG), 35.1 Overview:

"the core WDOG timers expiry signals are used to raise reset request (RESET_REQ output of the chip)."

How RESET_REQ_B is connected in your case?

Which board is in question?

0 项奖励
回复