Jump to content

usbip кто смог запустить?


Recommended Posts

Привет всем.

Что есть: kn-1711(3.7.3). К нему подключен usb hubs. В него воткнуты флешка и кабель usb to com pl2303.

Задача: пробросить usb to com pl2303 по сети на машине с Windows.

Шаги:

1. Устанавливаем entware.

2. Ставим usbip

~ # opkg install usbip2 usbip2-server usbip2-client kmod

3. Запускаем (подготавливаем):

~ # insmod /lib/modules/4.9-ndm-5/usbip-core.ko
~ # insmod /lib/modules/4.9-ndm-5/usbip-host.ko
~ # usbipd -D -d &

4. Смотрим устройства:

~ # usbip list -l

Получаем ответ:

Цитата

 

- busid 1-1.4 (214b:7000)
   Huasheng Electronics : 4-port hub [Maxxter ACT-HUB2-4P, HS8836, iSoul ultra-slim] (214b:7000)

 - busid 1-1.3 (067b:2303)
   Prolific Technology, Inc. : PL2303 Serial Port / Mobile Action MA-8910P (067b:2303)

 - busid usb1 (1d6b:0002)
   Linux Foundation : 2.0 root hub (1d6b:0002)

 - busid 1-1.4.3 (090c:2000)
   Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) : unknown product (090c:2000)

 - busid usb2 (1d6b:0001)
   Linux Foundation : 1.1 root hub (1d6b:0001)

 - busid 1-1 (214b:7000)
   Huasheng Electronics : 4-port hub [Maxxter ACT-HUB2-4P, HS8836, iSoul ultra-slim] (214b:7000)

 


5. Расшариваем наш pl2303

~ # usbip bind -b 1-1.3

6. Смотрим что вещаем:

~ # usbip list -r 192.168.1.2

Получаем:

Цитата

Exportable USB devices
======================
 - 192.168.1.2
      1-1.3: Prolific Technology, Inc. : PL2303 Serial Port / Mobile Action MA-8910P (067b:2303)
           : /sys/devices/platform/ehci-platform/usb1/1-1/1-1.3
           : (Defined at Interface level) (00/00/00)

7. Ставим клиента для windows из:
https://sourceforge.net/projects/usbip/files/usbip_windows/

8. Патчим в winhex адреса usbip.exe:

Цитата

 

[usbip.exe]

00000CBC: 06 11

00000E0A: 06 11

 

И вроде бы всё гуд. В винде выдаёт при просмотре устройств:

Цитата

>usbip.exe -l 192.168.1,2
- 192.168.1,2
   1-1.3: Prolific Technology, Inc. : PL2303 Serial Port (067b:2303)
        : /sys/devices/platform/ehci-platform/usb1/1-1/1-1.3
        : (Defined at Interface level) (00/00/00)

Но при попытке подключения:

>usbip.exe -D -a 192.168.1.2 1-1.3
usbip dbg: usbip_network.c: 223 (tcp_connect ) trying 192.168.1.2 port 3240

usbip dbg: usbip_network.c: 243 (tcp_connect ) connected to 192.168.1.2:3240
usbip dbg: usbip_windows.c: 767 (query_interface0) exportable 1 devices
usbip dbg: usbip_windows.c: 784 (query_interface0)    1-1.3: Prolific Technology, Inc. : PL2303 Serial Port (067b:2303)
usbip dbg: usbip_windows.c: 785 (query_interface0)         : /sys/devices/platform/ehci-platform/usb1/1-1/1-1.3
usbip dbg: usbip_windows.c: 786 (query_interface0)         : (Defined at Interface level) (00/00/00)
usbip dbg: usbip_windows.c: 809 (query_interface0)
usbip err: usbip_windows.c: 829 (attach_device) cannot find device

Как же это вылечить? usbip err: usbip_windows.c: 829 (attach_device) cannot find device

Edited by jamix
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...