Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No bluetooth device on RPi4b Gentoo 64bit
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
g-virus
n00b
n00b


Joined: 26 Aug 2017
Posts: 59

PostPosted: Thu Apr 23, 2020 10:21 pm    Post subject: No bluetooth device on RPi4b Gentoo 64bit Reply with quote

Hello everyone!

I cannot use bluetooth on my RPi4 with 2GB RAM since it doesn't exist at all on Linux. hciconfig -a shows nothing, rfkill shows only WiFi device, even lsusb shows the following:

Code:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I think the problem with USB because It should list something more than this I guess. But the WiFi works well.

There is Linux 5.6.0-rc5-v8+, bluez is installed as well as kernel modules, bluetooth service is running, but still nothing. Please any ideas, thanks in advance!
Back to top
View user's profile Send private message
Jarodiv
n00b
n00b


Joined: 17 Jan 2020
Posts: 21

PostPosted: Tue Aug 04, 2020 6:34 pm    Post subject: Reply with quote

Did you configure the Kernel for Bluetooth and have you installed the required firmware?

The Gentoo on my Pi4 is 64-Bit but the following steps should be the same (inspired by that wiki page -> https://wiki.gentoo.org/wiki/Raspberry_Pi_3_64_bit_Install#Install_Bluetooth_firmware):

Code:
# emerge --ask --verbose sys-kernel/linux-firmware

# mkdir /etc/firmware
# wget --directory-prefix=/etc/firmware https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/master/broadcom/BCM43430A1.hcd
# wget --output-document /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.clm_blob
# wget --output-document /lib/firmware/brcm/brcmfmac43455-sdio.txt  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt


For me that already was enough to at least see the device.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46131
Location: 56N 3W

PostPosted: Tue Aug 04, 2020 8:01 pm    Post subject: Reply with quote

g-virus,

Bluetooth data is on one of the serial ports.
Even though WiFi and Bluetooth share the same RF parts, the backends are separate.

WiFI is SDIO (like a microSD card)
Bluetooth is a serial link (RS232)
The Bluetooth firmware is loaded over the serial link.

-- edit --

This script should work on the Pi3 or P4 but 921600 is not fast enough for audio over bluetooth but its all the Pi3 could do.
The Pi4 can go faster. Its only one line, try it by hand.

/etc/local.d/bluetooth.start
Code:
#!/bin/bash

# Having openrc start the bluetooth service is required
# but not suffcient to have Raspberry Pi bluetooth working
# bluez needs some patches they are in /etc/portage/patches
# so if you want to rebuild bluez, you can :)

# Bluetooth is attcached to /dev/ttyAMA0 so attach it and
# load the firmware
/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -

# thats enough to have it work for some things.

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum