CONFIG_USBIP_VHCI_HCD=m CONFIG_USBIP_VHCI_HC_PORTS=15 CONFIG_USBIP_VHCI_NR_HCS=8 CONFIG_USBIP_HOST=m CONFIG_USBIP_VUDC=m # CONFIG_USBIP_DEBUG is not set 11 / 34
grep ^EXAMPLES$ -A 12 EXAMPLES server:# modprobe usbip-host server:# usbipd -D - Start usbip daemon. server:# usbip list --local - List driver assignments for usb devices. server:# usbip bind --busid=1-2 - Bind usbip-host.ko to the device of busid 1-2. - A usb device 1-2 is now exportable to other hosts! - Use 'usbip unbind --busid=1-2' when you want to shutdown exporting and use th 13 / 34
libusbip: error: fopen libusbip: error: read_record Port 00: <Port in Use> at High Speed(480Mbps) Logitech, Inc. : Webcam C270 (046d:0825) 5-1 -> unknown host, remote port and remote busid -> remote bus/dev 001/018 $ sudo usbip port Imported USB devices ==================== Port 00: <Port in Use> at High Speed(480Mbps) Logitech, Inc. : Webcam C270 (046d:0825) 5-1 -> usbip://192.168.1.180:3240/1-1.1 -> remote bus/dev 001/018 $ ls -A /sys/bus/platform/drivers/vhci_hcd/vhci_hcd.0 attach driver modalias power status.1 status.3 status.5 status.7 u detach driver_override nports status status.2 status.4 status.6 subsystem u $ cat /sys/bus/platform/drivers/vhci_hcd/vhci_hcd.0/status h b t t d d kfd l l b id 22 / 34
SetAddress Request (5) to port 0 [354830.332251] usb 5-1: New USB device found, idVendor=046d, idProduct=0825, bcdDevi [354830.332254] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=2 [354830.332256] usb 5-1: SerialNumber: 7680CBD0 [354830.333594] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825) [354830.446675] usb 5-1: set resolution quirk: cval->res = 384 23 / 34