LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-20-2005, 11:15 PM   #1
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Rep: Reputation: 15
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
 
Old 11-21-2005, 03:05 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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.
 
Old 11-22-2005, 06:29 PM   #3
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Original Poster
Rep: Reputation: 15
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?


Last edited by bhomass; 11-22-2005 at 07:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
device driver jful99 Programming 6 10-09-2005 12:34 AM
Device driver from 2.4 to 2.6 setu_garg Programming 1 09-16-2005 11:27 AM
device driver carthyc Linux - Newbie 1 07-07-2005 07:23 AM
Device Driver deveshs Programming 1 04-26-2005 11:53 PM
[debug]what does the following debug information mean icoming Programming 21 06-08-2004 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration