Skip to content

Commit 42f7a9d

Browse files
SuperKaliigorpecovnik
authored andcommitted
boards/youyeetoo-yy3588: switch to mainline U-Boot v2026.04
The radxa vendor U-Boot no longer boots the board, so move every kernel branch to mainline v2026.04 with binman u-boot-rockchip.bin and rkbin BL31 plus DDR blobs, mirroring youyeetoo-r1-v3. Boot order prefers SD, then NVMe, then eMMC. Signed-off-by: SuperKali <hello@superkali.me>
1 parent 69f9704 commit 42f7a9d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

config/boards/youyeetoo-yy3588.conf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,35 @@ BOOT_FDT_FILE="rockchip/rk3588-youyeetoo-yy3588.dtb"
1515
BOOT_SCENARIO="spl-blobs"
1616
ASOUND_STATE="asound.state.youyeetoo-yy3588"
1717

18+
function post_family_config__youyeetoo_yy3588_use_mainline_uboot() {
19+
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
20+
21+
declare -g BOOTCONFIG="youyeetoo-yy3588-rk3588_defconfig"
22+
declare -g BOOTDELAY=1
23+
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git"
24+
declare -g BOOTBRANCH="tag:v2026.04"
25+
declare -g BOOTPATCHDIR="v2026.04"
26+
unset BOOT_FDT_FILE
27+
28+
# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency
29+
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
30+
31+
# Disable stuff from rockchip64_common; we're using binman here which does all the work already
32+
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
33+
34+
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
35+
function write_uboot_platform() {
36+
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
37+
}
38+
}
39+
40+
function pre_config_uboot_target__youyeetoo_yy3588_patch_rockchip_common_boot_order() {
41+
declare -a rockchip_uboot_targets=("mmc1" "nvme" "mmc0" "scsi" "usb" "pxe" "dhcp") # mmc1=SD, mmc0=eMMC
42+
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: adjust boot order to '${rockchip_uboot_targets[*]}'" "info"
43+
sed -i -e "s/#define BOOT_TARGETS.*/#define BOOT_TARGETS \"${rockchip_uboot_targets[*]}\"/" include/configs/rockchip-common.h
44+
regular_git diff -u include/configs/rockchip-common.h || true
45+
}
46+
1847
function post_family_tweaks__youyeetoo_yy3588_naming_audios() {
1948
display_alert "$BOARD" "Renaming Youyeetoo YY3588 audios" "info"
2049

0 commit comments

Comments
 (0)