Skip to main content
28 of 29
Rollback to Revision 24

ubuntu 22.04, remote USB on Raspberry Pi 0 W

On my iMAC:

Retina 5K, 27-inch, Late 2015
4 GHz Quad-Core Intel Core i7
16 GB 1867 MHz DDR3
AMD Radeon R9 M395X 4 GB

I am running VirtualBox:

Version 7.0.14 r161095 (Qt5.15.2)

I have a Linux virtual machine:

Description: Ubuntu 22.04.4 LTS
Release:     22.04
Codename:    jammy

I connect to a Raspberry Pi 0 W which has an IP on my network of 192.168.5.185, I have enabled root and ssh, connected to the Raspberry Pi I have a CAN-BUS USB device, from ssh terminal:

root@RPi0:~# lsusb
Bus 001 Device 003: ID 1d50:606f OpenMoko, Inc. Geschwister Schneider CAN adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Using ssh I have enable the USB device:

root@RPi0:~# usbip list
 - busid 1-1 (1d50:606f)
   OpenMoko, Inc. : Geschwister Schneider CAN Adapter (1d50:606f)

The goal is to map the remote CAN BUS adapter to Ubuntu, which I have done before only a week ago, for another reason I had to start over and now I'm having a problem, when I try to list the remote usb devices from a Ubuntu terminal:

usbip list -r 192.168.5.185
usbip: info no exportable devices found on 192.168.5.185

I rebooted the Pi 0 and then in my Ubuntu terminal:

sy@Linux:~$ usbip list -r 192.168.5.185
Exportable USB devices
======================
 - 192.168.5.185
        1-1: OpenMoko, Inc. : Geschwister Schneider CAN adapter (1d50:606f)
           : /sys/devices/platform/soc/20980000.usb/usb1/1-1
           : (Defined at Interface level) (00/00/00)

sy@Linux:~$ sudo usbip attach -r 192.168.5.185 -b 1-1
[sudo] password for sy:
libqsbip: error: udev_device_new_from_subsystem_sysname failed
usbip: error: open vhci_driver (is vhci_hcd loaded?)