Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Smile 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 ( 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?

    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

    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

  2. #2
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Mumbai, India
    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

  3. #3
    we develope a camera module, it has a usb port and i need to transfer images from camera to system.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts