Skip to content

Commit 7be3ce0

Browse files
authored
opi5plus - board config maintenance (#8787)
* opi5plus - board config maintenance * remove comment actually self-explaining I think
1 parent 81b7273 commit 7be3ce0

File tree

1 file changed

+8
-30
lines changed

1 file changed

+8
-30
lines changed

config/boards/orangepi5-plus.conf

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ BOOT_SCENARIO="spl-blobs"
1313
BOOT_SUPPORT_SPI="yes"
1414
BOOT_SPI_RKSPI_LOADER="yes"
1515
IMAGE_PARTITION_TABLE="gpt"
16-
KERNEL_UPGRADE_FREEZE="[email protected]"
1716
declare -g UEFI_EDK2_BOARD_ID="orangepi-5plus" # This _only_ used for uefi-edk2-rk3588 extension
1817

1918
function post_family_tweaks__orangepi5plus_naming_audios() {
@@ -28,38 +27,17 @@ function post_family_tweaks__orangepi5plus_naming_audios() {
2827

2928
return 0
3029
}
31-
# Mainline U-Boot for edge kernel
32-
function post_family_config_branch_edge__orangepi5plus_use_mainline_uboot() {
33-
display_alert "$BOARD" "Mainline U-Boot overrides for $BOARD - $BRANCH" "info"
3430

35-
declare -g BOOTCONFIG="orangepi-5-plus-rk3588_defconfig" # override the default for the board/family
36-
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc
37-
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ mainline U-Boot
38-
declare -g BOOTBRANCH="tag:v2024.10-rc3"
39-
declare -g BOOTPATCHDIR="v2024.10"
40-
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory
41-
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin u-boot-rockchip-spi.bin"
42-
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd # disable stuff from rockchip64_common; we're using binman here which does all the work already
43-
44-
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
45-
function write_uboot_platform() {
46-
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
47-
}
48-
49-
function write_uboot_platform_mtd() {
50-
flashcp -v -p "$1/u-boot-rockchip-spi.bin" /dev/mtd0
51-
}
52-
}
31+
function post_family_config__orangepi5plus_use_mainline_uboot() {
32+
[[ "${BRANCH}" == "vendor" ]] && return 0 # skip for vendor branch
5333

54-
# Mainline U-Boot for current kernel
55-
function post_family_config_branch_current__orangepi5plus_use_mainline_uboot() {
5634
display_alert "$BOARD" "Mainline U-Boot overrides for $BOARD - $BRANCH" "info"
5735

5836
declare -g BOOTCONFIG="orangepi-5-plus-rk3588_defconfig" # override the default for the board/family
5937
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc
6038
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ mainline U-Boot
61-
declare -g BOOTBRANCH="tag:v2024.10-rc3"
62-
declare -g BOOTPATCHDIR="v2024.10"
39+
declare -g BOOTBRANCH="tag:v2025.10"
40+
declare -g BOOTPATCHDIR="v2025.10"
6341
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory
6442
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin u-boot-rockchip-spi.bin"
6543
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd # disable stuff from rockchip64_common; we're using binman here which does all the work already
@@ -75,11 +53,11 @@ function post_family_config_branch_current__orangepi5plus_use_mainline_uboot() {
7553
}
7654

7755
function post_config_uboot_target__extra_configs_for_rock5b_mainline_environment_in_spi() {
78-
[[ "${BRANCH}" != "edge" && "${BRANCH}" != "current" ]] && return 0
56+
[[ "${BRANCH}" == "vendor" ]] && return 0
7957

8058
display_alert "$BOARD" "u-boot configs for ${BOOTBRANCH} u-boot config BRANCH=${BRANCH}" "info"
8159
run_host_command_logged scripts/config --set-val CONFIG_BOARD_RNG_SEED "y"
82-
run_host_command_logged scripts/config --set-val ARMV8_CRYPTO "n" #broken as per 2024.10-rc3
83-
run_host_command_logged scripts/config --set-val ARMV8_CE_SHA1 "n" #broken as per 2024.10-rc3
84-
run_host_command_logged scripts/config --set-val ARMV8_CE_SHA256 "n" #broken as per 2024.10-rc3
60+
run_host_command_logged scripts/config --set-val ARMV8_CRYPTO "y"
61+
run_host_command_logged scripts/config --set-val ARMV8_CE_SHA1 "y"
62+
run_host_command_logged scripts/config --set-val ARMV8_CE_SHA256 "y"
8563
}

0 commit comments

Comments
 (0)