[1596] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Device Driver Lockups - Debugging Help Needed!

daemon@ATHENA.MIT.EDU (MrDJ@aol.com)
Sat Jan 6 09:06:55 1996

Date: 	Fri, 5 Jan 1996 20:45:58 -0500
From: MrDJ@aol.com
To: linux-kernel@vger.rutgers.edu, linux-net@vger.rutgers.edu,
        linux-config@vger.rutgers.edu


I am writing a driver (actually, migrating a driver from a TSR from a DOS
app).
It's essentially a serial driver, but for a Synchronous card by Arnet. All it
is intended to do is trap IRQ's from the card, and get the data out of the
card's buffer, and store it in a memory buffer that can later be read from by
the driver_read() function. The driver is a loadable module - I have an
init_module() and cleanup_module() function instead of driver_init()...

For some reason, the driver only loads properly periodically. Sometimes it
loads but doesn't actually print any of the stuff that I print in my
printk()'s on init. Other times, it prints my messages, and then freezes up
the machine. And yet other times, it freezes without printing..

I don't even know where to start on debugging this.. What should I look for?
 I tried using kgdb, but it gets Oops messages on startup and can't find any
of my code when I use a command line of "insmod arnet.o" (arnet.o is the name
of the driver file.)

Any tips would be appreciated.

Thanks in advance!

DJ


home help back first fref pref prev next nref lref last post