[SOLVED] Bluetooth on the Pi400

This is for ARMv8 based devices

[SOLVED] Bluetooth on the Pi400

Postby solskogen » Thu Oct 07, 2021 11:09 am

Using the latest kernel $this->bbcode_second_pass_code('', 'linux-raspberrypi4 5.10.63-17') I cant get bluetooth to work.

$this->bbcode_second_pass_code('', '
[solskogen@secret ~]$ sudo bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]# list
[bluetooth]#
')

Am I doing this the wrong way?
Last edited by solskogen on Fri Oct 22, 2021 6:58 am, edited 2 times in total.
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby solskogen » Mon Oct 11, 2021 7:08 am

Seems to be kernel related. With the linux-raspberrypi4 kernel, I can't get bluetooth to work on a Pi4 either. Bluetooth works, however, with linux-aarch64.
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby graysky » Mon Oct 11, 2021 7:47 am

I am not expert with BT, but did compare the bluetooth section of both kernel configs and there are differences. Are you willing to build/test a rpi4 kernel and see if it fixes BT?

https://github.com/graysky2/PKGBUILDs/c ... 212f488600

Precompiled: http://repo-ck.com/aarch64-test/linux-r ... kg.tar.zst
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluetooth on the Pi400

Postby solskogen » Mon Oct 11, 2021 8:37 am

Still same problem, I'm afraid (I'm by no means BT expert myself, I just got my first BT keyboard)

$this->bbcode_second_pass_code('', '[root@secret ~]# bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available')
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby graysky » Mon Oct 11, 2021 10:35 am

Perhaps this is more than RPi400, I found that on my RPi4B, I get the same output as you on the rpi4 kernel (aarch64):
$this->bbcode_second_pass_code('', '% sudo bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
')

Yet on linux-aarch64:
$this->bbcode_second_pass_code('', '% sudo bluetoothctl
Agent registered
[CHG] Controller DC:A6:32:XX:XX:XX Pairable: yes
Agent unregistered
')
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluetooth on the Pi400

Postby solskogen » Mon Oct 11, 2021 2:17 pm

I'm afraid so. Both my Pi4 and Pi400 show the same symptoms. On Raspberry Pi OS (64bit) the Bluetooth stack works fine.
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby graysky » Mon Oct 11, 2021 3:06 pm

Can you post /boot/config.txt and any file that reference from RPiOS please. Also what version of bluez and bluez-utils is RPiOS using?
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Bluetooth on the Pi400

Postby solskogen » Tue Oct 12, 2021 6:04 am

ii bluez 5.50-1.2~deb10u2+rpt1 arm64 Bluetooth tools and daemons
ii bluez-firmware 1.2-4+rpt8 all Firmware for Bluetooth devices


There's nothing in config.txt that has anything to do with BT:

$this->bbcode_second_pass_code('', '# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Enable DRM VC4 V3D drive
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
arm_64bit=1
gpu_mem=128
dtparam=act_led_trigger=actpwr
boot_delay=0

[pi400]
arm_freq=2200
over_voltage=8
force_turbo=1

[all]
')
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby solskogen » Tue Oct 12, 2021 6:45 am

For what it's worth: BT is working in Manjaro ARM.
solskogen
 
Posts: 160
Joined: Mon Nov 18, 2013 10:41 am

Re: Bluetooth on the Pi400

Postby darksky » Tue Oct 19, 2021 7:00 pm

The kernel changed a while back and if for some reason you still have the older cmdline.txt installed what is in bold below is what the values need to be.

root=/dev/mmcblk0p2 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Next

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 4 guests