You are not logged in.

#1 2020-07-15 21:07:36

dmorilha
Member
Registered: 2016-09-11
Posts: 3

usbip-5.7 isn't working

Followed instructions from the WIKI

$ pacman -Q linux usbip;
linux 5.7.8.arch1-1
usbip 5.7-1
$ usbip list -l 
 - busid 1-1.2 (05ac:1301)
   Apple, Inc. : iPod Shuffle 2.Gen (05ac:1301)
$ sudo modprobe uspip-host;
$ sudo systemctl enable --now usbipd;
$ sudo usbip --log --debug bind -b 1-1.2;
usbip: debug: usbip.c:129:[run_command] running command: `bind'
usbip: debug: sysfs_utils.c:24:[write_sysfs_attribute] error writing to attribute /sys/bus/usb/drivers/usbip-host/bind
usbip: error: error binding device 1-1.2 to driver: No such device
usbip: error: could not bind device to usbip-host
$

I tried on two x86_64 hosts and one armv7h (kernel 4.19) rpi3 and none worked.

Help is appreciated...

Last edited by dmorilha (2020-07-15 21:08:39)

Offline

#2 2020-07-16 00:03:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 10,144

Re: usbip-5.7 isn't working

Ipod shuffles aren't often plain USB accessible devices, so I'm not surprised. Do you have any sources on why that would/should work? Have you tried with a plain USB stick?

Last edited by V1del (2020-07-16 00:04:29)

Offline

#3 2020-07-16 00:15:55

dmorilha
Member
Registered: 2016-09-11
Posts: 3

Re: usbip-5.7 isn't working

This generation actually is, that's why I still keep them around. Anyways, I tried with other devices and they all fail at the same point:

$ usbip list -l;
 - busid 1-1.1 (1908:0226)
   GEMBIRD : unknown product (1908:0226)

 - busid 1-1.2 (05ac:1301)
   Apple, Inc. : iPod Shuffle 2.Gen (05ac:1301)

 - busid 2-1.3 (04a9:26ee)
   Canon, Inc. : MF4320-4350 (04a9:26ee)

$ sudo usbip --debug bind -b 1-1.1
usbip: debug: usbip.c:129:[run_command] running command: `bind'
usbip: debug: sysfs_utils.c:24:[write_sysfs_attribute] error writing to attribute /sys/bus/usb/drivers/usbip-host/bind
usbip: error: error binding device 1-1.1 to driver: No such device
usbip: error: could not bind device to usbip-host

$ sudo usbip --debug bind -b 2-1.3
usbip: debug: usbip.c:129:[run_command] running command: `bind'
usbip: debug: sysfs_utils.c:24:[write_sysfs_attribute] error writing to attribute /sys/bus/usb/drivers/usbip-host/bind
usbip: error: error binding device 2-1.3 to driver: No such device
usbip: error: could not bind device to usbip-host

$

Offline

#4 2020-07-21 00:59:01

jdoggsc
Member
Registered: 2011-08-15
Posts: 59

Re: usbip-5.7 isn't working

This isn't as much help as it is commiseration.

I'm getting similar errors.  This is the first time I've actually tried messing with usb/ip, and I've only experienced a failed result, so I'm anxious to get it working.

my output:

[jdoggsc@desktop ~]$ lsmod | grep usb
usbhid                 65536  0
hid                   143360  2 usbhid,hid_generic
usbip_host             40960  0
usbip_core             40960  1 usbip_host
[jdoggsc@desktop ~]$ usbip list -l
 - busid 1-3 (1b1c:1b3d)
   Corsair : unknown product (1b1c:1b3d)

 - busid 1-4 (04d8:900a)
   Microchip Technology, Inc. : PICkit3 (04d8:900a)

[jdoggsc@desktop ~]$ usbip bind -b 1-4 --debug
usbip: error: error unbinding device 1-4 from driver
usbip: error: could not unbind driver from device on busid 1-4
[jdoggsc@desktop ~]$ sudo usbip bind -b 1-4 --debug
usbip: error: error binding device 1-4 to driver: No such device
usbip: error: could not bind device to usbip-host

The format of the busids on this particular computer differ from those on my laptop (also Arch), which is more of the x.y-z format.  The errors are the same on both.

I also would appreciate some help on this topic.  This functionality is built into the linux kernel.  I'm delving into understanding whether this is related to the linux kernel, or the usbip package installed with pacman.  For the record, though:

[jdoggsc@desktop ~]$ pacman -Ql usbip
usbip /usr/
usbip /usr/bin/
usbip /usr/bin/usbip
usbip /usr/bin/usbipd
usbip /usr/include/
usbip /usr/include/usbip/
usbip /usr/include/usbip/list.h
usbip /usr/include/usbip/sysfs_utils.h
usbip /usr/include/usbip/usbip_common.h
usbip /usr/include/usbip/usbip_host_common.h
usbip /usr/include/usbip/usbip_host_driver.h
usbip /usr/include/usbip/vhci_driver.h
usbip /usr/lib/
usbip /usr/lib/libusbip.so
usbip /usr/lib/libusbip.so.0
usbip /usr/lib/libusbip.so.0.0.1
usbip /usr/lib/modules-load.d/
usbip /usr/lib/modules-load.d/usbip.conf
usbip /usr/lib/systemd/
usbip /usr/lib/systemd/system/
usbip /usr/lib/systemd/system/usbipd.service
usbip /usr/share/
usbip /usr/share/man/
usbip /usr/share/man/man8/
usbip /usr/share/man/man8/usbip.8.gz
usbip /usr/share/man/man8/usbipd.8.gz

Offline

#5 2020-07-30 14:05:39

ezacaria
Member
Registered: 2007-12-10
Posts: 76

Re: usbip-5.7 isn't working

As luck would have it, I also wanted to try this out the first time, just to fall straight to this error tongue

I have a virtualbox machine with 5.4.50-1-lts, the error does not happen there. At least, I can bind a device without the "write_sysfs_attribute" error.

This would match well with the idea that things worked till kernel 5.6 - as stated on this bug report

Offline

#6 2020-07-30 14:36:24

ezacaria
Member
Registered: 2007-12-10
Posts: 76

Re: usbip-5.7 isn't working

I just switched to the currently available linux-lts 5.4.53-1, and was able to use my scanner over the home network.
A steady stream of about 28 mbps is visible on the client machine.

Offline

Board footer

Powered by FluxBB