From: Scott D. Webster <scottw@frontier.wilpaterson.edu>
Subject: Re: Watchdog saga continues...
Date: Mon, 28 Oct 1996 13:21:22 -0500 (EST) [thread overview]
Message-ID: <4c1352b85d4f6691dedf06c3eed734b5.axp-list@archive.invalid> (raw)
In-Reply-To: <199610281651.KAA01979@atheist.tamu.edu>
On Mon, 28 Oct 1996, Richard Henderson wrote:
<SNIP>
> Poking around I could find nowhere that would initialize the
> WDT driver -- the normal method to get the object included.
> I'm having trouble believing that this could have been the
> case with any driver that actually got included in the standard
> kernel. Nevertheless, try the following patch.
>
<SNIP>
>
> --- drivers/char/misc.c.orig Mon Oct 28 10:42:35 1996
> +++ drivers/char/misc.c Mon Oct 28 10:44:33 1996
> @@ -67,6 +67,7 @@
> extern int atixl_busmouse_init(void);
> extern int sun_mouse_init(void);
> extern void watchdog_init(void);
> +extern void wdt_init(void);
> extern void pcwatchdog_init(void);
> extern int rtc_init(void);
>
> @@ -219,6 +220,9 @@
> #ifdef CONFIG_SOFT_WATCHDOG
> watchdog_init();
> #endif
> +#ifdef CONFIG_WDT
> + wdt_init();
> +#endif
> #ifdef CONFIG_PCWATCHDOG
> pcwatchdog_init();
> #endif
IT WORKS!!! (The crowd cheers and does the wave). Thank you Sir
Richard! The patch didn't apply cleanly, so I patched by hand. I just ran
'diff -u' myself and got identical output, so I don't know what patch's
problem is. But, now everything shows up in /proc/interrupts and
/proc/ioports and 'cat > /dev/watchdog' reboots the system in one minute.
So, who will send this patch to Linus? I heard rumor of a 2.0.24
release (has to do with that ping crash bug, right?). If this patch could
get in that release it would be *VERY* usefull. Maybe Linus is reading
this and will take care of it? Wow, I actually helped debug something in
linux! I feel so important (patting self on back). :-)
To anyone who may have been ignoring this thread because they
didn't know what a watchdog timer is, I offer an explanation. The
watchdog timer is an ISA card which plugs in and connects to the 'power
good' line from the power supply. The card contains timers which count
from whatever number they're set to (from 4 microseconds to 4800 seconds)
down to zero. If they reach zero, they reboot the computer. Software is
used to periodically reset the timer so it doesn't reach zero. If the
software fails (ie. the machine crashed), it reboots. The linux drivers
implement this functionality by providing /dev/watchdog, which, if opened
for writing and not written to in one minute, causes the machine to
reboot. The fancier version of the card also allows for temperature
monitoring through /dev/temperature.
Well, thanks again to everyone who lent a hand, and lets hope this
fix gets into 2.0.24.
Scott D. Webster I had far rather walk, as I do, in daily terror
Senior, Computer Science of eternity, than feel that this was only a
William Paterson College children's game in which all of the contestants
http://www.wilpaterson.edu would get equally worthless prizes in the end.
/home/students/webster/index.htm - T. S. Elliot
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next parent reply other threads:[~1996-10-28 18:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199610281651.KAA01979@atheist.tamu.edu>
1996-10-28 18:21 ` Scott D. Webster [this message]
[not found] <Pine.LNX.3.95.961028104309.2832A-100000@alphabits.spatz.com>
1996-10-28 16:51 ` Watchdog saga continues Richard Henderson
1996-10-28 16:06 Scott D. Webster
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox