How to test WDOG functionality in i.Mx8DX board?

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

How to test WDOG functionality in i.Mx8DX board?

1,088 次查看
Raana
Contributor III

Dear Team,

Currently, I'm working on WDOG in our i.Mx8DX based custom board.

There I'm using L4.14.98_2.0.0 source.

I'm trying to test the WDOG functionality in it.

So, I'm running the below existing application

./wdt_driver_test.out 2 1 0 &

I can bale to see the reboot prints on console but when I'm probing the "SCU_WDOG_OUT" it's not pulsing.

 

Anything need to do specifically for i.Mx8X wdog ?

Is there any modification required in SCU side ?

 

Please guide me to move further.

 

Thank You.

Best Regards,

J.P.Raja

0 项奖励
5 回复数

1,079 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Raja

 

one can try in wdog driver imx_sc_wdt_start() change SC_TIMER_WDOG_ACTION_PARTITION to SC_TIMER_WDOG_ACTION_BOARD

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx_sc_wdt.c?h=imx_5.4.47...

 

L4.14.98_2.0.0 is not good kernel for testing i.MX8QXP(DX) processors, in particular

latest rev.C0 is not supported as described below, column "Supported Platforms"

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 项奖励

1,073 次查看
Raana
Contributor III

Dear Igor,

Thanks for your quick response.

We are in the final stage of release process. So, we can't change the release version.

When I'm checking with my kernel, I couldn't find the imx_sc_wdt.c file as well as "imx_sc_wdt_start" function.

Just a macro definition is there in, "include/soc/imx8/sc/svc/timer/api.h" file.

 

What can I do further ?

How to test the functionality without changing the kernel version?

 

Thank You.

Best Regards,

J.P.Raja

0 项奖励

1,067 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Raja

 

what processor revision used in the case.

 

Best regards
igor

0 项奖励

1,065 次查看
Raana
Contributor III

Dear Igor,

Currently we are using i.Mx8DX5 (b0 silicon) based custom board.

Thank You.

Best Regards,

J.P.Raja

0 项奖励

1,061 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Raja

 

one can try to add wdog initialization is scfw board.c like:

timer_set_wdog_timeout(pt_boot, 15000);
timer_set_wdog_action(SC_PT, pt_boot, SC_TIMER_WDOG_ACTION_BOARD);
timer_start_wdog(pt_boot, 0);

Description of that functions can be found in sc_fw_api_qx_b0.pdf included in

SCFW Porting Kit

 

Best regards
igor

0 项奖励