LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-03-2008, 04:24 AM   #1
swedish_lunacy
LQ Newbie
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 5
Posts: 10

Rep: Reputation: 0
Manual usb driver binding - why do I suck at it ?


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
 
Old 02-03-2008, 05:55 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
try this from google

http://libk8055.sourceforge.net/
 
Old 02-03-2008, 12:28 PM   #3
swedish_lunacy
LQ Newbie
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 5
Posts: 10

Original Poster
Rep: Reputation: 0
Yep, been through that ( and many other k8055 specific how-to's as well ). Still no joy.

I am trying to find out how to manually assign drivers properly because this could help me with any USB device ( not just the k8055 ).

So I would still love to have help with the binding and unbinding
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
manual mount - External usb hard drive (in ubuntu) tripled2006 Ubuntu 10 10-10-2011 03:36 PM
manual mount - external usb hdd (ubuntu) tripled2006 Linux - General 1 01-15-2007 10:08 AM
driver needed for R Driver II USB to IDE cable for Ent . Linux 4.0 byju_das Linux - Hardware 1 12-01-2006 01:48 PM
R-Driver II usb 2.0 to ide cable driver for red hat Enterprise Edition 4. byju_das Linux - Hardware 0 11-22-2006 11:37 PM
Dependencies suck florinel Linux - General 1 08-23-2003 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration