I am running 2.6.17-1.2145_FC5xen0 and I am having a serious problem trying to manually bind a driver to a USB device ( Velleman k8055 ).
The device seems to automatically bind to /sys/bus/usb/drivers/usb instead of /sys/bus/usb/drivers/usbfs ( which I am semi-sure is what the device needs to be using ). I have trawled the web and spent many hours on trial and error but I am seriously stuck
running
Code:
echo -n "3-1" > /sys/bus/usb/drivers/usb/unbind
seems to unbind the device from the driver ok. After unbinding, the "driver" symlink disappears from the /sys/bus/usb/devices/3-1/ directory. And the "3-1" symlink disappears from the /sys/bus/usb/drivers/usb directory. Which all shows that the unbind worked
But then I can't bind it to the usbfs driver using /sys/bus/usb/drivers/usbfs/bind.
Code:
[root@safe /]# echo -n "3-1" > /sys/bus/usb/drivers/usbfs/bind
-bash: echo: write error: No such device
Neither can I bind it back onto /sys/bus/usb/drivers/usb/bind
Before unbinding:
Code:
[root@safe]# ls -la /sys/bus/usb/drivers/usb/
total 0
drwxr-xr-x 2 root root 0 Feb 3 22:13 .
drwxr-xr-x 8 root root 0 Jan 27 20:51 ..
lrwxrwxrwx 1 root root 0 Feb 3 22:13 3-1 -> ../../../../devices/pci0000:00/0000:00:03.2/usb3/3-1
-rw-r--r-- 1 root root 0 Feb 3 21:11 bind
-rw-r--r-- 1 root root 0 Feb 3 21:10 unbind
lrwxrwxrwx 1 root root 0 Feb 3 15:25 usb1 -> ../../../../devices/pci0000:00/0000:00:03.0/usb1
lrwxrwxrwx 1 root root 0 Feb 3 15:25 usb2 -> ../../../../devices/pci0000:00/0000:00:03.1/usb2
lrwxrwxrwx 1 root root 0 Feb 3 15:25 usb3 -> ../../../../devices/pci0000:00/0000:00:03.2/usb3
lrwxrwxrwx 1 root root 0 Feb 3 15:25 usb4 -> ../../../../devices/pci0000:00/0000:00:03.3/usb4
[root@safe /]# ls -la /sys/bus/usb/devices/3-1/
total 0
drwxr-xr-x 5 root root 0 Feb 3 21:40 .
drwxr-xr-x 6 root root 0 Feb 3 21:36 ..
drwxr-xr-x 5 root root 0 Feb 3 21:36 3-1:1.0
-r--r--r-- 1 root root 4096 Feb 3 21:36 bcdDevice
-rw-r--r-- 1 root root 4096 Feb 3 21:36 bConfigurationValue
-r--r--r-- 1 root root 4096 Feb 3 21:36 bDeviceClass
-r--r--r-- 1 root root 4096 Feb 3 21:36 bDeviceProtocol
-r--r--r-- 1 root root 4096 Feb 3 21:36 bDeviceSubClass
-r--r--r-- 1 root root 4096 Feb 3 21:36 bmAttributes
-r--r--r-- 1 root root 4096 Feb 3 21:40 bMaxPacketSize0
-r--r--r-- 1 root root 4096 Feb 3 21:36 bMaxPower
-r--r--r-- 1 root root 4096 Feb 3 21:36 bNumConfigurations
-r--r--r-- 1 root root 4096 Feb 3 21:36 bNumInterfaces
lrwxrwxrwx 1 root root 0 Feb 3 21:36 bus -> ../../../../../bus/usb
-r--r--r-- 1 root root 4096 Feb 3 21:40 configuration
-r--r--r-- 1 root root 4096 Feb 3 21:36 devnum
lrwxrwxrwx 1 root root 0 Feb 3 21:36 driver -> ../../../../../bus/usb/drivers/usb
drwxr-xr-x 2 root root 0 Feb 3 21:36 ep_00
-r--r--r-- 1 root root 4096 Feb 3 21:36 idProduct
-r--r--r-- 1 root root 4096 Feb 3 21:36 idVendor
-r--r--r-- 1 root root 4096 Feb 3 21:40 manufacturer
-r--r--r-- 1 root root 4096 Feb 3 21:36 maxchild
drwxr-xr-x 2 root root 0 Feb 3 21:36 power
-r--r--r-- 1 root root 4096 Feb 3 21:40 product
-r--r--r-- 1 root root 4096 Feb 3 21:36 speed
--w------- 1 root root 4096 Feb 3 21:40 uevent
lrwxrwxrwx 1 root root 0 Feb 3 21:40 usb_device:usbdev3.4 -> ../../../../../class/usb_device/usbdev3.4
-r--r--r-- 1 root root 4096 Feb 3 21:36 version
cat /pro/bus/usb/devices gives
Code:
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=10cf ProdID=5503 Rev= 0.00
S: Manufacturer=Velleman
S: Product=USB K8055
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
E: Ad=01(O) Atr=03(Int.) MxPS= 8 Ivl=10ms
Running as root and have 644'd pretty much everything in sight !
HELP ! Going insane