From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9cc91b8a7acf664f6877be085154f879.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199610262135.RAA04497@everest.micro.umass.edu> Date: Sat, 26 Oct 1996 17:35:44 -0400 (EDT) From: Scott D. Webster Subject: Re: watchdog woes In-Reply-To: <199610231509.LAA00769@linux03.amt.tay1.dec.com> On Wed, 23 Oct 1996 jestabro@amt.tay1.dec.com wrote: Jay, Sorry for taking so long to reply, but I've hardly read my e-mail for over a week and am catching up this weekend. That said, thank you, thank you, thank you for looking at this. I think these watchdog timers are *REALLY* usefull little gadgets and would really like to see them work on alpha. I'm willing to do whatever I can, to the limits of my ability, to help get this working. I was even thinking of writing a mini-howto about it if I finally figure it all out. > >>> "Scott D. Webster" said: > > I've been trying to get a watchdog timer board running in a EB164 > > to no avail. I was wondering if I could entice any of you system > > programmer guru types to take a peak at the code and see if you find > > anything that would suggest that it just wont work on an alpha. The > > driver code is in linux/drivers/char/wdt.c. > > Since it just uses inb/outb, it should be fine. Did you check the card > configuration versus the driver configuration? There's some comments in > the code that lead me to believe you have to manually configure the driver > for the jumper settings (?) on the card, ie IRQ and IO base. Well, I actually did it kind of backwards. I set the card to match the default driver settings of IRQ 14, ADDR 0x240. > > Linux just doesn't seem to know that either the driver or the card > > exists. I'd think I should at least get an error message if the driver > > initialization was crapping out on boot up. > > You're correct, the driver ought to print something out if it gets called > to init, ie wdt_init(), even if the hardware isn't present, as noted by the > comment: > > * You must set these - there is no sane way to probe for this board. I made an interesting discovery. I tried compiling w/ the software only option and everything worked fine. The driver reports its existance between the ps2 mouse initialization and the ramdisk initialization. Writing to /dev/watchdog gives no error messages, and typing "cat > /dev/watchdog" and waiting a minute reboots the machine. > So, did you try to configure it as a MODULE? No, I tried to compile it into the kernel. >Or, did the "make boot" actually compile a wdt.o? Hmmm... I'll have to take a look at that on monday (I'm not on-site right now). Off the top of my head, I'd say it compiled it. Whether it actually got linked into the kernel is another story. It could have something to do with the driver not getting linked in for some unknown reason. That actually sounds like the most likely explanation. Maybe its some kind of Makefile or config problem. As I said, I'll try again monday and let you know what I find. And thank you again for your help. 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