[SOLVED] Bluetooth on the Pi400

This is for ARMv8 based devices

Re: Bluetooth on the Pi400

Postby solskogen » Tue Oct 19, 2021 7:09 pm

Even with that...

$this->bbcode_second_pass_code('', '[root@bambi ~]# systemctl status bluetooth
○ bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
[root@bambi ~]# bluetoothctl
Waiting to connect to bluetoothd...
[root@bambi ~]# systemctl start bluetooth
[root@bambi ~]# bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]#

root@bambi ~]# cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=DC:A6:32:C2:13:8F vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 root=/dev/sda3 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200 audit=0 quiet')
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby darksky » Tue Oct 19, 2021 10:05 pm

Guessing you have installed the firmware-raspberrypi package?
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Re: Bluetooth on the Pi400

Postby solskogen » Wed Oct 20, 2021 7:32 am

I do.
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby solskogen » Thu Oct 21, 2021 7:13 pm

I managed to get it work by adding this to config.txt

$this->bbcode_second_pass_code('', 'dtparam=krnbt=on')
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby darksky » Thu Oct 21, 2021 8:11 pm

Sounds good! I am not used to having to set that.
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Re: Bluetooth on the Pi400

Postby graysky » Thu Oct 21, 2021 8:15 pm

$this->bbcode_second_pass_quote('solskogen', 'I') managed to get it work by adding this to config.txt

$this->bbcode_second_pass_code('', 'dtparam=krnbt=on')


This is an interesting finding. Confirmed here on aarch64 (although I do not have any bt devices to actually pair). Would you open an issue against the rpi kernel on github? Perhaps someone there has some insights into why aarch64 isn't working but armv7h is working.
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluetooth on the Pi400

Postby solskogen » Thu Oct 21, 2021 8:37 pm

I found the tip on Gentoo's wiki.
I think the problem is due to some missing file (or wrong file) on ALARM's side, because BT works fine on Raspberry Pi OS 64bit, and on Manjaro ARM it also works without that quirk.
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: [SOLVED] Bluetooth on the Pi400

Postby graysky » Mon Oct 25, 2021 6:04 am

graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [SOLVED] Bluetooth on the Pi400

Postby graysky » Thu Oct 28, 2021 5:38 pm

I started a thread about this on the RPi forums and one of the engineers is asking some questions which I do not know how to answer. If anyone would like to participate please do: https://beta.raspberrypi.org/forums/vie ... p?t=322229
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [SOLVED] Bluetooth on the Pi400

Postby darksky » Tue Nov 02, 2021 5:53 pm

I have always had to have an external way to load the bluetooth firmware on 64bit which is different between some rpi devices including the command line as you know. I have not tried arch-arm 32bit in a very long time but when I did it had the same issue at that time and had to have an external way to load the the proper firmware.

To tell you the truth I am in the process of testing and have one device left to test on 64bit using dtparam=krnbt=on in config.txt. I like the auto probing of the device (instead of maunally loading via a .service) and loading the right firmware. It saves time having to modifying the script used every time a new device is added. Like the new rpi zero w2.

The thread you posted seems to be at a stand still right now. I have a suspicion that they have some way themselves in their OS that loads the firmware as they do not use dtparam=krnbt=on in config.txt but it just simply be they have something different in their kernel as pointed out the upstream kernel has no issue loading the firmware.

All I care about at this point is to have the firmware get loaded for each device the easiest way possible.
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

PreviousNext

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 4 guests