USB over ENET: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
(Created page with " =usbip-Server on a Rasperrypi= ==Installation== Install the following usbip package sudo aptitude install usbip ==Setup== Load the usbip-host kernel module sudo modprobe usbip-host And run the usbipd server sudo usbipd -d Now list all usb devices: sudo usbip list -l Finally bind your desired usb device sudo usbip bind -b 1-1.3 So far the server setup. =usbip-client setup= Ubuntu 20.04 sudo aptitude install linux-tools-generic sudo aptitude install lin...")
 
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
Install the following usbip package
Install the following usbip package


<syntaxhighlight lang="bash">
sudo aptitude install usbip
sudo aptitude install usbip
 
</syntaxhighlight>


==Setup==
==Setup==
Load the usbip-host kernel module
Load the usbip-host kernel module
 
<syntaxhighlight lang="bash">
sudo modprobe usbip-host
sudo modprobe usbip-host
</syntaxhighlight>


And run the usbipd server
And run the usbipd server
 
<syntaxhighlight lang="bash">
sudo usbipd -d
sudo usbipd -d
</syntaxhighlight>


 
Now you can list all usb devices:
Now list all usb devices:
<syntaxhighlight lang="bash">
 
sudo usbip list -l
sudo usbip list -l
</syntaxhighlight>


Finally bind your desired usb device
Finally bind your desired usb device


<syntaxhighlight lang="bash">
sudo usbip bind -b 1-1.3  
sudo usbip bind -b 1-1.3  
</syntaxhighlight>


So far the server setup.  
So far the server setup.


=usbip-client setup=
=usbip-client setup=


Ubuntu 20.04
Ubuntu 20.04
 
<syntaxhighlight lang="bash">
sudo aptitude install linux-tools-generic  
sudo aptitude install linux-tools-generic  
sudo aptitude install  linux-tools-5.13.0-35-generic
sudo aptitude install  linux-tools-5.13.0-39-generic
</syntaxhighlight>


do not install the usbip package!  
do not install the usbip package!  
<syntaxhighlight lang="bash">
sudo modprobe vhci-hcd
usbip list -r "Serveraddresse"
sudo usbip attach -r "Serveraddresse" -b "Bus-ID"
</syntaxhighlight>


 
=Useful Literature=
sudo modprobe vhci-hcd
* https://www.tecchannel.de/a/usb-geraete-in-linux-im-netzwerk-verfuegbar-machen,2075505,2
usbip list -r "Serveraddresse"
* https://wiki.ubuntuusers.de/USBIP/
sudo usbip attach -r "Serveraddresse" -b "Bus-ID"
 
 
=Literature=
https://www.tecchannel.de/a/usb-geraete-in-linux-im-netzwerk-verfuegbar-machen,2075505,2

Latest revision as of 07:43, 13 April 2022

usbip-Server on a Rasperrypi

Installation

Install the following usbip package

sudo aptitude install usbip

Setup

Load the usbip-host kernel module

sudo modprobe usbip-host

And run the usbipd server

sudo usbipd -d

Now you can list all usb devices:

sudo usbip list -l

Finally bind your desired usb device

sudo usbip bind -b 1-1.3

So far the server setup.

usbip-client setup

Ubuntu 20.04

sudo aptitude install  linux-tools-generic 
sudo aptitude install  linux-tools-5.13.0-39-generic

do not install the usbip package!

sudo modprobe vhci-hcd
usbip list -r "Serveraddresse"
sudo usbip attach -r "Serveraddresse" -b "Bus-ID"

Useful Literature