USBIP errors and unreliable link

Hello,

I’m using a Mikrotik RB760igs (mt7621 - MIPSEL architecture) with the latest OpenWrt 21.02.1 firmware.

I would like to use this device as an usbip server but I get errors.

I’ve installed these packages: usbutils kmod-usb-ohci usbip-server usbip-client kmod-usb-core kmod-usb-storage kmod-usb-uhci kmod-usb-ohci kmod-usb2 kmod-usb3

The daemon is started with usbipd &

root@OpenWrt:~# ps w | grep usbipd
 2863 root      1280 S    usbipd
 4853 root      1252 S    grep usbipd
root@OpenWrt:~#

First test: with a Logitech USB Receiver connected

root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.154 xhci-hcd xHCI Host Controller
Bus 004 Device 001: ID 1d6b:0003 Linux 5.4.154 vhci_hcd USB/IP Virtual Host Controller
Bus 001 Device 003: ID 046d:c52b Logitech USB Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.154 xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.4.154 vhci_hcd USB/IP Virtual Host Controller
root@OpenWrt:~#

But after the command “usbip list -l” I get this error: “usbip: error: problem getting device attributes: No such file or directory” and the Logitech Receiver is not recognized.

root@OpenWrt:~# usbip list -l
 - busid usb2 (1d6b:0003)
   Linux Foundation : 3.0 root hub (1d6b:0003)

usbip: error: problem getting device attributes: No such file or directory

Sometimes, I get a different result and the Logitech Receiver seems to be recognized but with the same error

root@OpenWrt:~# usbip list -l
 - busid 1-1 (046d:c52b)
   Logitech, Inc. : Unifying Receiver (046d:c52b)

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

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

usbip: error: problem getting device attributes: No such file or directory

I’ve tried with different USB devices but with the same result and when I would like to connect a client, the link doesn’t work properly or the link is disconnected. I have URB errors on the usbip server : usbip-host 1-1: unlinked by a call to usb_unlink_urb()

I’ve also tried with a TP-Link Archer C7 v5 based on Atheros QCA956X with OpenWrt 21.02.1, same result and same errors.

What I’m doing wrong?

Do you know how to fix it?

Kind regards,

i dont know about usbip but i use https://www.virtualhere.com/usb_server_software sometimes, you can give it a try.. just download mipsel linux server and run on openwrt.
maybe try adding pciutils and pciids to your packages..(i have them, i am not sure about exact reason but it was usb sharing related)

Many thanks Kamilh for your suggestion. I've tried VirtualHere but the client uses usbip and I still have issues.
I've installed pciutils and pciids but I have the same error

usbip: error: problem getting device attributes: No such file or directory

Regards,

Only problem i can think of is power fault (supposing sometimes it is working, sometimes not), you can try with different, more powerful power adapter, while only one ethernet cable connected to router (laptop on battery if possible).
Good Luck..

Did you ever end up figuring this out? I am experiencing the exact same issue on my D-Link DIR-882 A1 (mt7621) running OpenWrt 21.02.3.

Devices show up in lsusb properly, and only some show up in usbip list -l and only sometimes, just like in your case.

The device in question is a printer, which draws virtually no current, and the power brick is 2.5A. I have also tried a USB flash drive, the issue persists.