i’m using watchdog and your example in this article. but if i try to write into watchdog i become continuously this message in terminal
[ 742.048737] watchdog watchdog0: watchdog did not stop!
[ 743.048761] watchdog watchdog0: watchdog did not stop!
[ 744.048328] watchdog watchdog0: watchdog did not stop!
[ 745.048162] watchdog watchdog0: watchdog did not stop!
[ 746.048522] watchdog watchdog0: watchdog did not stop!
[ 747.048293] watchdog watchdog0: watchdog did not stop!
[ 748.048446] watchdog watchdog0: watchdog did not stop!
[ 749.048515] watchdog watchdog0: watchdog did not stop!
[ 750.048785] watchdog watchdog0: watchdog did not stop!
[ 751.048872] watchdog watchdog0: watchdog did not stop!
[ 752.048145] watchdog watchdog0: watchdog did not stop!
[ 753.049508] watchdog watchdog0: watchdog did not stop!
[ 754.048910] watchdog watchdog0: watchdog did not stop!
[ 755.049458] watchdog watchdog0: watchdog did not stop!
[ 756.049966] watchdog watchdog0: watchdog did not stop!
how can i disable this message or did i do something wrong?
This happens if you close the file /dev/watchdog, but the watchdog is either configured with ‘nowayout’ or you did not sent the ‘magic’ character ‘V’.
e.g.
root@colibri-imx6:~# echo "" > /dev/watchdog
[ 320.134092] watchdog watchdog0: watchdog did not stop!
root@colibri-imx6:~# echo "V" > /dev/watchdog
root@colibri-imx6:~#
Note that the message means that if the watchdog is not notified within the timeout again then the system is reset.
Note that ‘echo “V” > /dev/watchdog’ does disable the watchdog.
The watchdog application here does keep the file /dev/watchdog open as long as it runs. I do not get these kernel messages when I run the application. Only if the application is killed then the file is closed and 60 seconds later the system is reset as expected.
root@colibri-imx6:~# ./watchdog
Open WatchDog
^C[ 784.396107] watchdog watchdog0: watchdog did not stop!
root@colibri-imx6:~#
U-Boot 2016.11-2.8.2+g7c13d69011 (Jan 09 2018 - 01:48:19 +0100)
CPU: Freescale i.MX6DL rev1.2 at 792 MHz
Please also consult the kernel documentation here and maybe the relevant source file.