Linux-Noob Forums

Full Version: deive driver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Hi ,

 

I have modified the usb-skeleton.c to work for my first usb device driver.

I have just modified the

#define USB_SKEL_VENDOR_ID

#define USB_SKEL_PRODUCT_ID

in usb-skeleton.c according to my need.

when I give insmod init function gets called and when i give rmmod exit function gets called correctly.

When i insert my device probe hardly get called.

Do i need to add anyother thing in driver code to detect my deive.

Looking for all your help

 

T.Senthil

what distro is this and what device is it ?

Quote:Do i need to add anyother thing in driver code to detect my deive. Looking for all your help
 

Yeah, you need to find the h/w yourself. You will need to work out how to detect the I/O port and IRQ, either doing it automatically or providing a way to do it manually.

 

Linux Journal has some good stuff:

[/url]http://www.linuxjournal.com/article/7353

http://www.linuxjournal.com/article/4786

http://www.linuxjournal.com/article/2476 - more generic stuff

http://www.linuxjournal.com/article/1219 - more general again

 

[url=http://www.linuxjournal.com/article/1220]http://www.linuxjournal.com/article/1220 - Possibly the best one, discussing Device Discovery.

 

:)