2019-06-12 17:53:01 +00:00
|
|
|
============================================================
|
|
|
|
WDT Watchdog Timer Interfaces For The Linux Operating System
|
|
|
|
============================================================
|
|
|
|
|
2007-05-23 21:43:52 +00:00
|
|
|
Last Reviewed: 10/05/2007
|
|
|
|
|
2019-06-12 17:53:01 +00:00
|
|
|
Alan Cox <alan@lxorguk.ukuu.org.uk>
|
2007-05-23 21:43:52 +00:00
|
|
|
|
2019-06-12 17:53:01 +00:00
|
|
|
- ICS WDT501-P
|
|
|
|
- ICS WDT501-P (no fan tachometer)
|
|
|
|
- ICS WDT500-P
|
2007-05-23 21:43:52 +00:00
|
|
|
|
|
|
|
All the interfaces provide /dev/watchdog, which when open must be written
|
|
|
|
to within a timeout or the machine will reboot. Each write delays the reboot
|
|
|
|
time another timeout. In the case of the software watchdog the ability to
|
|
|
|
reboot will depend on the state of the machines and interrupts. The hardware
|
|
|
|
boards physically pull the machine down off their own onboard timers and
|
|
|
|
will reboot from almost anything.
|
|
|
|
|
2010-05-03 18:42:52 +00:00
|
|
|
A second temperature monitoring interface is available on the WDT501P cards.
|
2007-05-23 21:43:52 +00:00
|
|
|
This provides /dev/temperature. This is the machine internal temperature in
|
|
|
|
degrees Fahrenheit. Each read returns a single byte giving the temperature.
|
|
|
|
|
|
|
|
The third interface logs kernel messages on additional alert events.
|
|
|
|
|
2010-05-03 18:42:52 +00:00
|
|
|
The ICS ISA-bus wdt card cannot be safely probed for. Instead you need to
|
2019-06-12 17:53:01 +00:00
|
|
|
pass IO address and IRQ boot parameters. E.g.::
|
|
|
|
|
2010-05-03 18:42:52 +00:00
|
|
|
wdt.io=0x240 wdt.irq=11
|
|
|
|
|
|
|
|
Other "wdt" driver parameters are:
|
2019-06-12 17:53:01 +00:00
|
|
|
|
|
|
|
=========== ======================================================
|
2010-05-03 18:42:52 +00:00
|
|
|
heartbeat Watchdog heartbeat in seconds (default 60)
|
|
|
|
nowayout Watchdog cannot be stopped once started (kernel
|
2019-06-12 17:53:01 +00:00
|
|
|
build parameter)
|
2010-05-03 18:42:52 +00:00
|
|
|
tachometer WDT501-P Fan Tachometer support (0=disable, default=0)
|
|
|
|
type WDT501-P Card type (500 or 501, default=500)
|
2019-06-12 17:53:01 +00:00
|
|
|
=========== ======================================================
|
2007-05-23 21:43:52 +00:00
|
|
|
|
|
|
|
Features
|
|
|
|
--------
|
2019-06-12 17:53:01 +00:00
|
|
|
|
|
|
|
================ ======= =======
|
|
|
|
WDT501P WDT500P
|
|
|
|
================ ======= =======
|
2007-05-23 21:43:52 +00:00
|
|
|
Reboot Timer X X
|
|
|
|
External Reboot X X
|
|
|
|
I/O Port Monitor o o
|
|
|
|
Temperature X o
|
|
|
|
Fan Speed X o
|
|
|
|
Power Under X o
|
|
|
|
Power Over X o
|
|
|
|
Overheat X o
|
2019-06-12 17:53:01 +00:00
|
|
|
================ ======= =======
|
2007-05-23 21:43:52 +00:00
|
|
|
|
|
|
|
The external event interfaces on the WDT boards are not currently supported.
|
|
|
|
Minor numbers are however allocated for it.
|
|
|
|
|
|
|
|
|
2019-06-12 17:53:01 +00:00
|
|
|
Example Watchdog Driver:
|
|
|
|
|
|
|
|
see samples/watchdog/watchdog-simple.c
|