2

Linux supports several types of watchdog hardware.

Is there a way to detect the available hardware watchdogs and load the appropriate kernel module (and "softdog" as fallback solution)?

I guess, just trying all available kernel modules is not an optimal solution.


EDIT:

I am surprised that modern systems do not have some kind of watchdog timer built into the CPU (at least no module is loaded for an AMD Athlon II). Are hardware watchdogs rare on consumer/prosumer systems?

1 Answer 1

2

Typically, if they are available, the kernel does load all modules that correspond to hardware found in the system during boot-up. If, for some reason, these devices are blacklisted or otherwise ignored during boot-up, you could use the lspci/lsusb utilities to see what hardware is attached to the system and respond accordingly.

As far as loading "softdog", that's a matter of some proper scripting around the tools above.

3
  • If the kernel does load such a driver, will it show up in the kernel message buffer?
    – Black
    Commented Mar 30, 2012 at 13:12
  • 1
    It should show up in dmesg and /var/log/messages (depending on your syslog configuration). dmesg does have a maximum length, though. You should also be able to see it in the output of lsmod.
    – Kyle Smith
    Commented Mar 30, 2012 at 13:17
  • dmesg | grep wd should show you something sensible if your system actually loaded the driver automatically. My system seems to support iTCO_wdt but that was not automatically loaded. Commented Aug 16, 2022 at 20:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .