Find the answer to your Linux question:
Results 1 to 9 of 9
Hi, I am new to Linux drivers. I am testing USB driver using testusb.c utility. But I am getting following errors ./testusb -a no test devices recognized ./testusb -D/proc/bus/usb/001/005 ./testusb: ...
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    7

    USB testing

    Hi,
    I am new to Linux drivers.
    I am testing USB driver using testusb.c utility.
    But I am getting following errors

    ./testusb -a
    no test devices recognized


    ./testusb -D/proc/bus/usb/001/005
    ./testusb: /proc/bus/usb/001/005 may see only control tests
    /proc/bus/usb/001/005 test 0 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 1 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 2 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 3 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 4 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 5 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 6 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 7 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 8 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 9 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 10 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 11 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 12 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 13 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 14 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 15 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 16 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 17 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 18 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 19 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 20 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 21 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 22 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 23 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 24 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 25 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 26 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 27 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 28 --> 25 (Inappropriate ioctl for device)
    /proc/bus/usb/001/005 test 29 --> 25 (Inappropriate ioctl for device)

    Can any one please help me with the detailed steps of testing USB?

    Regards,
    Sandeep.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    1. Did you read in detail and understand this web page? USB Testing on Linux
    2. What distribution+version of Linux are you running?
    3. What hardware (computer make+model) are you running it on?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Dec 2011
    Posts
    7
    ya..read that page..
    I am using red hat linux 6.32 running on x86 hardware..
    Actually I have downloaded testusb.c from the USB testing site and made a module usbtest.ko
    and then I did insmod usbtest.ko..
    After this I generated testusb.o executable and ran..
    Is there anything missing in the above procedure?

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    This is the old Red Hat 6.32? What kernel is it running?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Dec 2011
    Posts
    7
    kernel version is 2.6.32-131.0.15.el6.i686

  6. #6
    Just Joined!
    Join Date
    Dec 2011
    Posts
    7
    Can any one please let me know detailed procedure for testing usb?

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Ok. You are running RHEL 6.x with the 2.6.32 kernel. There IS no Red Hat 6.32 version, in case you wanted to know... I'm running 6.0 with the latest kernel which is 2.6.32-131.21.1. I haven't tried this USB test program myself, but I can when I have a bit of time to see what your problem may be. In any case, the documentation (and problem the usbtest.c code) is from 2007, which is quite dated at this point, so there may well be issues with the kernel driver as well as the usbtest program. I have not had time to delve into their internals to see.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Quote Originally Posted by sandeepsan View Post
    Can any one please let me know detailed procedure for testing usb?
    You should probably contact the kernel maintainers at The Linux Foundation and The Linux Kernel Archives for help with this. FWIW, Linus Torvalds works for the Linux Foundation.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  9. #9
    Just Joined!
    Join Date
    Dec 2011
    Posts
    7
    Thanks for the information.
    Does any one have kernel module for USB testing?

Posting Permissions

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