xrun -l doesnt list any XMOS devices on Linux (Ubuntu 24.10 VM)

Technical discussions around xCORE processors (e.g. xcore-200 & xcore.ai).
ratin3@gmail.com
Member
Posts: 9
Joined: Fri Nov 15, 2024 2:40 am

xrun -l doesnt list any XMOS devices on Linux (Ubuntu 24.10 VM)

Post by ratin3@gmail.com »

After going thru XMOS XTC tools install and setup (setup_xmos_devices.sh runs successfully), xrun -l pauses for a while and comes up with no available devices. Everything else, including scripts/check_xmos_devices.sh indicates things are working as expected. The host is a VBOX VM with USB-3.0 devices enabled and bridged to guest OS.

dmesg
====================================
[ 30.948448] 17:05:31.014170 main Service started
[ 30.948651] 17:05:31.014526 main OS Product: Linux
[ 30.948934] 17:05:31.015011 main OS Release: 6.11.0-9-generic
[ 30.949491] 17:05:31.015274 main OS Version: #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024
[ 30.950163] 17:05:31.015862 main Executable: /opt/VBoxGuestAdditions-7.0.14/bin/VBoxClient
17:05:31.015865 main Process ID: 4118
17
[ 30.950981] 17:05:31.016613 main VBoxClient 7.0.14 r161095 started. Verbose level = 0. Wayland environment detected: yes
[ 30.951455] 17:05:31.017384 main Service: VMSVGA display assistant
[ 30.952785] 17:05:31.018841 main Initializing service ...
[ 30.953302] 17:05:31.019129 main VBoxClient VMSVGA: probing Desktop Environment helper 'GNOME3'
[ 30.953909] 17:05:31.019670 main VBoxClient VMSVGA: using Desktop Environment specific display helper 'GNOME3'
[ 30.954434] 17:05:31.020276 main VBoxClient VMSVGA: Creating worker thread ...
[ 30.954899] 17:05:31.020673 IpcCLT-4126 VBoxDRMClient: IPC client connection started
[ 30.956925] 17:05:31.022864 main VBoxClient VMSVGA: Service started
[ 31.318699] audit: type=1400 audit(1733504731.384:176): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/23258/usr/lib/snapd/snap-confine" pid=4182 comm="snap-confine" capability=12 capname="net_admin"
[ 31.320306] audit: type=1400 audit(1733504731.384:177): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/23258/usr/lib/snapd/snap-confine" pid=4182 comm="snap-confine" capability=38 capname="perfmon"
[ 97.648884] usb 1-2: USB disconnect, device number 3
[ 99.760166] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[ 100.026125] usb 1-2: config 1 interface 1 altsetting 1 endpoint 0x1 has invalid maxpacket 1600, setting to 1024
[ 100.026132] usb 1-2: config 1 interface 1 altsetting 2 endpoint 0x1 has invalid maxpacket 1600, setting to 1024
[ 100.026134] usb 1-2: config 1 interface 1 altsetting 3 endpoint 0x1 has invalid maxpacket 1600, setting to 1024
[ 100.026771] usb 1-2: New USB device found, idVendor=20b1, idProduct=0016, bcdDevice= 8.10
[ 100.026774] usb 1-2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 100.026775] usb 1-2: Product: XMOS xCORE.ai MC (UAC2.0)
[ 100.026777] usb 1-2: Manufacturer: XMOS
[ 101.479477] usb 1-3: new high-speed USB device number 5 using xhci_hcd
[ 101.727895] usb 1-3: New USB device found, idVendor=20b1, idProduct=f7d5, bcdDevice= 0.06
[ 101.727901] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 101.727902] usb 1-3: Product: XMOS XTAG-4
[ 101.727903] usb 1-3: Manufacturer: XMOS
[ 101.727904] usb 1-3: SerialNumber: XD00FTAGL4P4HTTF



ratin@ratin-ubuntu24:~/XMOS/XTC/15.3.0/scripts$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 004: ID 20b1:0016 XMOS Ltd XMOS xCORE.ai MC (UAC2.0)
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

ratin@ratin-ubuntu24:~/XMOS/XTC/15.3.0/scripts$ ./check_xmos_devices.sh
Searching for xtag3 devices...
0 found
Searching for xtag4 devices...
1 found
Success: User ratin is able to access all xtag4 devices

ratin@ratin-ubuntu24:~/XMOS/XTC/15.3.0/scripts$ xrun -l

Available XMOS Devices
----------------------

No Available Devices Found
Joe
Verified
Experienced Member
Posts: 83
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

The XTAG4 isn't seen by lsusb so that would be the first thing to debug.

Could be the VM isn't configured correctly to tunnel the USB connections through?
XMOS hardware grey beard.
User avatar
fabriceo
XCore Addict
Posts: 244
Joined: Mon Jan 08, 2018 4:14 pm

Post by fabriceo »

in fact, when powered on, the xtag will appear in VBOX with a certain ID and if you allocate it to the Guest then xflash -l will see it. But then xflash will upload the client firmware (jtag...) into the xtag adapter and there will be a re-enumeration, so it will be seen with another ID in VBOX host, so you have to reallocate it into the guest. if you make the 2 ID attached to the guest in the VM Configuration file then you might have success. But still from my experience it is not reliable. please share if you find a good solution
Joe
Verified
Experienced Member
Posts: 83
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

When I've used a VM I have set the configuration such that all devices with the XMOS VID get connected through - 20b1.

As fabriceo says, when you run xrun it loads new firmware onto the xtag at that point and that causes a re-enumeration. Probably the VM isn't seeing the new device.
XMOS hardware grey beard.