Hi,
We want to enable the watchdog of Jetson Nano. We did some adjustments in device tree to enable it.
watchdog@60005100 {
status = "okay";
nvidia,expiry-count = <1>;
nvidia,heartbeat-init = <30>;
};
The output looks okay to me and we also see the /dev/watchdog
and /dev/watchdog0
files:
$ dmesg | grep watchdog
[ 1.085808] tegra-wdt 60005100.watchdog: Tegra WDT enabled on probe. Timeout = 30 seconds.
[ 1.086176] tegra-wdt 60005100.watchdog: initialized (timeout = 30 sec, nowayout = 1)
And we can test it by issuing the following command.
echo 1 > /dev/watchdog && while true; do date; sleep 1; done
However the timeout is still (the default) 120 seconds. How can I change the watchdog timeout? Please notice that the outputs above already suggest that the timeout is set to 30 seconds as set in the device tree snippet. It seems that this is not applied correctly.
And additionally I wonder, when the watchdog is enabled. I have read some threads, which suggest that this is possible to enable it by cboot, but I am not sure about this. So the question is: Is the watchdog enabled in some bootloader code or is it enabled only in the kernel driver? (we want to enable the watchdog as early as possible to ensure that kernel and device tree are okay)
Regards