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>
|
---|
8 | This section gives a brief overview on how to set up a Linux
|
---|
9 | based system to act as a USB device server. The system on the
|
---|
10 | server requires that the <filepath>usbip-core.ko</filepath> and
|
---|
11 | <filepath>usbip-host.ko</filepath> kernel drivers are available,
|
---|
12 | and that the USB/IP tools package is installed. The particular
|
---|
13 | installation method for the necessary tools depends on which
|
---|
14 | distribution is used. For example, for Debian based systems, use
|
---|
15 | the following command to install the required tools:
|
---|
16 | </p>
|
---|
17 | <pre xml:space="preserve">$ apt-get install usbip-utils</pre>
|
---|
18 | <p>
|
---|
19 | To check whether the necessary tools are already installed use
|
---|
20 | the following command:
|
---|
21 | </p>
|
---|
22 | <pre xml:space="preserve">$ usbip list -l
|
---|
23 | </pre>
|
---|
24 | <p>
|
---|
25 | This should produce output similar to that shown in the example
|
---|
26 | below:
|
---|
27 | </p>
|
---|
28 | <pre xml:space="preserve"> - busid 4-2 (0bda:0301)
|
---|
29 | Realtek Semiconductor Corp. : multicard reader (0bda:0301)
|
---|
30 |
|
---|
31 | - busid 5-1 (046d:c52b)
|
---|
32 | Logitech, Inc. : Unifying Receiver (046d:c52b)
|
---|
33 | </pre>
|
---|
34 | <p>
|
---|
35 | If everything is installed, the USB/IP server needs to be
|
---|
36 | started as <codeph>root</codeph> using the following command:
|
---|
37 | </p>
|
---|
38 | <pre xml:space="preserve"># usbipd -D</pre>
|
---|
39 | <p>
|
---|
40 | See the documentation for the installed distribution to
|
---|
41 | determine how to start the service when the system boots.
|
---|
42 | </p>
|
---|
43 | <p>
|
---|
44 | By default, no device on the server is exported. This must be
|
---|
45 | done manually for each device. To export a device use the
|
---|
46 | following command:
|
---|
47 | </p>
|
---|
48 | <pre xml:space="preserve"># usbip bind -b "bus identifier"</pre>
|
---|
49 | <p>
|
---|
50 | To export the multicard reader in the previous example:
|
---|
51 | </p>
|
---|
52 | <pre xml:space="preserve"># usbip bind -b 4-2</pre>
|
---|
53 | </body>
|
---|
54 |
|
---|
55 | </topic>
|
---|