Add sata spi image to Orange Pi 5

This commit is contained in:
Muhammed Efe Çetin 2023-06-26 17:10:59 +03:00 committed by Igor
parent 6c232a1303
commit 879a97603a

View File

@ -3,6 +3,7 @@ BOARD_NAME="Orange Pi 5"
BOARDFAMILY="rockchip-rk3588"
BOARD_MAINTAINER="efectn"
BOOTCONFIG="orangepi_5_defconfig" # vendor name, not standard, see hook below, set BOOT_SOC below to compensate
BOOTCONFIG_SATA="orangepi_5_sata_defconfig"
BOOT_SOC="rk3588"
KERNEL_TARGET="legacy"
FULL_DESKTOP="yes"
@ -44,6 +45,14 @@ function post_family_tweaks__orangepi5_naming_audios() {
return 0
}
function post_family_config_branch_legacy__orangepi5_uboot_add_sata_target() {
display_alert "$BOARD" "Configuring ($BOARD) standard and sata uboot target map" "info"
UBOOT_TARGET_MAP="
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG spl/u-boot-spl.bin u-boot.dtb u-boot.itb;;idbloader.img u-boot.itb rkspi_loader.img
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG_SATA spl/u-boot-spl.bin u-boot.dtb u-boot.itb;; rkspi_loader_sata.img
"
}
# Override family config for this board; let's avoid conditionals in family config.
function post_family_config__orangepi5_use_vendor_uboot() {
BOOTSOURCE='https://github.com/orangepi-xunlong/u-boot-orangepi.git'
@ -51,3 +60,4 @@ function post_family_config__orangepi5_use_vendor_uboot() {
BOOTPATCHDIR="legacy"
}