Enable HDMI CEC function
Board: i.MX8MQ Board
BSP version: imx-android-11.0.0_2.2.0
Following the Android user guide download and built the Android-11.0.0_2.2.0 BSP
The build directory shared here:
http://10.168.2.226/android/build_folder/device/nxp/imx8m/evk_8mq/hdmicec/.
or use the files in attachment.
The steps are:
In device/nxp/imx8m/evk_8mq/evk_8mq.mk, adding below code:
+PRODUCT_PACKAGES += \
hdmi_cec.nxp\
hdmicec_test"
(2) Compile that.
(3) Copy to board
adb root
adb remount
adb push hdmi_cec.nxp.so /vendor/lib64
adb push hdmi_test /vendor/bin
evk_8mq:/vendor/bin # ./hdmicec_test
[ 349.297183] msg[0]=0x40
[ 349.299641] msg[1]=0x4