How to test wdog2(TZ) in uboot and kernel?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to test wdog2(TZ) in uboot and kernel?

232 Views
zohanlin
Contributor III

Hi all,

I test wdog2 on i.MX6Q with Yocto(kernel 4.9.88)

I tried to test wdog2(TZ) in u-boot and kernel.

In uboot, I  modified ./drivers/watchdog/imx_watchdog.c and replaced WDOG1_BASE_ADDR with WDOG2_BASE_ADDR, it not worked.

In kernel, I don't know how to ensure the wdog2 is worked. But when system reboot, WDOG2_B would be pull low.

I found some info in imx6 Watchdog ,but page not found.

How to test wdog2(TZ) in uboot and kernel?

Could someone tell me how to test it?

Thanks for your help.

Labels (4)
Tags (1)
0 Kudos
2 Replies

162 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi zohan

wdog2 is enabled in imx6qdl-sabresd.dtsi

imx6qdl-sabresd.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

for testing one can try wdog unit test:

wdog\test - imx-test - i.MX Driver Test Application Software 

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

0 Kudos

162 Views
zohanlin
Contributor III

Hi igor,

Thanks for you relpy.

But I have a question.

Does wdog2 work on trust zone?

Thanks,

zohan 

0 Kudos