1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="usbip-setup-server">
|
---|
4 | <title>Setting up USB/IP Support on a Linux System</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>This section gives a brief overview on how to set up a Linux based system to act as a USB device server. The
|
---|
8 | system on the server requires that the <filepath>usbip-core.ko</filepath> and <filepath>usbip-host.ko</filepath>
|
---|
9 | kernel drivers are available, and that the USB/IP tools package is installed. The particular installation method
|
---|
10 | for the necessary tools depends on which distribution is used. For example, for Debian based systems, use the
|
---|
11 | following command to install the required tools: </p>
|
---|
12 | <pre xml:space="preserve">$ apt-get install usbip-utils</pre>
|
---|
13 | <p>To check whether the necessary tools are already installed use the following command: </p>
|
---|
14 | <pre xml:space="preserve">$ usbip list -l
|
---|
15 | </pre>
|
---|
16 | <p>This should produce output similar to that shown in the example below: </p>
|
---|
17 | <pre xml:space="preserve"> - busid 4-2 (0bda:0301)
|
---|
18 | Realtek Semiconductor Corp. : multicard reader (0bda:0301)
|
---|
19 |
|
---|
20 | - busid 5-1 (046d:c52b)
|
---|
21 | Logitech, Inc. : Unifying Receiver (046d:c52b)
|
---|
22 | </pre>
|
---|
23 | <p>If everything is installed, the USB/IP server needs to be started as <codeph>root</codeph> using the following
|
---|
24 | command: </p>
|
---|
25 | <pre xml:space="preserve"># usbipd -D</pre>
|
---|
26 | <p>See the documentation for the installed distribution to determine how to start the service when the system boots. </p>
|
---|
27 | <p>By default, no device on the server is exported. This must be done manually for each device. To export a device
|
---|
28 | use the following command: </p>
|
---|
29 | <pre xml:space="preserve"># usbip bind -b "bus identifier"</pre>
|
---|
30 | <p>To export the multicard reader in the previous example: </p>
|
---|
31 | <pre xml:space="preserve"># usbip bind -b 4-2</pre>
|
---|
32 | </body>
|
---|
33 |
|
---|
34 | </topic>
|
---|