obcd
Posts: 917
Joined: Sun Jul 29, 2012 9:06 pm

Re: USB redirector

Fri Feb 08, 2013 1:07 pm

usbip doesn't work with usb devices using streaming. (isochronous transfers if I remember the term right.)
usb2audio are such devices
webcams are such devices
dvb sticks are also such devices

At least, that's my experience.

Mafik
Posts: 1
Joined: Sun Feb 17, 2013 5:24 pm

Re: USB redirector

Sun Feb 17, 2013 5:36 pm

Hello,

I have same problem with win client. But I tried to redirect FTDI device to win machine. First 5-10 second I see that device connected to Win client, but in this time I see that raspberry hangs.
Actually, previously usbip works fine with this device, but not on raspberry (ubuntu+usbip client v2)
So, any help will appreciated.
P.S. sorry for my bad English

obcd
Posts: 917
Joined: Sun Jul 29, 2012 9:06 pm

Re: USB redirector

Sun Feb 17, 2013 9:34 pm

Have you tried the ftdi device on the pi itself?
Some seem to hang it as soon as you query it or try to access it.
Normally, it should create a ttyUSBx device.

stty -F /dev/ttyUSBx -a shows the settings of the port and is sometimes all what is needed to hang the system.

MrHandyman
Posts: 9
Joined: Tue Feb 26, 2013 10:00 pm

Re: USB redirector

Fri Mar 08, 2013 6:44 pm

adrianeccles wrote:Hi All,

This is what I did to get usb redirector working on raspbian.

sudo aptitude install build-essential
sudo apt-get install cvs subversion git-core mercurial

Take ownership of /usr/src:
sudo chown $pi /usr/local/src
sudo chmod u+rwx /usr/local/src

Download and Copy and extract the ARM Version of the software to /usr/src
(http://www.incentivespro.com/usb-redire ... arm.tar.gz)

Perform the procedure described in the following link by Shig
(Ignore the following command: mv rpi-3.2.27)
http://www.raspberrypi.org/phpBB3/viewt ... 71&t=17666

Navigate to /usr/src/usb-redirector-linux-arm
install: sudo ./installer.sh install-server

The installer should auto compile build and install :)

Hope this helps,

Cheers,
Adrian
Could you tell me which OS Distribution you've used ? I tried it with the most from this List many times but everytime the daimon doesn't start up.

oramarin
Posts: 1
Joined: Sun May 26, 2013 12:31 pm

Re: USB redirector

Sun May 26, 2013 12:39 pm

Hi obcd,
I can't PM yet but could you send me a link to you updated usbip software.
It sounds great !


I manage not make everything work on my pi with this tread !
Thanks to all of you

jaslo
Posts: 4
Joined: Sat Jun 01, 2013 12:31 am

Re: USB redirector

Thu Jun 20, 2013 9:04 pm

I went throught "secretagent"'s procedure and got the usb redirector working.
I will share the .ko files that I built that I think will allow anyone to make usbipd -d work.
These are build from the latest 3.6.trunk headers, I am running (uname -r 3.6.11+, the 05-25 release of raspbian wheezy).

https://dl.dropboxusercontent.com/u/6512734/kofiles.zip

jaslo
Posts: 4
Joined: Sat Jun 01, 2013 12:31 am

Re: USB redirector

Thu Jun 20, 2013 9:36 pm

I don't know too much about how kernel drivers load, but I found the ko files were installed into:
/lib/modules/3.6.11+/extra
and in /lib/modules/3.6.11+ in the modules.dep file at the bottom was:

extra/vhci-hcd.ko: extra/usbip-core.ko
extra/usbip-core.ko:
extra/usbip-host.ko: extra/usbip-core.ko

jaslo
Posts: 4
Joined: Sat Jun 01, 2013 12:31 am

Re: USB redirector

Thu Jul 04, 2013 8:18 am

Just copying the ko files into the /extra directory worked ok as long as I ran:

sudo depmod

afterwards
then I could successfully do the insmod commands, etc.

firefinger
Posts: 1
Joined: Sun Jul 21, 2013 12:08 pm

Re: USB redirector

Sun Jul 21, 2013 12:18 pm

I also got this working using this thread (lots of trying stuff) and can now bind USB devices on the host, run the usbipd redirector, list devices in Windows x64 Ultimate and attach/enumerate them on Windows.

Two serious caveats though, 1) It will bind/attach any devices, including mass storage (usb sticks) and webcams. But webcams fail to actually run with any Windows apps. 2) While the USB stick correct enumerates on Windows, shows up in pnp popups and ultimately explorer, accessing it is miserably slow. As in <200KBytes/sec -- and that is on a LAN @ 100Mbit Ethernet (really GigE, but the Raspberry Pi only has a 100Mbit NIC. Even when it's not "sputtering", the peak transfer rate was only 2-3MB/sec.

So, while i can transfer 64 MB files over and back, it takes WAY WAY WAY longer than it should.

marco.weinkauf
Posts: 1
Joined: Tue Jul 23, 2013 7:39 pm

Re: USB redirector

Tue Jul 23, 2013 7:45 pm

Hi,

I have followed the instruction from "secretagent" and I can setup pi to work as a server host.

Now I am looking for the proper configuration how to setup the pi as a client host. I assume it has something to do with the load procedure of the modules.

Any help appreactiated

ndillon3157
Posts: 2
Joined: Mon Oct 07, 2013 7:52 pm

Re: USB redirector

Mon Oct 07, 2013 8:40 pm

Hello everyone,

I see some people have been able to get this to work and some haven't. Mine, for some reason, is not working correctly.

I'm running Rasbian Wheezy (2013-09-25). I followed secret agent's guide to get usbip working after i followed cubii's link on how to create the swapfile. Also, I expanded my OS to use the entire card using RPi's first start-up configuration settings. I must be missing something bc it still fails.

Here has been my general order:
Load OS > Re-size OS to entire Card > Create Swapfile > Follow Secret Agent's Guide

It all goes just fine up until I get to "sudo modprobe usbip-host" I get an error that says "FATAL: Module usbip-host not found."

I'm not sure where to go after this to get it working.

Can anyone help with this?

twinclouds
Posts: 1
Joined: Fri Dec 28, 2012 7:22 pm

Re: USB redirector

Sun Oct 13, 2013 9:44 pm

forenbenutzer wrote:
............................

I recompiled the usbip.exe with changed version string (usbip.zip) and uploaded it here: http://edv-huber.com/images/downloads/usbip/usbip.zip

Protip: Apply your usbip Windows experiments in a virtual machine to avoid random blue screens in your (productive) environment. :evil:
I tied your client on windows 7. It indeed works! I have been looking for a working client on W7 but nothing works until got yours. Thanks for your good work.
The only issue is that once I run the client and let my windows pc go to sleep, when it come back it does not working anymore. Even worse, if I restart it, I cannot get the usbip server connection unless I restart the openwrt router., on which usbip server is on. Do you know why and is there a fix? Thanks.

forenbenutzer
Posts: 148
Joined: Thu Aug 02, 2012 7:08 pm

Re: USB redirector

Mon Oct 14, 2013 6:50 am

As already said, USBIP is really unusable for productive environments. So i fear there isn't anything I could do for you.
Pitendo - Case And Emulator Project - http://edv-huber.com/index.php/problemloesungen/12-pitendo

jaslo
Posts: 4
Joined: Sat Jun 01, 2013 12:31 am

Re: USB redirector

Mon Oct 14, 2013 7:30 am

I have switched over to ser2net which seems to be much more active and supported and doesn't require kernel drivers. It doesn't actually create the "remote device" but simply allows bidirectional communication over tcpip/telnet.

lamero
Posts: 6
Joined: Tue Dec 03, 2013 9:38 pm

Re: USB redirector

Thu Dec 05, 2013 2:26 pm

With kernel 3.10.21+ modprobe freeze my raspberry. Any help?

fendersens
Posts: 2
Joined: Sat Jan 04, 2014 12:52 pm

Re: USB redirector

Sat Jan 04, 2014 1:00 pm

I am using kernel 3.10.25+. After compilation, the Pi hangs as soon as I load the usbip-host kernel module (i.e. the sudo modprobe usbip-host). Completely frozen. Only a hard reset (unplugging the power) works.

Tried a few times 'make clean', recompile, reinstall the usbip package, but still doesn't solve the issue. All the commands are executed through ssh.

Any help?

fendersens
Posts: 2
Joined: Sat Jan 04, 2014 12:52 pm

Re: USB redirector

Sat Jan 04, 2014 1:17 pm

I am using kernel version 3.10.25+ and have the problem of total hang/freeze upon loading of the usbip-host kernel module (the 'sudo modprobe usbip-host ' step post by secretagent)
I have tried make-clean, recompiling, and even reinstalling the usbip package but it still give me the same problem. I did all these through ssh, FYI. I have swapfile of 512MB enabled.

Any idea what could be wrong?

LeighdePaor
Posts: 6
Joined: Thu Jan 09, 2014 8:40 pm

Re: USB redirector

Thu Jan 09, 2014 8:58 pm

Does the ReactOS signed USBIP Windows client software not work for you in this instance?

http://sourceforge.net/projects/usbip/f ... urce=files

It installed fine on Windows 8.1 Enterprise (32 bit) for me.

I am currently setting up RPi as a VDI Thin Client using Remmina RDP client software but have had some issues with a specific piece of software using an unorthodox method to address the microphone so am now configuring a USB-IP server on the same RPi which the Windows logon script will map back to as a "local" audio device.

I got it sort of working using the commercial version of this software - http://www.virtualhere.com/usb_server_software but not to my satisfaction.

Am currently at the point of getting the modprobe errors on usbip-host so am now aiming to download source and recompile the kernel.

Thanks for all the info here folks.

LeighdePaor
Posts: 6
Joined: Thu Jan 09, 2014 8:40 pm

Re: USB redirector

Tue Jan 14, 2014 9:36 am

So far, I have encountered several issues...
I have one of the original model B RPi which has only 256MB RAM so even using the gpu_mem=16 option the OOM kept killing the git clone for the kernel.
I ended up using an external USB hard drive on an Ubuntu PC I had to clone the raspberrypi linux repositories on to.
This I connected to the RPi successfully and followed compile instructions perfectly (slowly) until the modules_install step.
The compile failed at this stage with the following error:
ip modules_install
INSTALL drivers/staging/usbip/usbip-core.ko
INSTALL drivers/staging/usbip/usbip-host.ko
INSTALL drivers/staging/usbip/vhci-hcd.ko
DEPMOD 3.10.25+modules_prepare
WARNING: could not open /lib/modules/3.10.25+modules_prepare/modules.order: No such file or directory
WARNING: could not open /lib/modules/3.10.25+modules_prepare/modules.builtin: No such file or directory
How do I go about getting the vhci_hcd.ko item there?
Anyone have any suggestions? I will continue to plug away and will edit if I have an answer from elsewhere, but in the meantime if anyone has help then please input.
Thanks.

yozh
Posts: 10
Joined: Sun Oct 20, 2013 7:31 pm

Re: USB redirector

Fri Apr 04, 2014 3:10 pm

Hello,

Can some one please help me get usbip running on original RPI B ? I spend countless amount of time working on this and still cant get it going... I updated to the latest firmware which is 3.10.34+. I cloned the kernel from git, but it seemed to bring down 3.10.36+ and all the usbip modules got build for that kernel. I linked the modules folders and it looks like they started, but now when I do bind I get an error.

root@raspberrypi:/tmp/kernel# usbip bind --busid=1-1.3
usbip: error: unable to bind device on 1-1.3

I have a project that I`m working on and need this working. Can some one provide any advise ? Please.


EDIT: The modules do not start, when I used ismod the RPI just freezes. Anyone have a working solution ? I`m running RASPBIAN

LeighdePaor
Posts: 6
Joined: Thu Jan 09, 2014 8:40 pm

Re: USB redirector

Mon Apr 07, 2014 10:33 am

I have a project that I`m working on and need this working. Can some one provide any advise ? Please.


EDIT: The modules do not start, when I used ismod the RPI just freezes. Anyone have a working solution ? I`m running RASPBIAN
http://www.virtualhere.com/usb_server_software
works so it is possible to get it to work although I also experienced the freezing you are reporting. I eventually gave up in this due to excessive time spent hammering through.
I have decided on a different thin client with built in microphone jack.

Gohper
Posts: 1
Joined: Tue Sep 17, 2013 9:58 am

Re: USB redirector

Mon Dec 15, 2014 8:24 pm

Does this usbip stuff really work on the Rasberry and Raspbian?

I have been struggling with this from time to time over the last 1½ year.
Not very intence ...

Today I tried with the latest image of Raspbian, but no, no success!
Building passes without any problems, I suppose, I can't sit and watch it.
I suppose the build process stops on an error!

I'm running a B from 2012.

Code: Select all

root@rasppi:~# uname -r
3.12.34+

Code: Select all

 modprobe usbip-host

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.559950] Internal error: Oops: 5 [#1] PREEMPT ARM

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.675018] Process modprobe (pid: 2256, stack limit = 0xdb2ba1b8)

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.682928] Stack: (0xdb2bbe90 to 0xdb2bc000)

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.689008] be80:                                     bf0c55ac c006d500 bf0c55ac 00007fff

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.700701] bea0: c006a7c4 dc806000 00000000 c006a890 00000000 bf0c56e8 bf0c55ac db2ba018

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.712529] bec0: de0056b0 bf0c55a0 db2bbf60 db2bbf8c ffffffff db2bbf14 00000000 00000000

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.724414] bee0: bf0c5164 00000010 00000000 00000000 6e72656b 00006c65 00000000 00000000

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.736529] bf00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.748723] bf20: 00000000 00000000 00000000 c3422e3e b6ef1948 0000455c b6f05000 b6ef1948

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.760952] bf40: 00000080 c000e068 db2ba000 00000000 00000000 c006da84 de003000 0000455c

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.773281] bf60: de005110 de004f8e de006a48 000016f8 00002038 00000000 00000000 00000000

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.785794] bf80: 00000024 00000025 0000001a 0000001e 00000012 00000000 00000000 00040000

Message from syslogd@rasppi at Dec 15 20:56:14 ...
 kernel:[ 9672.798468] bfa0: b77133c8 c000dec0 00000000 00040000 b6f05000 0000455c b6ef1948 b6f05000
Segmenteringsfel
This really sucks now!

Regards

Gohper

Return to “Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests