From 879a97603a342bc0fc06263248885feb05a2343a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Efe=20=C3=87etin?= Date: Mon, 26 Jun 2023 17:10:59 +0300 Subject: [PATCH] Add sata spi image to Orange Pi 5 --- config/boards/orangepi5.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/boards/orangepi5.conf b/config/boards/orangepi5.conf index 5427ae4ef2..a3e7998c51 100644 --- a/config/boards/orangepi5.conf +++ b/config/boards/orangepi5.conf @@ -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" } +