USB FTDI does not mount in LXC container (Turris OS 6.0.4)

I have an USB FTDI device on USB Bus 02. Port 1 shown here:

root@turris:~# lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=, Driver=usb-storage, 5000M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=ftdi_sio, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M

root@turris:~# ls -la /dev/ttyU*
crw-rw----    1 root     dialout   188,   0 Nov 17 03:30 /dev/ttyUSB0

root@turris:~# ls -la /dev/bus/usb/*
drwxr-xr-x    7 root     root           140 Nov 17 03:30 .
drwxr-xr-x    3 root     root            60 Nov 17 03:30 ..
drwxr-xr-x    2 root     root            60 Nov 17 03:30 001
drwxr-xr-x    2 root     root            80 Nov 17 03:30 002
drwxr-xr-x    2 root     root            60 Nov 17 03:30 003
drwxr-xr-x    2 root     root            60 Nov 17 03:30 004
drwxr-xr-x    2 root     root            80 Nov 17 03:30 005

I mounted it to an LXC container with the following code:

lxc.cgroup2.devices.allow = c 188:* rwm
lxc.mount.entry = /dev/bus/usb/ dev/bus/usb/ none bind,create=dir 0 0
lxc.mount.entry = /dev/ttyUSB0 dev/ttyUSB0 none bind,creat=file 0 0

On the LXC container, I see the device, but it is not mounted:

root@LXC:~# lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=, Driver=usb-storage, 5000M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=ftdi_sio, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M

root@LXC:~# ls -la /dev/ttyU*
ls: cannot access '/dev/ttyU*': No such file or directory

root@LXC:~# ls -la /dev/bus/*
ls: cannot access '/dev/bus/*': No such file or directory

Any idea?

2 Likes

yes, I had also issues with my USB deconz zigbee stick, and so far I “solved” that by freezing TurrisOS in last 5xx version.

So far I had no time to fully investigate, understand and fix the problem, so just confirming that you’re not the only one with this.

I hope that during cold winter evenings I’ll be able to allocate myself to this and that I’ll be able to fix that.

cheers

The same here … USB FTDI didn’t work on Omnia LXC in TOS 6, so I reverted to 5.4.4 for the time being

Only hint - Try to change 187 for 188 in your LXC config … I suppose it should be the same as in the host …

lxc.cgroup2.devices.allow = c 188:* rwm

2 Likes

Thank you for all your answers. I tried around for several days and could not solve it. I was close to distress. Since it looks like, I am not alone, I feel better.

The issue is very unfortunate, I might file a bug report. Going back to 5.4.4 is no option for me. I love a lot of features in the latest release and am okay not to have the latest energy consumption on the house monitor.