Hi together,
I have a problem with udev devices inside a single container.
I inserted the following udev rules in config.json
"ACTION==\"add\", DEVPATH==\"*/usb1/1-1/1-1.5/1-1.5.2/*\", SYMLINK+=\"ttyRS485\"\nACTION==\"add\", DEVPATH==\"*/usb1/1-1/1-1.5/1-1.5.3/*\", SYMLINK+=\"ttyConBridge\"\nACTION==\"add\", DEVPATH==\"*/spi0.1/net/pieth*\", NAME=\"pileft\"\n\n"
Alter flashing the OS (2.31.5+rev2, revpi-core-3) on RevPI connect+ the devices are shown as expected:
crw--w---- 1 root tty 4, 9 Mar 18 2019 /dev/tty9
crw-rw---- 1 root dialout 204, 64 Jun 24 08:56 /dev/ttyAMA0
lrwxrwxrwx 1 root root 7 Mar 18 2019 /dev/ttyConBridge -> ttyUSB1
lrwxrwxrwx 1 root root 7 Mar 18 2019 /dev/ttyRS485 -> ttyUSB0
crw-rw---- 1 root dialout 188, 0 Mar 18 2019 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Mar 18 2019 /dev/ttyUSB1
crw------- 1 root root 5, 3 Mar 18 2019 /dev/ttyprintk
root@revPI-1:~#
The next step was to deploy the balena container using the dockerfile. Here the first lines:
FROM balenalib/armv7hf-ubuntu-node:8-bionic-20200221
RUN apt-get update && apt-get -y install sudo
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y tzdata wget python-rpi.gpio python3-rpi.gpio
#RUN apt-get install -y tzdata wget
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata
...
After starting the single container and check the devices inside the container no udev devices could be found:
crw--w---- 1 root tty 4, 9 Jun 24 10:56 /dev/tty9
crw-rw---- 1 root dialout 204, 64 Jun 24 10:56 /dev/ttyAMA0
crw-rw---- 1 root dialout 188, 0 Jun 24 11:32 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jun 24 10:56 /dev/ttyUSB1
crw------- 1 root root 5, 3 Jun 24 10:56 /dev/ttyprintk
root@revPI-1:/#
May be someone has an idea how to fix this issue?
Thanks
Peter