I want to read the on board sensor in im8qmmek boark using yacto platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I want to read the on board sensor in im8qmmek boark using yacto platform

533 Views
Velan
Contributor I

Hi ,

I'm using the imx8qm-mek for development. As per the board specification it has the multiple sensor on board.. so i want to read those sensor data on yacto platform..

1.  i was try to change the device tree file to  enable and read the data  by writing c file..

2. but don't have the prepare guides to follow and read  the data from the on board sensor..

3. Another one method of reading data by using yacto sdk platform this method how to use.. please guide me to interface and read data..

#imx8

0 Kudos
Reply
1 Reply

499 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please make sure these configs are enabled in kernel defconfig.

 

 

Snipaste_2025-02-10_10-40-35.jpg

To read the sensor data, please refer this case, access /sys/bus/iio/devices/iio\:device0/ node in sysfs.

https://community.nxp.com/t5/i-MX-Processors/How-to-read-iio-device-in-user-space/m-p/733081

 



Best Regards,
Zhiming

0 Kudos
Reply