I am using Linux Kernel 2.4 version, I need to enable Watchdog timer, any idea where can I find some useful about how to implement watchdog timer. Thanks in advance.
- posted
16 years ago
I am using Linux Kernel 2.4 version, I need to enable Watchdog timer, any idea where can I find some useful about how to implement watchdog timer. Thanks in advance.
Enabling the WDT depends on how the WDT is implemented in your particular hardware platform, and whether or not the standard Linux kernel has support for it.
And whether kernel support makes a damn bit of difference -- if the WDT on your hardware just pulls the reset line and flushes the whole app down the toilet then all you need is access to the relevant registers and an app that kicks the dog. The kernel wouldn't necessarily have to get involved at all.
Somehow I suspect that the "right" way to do this would involve some custom kernel code.
-- Tim Wescott Control systems and communications consulting http://www.wescottdesign.com Need to learn how to apply control theory in your embedded system? "Applied Control Theory for Embedded Systems" by Tim Wescott Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html
Google is your friend: "Linux WDT" gets 107,000 hits.
It does make a difference - if it's a supported piece of WDT hardware, then Linux already has a driver that provides a [standardized] API to enable and kick the dog. So all he has to do is set the right kernel config option and rebuild.
BUT are any of them worthwhile and/or accurate? An OS is not an active thing, it is purely a passive servant.
-- cbfalconer at maineline dot net
(I *knew* you existed!)
AFAIU, 2.4 does support a few watchdogs: cf.
(The latest 2.4.35 even added a few more)
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.