The internal watchdog is enabled by default in the kernel configuration.
To check the node search for watchdog0 in /dev.
If not then enable the config in menu-config
- In menuconfig: Device Drivers -> Watchdog Timer Support -> <*> IMX2+ Watchdog
Test the Watchdog #
The watchdog will be activated as soon as /dev/watchdog is opened and will reboot unless the watchdog is pinged within the timeout (128 is the preconfigured value).
root@imx8mm-trux-q01:~# echo "1" > /dev/watchdog0