[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to use watchdog in user application



I suggest not using the hardware watchdog for this.
The application feeding the watchdog could e.g. touch a file or send a
message 
periodically. If the monitor application sees no such events it can
execute
e.g. the "reboot" shell command.

/Mikael

-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com">mailto:owner-dev-etrax@xxxxxxx.com] On
Behalf Of RIEM-VIS Ruud
Sent: Thursday, March 30, 2006 8:34 AM
To: dev-etrax
Subject: How to use watchdog in user application


Hello,

I'm looking for a way to have an application in user space (e.g. daemon)
to force a hardware reset if other user applications do not fire the
watchdog.
This would allow us to restart even on hangups which we have sometimes
in the field.

I've enabled the watchdog in the kernel:

    CONFIG_ETRAX_WATCHDOG=y
    CONFIG_ETRAX_WATCHDOG_NICE_DOGGY=y

but under "watchdog cards"

#   CONFIG_WATCHDOG is not set

Could anyone give me a hint how to achieve this?

Thanks,

Ruud Riem-Vis
IP01 SA