watchdog card may be initially disabled
八戒哥哥
l0op8ack at hotmail.com
Sun Apr 19 17:22:59 UTC 2009
The watchdog card may be initially disabled by BIOS.
Executing 'watchdog -T 3 -t 1 /dev/watchdog' and
'kill -9 `pidof watchdog`' will not work, the machine will still run happyly.
you must exeute these commands twice to make watchdog take effect.
I cannot find a 'WDIOS_ENABLECARD' ioctl in busybox-1.13.3/miscutils/watchdog.c.
The only ioctl operation is 'WDIOC_SETTIMEOUT'.
59 htimer_duration = htimer_duration / 1000;
60 ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration);
I suggest to add a 'WDIOC_SETOPTIONS' ioctl before 'WDIOC_SETTIMEOUT',
then, we can be sure the watchdog card is enabled.
+58 ioctl_or_warn(3, WDIOC_SETOPTIONS, WDIOS_ENABLECARD);
59 htimer_duration = htimer_duration / 1000;
60 ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration);
_________________________________________________________________
上Windows Live 中国首页,下载最新版Messenger!
http://im.live.cn/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090419/9950778b/attachment.htm>
More information about the busybox
mailing list