# # SPDX-License-Identifier: GPL-2.0 # # Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # # This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # # shellcheck source=config/sources/families/include/rockchip64_common.inc source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" BOOTSOURCE='https://github.com/radxa/u-boot.git' BOOTBRANCH='branch:next-dev-v2024.10' # Always use same version as rk3588, they share a patch dir BOOTPATCHDIR="legacy/u-boot-radxa-rk35xx" OVERLAY_PREFIX='rk35xx' if [[ "$BOOT_SOC" == "rk3576" ]]; then BOOTSCRIPT='boot-rk3576.cmd:boot.cmd' else BOOTSCRIPT='boot-rk35xx.cmd:boot.cmd' fi case $BRANCH in legacy) display_alert "WARNING: 'legacy' branch" "is deprecated and slated for removal. Please switch to another branch unless you know what you're doing :)" "wrn" BOOTDIR='u-boot-rockchip64' declare -g KERNEL_MAJOR_MINOR="5.10" # Major and minor versions of this kernel. declare -g -i KERNEL_GIT_CACHE_TTL=120 # 2 minutes; this is a high-traffic repo KERNELSOURCE='https://github.com/armbian/linux-rockchip.git' KERNELBRANCH='branch:rk-5.10-rkr6' KERNELPATCHDIR='rk35xx-legacy' KERNEL_DRIVERS_SKIP+=(driver_rtl8723cs) # won't build anymore, un-needed; legacy is slated for removal and only useful to flash the RTL8169 MAC EEPROM ;; vendor) BOOTDIR='u-boot-rockchip64' declare -g KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel. declare -g -i KERNEL_GIT_CACHE_TTL=120 # 2 minutes; this is a high-traffic repo KERNELSOURCE='https://github.com/armbian/linux-rockchip.git' KERNELBRANCH='branch:rk-6.1-rkr5.1' KERNELPATCHDIR='rk35xx-vendor-6.1' ;; esac prepare_boot_configuration pre_config_uboot_target__warn_modern_hosts() { # Check if building Radxa U-Boot on a host other than Ubuntu Jammy if [[ "${BOOTSOURCE}" == "https://github.com/radxa/u-boot.git" ]]; then if [[ "${HOSTRELEASE}" != "jammy" ]]; then display_alert "Building Rockchip BSP U-Boot from Radxa repository" "on Ubuntu ${HOSTRELEASE} (newer than Jammy) can lead to unintended bugs" "wrn" fi fi } family_tweaks_bsp() { : }