Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm struggling with the watchdog timer (wdt) for a while. I can't get it working.

My microcontroller is a AriaG25, based on the AT91SAM925. I have used this tutorial to compile the kernel. The kernel settings related to the wdt looks like this:

CONFIG_WATCHDOG=y       
CONFIG_AT91SAM9X_WATCHDOG=y   

The kernel has been compiled without problem and boots succesfully. I've installed the watchdog deamon software via apt-get. And now I'm stuck. How do I get the watchdog working? I read a lot about /dev/watchdog. I don't have that file. Do I have to put the driver for my hardware there? Is this a driver?

share|improve this question
    
Have you looked at the watchdog man page? linux.die.net/man/8/watchdog –  slm Aug 28 '13 at 12:03

1 Answer 1

up vote 3 down vote accepted

I've changed my kernel configuration to this:

CONFIG_WATCHDOG=y
CONFIG_SOFT_WATCHDOG=m
CONFIG_AT91SAM9X_WATCHDOG=y

Now my watchdog timer was running. I only had to edit /etc/watchdog.conf in order to set up tests.

share|improve this answer
    
To make the best of the watchdog protection you may also need to configure the daemon to run tests that verify your system's critical operation(s) are working. I have been doing this for our control computers and documented it here –  Paul Crawford Sep 4 '13 at 17:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.