Watchdog app in linux

Post Reply
Zibeo
Posts: 29
Joined: Wed Nov 25, 2009 11:26 am

Watchdog app in linux

Post by Zibeo »

Is there a command to enable, disable, and reset the watchdog timer in linux?

fly
Posts: 162
Joined: Thu Jul 22, 2010 2:02 pm

Re: Watchdog app in linux

Post by fly »

There is a generic watchdog daemon available but I don't know if the hardware watchdog in fitPC2 is supported. You can always use a software watchdog. There might be some problems regarding the c states.. just guessing, never used the watchdog.

--edit--

The hardware watchdog of fitpc2 should be supported by mainline kernel. The initial support patch log is available [1]. Denis who shows up in the forums from time to time should know more (if I linked the names correctly).

There is another thread about the configuration going on at [2]. You might want to look at the wiki page [3], too.

-- edit2 --

watchdog -- watchdog daemon
wd_keepalive -- watchdog keepalive
sbc_fitpc2_wdt -- kernel module to interact with the hardware watchdog
/dev/watchdog -- watchdog device

As far as I understand this (I never used watchdog before, so I might be wrong) you can either use wd_keepalive periodically or just write to /dev/watchdog to reset the timer.

[1] http://lwn.net/Articles/342308/
[2] http://www.fit-pc2.com/forum/viewtopic.php?f=11&t=1904
[3] http://compulab.co.il/workspace/mediawi ... ux:_Kernel

Post Reply

Return to “Linux on fit-PC2”