cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ishahak
Observer
Observer
453 Views
Registered: ‎01-31-2018

Watchdog not firing

Hi,

 

I'm using an UltraZed with IOCC board, with petalinux 2017.4.

 

In petalinux there is a command called 'watchdog':

 

sh$ watchdog

BusyBox v1.26.2 (2018-02-20 14:16:42 IST) multi-call binary.

Usage: watchdog [-t N[ms]] [-T N[ms]] [-F] DEV

Periodically write to watchdog device DEV

  -T N Reboot after N seconds if not reset (default 60)

  -t N Reset every N seconds (default 30)

  -F Run in foreground

Use 500ms to specify period in milliseconds

 

I'm expecting the following command to reboot in 5 seconds:

sh$ watchdog -T 5 -t 60 /dev/watchdog0

 

But actually, nothing happens!

 

I was adding the following into my system-user.dtsi:

&watchdog0 {
    status = "okay";
    reset-on-timeout;
};

 

I'm suspecting that no hw clock is assigned to it, but I have no idea which clock should be declared for it.

 

any idea please??

Tags (1)
0 Kudos
0 Replies