First of all concerning my HW, I am using a Yavia V1.0A as a carrier board and a Verdin iMX8MM Q 2GB WB IT V1.1E as a module.
Here is the thing, I am writing a C program on VisualStudioCode because I want to retrieve informations from the module config file such as serial number, version, temperature, etc.
When I use a “fopen()” inside my program, some of my files don’t want to open and I’m getting a “No such file or directory” error. I have double checked the path of the files and I can see them inside my module directrory.
Has anyone ever encountered this issue ?
Thank you for your help,
I just checked on my end. If you are inside a container for example chromium or as I understand your application. Then /sys/devices/virtual/thermal/thermal_zone0/temp is readable but /sys/firmware/devicetree/base/serial-number is not.
If I am directly on the device (and not inside a container) then /sys/firmware/devicetree/base/serial-number is there and I am able to read it.
How do you start your application? Can you send me the docker file that you use?