mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Migrate Radxa Cubie A5E to mainline 6.16 (#8447)
* migrate u-boot and kernel to mainline * Add patches for 6.17 * fix compile for patches addes * Orderer patches, switch kernel config to sunxi64, recreate some patches for fix build * Update linux-sunxi64-edge.config after pm-domain & sun55i-gmac200 activate * enable wifi and bluetooth * revert linux-sunxi64-edge.config - Revert linux-sunxi64-edge.config - Add modules: CONFIG_IOMMUFD, CONFIG_SUN50I_IOMMU, CONFIG_SUN55I_PCK600. * drop sunxi-dev-6.14 and cleanup involved patches * Update radxa-cubie-a5e.csc make change proposed by igorpecovnik
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
BOARD_NAME="radxa cubie a5e"
|
||||
BOARDFAMILY="sun55iw3"
|
||||
BOARD_MAINTAINER=""
|
||||
BOOTCONFIG="radxa-a5e_defconfig"
|
||||
BOOTCONFIG="radxa-cubie-a5e_defconfig"
|
||||
OVERLAY_PREFIX="sun55i-a527"
|
||||
#BOOT_LOGO="desktop"
|
||||
KERNEL_TARGET="dev"
|
||||
KERNEL_TARGET="edge"
|
||||
BOOT_FDT_FILE="dtb/allwinner/sun55i-a527-radxa-a5e.dtb"
|
||||
IMAGE_PARTITION_TABLE="gpt"
|
||||
#IMAGE_PARTITION_TABLE="msdos"
|
||||
@@ -14,9 +14,42 @@ BOOTSTART="1"
|
||||
BOOTSIZE="512"
|
||||
ROOTSTART="513"
|
||||
|
||||
function post_family_tweaks__radxa_cubie-a5e() {
|
||||
display_alert "Applying wifi firmware"
|
||||
pushd "$SDCARD/lib/firmware"
|
||||
ln -s "aic8800/SDIO/aic8800D80" "aic8800_sdio" # use armbian-firmware
|
||||
popd
|
||||
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
|
||||
|
||||
# AIC8800
|
||||
AIC8800_TYPE="sdio"
|
||||
enable_extension "radxa-aic8800"
|
||||
|
||||
# AIC8800 Wireless
|
||||
function post_family_tweaks_bsp__aic8800_wireless() {
|
||||
display_alert "$BOARD" "Installing AIC8800 Tweaks" "info"
|
||||
mkdir -p "${destination}"/etc/modprobe.d
|
||||
mkdir -p "${destination}"/etc/modules-load.d
|
||||
# Add wireless conf
|
||||
cat > "${destination}"/etc/modprobe.d/aic8800-wireless.conf <<- EOT
|
||||
options aic8800_fdrv_sdio aicwf_dbg_level=0 custregd=0 ps_on=0
|
||||
#options aic8800_bsp_sdio aic_fw_path=/lib/firmware/aic8800_fw/SDIO/aic8800
|
||||
EOT
|
||||
# Add needed bluetooth modules
|
||||
cat > "${destination}"/etc/modules-load.d/aic8800-btlpm.conf <<- EOT
|
||||
hidp
|
||||
rfcomm
|
||||
bnep
|
||||
aic8800_btlpm_sdio
|
||||
EOT
|
||||
# Add AIC8800 Bluetooth Service and Script
|
||||
if [[ -d "$SRC/packages/bsp/aic8800" ]]; then
|
||||
mkdir -p "${destination}"/etc/systemd/system
|
||||
mkdir -p "${destination}"/usr/bin
|
||||
cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth" "${destination}"/usr/bin
|
||||
chmod +x "${destination}"/usr/bin/aic-bluetooth
|
||||
cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth.service" "${destination}"/etc/systemd/system
|
||||
fi
|
||||
}
|
||||
|
||||
# Enable AIC8800 Bluetooth Service
|
||||
function post_family_tweaks__enable_aic8800_bluetooth_service() {
|
||||
display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
|
||||
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user