bananapim4berry: Mark the device as CSC

At this stage, the desktops are functioning normally.
The Ethernet is working; module dwmac-sun8i.
WiFi\Bluetooth - the rtl8821cu module is loaded and
can be configured.
This commit is contained in:
The-going 2025-03-30 15:28:03 +03:00 committed by Igor
parent 7c640ba198
commit 47ac70fb27
2 changed files with 35 additions and 26 deletions

View File

@ -0,0 +1,35 @@
# Allwinner H618 quad core 2/4GB RAM 8GB eMMC SoC WiFi\Bt HDMI SPI USB-C
BOARD_NAME="BananaPi M4 Berry"
BOARDFAMILY="sun50iw9-bpi"
BOARD_MAINTAINER="The-going"
BOOTCONFIG="bananapi_m4_berry_defconfig"
BOOTPATCHDIR="v2025.01/board_bananapim4berry"
BOOTBRANCH_BOARD="tag:v2025.01"
OVERLAY_PREFIX="sun50i-h616"
BOOT_FDT_FILE="sun50i-h618-bananapi-m4-berry.dtb"
BOOT_LOGO="desktop"
KERNEL_TARGET="current,edge"
KERNEL_TEST_TARGET="current"
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
function post_family_tweaks_bsp__bananapi_module_conf() {
mkdir -p "${destination}"/etc/modprobe.d/
display_alert "$BOARD" "Configuring rlt8821cu wifi module" "info"
cat <<-EOF > "${destination}"/etc/modprobe.d/8821cu.conf
# https://github.com/morrownr/8821cu-20210916/blob/main/8821cu.conf
#
# To see all options that are available:
#
# for f in /sys/module/8821cu/parameters/*;do echo "$(basename $f): $(sudo cat $f)";done
#
blacklist rtw88_8821cu
#
options 8821cu rtw_led_ctrl=2
EOF
}

View File

@ -1,26 +0,0 @@
# Allwinner H618 quad core 2/4GB RAM 8GB eMMC SoC WiFi\Bt HDMI SPI USB-C
BOARD_NAME="BananaPi M4 Berry"
BOARDFAMILY="sun50iw9-bpi"
BOARD_MAINTAINER="The-going"
BOOTCONFIG="bananapi_m4_berry_defconfig"
BOOTPATCHDIR="v2025.01/board_bananapim4berry"
BOOTBRANCH_BOARD="tag:v2025.01"
OVERLAY_PREFIX="sun50i-h616"
BOOT_FDT_FILE="sun50i-h618-bananapi-m4-berry.dtb"
BOOT_LOGO="desktop"
KERNEL_TARGET="current,edge"
KERNEL_TEST_TARGET="current"
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
function post_family_tweaks_bsp__bananapi_firmware() {
if [[ -d "$SRC/packages/bsp/bananapi/brcm" ]] && [[ -d "$SRC/packages/bsp/bananapi/rtl_bt" ]]; then
mkdir -p "${destination}"/lib/firmware/updates/brcm
mkdir -p "${destination}"/lib/firmware/updates/rtl_bt
display_alert "$BOARD" "Installing upstream firmware" "info"
cp -fr $SRC/packages/bsp/bananapi/brcm/* "${destination}"/lib/firmware/updates/brcm/
cp -fr $SRC/packages/bsp/bananapi/rtl_bt/* "${destination}"/lib/firmware/updates/rtl_bt/
fi
}