BananaPi CM4IO: Upstream RTL8822CS bluetooth firmware (#5354)

* BananaPi CM4IO: `Upstream RTL8822CS bluetooth firmware`

* Firmware search paths
/lib/firmware/updates/UTS_RELEASE/
/lib/firmware/updates/
/lib/firmware/UTS_RELEASE/
/lib/firmware/

dmesg | grep RTL
[    8.242830] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[    8.246443] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    8.246447] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    8.280073] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    8.308295] Bluetooth: hci0: RTL: cfg_sz 33, total sz 37069
[    8.695731] Bluetooth: hci0: RTL: fw version 0x05c6d2e3

cat /etc/armbian-release
BOARD=bananapicm4io
BOARD_NAME="Banana Pi CM4IO"
BOARDFAMILY=meson-g12b
BUILD_REPOSITORY_URL=https://github.com/pyavitz/build.git
BUILD_REPOSITORY_COMMIT=e189c104c-dirty
VERSION=23.08.0-trunk
LINUXFAMILY=meson64
ARCH=arm64
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
FORCE_BOOTSCRIPT_UPDATE=
VENDOR=Armbian
REVISION=23.08.0-trunk
BOOTSCRIPT_FORCE_UPDATE="no"
BOOTSCRIPT_DST="boot.cmd"
BRANCH=current

patrick@bananapicm4io:~$ bluetoothctl
Agent registered
[CHG] Controller C4:3C:B0:A3:D0:40 Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller C4:3C:B0:A3:D0:40 Discovering: yes
[NEW] Device 46:B4:28:9B:FA:0D 46-B4-28-9B-FA-0D
[DEL] Device 46:B4:28:9B:FA:0D 46-B4-28-9B-FA-0D
[NEW] Device 00:1A:7D:DA:71:13 speaker

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* bananapicm4io.conf: `maintenance`

mkdir after the fact

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
c0rnelius
2023-06-19 16:02:43 -04:00
committed by GitHub
parent f9d71174f1
commit 5ae7a4c40e
3 changed files with 8 additions and 0 deletions

View File

@@ -10,3 +10,11 @@ BOOT_LOGO="desktop"
BOOT_FDT_FILE="amlogic/meson-g12b-bananapi-cm4-cm4io.dtb"
BOOTBRANCH_BOARD="tag:v2023.01"
BOOTPATCHDIR="v2023.01"
function post_family_tweaks_bsp__bananapicm4io_rtl_bt() {
if [[ -d "$SRC/packages/bsp/${BOARD}/rtl_bt" ]]; then
mkdir -p "${destination}"/lib/firmware/updates/rtl_bt
display_alert "$BOARD" "Installing Upstream Firmware" "info"
cp -fr $SRC/packages/bsp/${BOARD}/rtl_bt/* "${destination}"/lib/firmware/updates/rtl_bt/
fi
}

Binary file not shown.

Binary file not shown.