Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) # README for usbip-utils
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) # Copyright (C) 2011 matt mooney <mfm@muteddisk.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) #               2005-2008 Takahiro Hirofuchi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) [Overview]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) USB/IP protocol allows to pass USB device from server to client over the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) network. Server is a machine which provides (shares) a USB device. Client is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) a machine which uses USB device provided by server over the network.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) The USB device may be either physical device connected to a server or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) software entity created on a server using USB gadget subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) Whole project consists of four parts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)     - usbip-vhci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16)         A client side kernel module which provides a virtual USB Host Controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17)         and allows to import a USB device from a remote machine.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19)     - usbip-host (stub driver)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)         A server side module which provides a USB device driver which can be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)         bound to a physical USB device to make it exportable.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)     - usbip-vudc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)         A server side module which provides a virtual USB Device Controller and allows
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)         to export a USB device created using USB Gadget Subsystem.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)     - usbip-utils
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)         A set of userspace tools used to handle connection and management.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)         Used on both sides.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) [Requirements]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)     - USB/IP device drivers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)         Found in the drivers/usb/usbip/ directory of the Linux kernel tree.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35)     - libudev >= 2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	libudev library
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38)     - libwrap0-dev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 	tcp wrapper library
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41)     - gcc >= 4.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43)     - libtool, automake >= 1.9, autoconf >= 2.5.0, pkg-config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) [Optional]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46)     - hwdata
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47)         Contains USB device identification data.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) [Install]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51)     0. Generate configuration scripts.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	$ ./autogen.sh
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54)     1. Compile & install the userspace utilities.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	$ ./configure [--with-tcp-wrappers=no] [--with-usbids-dir=<dir>]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	$ make install
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58)     2. Compile & install USB/IP drivers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) [Usage]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) On a server side there are two entities which can be shared.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) First of them is physical usb device connected to the machine.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) To make it available below steps should be executed:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66)     server:# (Physically attach your USB device.)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68)     server:# insmod usbip-core.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69)     server:# insmod usbip-host.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71)     server:# usbipd -D
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	- Start usbip daemon.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74)     server:# usbip list -l
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	- List driver assignments for USB devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77)     server:# usbip bind --busid 1-2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	- Bind usbip-host.ko to the device with busid 1-2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	- The USB device 1-2 is now exportable to other hosts!
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	- Use `usbip unbind --busid 1-2' to stop exporting the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) Second of shareable entities is USB Gadget created using USB Gadget Subsystem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) on a server machine. To make it available below steps should be executed:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85)     server:# (Create your USB gadget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86)         - Currently the most preferable way of creating a new USB gadget
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87)           is ConfigFS Composite Gadget. Please refer to its documentation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88)           for details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89)         - See vudc_server_example.sh for a short example of USB gadget creation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91)     server:# insmod usbip-core.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92)     server:# insmod usbip-vudc.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93)         - To create more than one instance of vudc use num module param
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95)     server:# (Bind gadget to one of available vudc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96)         - Assign your new gadget to USB/IP UDC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97)         - Using ConfigFS interface you may do this simply by:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98)             server:# cd /sys/kernel/config/usb_gadget/<gadget_name>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99)             server:# echo "usbip-vudc.0" > UDC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)     server:# usbipd -D --device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)         - Start usbip daemon.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) To attach new device to client machine below commands should be used:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)     client:# insmod usbip-core.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)     client:# insmod vhci-hcd.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109)     client:# usbip list --remote <host>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	- List exported USB devices on the <host>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112)     client:# usbip attach --remote <host> --busid 1-2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	- Connect the remote USB device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	- When using vudc on a server side busid is really vudc instance name.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	  For example: usbip-vudc.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117)     client:# usbip port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	- Show virtual port status.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)     client:# usbip detach --port <port>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	- Detach the USB device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) [Example]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) ---------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	SERVER SIDE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) ---------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) Physically attach your USB devices to this host.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)     trois:# insmod path/to/usbip-core.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131)     trois:# insmod path/to/usbip-host.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)     trois:# usbipd -D
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) In another terminal, let's look up what USB devices are physically
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) attached to this host.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)     trois:# usbip list -l
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)     Local USB devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)     =================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)      - busid 1-1 (05a9:a511)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	     1-1:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)      - busid 3-2 (0711:0902)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	     3-2:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)      - busid 3-3.1 (08bb:2702)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	     3-3.1:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	     3-3.1:1.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)      - busid 3-3.2 (04bb:0206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	     3-3.2:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153)      - busid 3-3 (0409:0058)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	     3-3:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156)      - busid 4-1 (046d:08b2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	     4-1:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	     4-1:1.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	     4-1:1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161)      - busid 5-2 (058f:9254)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	     5-2:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) A USB storage device of busid 3-3.2 is now bound to the usb-storage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) driver. To export this device, we first mark the device as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) "exportable"; the device is bound to the usbip-host driver. Please
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) remember you can not export a USB hub.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) Mark the device of busid 3-3.2 as exportable:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)     trois:# usbip --debug bind --busid 3-3.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)     ...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173)     usbip debug: usbip_bind.c:162:[unbind_other] 3-3.2:1.0 -> usb-storage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174)     ...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175)     bind device on busid 3-3.2: complete
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177)     trois:# usbip list -l
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178)     Local USB devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179)     =================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)     ...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)      - busid 3-3.2 (04bb:0206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	     3-3.2:1.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)     ...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) ---------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	CLIENT SIDE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) ---------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) First, let's list available remote devices that are marked as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) exportable on the host.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192)     deux:# insmod path/to/usbip-core.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)     deux:# insmod path/to/vhci-hcd.ko
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195)     deux:# usbip list --remote 10.0.0.3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196)     Exportable USB devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)     ======================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198)      - 10.0.0.3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	    1-1: Prolific Technology, Inc. : unknown product (067b:3507)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	       : /sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	       : (Defined at Interface level) / unknown subclass / unknown protocol (00/00/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	       :  0 - Mass Storage / SCSI / Bulk (Zip) (08/06/50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	1-2.2.1: Apple Computer, Inc. : unknown product (05ac:0203)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	       : /sys/devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2.2/1-2.2.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	       : (Defined at Interface level) / unknown subclass / unknown protocol (00/00/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	       :  0 - Human Interface Devices / Boot Interface Subclass / Keyboard (03/01/01)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	1-2.2.3: OmniVision Technologies, Inc. : OV511+ WebCam (05a9:a511)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	       : /sys/devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2.2/1-2.2.3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	       : (Defined at Interface level) / unknown subclass / unknown protocol (00/00/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	       :  0 - Vendor Specific Class / unknown subclass / unknown protocol (ff/00/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	    3-1: Logitech, Inc. : QuickCam Pro 4000 (046d:08b2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	       : /sys/devices/pci0000:00/0000:00:1e.0/0000:02:0a.0/usb3/3-1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	       : (Defined at Interface level) / unknown subclass / unknown protocol (00/00/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	       :  0 - Data / unknown subclass / unknown protocol (0a/ff/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	       :  1 - Audio / Control Device / unknown protocol (01/01/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	       :  2 - Audio / Streaming / unknown protocol (01/02/00)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) Attach a remote USB device:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)     deux:# usbip attach --remote 10.0.0.3 --busid 1-1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224)     port 0 attached
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) Show the devices attached to this client:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228)     deux:# usbip port
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229)     Port 00: <Port in Use> at Full Speed(12Mbps)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 	   Prolific Technology, Inc. : unknown product (067b:3507)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) 	   6-1 -> usbip://10.0.0.3:3240/1-1  (remote bus/dev 001/004)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) 	   6-1:1.0 used by usb-storage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 			  /sys/class/scsi_device/0:0:0:0/device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 			  /sys/class/scsi_host/host0/device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) 			  /sys/block/sda/device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) Detach the imported device:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239)     deux:# usbip detach --port 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240)     port 0 detached
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) [Checklist]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244)     - See 'Debug Tips' on the project wiki.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) 	- http://usbip.wiki.sourceforge.net/how-to-debug-usbip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246)     - usbip-host.ko must be bound to the target device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) 	- See /sys/kernel/debug/usb/devices and find "Driver=..." lines of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248)     - Target USB gadget must be bound to vudc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249)       (using USB gadget susbsys, not usbip bind command)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250)     - Shutdown firewall.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) 	- usbip now uses TCP port 3240.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252)     - Disable SELinux.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253)     - Check the kernel and daemon messages.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) [Contact]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257)     Mailing List: linux-usb@vger.kernel.org