Hi Freescale
Question 1. We want to enable Bluetooth USB Module in iMX6 yocto linux.
Yocto linux version : 3.10.17
BT Module : Atheros AR9462 (bluetooth module --> ath3k) USB interface
===== [1] Add bt config in arch/arm/configs/imx_xxx.config ===========
------------------------------------------------------------------------
@@ -751,7 +751,26 @@
# CONFIG_CAN_SOFTING is not set
# CONFIG_CAN_DEBUG_DEVICES is not set
# CONFIG_IRDA is not set
-# CONFIG_BT is not set
+CONFIG_BT=y
+CONFIG_BT_RFCOMM=y
+CONFIG_BT_RFCOMM_TTY=y
+CONFIG_BT_BNEP=y
+CONFIG_BT_BNEP_MC_FILTER=y
+CONFIG_BT_BNEP_PROTO_FILTER=y
+CONFIG_BT_HIDP=y
+
+#
+# Bluetooth device drivers
+#
+CONFIG_BT_HCIBTUSB=y
+# CONFIG_BT_HCIBTSDIO is not set
+# CONFIG_BT_HCIUART is not set
+# CONFIG_BT_HCIBCM203X is not set
+# CONFIG_BT_HCIBPA10X is not set
+# CONFIG_BT_HCIBFUSB is not set
+CONFIG_BT_HCIVHCI=y
+# CONFIG_BT_MRVL is not set
+CONFIG_BT_ATH3K=y
# CONFIG_AF_RXRPC is not set
CONFIG_WIRELESS=y
CONFIG_WEXT_CORE=y
------------------------------------------------------------------------
===== [2] Add firmware about ar3k ================================
------------------------------------------------------------------------
IMAGE_INSTALL += " linux-firmware-ar3k "
------------------------------------------------------------------------
Result :
When system boot up, system always show some message.
------------------------------------------------------------
Bluetooth: Patch file not found ar3k/AthrBT_0x01020200.dfu
Bluetooth: Loading patch file failed
ath3k: probe of 1-1:1.0 failed with error -2
------------------------------------------------------------
Firmwares(AthrBT_0x01020200.dfu and ramps_0x01020200_40.dfu) are already in lib/firmware/ar3k.
Send command "hciconfig -a ".
We can not get any message.
Send command "hciconfig hci0 up"
We get some message " Can't get device info: No such device".
root@imx6q:~# hciconfig hci0 up
Can't get device info: No such device
ps : The bluetooth usb module is already enable and test pass in ltib bsp 4.1.0 version.
Question 2: Do you have any information about enable Bluetooth USB Module in Android 4.3/4.4 ?
Please advise.
Thanks
HI charles
probably dfu file is not compatible with linux kernel version or
this particular device, so it may be recommended to apply to atheros
for updated firmware files. Firmware may be different even for the bluetooth
modules with the same name.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
HI igorpadykov
About dfu file is not compatible with linux kernel version.
Do you have dfu file for Atheros AR9462 in imx6 yocto linux ?
I'm sure about our dfu file form yocto build.
Add install ar3k setting to fsl-image-x11.bb file in meta-layer. Then we can get some dfu file in lib/firmware/ar3k.
-------------------------------------------------------------------------
IMAGE_INSTALL += " linux-firmware-ar3k "
-------------------------------------------------------------------------
If the ar3k firmware is not correctly,how to do it in yocto version.
I tried the other platform (yocto linux 3.8.7 verison).
We can enable BT module and test pass.
Thanks
HI charles
Atheros AR9462 is not used in Freescale reference board,
so there is no software for it. I would suggest to post this to meta-fsl-arm mailing list,
so that someone who used it with Yocto could try to assist you.
https://lists.yoctoproject.org/listinfo/meta-freescale
Best regards
igor