USBIP und openSuse 42.3

Hinweis: In dem Thema USBIP und openSuse 42.3 gibt es 2 Antworten. Der letzte Beitrag () befindet sich ganz unten auf dieser Seite.
  • USBIP und openSuse 42.3

    Guten Morgen,
    nachdem ich mit USB Passthrough nicht weiter gekommen bin versuchte ich nun USBIP zum Laufen zu bringen. Und wieder lief ich vor eine Wand.
    Ich habe usbip über YAST installiert (usbip (usbip-utils 1.1.1) sowie alle notwendigen Treiber/Module etc. geladen. Funktionierte Problemlos.
    Nun
    > modprobe usbip-core usbip-host
    geladen und mit lsmod überprüft, dass sie auch da sind.
    >usbipd -D gestartet.
    >usbip list -l zeigt:
    usbip list -l
    Local USB devices
    =================
    - busid 1-1 (046a:0011)
    1-1:1.0 -> usbhid


    - busid 1-4 (0204:6025)
    1-4:1.0 -> usb_storage


    - busid 1-7 (8087:0a2b)
    1-7:1.0 -> btusb
    1-7:1.1 -> btusb


    - busid 1-8 (0c4b:0500)
    1-8:1.0 -> unknown


    - busid 1-9 (04ca:008a)
    1-9:1.0 -> usbhid


    Ok, laut Anleitung soll nun mit usbip bind ein Device für den Remote-Zugang freigeschaltet werden.
    Also:
    usbip --debug bind -b 1-4
    usbip: debug: usbip.c:134:[run_command] running command: `bind'
    usbip: debug: usbip_bind.c:162:[unbind_other] 1-4:1.0 -> unknown
    usbip: debug: utils.c:65:[modify_match_busid] write "add 1-4" to /sys/bus/usb/drivers/usbip-host/match_busid
    usbip: debug: usbip_bind.c:101:[bind_usbip] bind driver at 1-4:1.0 failed
    usbip: error: could not bind device to usbip-host
    usbip: debug: utils.c:65:[modify_match_busid] write "del 1-4" to /sys/bus/usb/drivers/usbip-host/match_busid

    Vielleicht
    usbip --debug bind -b 1-4:1.0
    usbip: debug: usbip.c:134:[run_command] running command: `bind'
    usbip: debug: usbip_bind.c:143:[unbind_other] problem getting device attributes: No such file or directory
    usbip: error: could not unbind driver from device on busid 1-4:1.0

    Und das wars. Das Netz bietet keine Hilfe, danach geht das alles immer problemlos.
    Es gibt keine Fehlermeldungen im Log...
    Kernel ist
    Linux mathias-au 4.14.5-2.gb0756c5-default #1 SMP PREEMPT Tue Dec 12 19:09:51 UTC 2017 (b0756c5) x86_64 x86_64 x86_64 GNU/Linux

    Was mache ich falsch?
    Nachtrag: Unter raspbian funktioniert das Ganze problemlos; nur halt nicht unter Suse

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von mgaertne ()

    Für den Inhalt des Beitrages 115707 haftet ausdrücklich der jeweilige Autor: mgaertne

  • Sorry,
    nach längerem Suchen habe ich gefunden, dass die über YAST installierbare Version veraltet ist; in den Kernelsourcen ist die neue, diesmal funktionierende Version vorhanden.
    Also muss man usbip von Hand installieren...
    Die Frage ist damit erledigt.

    Für den Inhalt des Beitrages 115708 haftet ausdrücklich der jeweilige Autor: mgaertne

  • Zu früh gefreut.
    Zwar kann das Gerät nun am remote host gesehen werden, jedoch gibt es nach weniger als einer Minute eine Fehlersituation:
    Es handelt sich um ein Huawai GSM Modem.
    Per usbip bind -b 1-5 am Server verfügbar gemacht
    Am client (modprobe vhci-hcd gemacht) mit
    usbip attach -r XXXXXX -b 1-5
    verfügbar gemacht:
    System-Meldungen:
    Dec 15 15:24:12 linux-6nex kernel: usbip_core: USB/IP Core v1.0.0
    Dec 15 15:24:12 linux-6nex kernel: vhci_hcd vhci_hcd: USB/IP Virtual Host Controller
    Dec 15 15:24:12 linux-6nex kernel: vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 2
    Dec 15 15:24:12 linux-6nex kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    Dec 15 15:24:12 linux-6nex kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    Dec 15 15:24:12 linux-6nex kernel: usb usb2: Product: USB/IP Virtual Host Controller
    Dec 15 15:24:12 linux-6nex kernel: usb usb2: Manufacturer: Linux 4.4.92-31-default vhci_hcd
    Dec 15 15:24:12 linux-6nex kernel: usb usb2: SerialNumber: vhci_hcd
    Dec 15 15:24:12 linux-6nex kernel: hub 2-0:1.0: USB hub found
    Dec 15 15:24:12 linux-6nex kernel: hub 2-0:1.0: 8 ports detected
    Dec 15 15:24:12 linux-6nex kernel: vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0
    Dec 15 15:24:22 linux-6nex kernel: vhci_hcd vhci_hcd: rhport(0) sockfd(3) devid(65544) speed(2) speed_str(full-speed)
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: new full-speed USB device number 2 using vhci_hcd
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: SetAddress Request (2) to port 0
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: New USB device found, idVendor=12d1, idProduct=1001
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=1
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: Product: HUAWEI Mobile
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: Manufacturer: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: SerialNumber: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    Dec 15 15:24:22 linux-6nex mtp-probe[1365]: checking bus 2, device 2: "/sys/devices/platform/vhci_hcd/usb2/2-1"
    Dec 15 15:24:22 linux-6nex mtp-probe[1365]: bus: 2, device: 2 was not an MTP device
    Dec 15 15:24:22 linux-6nex kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
    Dec 15 15:24:22 linux-6nex kernel: usb-storage 2-1:1.1: USB Mass Storage device detected
    Dec 15 15:24:22 linux-6nex kernel: usb-storage 2-1:1.2: USB Mass Storage device detected
    Dec 15 15:24:22 linux-6nex kernel: usb-storage 2-1:1.3: USB Mass Storage device detected
    Dec 15 15:24:22 linux-6nex kernel: scsi host0: usb-storage 2-1:1.3
    Dec 15 15:24:22 linux-6nex kernel: usbcore: registered new interface driver usb-storage
    Dec 15 15:24:22 linux-6nex kernel: usbcore: registered new interface driver uas
    Dec 15 15:24:22 linux-6nex kernel: usbcore: registered new interface driver usbserial
    Dec 15 15:24:22 linux-6nex kernel: usbcore: registered new interface driver usbserial_generic
    Dec 15 15:24:22 linux-6nex kernel: usbserial: USB Serial support registered for generic
    Dec 15 15:24:22 linux-6nex kernel: usbcore: registered new interface driver option
    Dec 15 15:24:22 linux-6nex kernel: usbserial: USB Serial support registered for GSM modem (1-port)
    Dec 15 15:24:22 linux-6nex kernel: option 2-1:1.0: GSM modem (1-port) converter detected
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
    Dec 15 15:24:22 linux-6nex kernel: option 2-1:1.1: GSM modem (1-port) converter detected
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
    Dec 15 15:24:22 linux-6nex kernel: option 2-1:1.2: GSM modem (1-port) converter detected
    Dec 15 15:24:22 linux-6nex kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
    [...] die hier weggelassenen Meldungen beziehen sich nur auf einen SSH-login
    Dec 15 15:24:45 linux-6nex kernel: vhci_hcd: dequeue a urb ffff880002ecc900
    Dec 15 15:24:45 linux-6nex kernel: vhci_hcd: device ffff88007ae772a0 seems to be still connected
    Dec 15 15:24:45 linux-6nex kernel: vhci_hcd: unlink->seqnum 20
    Dec 15 15:24:45 linux-6nex kernel: vhci_hcd: urb->status -104
    Dec 15 15:24:45 linux-6nex kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    Dec 15 15:24:45 linux-6nex kernel: option 2-1:1.0: device disconnected
    Dec 15 15:24:45 linux-6nex kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    Dec 15 15:24:45 linux-6nex kernel: option 2-1:1.1: device disconnected
    Dec 15 15:24:45 linux-6nex kernel: option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
    Dec 15 15:24:45 linux-6nex kernel: option 2-1:1.2: device disconnected
    Dec 15 15:24:46 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:47 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:48 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:48 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:48 linux-6nex kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
    Dec 15 15:24:48 linux-6nex kernel: usb 2-1: USB disconnect, device number 2
    Dec 15 15:24:48 linux-6nex kernel: option 2-1:1.0: GSM modem (1-port) converter detected
    Dec 15 15:24:48 linux-6nex kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
    Dec 15 15:24:48 linux-6nex kernel: usb-storage 2-1:1.1: USB Mass Storage device detected
    Dec 15 15:24:48 linux-6nex kernel: option 2-1:1.1: GSM modem (1-port) converter detected
    Dec 15 15:24:48 linux-6nex kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
    Dec 15 15:24:48 linux-6nex kernel: usb-storage 2-1:1.2: USB Mass Storage device detected
    Dec 15 15:24:48 linux-6nex kernel: option 2-1:1.2: GSM modem (1-port) converter detected
    Dec 15 15:24:48 linux-6nex kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
    Dec 15 15:24:48 linux-6nex kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    Dec 15 15:24:48 linux-6nex kernel: option 2-1:1.0: device disconnected
    Dec 15 15:24:48 linux-6nex kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    Dec 15 15:24:48 linux-6nex kernel: option 2-1:1.1: device disconnected
    Dec 15 15:24:48 linux-6nex kernel: option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
    Dec 15 15:24:48 linux-6nex kernel: option 2-1:1.2: device disconnected
    Dec 15 15:24:49 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:50 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:51 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:52 linux-6nex kernel: usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
    Dec 15 15:24:52 linux-6nex kernel: usb usb2-port1: unable to enumerate USB device


    Das Gerät ist nicht mehr ansprechbar am CLient.
    usbip port
    usbip: error: open vhci_driver
    usbip: error: list imported devices
    Am Server (ausgabe usbipd -d)
    )
    usbipd: debug: usbipd.c:568:[do_standalone_mode] read event on fd[0]=4
    usbipd: info: connection from 192.168.1.53:59676
    usbipd: info: received request: 0x8005(6)
    usbipd: info: exportable devices: 2
    libusbip: debug: usbip_common.c:91:[dump_usb_device] path = /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5
    libusbip: debug: usbip_common.c:92:[dump_usb_device] busid = 1-5
    libusbip: debug: usbip_common.c:98:[dump_usb_device] Device(C/SC/P) = (Defined at Interface level) (00/00/00)
    libusbip: debug: usbip_common.c:100:[dump_usb_device] bcdDevice = 0
    libusbip: debug: usbip_common.c:105:[dump_usb_device] Vendor/Product = unknown vendor : unknown product (12d1:1001)
    libusbip: debug: usbip_common.c:107:[dump_usb_device] bNumConfigurations = 1
    libusbip: debug: usbip_common.c:108:[dump_usb_device] bNumInterfaces = 0
    libusbip: debug: usbip_common.c:111:[dump_usb_device] speed = Full Speed(12Mbps)
    libusbip: debug: usbip_common.c:113:[dump_usb_device] busnum = 1
    libusbip: debug: usbip_common.c:114:[dump_usb_device] devnum = 8
    libusbip: debug: usbip_common.c:91:[dump_usb_device] path = /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4
    libusbip: debug: usbip_common.c:92:[dump_usb_device] busid = 1-4
    libusbip: debug: usbip_common.c:98:[dump_usb_device] Device(C/SC/P) = (Defined at Interface level) (00/00/00)
    libusbip: debug: usbip_common.c:100:[dump_usb_device] bcdDevice = 100
    libusbip: debug: usbip_common.c:105:[dump_usb_device] Vendor/Product = unknown vendor : unknown product (0204:6025)
    libusbip: debug: usbip_common.c:107:[dump_usb_device] bNumConfigurations = 1
    libusbip: debug: usbip_common.c:108:[dump_usb_device] bNumInterfaces = 1
    libusbip: debug: usbip_common.c:111:[dump_usb_device] speed = High Speed(480Mbps)
    libusbip: debug: usbip_common.c:113:[dump_usb_device] busnum = 1
    libusbip: debug: usbip_common.c:114:[dump_usb_device] devnum = 3
    libusbip: debug: usbip_common.c:84:[dump_usb_interface] Interface(C/SC/P) = unknown class / unknown subclass / unknown protocol (08/06/50)
    usbipd: info: request 0x8005(6): complete
    usbipd: debug: usbipd.c:568:[do_standalone_mode] read event on fd[0]=4
    usbipd: info: connection from 192.168.1.53:59678
    usbipd: info: received request: 0x8003(6)
    usbipd: info: found requested device: 1-5
    usbip: info: connect: 1-5
    usbipd: debug: usbipd.c:165:[recv_request_import] import request busid 1-5: complete
    usbipd: info: request 0x8003(6): complete

    beide usbip-Versionen sind auf 2.0
    usbip version

    usbip (usbip-utils 2.0)

    Sind eventuell Modems nicht unterstützt?

    Für den Inhalt des Beitrages 115709 haftet ausdrücklich der jeweilige Autor: mgaertne