guruqu
Posts: 1
Joined: Sat Apr 18, 2015 1:51 am

USBIP package not working in "Raspbian GNU/Linux 7 (wheezy)"

Sat Apr 18, 2015 2:04 am

I'm trying to use usbip package on raspberry pi2 with "Raspbian GNU/Linux 7 (wheezy)".
I'm following following steps to install and load the package.

Code: Select all

apt-get install usbip
modprobe usbip_core
modprobe usbip_host
usbipd -D
After this I'm trying to bind my Logitech USB receiver to give it a test.
At the time, my "lsusb" gives the following.

Code: Select all

[email protected]:/home/pi# lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 006: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
And after I'm trying to bind the device. Console gives me following error message.

Code: Select all

[email protected]:/home/pi# usbip --debug --log bind --busid=1-1.2
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip.c:134:[run_command] running command: `bind'
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:162:[unbind_other] 1-1.2:1.0 -> usbhid
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:162:[unbind_other] 1-1.2:1.1 -> usbhid
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:162:[unbind_other] 1-1.2:1.2 -> usbhid
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:65:[modify_match_busid] write "add 1-1.2" to /sys/bus/usb/drivers/usbip-host/match_busid
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:101:[bind_usbip] bind driver at 1-1.2:1.0 failed
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:101:[bind_usbip] bind driver at 1-1.2:1.1 failed
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:101:[bind_usbip] bind driver at 1-1.2:1.2 failed
usbip: error: could not bind device to usbip-host
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:65:[modify_match_busid] write "del 1-1.2" to /sys/bus/usb/drivers/usbip-host/match_busid
[email protected]:/home/pi#
Is this happening because the driver is in staging?
From searches I see other people using usbip from default repository on pi without a problem.
Is this problem particular to my version of Rasbian release? Should I fall back to previous version?
Or is compiling it myself the only option?

Many thanks!

lobothefoots
Posts: 2
Joined: Thu May 21, 2015 8:13 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Thu May 21, 2015 2:35 pm

Hi, I'm bumping the thread because I have the same problem.

Code: Select all

sudo apt-get install usbip
sudo modprobe usbip-core
sudo modprobe usbip-host
sudo usbipd -D
usbip list -l
Local USB devices
=================
 - busid 1-1 (0424:9514)
         1-1:1.0 -> hub

 - busid 1-1.1 (0424:ec00)
         1-1.1:1.0 -> smsc95xx

 - busid 1-1.3 (0f14:0012)
         1-1.3:1.0 -> cdc_acm
         1-1.3:1.1 -> cdc_acm

 - busid 1-1.4 (090c:1000)
         1-1.4:1.0 -> usb-storage

 - busid 1-1.5 (0f14:000b)
         1-1.5:1.0 -> cdc_acm
         1-1.5:1.1 -> cdc_acm
Next:

Code: Select all

usbip --debug --log bind --busid=1-1.4
Result in :

Code: Select all

usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip.c:134:[run_command] running command: `bind'
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:162:[unbind_other] 1-1.4:1.0 -> usb-storage
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:56:[modify_match_busid] problem getting match_busid attribute: No such file or directory
I find out that usbip code was moved Inside the kernel in aug 2014
http://thread.gmane.org/gmane.linux.kernel/1763771
Is it normal that debug shows path from build/Tools-TqR1ks instead of tools/usb/usbip ?

JuergenL
Posts: 2
Joined: Tue Jul 07, 2015 7:55 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Tue Jul 07, 2015 8:15 am

Any new conclusions? I have the same problem.
I'm using raspbian wheezy (2015-05-05).

Code: Select all

uname -a
Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
same error:

Code: Select all

sudo usbip --debug bind --busid 1-1.3
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip.c:134:[run_command] running command: `bind'
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:162:[unbind_other] 1-1.3:1.0 -> unknown
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:65:[modify_match_busid] write "add 1-1.3" to /sys/bus/usb/drivers/usbip-host/match_busid
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:101:[bind_usbip] bind driver at 1-1.3:1.0 failed
usbip: error: could not bind device to usbip-host
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:65:[modify_match_busid] write "del 1-1.3" to /sys/bus/usb/drivers/usbip-host/match_busid

cyquest
Posts: 1
Joined: Sun Jul 12, 2015 10:56 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Sun Jul 12, 2015 10:58 am

Code: Select all

# uname -a
Linux 4.0.7+ #802 PREEMPT Wed Jul 8 17:35:23 BST 2015 armv6l GNU/Linu

Code: Select all

# usbip --debug bind --busid 1-1.2
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip.c:134:[run_command] running command: `bind'
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:162:[unbind_other] 1-1.2:1.0 -> unknown
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:65:[modify_match_busid] write "add 1-1.2" to /sys/bus/usb/drivers/usbip-host/match_busid
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/usbip_bind.c:101:[bind_usbip] bind driver at 1-1.2:1.0 failed
usbip: error: could not bind device to usbip-host
usbip: debug: /build/linux-tools-TqR1ks/linux-tools-3.2.17/drivers/staging/usbip/userspace/src/utils.c:65:[modify_match_busid] write "del 1-1.2" to /sys/bus/usb/drivers/usbip-host/match_busid
Any new conclusions? I have the same problem.

JuergenL
Posts: 2
Joined: Tue Jul 07, 2015 7:55 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Wed Jul 15, 2015 10:48 pm

Hi,

it looks like the new kernel usbip modukes and old debian usbip tools (usbipd and usbip) do not match.
I've compiled the tools and the driver will bind right now.

Code: Select all

./usbip --debug bind -b 1-1.5
usbip: debug: usbip.c:141:[run_command] running command: `bind'
usbip: info: bind device on busid 1-1.5: complete

lobothefoots
Posts: 2
Joined: Thu May 21, 2015 8:13 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Thu Jul 16, 2015 6:09 pm

Can you tell us how you did compile the tools?

mbadders
Posts: 1
Joined: Fri Nov 27, 2015 11:38 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Fri Nov 27, 2015 11:41 am

Does anyone have information on how to recompile the tools? I'm also having the same problem.

Jarrett
Posts: 1
Joined: Mon Jan 11, 2016 8:45 am

Re: USBIP package not working in "Raspbian GNU/Linux 7 (whee

Mon Jan 11, 2016 8:56 am

Hi,

Here's how I got mine working. As much for me future reference as everyone else :)

I'm using a stripped down distro but I expect it'll work for all Wheezy kernels, at least.

(Props to http://shackspace.de/wiki/doku.php?id=berries )

Preamble:

Code: Select all

[email protected]:~# uname -a
Linux DietPi 3.6.11+ #1 PREEMPT Fri Jan 4 20:33:41 CET 2013 armv6l GNU/Linux
[email protected]:~# apt-get update && apt-get upgrade -y && apt-get install usbip -y
[email protected]:~# usbipd -D
The missing step:

Code: Select all

http://bit.ly/VUPf0k -O usbip.tar.gz
wget http://bit.ly/VUPf0k -O usbip.tar.gz
tar -xzf usbip.tar.gz -C /
reboot
And then:

Code: Select all

modprobe usbip-host
modprobe usbip-host
usbip list -l
usbip --debug bind --busid 1-1.5.2
Works for me!
Disclaimers:
Not all of these steps are necessary, probably. But they work and take, like, no time.
There is also a significant chance of breaking your system! Test this on a fresh image with nothing important.

Return to “Troubleshooting”