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,
Hello @kevin.tx ,
Sorry for the delay,
The file I want to open is located here :
/sys/firmware/devicetree/base/serial-number.
And I have the following error :
For example when I want to open other files like this one located here: /sys/devices/virtual/thermal/thermal_zone0/temp
I have no problem and i can get the Temperature right :
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?
Thank you for your support,
I wasn’t located into the container and I was searching for the files directly on my device.
Thank you again for your help,