Watchdog in u-boot - imx6

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

Watchdog in u-boot - imx6

跳至解决方案
6,894 次查看
karthikeyanraju
Contributor III

Hi all,

 I am trying to enable watchdog in u-boot for imx6. I am using Yocto - imx_v2016.03_4.1.15_2.0.0_ga in SABRESD board.

In uboot .bb file i addedfollwing lines,

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
SRC_URI += "file://watchdog.patch"
SRC_URI += "file://watchdog1.patch"

In these 2 patches, the below changes are done.

path : git/include/configs$ vim mx6sabresd.h

/* Enabled Watchdog Timer */
#define CONFIG_IMX_WATCHDOG  

In another patch, I reduced the restarting time in 

#define CONFIG_WATCHDOG_TIMEOUT_MSECS 6000

Then i cleaned and compiled the u-boot. My patches are applied in source but the board is not restarting. Can anyone help me to enable the Watchdog.

标签 (1)
1 解答
3,997 次查看
karthikeyanraju
Contributor III

I have got solution for my problem. I successfully enabled watchdog in u-boot.

With the addition of my question  i have called the hw*_init() in board related file. This action will initialize that watchdog HW functions. Thank you.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
3,998 次查看
karthikeyanraju
Contributor III

I have got solution for my problem. I successfully enabled watchdog in u-boot.

With the addition of my question  i have called the hw*_init() in board related file. This action will initialize that watchdog HW functions. Thank you.

0 项奖励
回复
3,997 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Karthikeyan

watchdog is not used in nxp uboot

uboot-imx.git - Freescale i.MX u-boot Tree 

however one can try to debug it checking watchdog registers with

sect.70.7.1 Watchdog Control Register (WDOGx_WCR) i.MX6DQ Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

Note, for reliable reset watchdog should reset power for whole board, not only for

i.MX6 processor. For example check MMPF0100 PWRON and WDOG connection on

SabreSD board spf-27392 schematic p.21


Schematics (1)
i.MX6_SABRE_SDP_DESIGNFILES
http://www.nxp.com/products/software-and-tools/hardware-development-tools/sabre-development-system/s...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------