OpenWrt Forum Archive

Topic: Missing usbip packages for ar71xx trunk snapshot?

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

Hi,

isn't there a kmod-usbip-server package? --> kmod-usbip-server_3.7.7-1_ar71xx.ipk   
That's the answer of a absolute beginner, who tried whole last night to setup usb over ip on his WR703N. Without any success.
I was able to install the package (after upgrading the kernel to 3.7.7.1), but:
Running "usbip -D" always got the message "usbip not found"

kmod-usbip is apparently just the kernel module, which does not include the usbip command (that's one of the separate packages that're missing). Seems that compilation failed on those for some reason.

They are available on the older RC1 and I was able to install them, but unfortunately they require glib which is too large to also install sad

(Last edited by roger_ on 15 Feb 2013, 20:21)

You mean, that even if I install the generic flashimage from 11/2012, I will have no chance to get usbip working with my WR703N??

Doesn't seem like there's enough storage space to add the usbip package and its dependencies. Not sure why it still requires glib2 (looks like there's a recent patch to fix this).

Maybe someone will make an image that has it built in, which I think would make it smaller.

(Last edited by roger_ on 15 Feb 2013, 21:38)

Got it to work.

Here's a WR703n image with glib2 built in (2/17/13 trunk snapshot). Write that to your firmware (basically reinstall OpenWrt) and then install usbip, usbip-client and usbip-server from here.

Now you just need to set up the software (see the wiki) and your OpenWrt firewall, and it should be okay.

Note that if you're using Windows as a client then you may  to use a modified version version of usbip.exe that you can find here (the official one crashes when trying to list devices).

Hopefully the glib2 dependency will be removed at some point, which would save 700 kb (about half the available space on my WR703n).

(Last edited by roger_ on 17 Feb 2013, 19:51)

Hi roger,

thanks for this wonderful info.
Will try soon to get it working too.

.....and then install usbip, usbip-client and usbip-server......
Do I really need the usb-client?

One question. Sorry I am primary windows user ;-(
How can I install packages when I have them on my harddisk? Guess I have to copy them into the temp-folder. But how without ftp-server????
I only installed packages from Inet, and that was beautiful easy for me.



PS:
Tried to install the package in this way (without success). Here the console output:
----------------------------
root@OpenWrt:~# opkg install http://downloads.openwrt.org/attitude_a … ar71xx.ipk
Downloading http://downloads.openwrt.org/attitude_a … r71xx.ipk.
Installing usbip (1.1.1-2) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for usbip:
*      libsysfs *      libwrap *       kmod-usbip *
* opkg_install_cmd: Cannot install package usbip.
----------------------------

After flashing the image, i have:
--> BARRIER BREAKER (Bleeding Edge, r35608)
-->root@OpenWrt:~# uname -a
     Linux OpenWrt 3.7.8 #1 Sat Feb 16 18:44:23 UTC 2013 mips GNU/Linux

Can it be, that i took the wrong way for installing the package?
Or can it be, that i installed the firmware wrong. I took luci on my old image and made a "flash firmware".
He told me, that he will keep the configuration files.


PS2:
did a opkg update before installing the package.
------------------------------
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker.
root@OpenWrt:~# opkg install http://downloads.openwrt.org/attitude_adjustment/12
.09-rc1/ar71xx/generic/packages/usbip_1.1.1-2_ar71xx.ipk
Downloading http://downloads.openwrt.org/attitude_a … r71xx.ipk.
Installing usbip (1.1.1-2) to root...
Installing libsysfs (2.1.0-2) to root...
Downloading http://downloads.openwrt.org/snapshots/ … r71xx.ipk.
Installing libwrap (7.6-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … r71xx.ipk.
Installing kmod-usbip (3.7.8-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … r71xx.ipk.
Configuring kmod-usbip.
Configuring libsysfs.
Configuring libwrap.
Configuring usbip.
--------------------------------
Now its without errors, but he took other packages from a different package directory.
Is this OK so far?



greetings/brutzler

(Last edited by brutzler on 17 Feb 2013, 14:32)

OK,

Openwrt is running so far. Could bind my usb-device.
With the new usbip.exe i can list the devices and attach it.

What did you mean with ....OpenWrt firewall...?
Never read something to modify that module


Now is the Problem with Windows.
I got 2 "unknown devices" in the devicemanager of my W7/64bit.
After installing the driver für the USB-device (it's an Arduino UNO) I got an error:

-----------------------------------------------
C:\Temp\usbip_win\program\cmdline>usbip -a -D 192.168.1.250 1-1
usbip for windows ($Id$)

usbip dbg: usbip_network.c: 268 (tcp_connect ) trying 192.168.1.250 port 3240

usbip dbg: usbip_network.c: 288 (tcp_connect ) connected to 192.168.1.250:3240
usbip dbg:       usbip.c: 139 (query_interface0) exportable 1 devices
usbip dbg:       usbip.c: 156 (query_interface0)      1-1: unknown vendor : unkn
own product (2341:0001)
usbip dbg:       usbip.c: 157 (query_interface0)         : /sys/devices/platform
/ehci-platform/usb1/1-1
usbip dbg:       usbip.c: 158 (query_interface0)         : unknown class / unkno
wn subclass / unknown protocol (02/00/00)
usbip dbg:       usbip.c: 178 (query_interface0)         :  0 - unknown class /
unknown subclass / unknown protocol (02/02/01)
usbip dbg:       usbip.c: 178 (query_interface0)         :  1 - unknown class /
unknown subclass / unknown protocol (0a/00/00)
usbip dbg:       usbip.c: 181 (query_interface0)
usbip dbg: usbip_network.c: 268 (tcp_connect ) trying 192.168.1.250 port 3240

usbip dbg: usbip_network.c: 288 (tcp_connect ) connected to 192.168.1.250:3240
usbip dbg:       usbip.c: 208 (import_device) call from attch here

usbip dbg:       usbip.c: 210 (import_device) return from attch here

usbip dbg:       usbip.c: 217 (import_device) devfd:002CF5D4

new usb device attached to usbvbus port 1

*** ERROR: get overlapping failed: 87


usbip dbg:       usbip.c: 307 (attach_device) closing connection to device
usbip dbg:       usbip.c: 310 (attach_device) detaching device
usbip dbg:       usbip.c: 313 (attach_device) closing connection to peer
usbip dbg:       usbip.c: 316 (attach_device) done


???

(Last edited by brutzler on 17 Feb 2013, 15:58)

I'm not too familiar with usbip, so I'm not sure what could be wrong. The daemon in OpenWrt should say when someone connects (run it as "usbipd &" after binding it). If not then make sure you configured /etc/config/firewall.

I recommend testing it first with a USB flash drive.

roger_ wrote:

I recommend testing it first with a USB flash drive.

Hi, using a USB-Stick it was sucessfully.
W7 assigned a drive letter and I could access the drive.

After this i tried to use a USB-SD-Card Reader. This part was recognized as "Generic 2.0 Reader"
But no Drive letter assigned.

Looks, like Windows has problems with some USB-devices. Like my Card-Reader or the Arduino.

Card-Reader is not the problem, but connecting the Arduino is my aim.


BTW: Tried same thing with Openwrt-router and Raspberry Pi -> Same USB-device, same problems.

Hello,

this is an old thread but I cannot find usbip tools:

root@OpenWrt:~# opkg list | grep usbip
kmod-usbip - 3.10.49-1 - USB-over-IP kernel support
kmod-usbip-client - 3.10.49-1 - USB-over-IP client driver
kmod-usbip-server - 3.10.49-1 - USB-over-IP host driver

I am using trunk/ar71xx/packages.

Does usbip-server package became old package ?

I am also confused because I really don't understand how to find old packages.

Could someone explain how I can run ?
./scripts/feeds update oldpackages 

Do I need to run it on OpenWrt or do I need to make a compilation environment  on my "desktop" for it ?

(Last edited by Jodaille on 21 Aug 2014, 21:27)

Seems like the package is currently abandoned, and it doesn't seem to build.

Hello _roger,

thank you for your answer.

The discussion might have continued from here.