Bluetooth on Raspberry Pi Zero W, using buildroot

时间:2017-10-12 10:21:52

标签: bluetooth raspberry-pi buildroot

I'm trying to get the onboard Broadcom bluetooth working in a Buildroot 2017.08 built linux on the Raspberry Pi Zero W. It's not showing me the adapter. Bluetooth USB dongles do work.

Things I've already done:

  • Added rpi-bt-firmware
  • Added Bluez-tools and Bluez5-utils
  • Kernel compiled with all sorts of Bluetooth support
  • Loaded bluetooth modules: bluetooth, bnep, btbcm, hci_uart
  • rfkill list (shows no bluetooth devices)
  • rfkill unblock bluetooth (just in case)

After boot I'm manually starting bluetoothd followed by bluetoothctl. when I type "power on", "list" or "show" it does not give me any bluetooth controllers.

The hardware is working, on the same system I have Debian Jessie working fine with the bluetooth.

Also, given that USB bluetooth dongles work, I think the kernel is OK too.

  • What could possibly be the problem here??
  • Anything I could try to troubleshoot??
  • Anything I could install or add to make it work??

Anything is welcome at this point! :)

UPDATE

I have it working by running hciattach /dev/ttyAMA0 bcm43xx 921600 flow - at start-up. However, I have barely a clue what's going on here. Proper explanation will count as an answer.

I have also removed console=/dev/ttyAMA0 from the cmdline.txt, not sure though if that was necessary.

1 个答案:

答案 0 :(得分:1)

hciattach通过UART将串行HCI设备连接到Bluez堆栈https://www.systutorials.com/docs/linux/man/8-hciattach/。 在您的情况下,串行Broadcom HCI适配器位于/ dev / ttyAMA0,因此您的运行命令将其作为bcm43xx HCI适配器附加到Bluez。

它可能在你的Debian Jessie设置中也是如此。