Skip to content

Commit ff85b4e

Browse files
authored
nanopi-r76s: bump mainline u-boot to v2026.04 and drop vendor-branch gates (#9869)
* nanopi-r76s: bump mainline u-boot to v2026.04 and drop vendor-branch gates Drop the BRANCH==vendor early-returns in both post_family_config__nanopi_r76s_use_mainline_uboot and pre_config_uboot_target__nanopi_r76s_patch_rockchip_common_boot_order so mainline u-boot is taken on every kernel branch, and bump BOOTBRANCH/BOOTPATCHDIR from v2026.01 to v2026.04. The R76S board support patch is still carried locally since the board is not yet in u-boot upstream. Signed-off-by: SuperKali <hello@superkali.me> * nanopi-r76s: refresh u-boot v2026.04 patch and flip boot order Reformat board support patch with proper format-patch headers, set mmc1 (SD) before mmc0 (eMMC) to match upstream Linux DTS aliases. --------- Signed-off-by: SuperKali <hello@superkali.me>
1 parent b902f6e commit ff85b4e

2 files changed

Lines changed: 311 additions & 298 deletions

File tree

config/boards/nanopi-r76s.conf

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ function post_family_tweaks__nanopi-r76s_naming_audios() {
2323
}
2424

2525
function post_family_config__nanopi_r76s_use_mainline_uboot() {
26-
# Use mainline U-Boot for edge, keep vendor U-Boot for vendor branch
27-
[[ "${BRANCH}" == "vendor" ]] && return 0
28-
2926
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
3027

3128
declare -g BOOTDELAY=1
3229
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git"
33-
declare -g BOOTBRANCH="tag:v2026.01"
34-
declare -g BOOTPATCHDIR="v2026.01"
30+
declare -g BOOTBRANCH="tag:v2026.04"
31+
declare -g BOOTPATCHDIR="v2026.04"
3532
unset BOOT_FDT_FILE
3633

3734
# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency
@@ -46,15 +43,10 @@ function post_family_config__nanopi_r76s_use_mainline_uboot() {
4643
}
4744
}
4845

49-
# "rockchip-common: boot SD card first, then NVMe, then mmc"
50-
# include/configs/rockchip-common.h
51-
# -#define BOOT_TARGETS "mmc1 mmc0 nvme scsi usb pxe dhcp"
52-
# +#define BOOT_TARGETS "mmc0 mmc1 nvme scsi usb pxe dhcp"
53-
# On NanoPi R76S, mmc0 is the SD card, mmc1 is the eMMC slot
46+
# Upstream Linux DTS aliases: mmc0 = &sdhci (eMMC), mmc1 = &sdmmc (SD), mmc2 = &sdio
47+
# Boot SD first, then eMMC, then NVMe
5448
function pre_config_uboot_target__nanopi_r76s_patch_rockchip_common_boot_order() {
55-
[[ "${BRANCH}" == "vendor" ]] && return 0
56-
57-
declare -a rockchip_uboot_targets=("mmc0" "mmc1" "nvme" "scsi" "usb" "pxe" "dhcp") # for future make-this-generic delight
49+
declare -a rockchip_uboot_targets=("mmc1" "mmc0" "nvme" "scsi" "usb" "pxe" "dhcp")
5850
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: adjust boot order to '${rockchip_uboot_targets[*]}'" "info"
5951
sed -i -e "s/#define BOOT_TARGETS.*/#define BOOT_TARGETS \"${rockchip_uboot_targets[*]}\"/" include/configs/rockchip-common.h
6052
regular_git diff -u include/configs/rockchip-common.h || true

0 commit comments

Comments
 (0)