I have an embedded computer I am trying to develop on and I wanted to know if the watchdog it has is a software watchdog or if it is a hardware watchdog.
First I checked and I saw that /dev/watchdog is present inside /dev. But I did not see a watchdog process when I issued ps
. So I installed a watchdog daemon (or driver?) and verified that a watchdog is running, again I used ps
.
My problem now is I have no idea whether this is a hardware or software watchdog... there is a .conf file and also a process called /usr/sbin/watchdog owned by root. In case that info helps.
TIA!
Niko
The dmidecode
does NOT show the watchdog information on this machine, whereas it does show watchdog present
info on my peer's laptop:
On the other hand on my computer the /dev
folder is NOT showing the watchdog entry nor does lsmod|grep softdog
show anything.
From here: http://www.sat.dundee.ac.uk/psc/watchdog/watchdog-testing.html
Checking for the Watchdog Hardware If you have successfully loaded the watchdog hardware's driver module (or the 'softdog' > emulator) then you should see the entry in /dev corresponding to this. For example:
ls -l /dev/watch*
crw------- 1 root root 10, 130 May 13 16:27 /dev/watchdog
I need to know which module do I need to load for hardware watchdog and for that I need to know what module does my hardware watchdog require!
One board I have is: CAPA830 with Ubuntu 12.04 on it
and other is:
3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
dmesg
on the second machine shows:
NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.