Support Orange Pi CM5

This commit is contained in:
orangepi-xunlong
2023-09-25 09:48:20 +08:00
parent de53cf7b70
commit 2dbd451489
4 changed files with 22 additions and 1 deletions

14
external/config/boards/orangepicm5.conf vendored Normal file
View File

@@ -0,0 +1,14 @@
# Rockchip RK3588s SoC
BOARD_NAME="Orange Pi CM5"
BOARDFAMILY="rockchip-rk3588"
BOOTCONFIG="orangepi_cm5_defconfig"
KERNEL_TARGET="legacy"
BOOT_LOGO="desktop"
BOOT_FDT_FILE="rockchip/rk3588s-orangepi-cm5.dtb"
BOOT_SCENARIO="spl-blobs"
IMAGE_PARTITION_TABLE="gpt"
BOOT_SUPPORT_SPI="yes"
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
DISTRIB_TYPE_LEGACY="bullseye bookworm bionic focal jammy"
BOOTFS_TYPE="fat"
REVISION="1.0.0"

View File

@@ -63,6 +63,8 @@ elif [[ $BOARDFAMILY == "rockchip-rk3588" ]]; then
BOOT_SCENARIO="${BOOT_SCENARIO:=spl-blobs}"
DDR_BLOB="${DDR_BLOB:=rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin}"
BL31_BLOB='rk35/rk3588_bl31_v1.28.elf'
#DDR_BLOB="${DDR_BLOB:=rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin}"
#BL31_BLOB='rk35/rk3588_bl31_v1.40.elf'
elif [[ $BOARD =~ orangepicm4|orangepi3b ]]; then

View File

@@ -102,6 +102,11 @@ family_tweaks_s() {
cp $EXTER/cache/sources/linuxpg "${SDCARD}"/opt/ -rfa
fi
if [[ ${BOARD} =~ orangepicm5 ]]; then
cp $EXTER/cache/sources/linuxpg "${SDCARD}"/opt/ -rfa
fi
[[ ${RELEASE} == jammy ]] && rm ${SDCARD}/etc/profile.d/orangepi-ssh-title.sh # for adbd
if [[ -f "${SDCARD}"/etc/profile.d/im-config_wayland.sh && ${DESKTOP_ENVIRONMENT} =~ xfce|kde-plasma ]]; then