Enabling Bluetooth

Started by baffo32, January 06, 2023, 03:37:53 AM

Previous topic - Next topic

baffo32

I ordered an A64-OLinuXino-1Ge16GW-EA with its included WiFi/BLE module.

Looking at the forum history, it looks like Bluetooth used to work. For me, with a recent image, it is disabled in the kernel.

I had to follow https://unix.stackexchange.com/questions/674562/how-to-use-rtl8723bs-bluetooth-in-linux-5-10#answer-674756 and rebuild my kernel with these changes:
diff --git a/arch/arm64/configs/olinuxino_defconfig b/arch/arm64/configs/olinuxino_defconfig
index 69237aefc7da..00bd7a82c2f0 100644
--- a/arch/arm64/configs/olinuxino_defconfig
+++ b/arch/arm64/configs/olinuxino_defconfig
@@ -1700,6 +1700,7 @@ CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_BCM is not set
+CONFIG_BT_HCIUART_RTL=y
# CONFIG_BT_HCIUART_QCA is not set
# CONFIG_BT_HCIUART_AG6XX is not set
# CONFIG_BT_HCIUART_MRVL is not set
@@ -2962,7 +2963,8 @@ CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_NULL_TTY=m
# CONFIG_TRACE_SINK is not set
# CONFIG_HVC_DCC is not set
-CONFIG_SERIAL_DEV_BUS=m
+CONFIG_SERIAL_DEV_BUS=y
+CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
# CONFIG_TTY_PRINTK is not set
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set

Additionally, I needed to make a symlink to load the firmware file:
cd /lib/firmware/rtl_bt
sudo ln -s rtl8723bs_config-OBDA8723.bin rtl8723bs_config.bin

Now, Bluetooth appears to function on the system.

LubOlimex

Did you use the image from the base archive, namely "A64-OLinuXino-bullseye-base-20220928-143706.img.7z"?
Technical support and documentation manager at Olimex

baffo32

#2
Yes. I then installed the freedombox package and copied to emmc.

EDIT: Apologies, no, the base archive downloads corrupt and would not extract, for me! I used the minimal archive.

LubOlimex

Probably it didn't download fully or something interrupted the download. Try again. When I download it it seems the file downloads, extracts and works fine.
Technical support and documentation manager at Olimex

baffo32

Thanks; that archive is indeed working for me now (sha256sum A64-OLinuXino-bullseye-base-20220928-143706.img.7z ->
b9ceda76ac127ee89940c82498ce2918f526496d3a931d3ce49e9bb1934711d1 )

And Bluetooth with the minimal image, the topic of the thread?