-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On-board Bluetooth: loading firmware with devicetree #3459
Comments
There are two essential kernel parts which are:
Both requirements should be fulfilled for all RPi variants with mainline kernel >= 5.5. Btw the RPi 4 required a patch in the serdev driver (include in Linux 5.4) to get working. |
Thanks. bcm28xx DT files have the section (even on 5.4), but I guess those can only be used with upstream kernel, right? |
I think you should provide the following information:
|
Typically, I'm on a raspberry PiZero W under Alpine 3.11 (distribution's stock linux-rpi kernel 5.4), firmware at /lib/firmware/brcm/BCM43430A1.hcd I compare 2 setups:
I'd like to load firmware with device-tree rather than with btuart/downstream hciattach, if at all reliably possible. I guess bcm27xx DT files will probably include this sometime soon? (note, unrelated, but in all case I'm having wierd errors on my cdrom drive, I'm at lost with...usb driver issue?)
|
Did you checked that serdev and BT_HCIUART_BCM is enabled in kernel config? Btw the overlay looks useless to me without the definition of the shutdown-gpios. |
Yes, that part seems ok
|
I see there's some recent significant work on DT files stuff (upstream/downstream), including @pelwell is there any chance Bluetooth firmware loading get integrated in downstream DT files as part of this work? |
closing as per #3682 |
I'm trying to understand how to load Bluetooth firmware with device-tree rather than using
pi-bluetooth
Raspbian package together with relatedbtuart
script and assorted downstream-patched depreciatedhciattach
(indeedbtattach
seems still unreliable for this).Rationale is, for instance, to seamlessly setup Bluetooth on a PiZeroW with different distributions such as AlpineLinux, and enjoy proper Bluetooth operations even when audio streaming is involved (A2DP).
bcm2835-rpi-zero-w.dts seems to have the pieces together to do the trick, but firmware does NOT appear to load by default.
I noticed @lategoodbye and @pelwell discussed similar topic on Pi4 context, but I'm not sure this now supported on all Pi device with onboard Bluetooth.
Do we need any statement in
config.txt
or some other extra setup to do the magic?The text was updated successfully, but these errors were encountered: