usbip
manage USB/IP devices
- Provided by: linux-tools-common (Version: 7.0.0-15.15)
- Source: linux
- Report a bug
manage USB/IP devices
usbip [options] <command> <args>
On a USB/IP server, devices can be listed, bound, and unbound using this program. On a USB/IP client, devices exported by USB/IP servers can be listed, attached and detached.
--debug
--log
--tcp-port PORT
version
help [command]
attach --remote=<host> --busid=<bus_id>
attach --remote=<host> --device=<dev_id>
detach --port=<port>
bind --busid=<busid>
unbind --busid=<busid>
list --remote=<host>
list --device
list --local
port
client:# usbip list --remote=server
- List devices exported by remote server.
client:# modprobe vhci-hcd
client:# usbip attach --remote=server --busid=1-2
- Connect the remote USB device.
client:# usbip port
- List imported devices/gadgets.
client:# usbip detach --port=0
- Detach the usb device.
The following example shows the usage of device mode
server:# usbip list --device
- List gadgets exported by local usbipd server.
client:# modprobe vhci-hcd
client:# usbip attach --remote=server --device=usbip-vudc.0
- Connect the remote USB gadget.
client:# usbip port
- List imported devices/gadgets.
client:# usbip detach --port=0
- Detach the usb gadget.