I have custom buildroot image built for Raspberry Pi Zero W. My primary goal is to be able to activate on-board blueetoth, however I seem to have
immense problems achieving it. My main problem is that no matter what I do my system cannot detect any bluetooth adapters.
My buildroot .config:
Releveant part of config.txt:
# fixes rpi3 ttyAMA0 serial console dtoverlay=pi3-miniuart-bt # enable rpi3 ttyS0 serial console enable_uart=1
root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200
What I do after boot finishes:
modprobe hci_uart rfcomm bluetoothd
All starts without errors. Then when I type
bt-device -l, no adapter is shown.
When executing command
hciattach /dev/ttyS0 any 921600 noflow - I get informed of several bluetooth timeouts and then I only get:
# hciconfig -a hci0: Type: BR/EDR Bus: UART BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:12 acl:0 sco:0 commands:3 errors:0
I also tried
hciattach /dev/ttyS0 bcm43xx 921600 noflow -
But this fails with
Unknown device type or id
I’ve already spent many hours researching various resources, but I still feel very lost.
As a sidenote, I’d like to preserve serial console on GPIO pins, since its very useful for debugging.
For now I have no idea how to make this configuration work.