1- # Rockchip RK3566 quad core
1+ # Rockchip RK3566 quad core 1 / 2 / 4 /8GB RAM WiFi/BT or GBE HDMI USB-C
22BOARD_NAME=" Radxa ZERO 3"
33BOARDFAMILY=" rk35xx"
44BOARD_MAINTAINER=" "
@@ -17,6 +17,34 @@ PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
1717AIC8800_TYPE=" sdio"
1818enable_extension " radxa-aic8800"
1919
20+ function post_family_config__use_mainline_uboot() {
21+
22+ # boot.scr will use whatever u-boot detects and sets 'fdtfile' to.
23+ # This however this doesn't work with Rockchip bsp based kernels since naming differs.
24+ # So leave decision to u-boot ONLY when mainline kernel is used.
25+ if [[ " ${BRANCH}" != " vendor" ]]; then
26+ unset BOOT_FDT_FILE
27+ fi
28+
29+ BOOTCONFIG=" radxa-zero-3-rk3566_defconfig"
30+ BOOTSOURCE=" https://github.com/u-boot/u-boot"
31+ BOOTBRANCH=" tag:v2025.10"
32+ BOOTPATCHDIR=" v2025.10"
33+
34+ UBOOT_TARGET_MAP=" BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
35+ ## For binman-atf-mainline: setting BOOT_SCENARIO at the top would break branch=vendor, so we don't enable it globally.
36+ # We cannot set BOOT_SOC=rk3566 due to side effects in Armbian scripts; ATF_TARGET_MAP is the safer override.
37+ # ATF does not currently separate rk3566 from rk3568.
38+ #ATF_TARGET_MAP=" M0_CROSS_COMPILE=arm-linux-gnueabi- PLAT=rk3568 bl31;;build/rk3568/release/bl31/bl31.elf:bl31.elf"
39+ #UBOOT_TARGET_MAP=" BL31=bl31.elf ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
40+
41+ unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
42+
43+ function write_uboot_platform() {
44+ dd if =$1 /u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
45+ }
46+ }
47+
2048function post_family_tweaks_bsp__aic8800_wireless() {
2149 display_alert " $BOARD" " Installing AIC8800 Tweaks" " info"
2250 mkdir -p " ${destination}" /etc/modprobe.d
@@ -52,32 +80,4 @@ function post_family_tweaks__enable_aic8800_bluetooth_service() {
5280 else
5381 display_alert " $BOARD" " aic-bluetooth.service not found in image; skipping enable" " warn"
5482 fi
55- }
56-
57- function post_family_config__use_mainline_uboot() {
58-
59- # boot.scr will use whatever u-boot detects and sets 'fdtfile' to.
60- # This however this doesn't work with Rockchip bsp based kernels since naming differs.
61- # So leave decision to u-boot ONLY when mainline kernel is used.
62- if [[ " ${BRANCH}" != " vendor" ]]; then
63- unset BOOT_FDT_FILE
64- fi
65-
66- BOOTCONFIG=" radxa-zero-3-rk3566_defconfig"
67- BOOTSOURCE=" https://github.com/u-boot/u-boot"
68- BOOTBRANCH=" tag:v2025.10"
69- BOOTPATCHDIR=" v2025.10"
70-
71- UBOOT_TARGET_MAP=" BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
72- ## For binman-atf-mainline: setting BOOT_SCENARIO at the top would break branch=vendor, so we don't enable it globally.
73- # We cannot set BOOT_SOC=rk3566 due to side effects in Armbian scripts; ATF_TARGET_MAP is the safer override.
74- # ATF does not currently separate rk3566 from rk3568.
75- #ATF_TARGET_MAP=" M0_CROSS_COMPILE=arm-linux-gnueabi- PLAT=rk3568 bl31;;build/rk3568/release/bl31/bl31.elf:bl31.elf"
76- #UBOOT_TARGET_MAP=" BL31=bl31.elf ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
77-
78- unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
79-
80- function write_uboot_platform() {
81- dd if =$1 /u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
82- }
8383}
0 commit comments