Skip to content

Commit 7ce2df9

Browse files
committed
Add support for rk3566-box-demo
This is a rk3566 tv box evaluation demo board. Specification: - Rockchip RK3566 - DDR4 4GB - TF sd scard slot - eMMC - AP6398S for WiFi + BT - Gigabit ethernet - HDMI out - USB HOST 2.0 x 2 - USB 3.0 x 1 - USB OTG 2.0 x 1 - 12V DC Power supply Signed-off-by: Andy Yan <[email protected]>
1 parent ce584a7 commit 7ce2df9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

config/boards/rk3566-box-demo.csc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Rockchip RK3566 BoX Demo with 4GB DDR/HDMI/USB3/WIFI/GMAC
2+
BOARD_NAME="RK3566 BOX DEMO"
3+
BOOT_SOC="rk3566"
4+
BOARDFAMILY="rockchip64"
5+
BOOTCONFIG="generic-rk3568_defconfig"
6+
KERNEL_TARGET="current,edge"
7+
FULL_DESKTOP="yes"
8+
BOOT_LOGO="desktop"
9+
BOOT_FDT_FILE="rockchip/rk3566-box-demo.dtb"
10+
BOOT_SCENARIO="spl-blobs"
11+
WIREGUARD="no"
12+
IMAGE_PARTITION_TABLE="gpt"
13+
14+
# Mainline U-Boot
15+
function post_family_config__quartz64_b_use_mainline_uboot() {
16+
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
17+
18+
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
19+
declare -g BOOTBRANCH="tag:v2025.07"
20+
declare -g BOOTPATCHDIR="v2025.07/board_${BOARD}"
21+
# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency
22+
23+
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
24+
25+
# Disable stuff from rockchip64_common; we're using binman here which does all the work already
26+
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
27+
28+
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
29+
function write_uboot_platform() {
30+
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
31+
}
32+
}

0 commit comments

Comments
 (0)