Android P can't get LSM6DSM HAL Accelerometer/Gyroscope data on iMX8MM board
I have follow the Integration of the LSM6DSM drivers from here : https://github.com/STMicroelectronics/STMems_Linux_IIO_drivers/blob/linux-4.4.y-gh/README.md & https://github.com/STMicroelectronics/STMems_Linux_IIO_drivers/tree/linux-4.14.y-gh/drivers/iio/imu/st_lsm6dsm
Now I am able to get data through sysfs devices :
grep "" /sys/bus/iio/devices/iio\:device*/name
/sys/bus/iio/devices/iio:device0/name:lsm6dsm_accel
/sys/bus/iio/devices/iio:device1/name:lsm6dsm_gyro
/sys/bus/iio/devices/iio:device2/name:lsm6dsm_sign_motion
/sys/bus/iio/devices/iio:device3/name:lsm6dsm_step_c
/sys/bus/iio/devices/iio:device4/name:lsm6dsm_step_d
/sys/bus/iio/devices/iio:device5/name:lsm6dsm_tilt
/sys/bus/iio/devices/iio:device6/name:lsm6dsm_wrist
/sys/bus/iio/devices/iio:device7/name:lsm6dsm_stap
/sys/bus/iio/devices/iio:device8/name:lsm6dsm_dtapI have then follow the HAL integration into my AOSP folder : https://github.com/STMicroelectronics/STMems_Android_Sensor_HAL_IIO/blob/STMems_Android_Sensor_HAL_IIO/README.md & https://github.com/STMicroelectronics/STMems_Android_Sensor_HAL_IIO/blob/STMems_Android_Sensor_HAL_IIO/Documentation/README
I have not used the Factory Calibration since I am missing access to the library in lib folder
Nothing show up in my Android, no sensor :
adb shell dumpsys sensorservice
No Sensors on the device
devInitCheck : -19I see the library on my imx8 board at /system/vendor/lib/hw/sensor.imx8.so
Do I need extra libraries ? (SENSOR_FUSION, GEOMAG_FUSION, GBIAS, MAGCALIB, ACC_CALIB)
I am fine with NDA signing :
The release of STM proprietary libraries is subject to signature of a License User Agreement (LUA); please contact an STMicroelectronics sales office and representatives for further information.
Do I need to initialize anything else ?
Any clue would be really appreciated !
Thank you very much
Aurelien BOUIN
