* Re: Watchdog saga continues...
[not found] <199610281651.KAA01979@atheist.tamu.edu>
@ 1996-10-28 18:21 ` Scott D. Webster
0 siblings, 0 replies; 3+ messages in thread
From: Scott D. Webster @ 1996-10-28 18:21 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <Pine.LNX.3.95.961028104309.2832A-100000@alphabits.spatz.com>]
* Re: Watchdog saga continues...
[not found] <Pine.LNX.3.95.961028104309.2832A-100000@alphabits.spatz.com>
@ 1996-10-28 16:51 ` Richard Henderson
0 siblings, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1996-10-28 16:51 UTC (permalink / raw)
> Is there a better way to verify this?
The ld "-M" option produces a rather complete link map on stdout.
More interestingly for some cases is the rationale it gives for
extracting object files from archives.
> What controls which objects get linked in?
An object is pulled out of an ar archive only if one of its symbols
are required by an outstanding undefined symbol.
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.
r~
--- 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
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 3+ messages in thread
* Watchdog saga continues...
@ 1996-10-28 16:06 Scott D. Webster
0 siblings, 0 replies; 3+ messages in thread
From: Scott D. Webster @ 1996-10-28 16:06 UTC (permalink / raw)
All (& especially Jay & Alan),
I'm back at tracking down problems w/ the watchdog drivers. I
think I'm getting somewhere. I just re-compiled a 2.0.23 kernel with
support for the hardware watchdog timer. The *.o file is generated:
1003 alphabits:/usr/src/linux/drivers/char $ ls -l wdt.*
-rw-r--r-- 1 root root 5270 Apr 12 1996 wdt.c
-rw-rw-r-- 1 root root 10032 Oct 28 10:22 wdt.o
So, I figure if I can find the same (unique) text string in wdt.o
and in vmlinux, then it must have been linked. To test this theory I
tried this:
1006 alphabits:/usr/src/linux/drivers/char $ strings serial.o | grep
'serial driver'
Couldn't register serial driver
1003 alphabits:/usr/src/linux $ strings vmlinux | grep 'serial driver'
Couldn't register serial driver
That seems to prove my theory. So, next I try:
1008 alphabits:/usr/src/linux/drivers/char $ strings wdt.o | grep WDT500
WDT500/501-P driver at %X(Interrupt %d)
1005 alphabits:/usr/src/linux $ strings vmlinux | grep WDT500
1006 alphabits:/usr/src/linux $
So, it appears that the wdt.o isn't being linked in to the kernel.
Is there a better way to verify this? What controls which objects get
linked in? I'll nose around myself, but I'm sure somebody out there
probably knows the answer off the top of his (or her) head (Linus maybe?).
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-10-28 18:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199610281651.KAA01979@atheist.tamu.edu>
1996-10-28 18:21 ` Watchdog saga continues Scott D. Webster
[not found] <Pine.LNX.3.95.961028104309.2832A-100000@alphabits.spatz.com>
1996-10-28 16:51 ` Richard Henderson
1996-10-28 16:06 Scott D. Webster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox