Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-08-2005, 08:44 PM   #1
LQ Newbie
Registered: Apr 2004
Location: Canada
Posts: 11

Rep: Reputation: 0
Hardware watchdog in BIOS and Linux watchdog driver are different?

When I compile my kernel with watchdog support, and create /dev/watchdog as
mknod /dev/watchdog c 10 130
and use the the example watchdog driver code snippet from the Kernel documentation (below)
The watchdog works beautifully, in that when the user watchdog daemon terminates, the sytsem will reboot within 1 minute.

In the BIOS, there is also a setting that has watchdog enable / disable. My motherboard manual said when this is enabled, the system will reboot after 5 minutes of inactivity.
I would like to enable the BIOS watchdog as well, since sometimes the system will crash as it is first booting up, i.e. somewhere after lilo, but somewhere before the disks are mounted.

However, currently, when I enable the BIOS watchdog feature, and use my Linux watchdog driver and monitor program, The system still is rebooting on 5 minute intervals.
(The Linux driver watchdog will work when bios watchdog is enabled or disabled).

So, my first thought was the bios enabled watchdog must require kicking in a way that is different from how the Linux driver enabled watch dog mode does ?

Could we have a user-land program manage both the linux driver to hardware watchdog and the Bios configured watchdog (i.e. are there any better watchdog kicking programs out there?)
Or is it possible the system just has two different watchdog hardware and I am not accessing the right device for the bios watchdog?

I am using a Supermicro P4DP8-G2 mainboard. Using Linux 2.6.13 kernel, and currently the w83627hf watchdog driver. (what the manual sais I have)

Example Watchdog Driver that is in Kernel documentation (what I am currently using)

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, const char *argv[])
int fd=open("/dev/watchdog",O_WRONLY);
Old 12-22-2008, 09:41 PM   #2
LQ Newbie
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Linux watchdog is a software daemon

Linux watchdog is a software daemon, and it doesn't run like a hardware watchdog does. Software watchdog still need a timer or other device like interrupt system, but it runs on the software layer.
Why not refer to this for a clear answer:
Watchdog—The Linux Software Daemon

Last edited by sunnyup; 12-22-2008 at 09:42 PM. Reason: I can't #include <url> first time posting a reply.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
re0: Watchdog timeout. Lurker01 *BSD 26 11-05-2004 06:31 PM
How do you use the software watchdog? werkyo Linux - Software 1 03-30-2004 10:57 AM
A software watchdog Gandilf Linux - Software 0 07-24-2003 09:26 AM
netdev watchdog mdk 9.0 carlosrm Linux - Networking 5 12-23-2002 10:22 AM
netdev watchdog emanners Linux - Networking 2 08-17-2001 02:16 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration