Hi All,
We are trying to bring up bluetooth on custom iMX6 Sabresd board with wl12xx chipset for Android Lollipop 5.0.
We have followed the steps below to add support for wl12xx chipset,
defconfig:
CONFIG_TI_ST=y
CONFIG_ST_HCI=y
CONFIG_OF=y
CONFIG_BT=y
CONFIG_BT_L2CAP=y
CONFIG_BT_SCO=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
CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
Board file:
static struct ti_st_plat_data wilink_pdata = {
.nshutdown_gpio = 0,
.dev_name = "/dev/ttymxc2",
.flow_cntrl = 1,
.baud_rate = 3000000,
.suspend = plat_kim_suspend,
.resume = plat_kim_resume,
.chip_enable = plat_kim_chip_enable,
.chip_disable = plat_kim_chip_disable
};
static struct platform_device wl127x_bt_device = {
.name = "kim",
.id = -1,
.dev.platform_data = &wilink_pdata,
};
static struct platform_device btwilink_device = {
.name = "btwilink",
.id = -1,
};
init script:
chown bluetooth net_bt_stack /dev/ttymxc2
chmod 0660 /dev/ttymxc2
service uim /system/bin/uim-sysfs
class core
user bluetooth
group bluetooth net_bt_admin
After making those changes bluetooth interface is up and we are able to scan and list devices. While testing file transfer, we were able to receive files but couldn't transfer files. During file transfer, the entire system seems to be stuck and unresponsive. We are not able to get any debug information regarding this issue. We have successfully tested this combination in Android Kitkat 4.4.2. Is this issue related with the bluetooth stack(bluedroid) ?
Have anyone faced any issue similar to this?