OpenWrt Forum Archive

Topic: usbip-server does not work

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,
please can someone help me with usbip-server on trunk? I have flashed an TP-Link TL-MR3020 with the trunk version from 04/16/2012 and I can't get it to work.

May be it's simular to this bug...
https://bugs.launchpad.net/ubuntu/+sour … bug/900384


root@OpenWrt:~# lsmod | grep usb
usbip_host             11623  0
usbip_core              4385  1 usbip_host
ledtrig_usbdev          2112  0
usbcore               103780  5 usbip_host,ohci_hcd,ledtrig_usbdev,ehci_hcd
usb_common               562  1 usbcore
nls_base                4878  1 usbcore
root@OpenWrt:~# usbipd -D
usbip err: stub_driver.c:  33 (open_sysfs_stub_driver) usbip_common_mod.ko and usbip.ko must be loaded

** ERROR **: driver open failed
aborting...
Aborted
root@OpenWrt:~# usbip_bind_driver --list
List USB devices
 - busid 1-1 (04f9:0184)
         1-1:1.0 -> none
         1-1:1.1 -> none
root@OpenWrt:~# usbip_bind_driver --usbip 1-1
** (process:1306): DEBUG:  1-1:1.0      -> none
** (process:1306): DEBUG:  1-1:1.1      -> none

** (process:1306): WARNING **: add 1-1 to match_busid, failed
root@OpenWrt:~# opkg list-installed | grep usb
kmod-ledtrig-usbdev - 3.2.14-1
kmod-usb-core - 3.2.14-1
kmod-usb-ohci - 3.2.14-1
kmod-usb2 - 3.2.14-1
kmod-usbip - 3.2.14+0.1.7-2
kmod-usbip-server - 3.2.14+0.1.7-2
usbip - 0.1.7-2
usbip-server - 0.1.7-2
root@OpenWrt:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.14 ehci_hcd
S:  Product=Atheros built-in EHCI controller
S:  SerialNumber=ar933x-ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04f9 ProdID=0184 Rev= 1.00
S:  SerialNumber=000E5J933430
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  16 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=03(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=03(Int.) MxPS=   8 Ivl=100ms

(Last edited by axel-dd on 16 Apr 2012, 21:48)

How long does it take to include the patch into the official openwrt packages? Sorry I don't know how to create such a patched package. It is too complicated. sad

The discussion might have continued from here.