Hello Toradex team,
I hope you are all doing great! And thank you for your support.
Hardware:
- SoM Verdin IMX8M Plus Quad 4GB WB IT v1.1A
- Heatsink Verdin Industrial Heatsink Type 1 V1.0B
- Dual-Band Wi-Fi/Bluetooth PCB Antenna 100mm V1.0A
- Custom Carrier Board based on Verdin
uname:
- Linux 0146230000 5.15.177-6.8.2+git.5a6602cc6c32 #1-TorizonCore SMP PREEMPT Fri Mar 21 16:22:58 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
Images tested:
- torizon-core-docker-verdin-imx8mp-Tezi_6.8.2+build.30.tar (STABLE Release)
Guest OS:
- macOS (M1 Pro ARM64)
- Linux ubuntu (VM x86_64)
Issue:
I’m facing an issue with the /sys/class/hwmon/hwmonX not being deterministic, at every reboot the hardware is linked to a new number this make it hard to use it in my docker containers as I have to linked the appropriate device to have avoid issue with:
$ docker run -it --rm -v /tmp:/home/torizon -v /sys/class/hwmon:/sys/class/hwmon torizon/debian:$CT_TAG_DEBIAN bash
# echo 1 > /sys/class/hwmon/hwmon1/pwm1_enable
bash: /sys/class/hwmon/hwmon1/pwm1_enable: Read-only file system
# exist
$ docker run -it --rm -v /tmp:/home/torizon -v /sys/class/hwmon/hwmon1:/sys/class/hwmon/hwmon1 torizon/debian:$CT_TAG_DEBIAN bash
# echo 1 > /sys/class/hwmon/hwmon1/pwm1_enable
# SUCCESS
What I can see in the folder /sys/class/hwmon/:
$ cat /sys/class/hwmon/hwmon*/name
tmp75c
gpio_fan
gpio_fan
ncp03wf104
$ sudo reboot
...
$ cat /sys/class/hwmon/hwmon*/name
gpio_fan
gpio_fan
tmp75c
ncp03wf104
$ sudo reboot
...
$ cat /sys/class/hwmon/hwmon*/name
gpio_fan
ncp03wf104
gpio_fan
tmp75c
...
Is there a solution I can use to select the number in my device tree ? Did anyone faced similar issue and has a workaround to avoid issue in my docker containers.
Thanks in advance for your help.
Best,
M