iTCO Watchdog - up-board/up-community GitHub Wiki
- Need to install UpFrameworkSetup.msi
- Refer to the link below to build the program
https://github.com/aaeonaeu/win-demo-apps/tree/master/UPEapiTool/WDT - Open cmd, the usage can be referred to below
WDT.exe start <timeout>
- Set the watchdog timeout and Start Watchdog
WDT.exe stop
- Stop the Watchdog
WDT.exe reload
- Reload Watchdog Timer
WDT.exe gettimeout
- Get the current timeout
Watchdog module is enabled by default for UP Squared with BIOS 4.6 or newer and UP Core Plus with BIOS 1.5 or newer.
the other boards you have to check BIOS "CRB setup" -> "CRB Advanced" -> "PCH-IO Configuration" -> "Enable TCO Timer" -> [Enabled]
Note: At the moment the iTCO Watchdog is using the standard WDAT driver with the Ubuntu, future versions of the kernel will enable the iTCO driver and use that instead.
First, load the WDAT module to enable the watchdog device:
sudo modprobe wdat_wdt
or add auto load module when OS boot
sudo sh -c 'echo wdat_wdt >> /etc/modules'
Then, you can define your timeout for halting the system. Otherwise, 30 seconds will be set by default:
sudo wdctl -s 10
you will see which device number has been set
Finally, write to the watchdog device and wait until the board reboot:
echo 1 | sudo tee /dev/watchdog
or
echo 1 | sudo tee /dev/watchdog0
Reload timer counter just repeat above "echo 1" command.