LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   debug a device driver (https://www.linuxquestions.org/questions/debian-26/debug-a-device-driver-385039/)

bhomass 11-20-2005 11:15 PM

debug a device driver
 
I have been trying to get the usbvision device driver to work for a while. for now, at least it is loaded using modprobe. however, upon running xawtv, it freezes, and can not be killed using kill -9.

I read that there are so called "standard debugging tools" for device drivers that work at the application level. could someone enlighten me what these tools might be? also helpful would be some nice tutorials on device driver dev/debugging.

Thanks

nx5000 11-21-2005 03:05 AM

This book is very good:
http://www.xml.com/ldd/chapter/book/

I used it to develop ethernet driver and char drivers.
Chapter 4 deals with debugging . Basically gdb or printk.. Not an easy task.

bhomass 11-22-2005 06:29 PM

Thanks, I found the reading material.

I am still having some trouble working with this thing.

my code requires setting a debug parameter in order to do printk. I tried
insmod usbvision.o debug=1, but I got
insmod: error inserting 'usbvision.o': -1 Invalid module format

modprobe usbvision works. but how do I set the debug parameter in that case?



All times are GMT -5. The time now is 06:24 PM.