Using Bluetooth in a Yocto-Built console image for Colibri i.MX6ULL

Dear Community,

I would like to use Bluetooth with the custom-built image based on the most recent BSP, however this does not work for me yet. I have built the image with the following steps:

repo init -u http://git.toradex.com/toradex-bsp-platform.git -b LinuxImage3.0

then synchronizing the repo, setting the machine to colibri-imx6ull, and building ‘console-tdx-image’

After booting the system with TFTP/NFS, the hci0 device is not found. Some additional information follows:

uname -a
Linux colibri-imx6ull 4.14.117-3.0.2+ge43e3a26e1b7 #1 SMP Wed Nov 20 18:42:51 UTC 2019 armv7l GNU/Linux

root@colibri-imx6ull:~# lsmod
Module                  Size  Used by
bnep                   20480  2
bluetooth             339968  9 bnep
usb_f_rndis            24576  2
u_ether                20480  1 usb_f_rndis
mcp251x                20480  0
can_dev                24576  1 mcp251x
mwifiex_sdio           36864  0
mwifiex               274432  1 mwifiex_sdio
cfg80211              266240  1 mwifiex
imx_sdma               28672  2
virt_dma               16384  1 imx_sdma
libcomposite           49152  10 usb_f_rndis
configfs               40960  3 usb_f_rndis,libcomposite

root@colibri-imx6ull:~# dmesg | grep -i bluetooth
[   16.651539] Bluetooth: Core ver 2.22
[   16.673320] Bluetooth: HCI device and connection manager initialized
[   16.770872] Bluetooth: HCI socket layer initialized
[   16.786937] Bluetooth: L2CAP socket layer initialized
[   16.794765] Bluetooth: SCO socket layer initialized
[   70.090777] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   70.096329] Bluetooth: BNEP filters: protocol multicast
[   70.102459] Bluetooth: BNEP socket layer initialized

root@colibri-imx6ull:~# systemctl start bluetooth.service
root@colibri-imx6ull:~# [   70.090777] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   70.096329] Bluetooth: BNEP filters: protocol multicast
[   70.102459] Bluetooth: BNEP socket layer initialized

root@colibri-imx6ull:~# connmanctl enable bluetooth
Error bluetooth: The name net.connman was not provided by any .service files

root@colibri-imx6ull:~# hciconfig
root@colibri-imx6ull:~#

Any help would be greatly appreciated!

Hello,

So apparently this is a missing driver. Somehow it is not built-in anymore. I added it back in this commit:

http://git.toradex.com/cgit/meta-toradex-nxp.git/commit/?h=thud-next&id=a7a45f7eac30d478e85df240dafcc9523f2aa36e

So you can do the same in meta-toradex-nxp layer to get that back in and then it should work

Best regards,
Philippe

Thank you, your patch seems to have solved the issue.

Perfect that it works. Thanks for your feedback.