, USB, . 500 , . , , , . ? , OpenWRT D-Link DIR-320 A2.
USB over IP tunnel, , .
OpenWRT — , , . OpenWrt 19.07.3, Wi-Fi ,
lan, .
. ssh .
root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install kmod-usb-ohci usbip-server usbip-client
USB- ( : USB-, , ( ), , , ).
:
root@OpenWrt:~# usbip list -l
.
,
libudev-fbsd.
libudev_3.2-1 OpenWRT 17.01.7 , libudev_3.2-1_mipsel_mips32.ipk. wget/scp
root@OpenWrt:~# opkg remove --force-depends libudev-fbsd
root@OpenWrt:~# opkg install libudev_3.2-1_mipsel_mips32.ipk
:
root@OpenWrt:~# usbip list -l
- busid 1-1.1 (090c:1000)
Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) : Flash Drive (090c:1000)
- busid 1-1.4 (1a86:7523)
QinHeng Electronics : HL-340 USB-Serial adapter (1a86:7523)
, USB-, bsuid
1-1.4. .
:
root@OpenWrt:~# usbipd -D
root@OpenWrt:~# usbip bind -b 1-1.4
usbip: info: bind device on busid 1-1.4: complete
, :
root@OpenWrt:/home# netstat -alpt
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3240 0.0.0.0:* LISTEN 1884/usbipd
,
/etc/rc.local,
exit 0 :
usbipd -D &
sleep 1
usbip bind -b 1-1.4
Windows 10, openwrt.org. : . -, Windows 7 x64. -, sourceforge.net, 2014 . Windows 10 :
c:\Utils\usbip>usbip -a 192.168.31.203 1-1.4
usbip for windows ($Id$)
*** ERROR: cannot find device
, , 3.14.
usbip OpenWRT 19.07.3 4.14.180.
,
github. , Windows 10 x64, , .
, , . , Trusted Root Certification Authority Trusted Publishers.
.
bcdedit.exe /set TESTSIGNING ON
,
secure boot. UEFI, secure boot — disable. supervisor password.
Windows
bcdedit.exe /set TESTSIGNING ON, . , Test Mode, .
?
USB/IP VHCI. , usbip.exe, usbip_vhci.sys, usbip_vhci.inf, usbip_vhci.cer, usbip_vhci.cat,
usbip.exe install
, Legacy Hardware . , .
, USB-, :
usbip.exe list -r <ip >
:
c:\Utils\usbip>usbip.exe list -r 192.168.31.203
usbip: error: failed to open usb id database
Exportable USB devices
======================
- 192.168.31.203
1-1.4: unknown vendor : unknown product (1a86:7523)
: /sys/devices/ssb0:1/ehci-platform.0/usb1/1-1/1-1.4
: unknown class / unknown subclass / unknown protocol (ff/00/00)
usbip: error: failed to open usb id database , .
:
c:\Utils\usbip>usbip.exe attach -r 192.168.31.203 -b 1-1.4
, , , .
, CH341SER (, ), USB/IP VHCI BSOD. CH341SER
usbip.exe .
: , , .
:
https://openwrt.org/docs/guide-user/services/usb.iptunnelhttps://github.com/cezanne/usbip-win