From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4c1352b85d4f6691dedf06c3eed734b5.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199610281800.KAA28959@netcom12.netcom.com> Date: Mon, 28 Oct 1996 13:21:22 -0500 (EST) From: Scott D. Webster Subject: Re: Watchdog saga continues... In-Reply-To: <199610281651.KAA01979@atheist.tamu.edu> On Mon, 28 Oct 1996, Richard Henderson wrote: > 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. > > > --- 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