Jump to content

Recommended Posts

На 2.* получалось заставить работать usbip, теперь обновился на 3.1, решил возобновить свои эксперименты и на нем не получается экспортировать девайс

подправленный стартовый скрипт для usbipd

#!/bin/sh

ENABLED=yes
PROCS=usbipd
ARGS="-D"
PREARGS=""
PRECMD="modprobe usbip-host"
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func

модули загружаются, usbipd стартует

# lsmod | grep usbip
usbip_host             13607  0
usbip_core              5530  1 usbip_host
usbcore               137984  18 rndis_host,usbnet,huawei_cdc_ncm,usb_storage,usbextras,kpdsl,usbip_host,cdc_acm,cdc_ether,sierra,cdc_ncm,cdc_wdm,usbserial,kalmia,xhci_mtk,option,usb_wwan,xhci_hcd
# ps | grep usb
  545 root         0 SW   [usb-storage]
  599 root         0 SW<  [usbip_event]
  672 root      6220 S    usbipd -D
 1408 root      4388 S    grep usb

но при попытке экспортировать получаю ошибку

# usbip list -l
Local USB devices
=================
 - busid 1-1 (0951:1607)
         1-1:1.0 -> usb-storage

 - busid 1-2 (0a12:0001)
         1-2:1.0 -> unknown
         1-2:1.1 -> unknown

# usbip --debug bind --busid=1-2
usbip: debug: usbip.c:134:[run_command] running command: `bind'
usbip: debug: usbip_bind.c:162:[unbind_other] 1-2:1.0 -> unknown
usbip: debug: usbip_bind.c:162:[unbind_other] 1-2:1.1 -> unknown
usbip: debug: utils.c:65:[modify_match_busid] write "add 1-2" to /sys/bus/usb/drivers/usbip-host/match_busid
usbip: debug: usbip_bind.c:101:[bind_usbip] bind driver at 1-2:1.0 failed
usbip: debug: usbip_bind.c:101:[bind_usbip] bind driver at 1-2:1.1 failed
usbip: error: could not bind device to usbip-host
usbip: debug: utils.c:65:[modify_match_busid] write "del 1-2" to /sys/bus/usb/drivers/usbip-host/match_busid

версии usbip последние

# opkg list-installed | grep usbip
usbip - 1.1.1-11
usbip-client - 1.1.1-11
usbip-server - 1.1.1-11
# ndmc -c components list | grep -A 11 -B 1 -i usbip
        component: 
                 name: opkg-kmod-usbip

                group: Opkg
             priority: low
               depend: opkg
                 size: 26666
                order: 7
              version: 3.01.C.0.0-0
                 hash: 60ffb3b89cb06bae14dd3939e6123018
            installed: 3.01.C.0.0-0
               queued: yes

Кто-нибудь может подсказать, что ещё я забыл/сделал не так? Есть ли случаи испешной работы usbip на 3.1?

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.

  • Recently Browsing   0 members

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