1:在设备树中添加一下节点 bt_rfkill { compatible = "fsl,mxc_bt_rfkill"; bt-power-gpios = <gpio2 6 GPIO ACTIVE LOW>; status ="okay": } 2:将引用到gpio2 IO06的节点注释掉 /*modem_reset: modem-reset { compatible = "gpio-reset"; reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; reset-delay-us = <2000>; reset-post-delay-ms = <40>; #reset-cells = <0>; };*/ 3:修改驱动配置文件 打开文件:OK8MM-android-source/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/android_defconfig 添加驱动配置 修改如下: CONFIG_MACH_IMX_BLUETOOTH_RFKILL=y 4:重新编译烧写。启动后内核打印信息如下: evk 8mm:/ # dmesg grep rfkill [ 2.232094] rfkill: BT RF going to : on [ 2.235946] mxc bt rfkill reset [ 2.236440] mxc bt rfkill driver success loaded |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 16:07
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.