AnsweredAssumed Answered

Adding Bluetooth support on imx6

Question asked by Amit Kulkarni on Mar 25, 2018
Latest reply on Mar 25, 2018 by igorpadykov

Im working on imx6 platform running on Android 7.0. Im using BCM4339. I want to integrate it with our imx6 platform.

I have done changes but Bluetooth is not working on the board. I can see "timed out" error in logcat. 

Please help & guide me to get it working. Logs are attached.

 

init.rc 

# Prepare for bluetooth
chmod 665 /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
write /sys/class/rfkill/rfkill0/state 0

 

BoardConfig.mk

# Broadcom BCM4339 BT
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/fsl/imx6q/bluetooth

 

ls -l /dev/ttymxc*
type=1400 audit(2812.190:48): avc: denied { read } for pid=257 comm="sh" name="/" dev="tmpfs" ino=6713 scontext=u:r:shell:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=1
type=1400 audit(2812.190:49): avc: denied { open } for pid=257 comm="sh" path="/dev" dev="tmpfs" ino=6713 scontext=u:r:shell:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=1
crw------- 1 root root 207, 16 1970-01-01 00:46 /dev/ttymxc0
crw-rw---- 1 bluetooth net_bt_stack 207, 17 1970-01-01 00:46 /dev/ttymxc1
crw------- 1 root root 207, 19 1970-01-01 00:27 /dev/ttymxc3
crw------- 1 root root 207, 20 1970-01-01 00:27 /dev/ttymxc4

Outcomes