Results 1 to 3 of 3
Hai all,
I took a usb skeleton driver program from the kernel source code(drivers/usb/usb_skeketen.c) and compiled and inserted in to kernel (2.6.22) and using that module i transfer data from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-15-2009 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 16
usb-skeleton driver problem
Hai all,
I took a usb skeleton driver program from the kernel source code(drivers/usb/usb_skeketen.c) and compiled and inserted in to kernel (2.6.22) and using that module i transfer data from my usb device to the computer in RHEL. But if i tried in a debian distribution (2.6.22.3 kernel)the application program failed and the dmesg shows a warnig that i dont get in RHEL. Also the /proc/bus/usb/devices file shows the information about my device, but 'lsusb'command does't show anything.Following are the different outputs.
*********dmesg output*******************
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
/home/newshabeer/test/mice.c: USB Skeleton device now attached to USBSkel-192
skeleton 2-1:1.0: no suspend for driver skeleton?
**********/proc/bus/usb/devices*****************
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 8 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0457 ProdID=000d Rev= 1.00
S: Manufacturer=ABCD
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=skeleton
E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms
*************lsusb****************
Bus 004 Device 003: ID 0b38:0003
Bus 004 Device 002: ID 1241:1122 Belkin
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
In RHEL after inserting my module i check the /sys directory, from that i got the device number, create device file and using that i transfer data with my device. Is it correct way??
Please anybody can help me........]
regards shabeer
- 07-21-2009 #2
But why have you compiled the program , just to tranfer data to usb??
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
- 07-21-2009 #3Just Joined!
- Join Date
- Apr 2007
- Posts
- 16
we develope a camera module, it has a usb port and i need to transfer images from camera to system.


Reply With Quote
