Raspberry Pi 5 Mender Integration Enabling Bluetooth

I’ve been following the instructions on the Pi 5 mender integration and mostly have had success. One thing I’ve been struggling with is getting bluetooth to work on the Pi5 with mender. I can load bluez the bluetooth service via yocto, but /sys/class/bluetooth never populates. I can get premade raspberry pi 5 images up and running with bluetooth so I know the board I have is capable of it.

From the research I’ve been able to do it seems like it may be something between the uboot interaction and using the serial pins that bluetooth uses. Some of the things I’ve tried:

Set the dtb force variable:

MENDER_DTB_NAME_FORCE = "broadcom/bcm2712-rpi-5-b.dtb"

Disabling bootdelay:

CONFIG_BOOTDELAY=-2
CONFIG_SILENT_CONSOLE=y
CONFIG_SYS_DEVICE_NULLDEV=y
CONFIG_SILENT_CONSOLE_UPDATE_ON_SET=y
CONFIG_SILENT_U_BOOT_ONLY=y

Edit the cmdline.txt and config.txt to remove any serial reference. Also confirming the bt-disabled overlay is not set.

I’m struggling for next steps here as a lot of the threads I see related to this are for different pi variants. Has anyone gotten the sample pi5 mender image to play nice with bluetooth?

Hi @dpostorivo,

Thanks for reaching out! I’ve never used BT on a RPi, so just some guesswork here.

It is of course also possible that it boils down to u-boot, have you asked the folks there too? Unfortunately the RPi team is very much non-helpful outside of their own software selection.

Greetz,
Josef

Hi @dpostorivo,

Addendum: does the BT setup work on RPi4? I was looking into something completely unrelated today, and noticed the bluetooth stack initializing when booting a mostly standard core-image-full-cmdline on a RPi4-64bit.

Greetz,
Josef