Hello Friends,
I am making usb device driver in linux using usb-skeleton.c which comes with
new kernel 2.6.32.

 I inserted Product id and Vendor ID in usb-skeleton. Then I compiled my
program using following code in makefile

obj-m += usb-storage.o
all:
    make -C /lib/modules/$(shell uname -r)/build/M=$(PWD) modules
clean:
    make -C /lib/modules/$(shell uname -r)/build/M=$(PWD) clean

clean-files := Module.symvers

Then I entered follwing command in terminal

make -C /lib/modules/`uname -r`/build/ M=`pwd`

so i got usb-storage.ko file.

Then I inserted my Module in Kernel using

insmod usb-storage.ko command.

Then When I dmesg i got following output:

usb 5-1: new full speed USB device using uhci_hcd and address 9
usb 5-1: not running at top speed; connect to a high speed hub
usb 5-1: New USB device found, idVendor=03f0, idProduct=5307
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 5-1: Product: v165w
usb 5-1: Manufacturer: HP
usb 5-1: SerialNumber: 00000000000430
usb 5-1: configuration #1 chosen from 1 choice
skeleton 5-1:1.0: USB Skeleton device now attached to USBSkel-192

Now, What to do ? Further skel_open function is not working...
please help . Please tell me.

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to