@@ -3,13 +3,18 @@ BOARD_NAME="Radxa ZERO 3"
3
3
BOARDFAMILY="rk35xx"
4
4
BOARD_MAINTAINER="Radxa"
5
5
BOOTCONFIG="radxa-zero3-rk3566_defconfig"
6
- KERNEL_TARGET="legacy,vendor"
6
+ KERNEL_TARGET="legacy,vendor,edge "
7
7
FULL_DESKTOP="yes"
8
8
BOOT_LOGO="desktop"
9
9
BOOT_FDT_FILE="rockchip/rk3566-radxa-zero3.dtb"
10
10
IMAGE_PARTITION_TABLE="gpt"
11
11
BOOT_SCENARIO="spl-blobs"
12
- BOOTFS_TYPE="fat"
12
+ BOOTFS_TYPE="fat" # Only for vendor/legacy
13
+
14
+ function post_family_config_branch_edge__use_mainline_dtb_name() {
15
+ unset BOOT_FDT_FILE # boot.scr will use whatever u-boot detects and sets 'fdtfile' to
16
+ unset BOOTFS_TYPE # mainline u-boot can boot ext4 directly
17
+ }
13
18
14
19
# Override family config for this board; let's avoid conditionals in family config.
15
20
function post_family_config__radxa-zero3_use_vendor_uboot() {
@@ -25,3 +30,18 @@ function post_family_config__radxa-zero3_use_vendor_uboot() {
25
30
dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
26
31
}
27
32
}
33
+
34
+ function post_family_config_branch_edge__radxa-zero3_use_kwiboo_uboot() {
35
+ BOOTCONFIG="radxa-zero-3-rk3566_defconfig"
36
+ BOOTSOURCE='https://github.com/Kwiboo/u-boot-rockchip.git'
37
+ BOOTBRANCH='branch:rk3xxx-2024.07'
38
+ BOOTPATCHDIR="u-boot-zero3" # Empty
39
+
40
+ UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
41
+
42
+ unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
43
+
44
+ function write_uboot_platform() {
45
+ dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
46
+ }
47
+ }
0 commit comments