Adding Bluetooth support on imx6

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

Adding Bluetooth support on imx6

2,129 Views
amitkulkarni
Contributor II

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

Labels (2)
0 Kudos
1 Reply

909 Views
igorpadykov
NXP Employee
NXP Employee

Hi Amit

one can check for hw modifications on

How to enable BT on board imx6q_sabresd RevC. 

and test with Demo Image

https://www.nxp.com/webapp/Download?colCode=IMX_N7.1.2_2.0.0_ANDROID_DEMO_AI_BSP&appType=license&loc... 

also one can get extended support from wifi vendor on

wireless.murata.com/eng/products/rf-modules-1/wi-fi-bluetooth-for-freescale-i-mx.html

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos