Skip to content

Commit 7aedf20

Browse files
rpardiniigorpecovnik
authored andcommitted
mixtile-edge2: add rk3568 board (current/edge/vendor)
- in main `rockchip64` family, for current/edge (6.6 / 6.11) - using mainline u-boot's generic rk3568 for current/edge - vendor kernel is added via a copypasta hook to piggyback on `rk35xx` - requires armbian/linux-rockchip PR armbian/linux-rockchip#245 - vendor u-boot: - is required to bringup npu for vendor kernel (otherwise panics) - .dts done based on vendor kernel DT + looking at armsom-sige3 - defconfig ripped off from armsom-sige3
1 parent 94f65ea commit 7aedf20

File tree

5 files changed

+2480
-0
lines changed

5 files changed

+2480
-0
lines changed

config/boards/mixtile-edge2.wip

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Rockchip RK3568 quad core 4GB-8GB GBE PCIe USB3 SATA NVMe
2+
BOARD_NAME="Mixtile Edge 2"
3+
BOARDFAMILY="rockchip64"
4+
BOARD_MAINTAINER=""
5+
BOOT_SOC="rk3568"
6+
KERNEL_TARGET="current,edge,vendor"
7+
BOOT_FDT_FILE="rockchip/rk3568-mixtile-edge2.dtb"
8+
IMAGE_PARTITION_TABLE="gpt"
9+
FULL_DESKTOP="yes"
10+
BOOT_LOGO="desktop"
11+
SRC_CMDLINE="earlycon=uart8250,mmio32,0xfe660000 loglevel=7 console=ttyS2,1500000" # for extlinux / EXT=u-boot-menu
12+
13+
# Mainline U-Boot
14+
function post_family_config__h96_max_use_mainline_uboot() {
15+
if [[ "${BRANCH}" == "vendor" || "${BRANCH}" == "legacy" ]]; then
16+
display_alert "$BOARD" "Using vendor U-Boot for $BOARD / $BRANCH" "info" # See below hook
17+
return
18+
fi
19+
20+
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
21+
22+
declare -g BOOTCONFIG="generic-rk3568_defconfig" # Use generic defconfig which should boot all RK3568 boards
23+
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
24+
declare -g BOOTBRANCH="tag:v2024.07"
25+
declare -g BOOTPATCHDIR="v2024.07/board_${BOARD}"
26+
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory
27+
28+
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
29+
30+
# Disable stuff from rockchip64_common; we're using binman here which does all the work already
31+
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
32+
33+
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
34+
function write_uboot_platform() {
35+
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
36+
}
37+
}
38+
39+
function post_family_config_branch_vendor__kernel_and_uboot_rk35xx_mixtile_edge2() {
40+
# Copypasta from rockchip-rk3588.conf family file -- we _really_ gotta find a better way!
41+
declare -g KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel.
42+
declare -g KERNELSOURCE='https://github.com/armbian/linux-rockchip.git'
43+
declare -g KERNELBRANCH='branch:rk-6.1-rkr3'
44+
declare -g KERNELPATCHDIR='rk35xx-vendor-6.1'
45+
declare -g LINUXFAMILY=rk35xx
46+
declare -g -i KERNEL_GIT_CACHE_TTL=120 # 2 minutes
47+
declare -g OVERLAY_PREFIX='rk35xx'
48+
49+
# Use vendor u-boot, same as rk35xx; we've a defconfig and dt in there
50+
declare -g BOOTSOURCE='https://github.com/radxa/u-boot.git'
51+
declare -g BOOTBRANCH='branch:next-dev-v2024.03' # Always use same version as rk3588, they share a patch dir
52+
declare -g BOOTPATCHDIR="legacy/u-boot-radxa-rk35xx"
53+
declare -g BOOTCONFIG="mixtile-edge2-rk3568_defconfig"
54+
}

0 commit comments

Comments
 (0)