Skip to content

Commit 1d3ce4c

Browse files
committed
rockchip: add x3568 v4 support
1 parent df95459 commit 1d3ce4c

File tree

10 files changed

+3376
-0
lines changed

10 files changed

+3376
-0
lines changed

config/boards/9tripod-x3568-v4.csc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Rockchip RK3568 quad core 2GB-8GB RAM SoC 2 x GBE eMMC USB3 WiFi/BT PCIe SATA NVMe
2+
BOARD_NAME="9Tripod X3568 v4"
3+
BOARDFAMILY="rockchip64"
4+
BOARD_MAINTAINER="rbqvq"
5+
KERNEL_TARGET="current,edge"
6+
KERNEL_TEST_TARGET="current"
7+
FULL_DESKTOP="yes"
8+
BOOT_LOGO="desktop"
9+
BOOT_FDT_FILE="rockchip/rk3568-9tripod-x3568-v4.dtb"
10+
BOOT_SCENARIO="spl-blobs"
11+
IMAGE_PARTITION_TABLE="gpt"
12+
13+
ASOUND_STATE="asound.state.station-m2" # TODO verify me
14+
15+
OVERLAY_PREFIX="rk3568-9tripod-x3568-v4"
16+
17+
# Mainline U-Boot
18+
function post_family_config__x3568_v4_use_mainline_uboot() {
19+
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
20+
21+
DDR_BLOB="rk35/rk3568_ddr_1560MHz_v1.21.bin"
22+
BL31_BLOB="rk35/rk3568_bl31_v1.44.elf"
23+
24+
declare -g BOOTCONFIG="9tripod-x3568-v4-rk3568_defconfig"
25+
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
26+
declare -g BOOTBRANCH="tag:v2025.10"
27+
declare -g BOOTPATCHDIR="v2025.10/board_${BOARD}"
28+
29+
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
30+
31+
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
32+
33+
function write_uboot_platform() {
34+
dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
35+
}
36+
}
37+
38+
function post_family_tweaks__x3568_v4_udev_network_interfaces() {
39+
display_alert "$BOARD" "Renaming interfaces" "info"
40+
41+
mkdir -p $SDCARD/etc/udev/rules.d/
42+
cat <<- EOF > "${SDCARD}/etc/udev/rules.d/70-persistent-net.rules"
43+
SUBSYSTEM=="net", ACTION=="add", KERNELS=="fe010000.ethernet", NAME:="eth0"
44+
SUBSYSTEM=="net", ACTION=="add", KERNELS=="fe2a0000.ethernet", NAME:="eth1"
45+
EOF
46+
}

0 commit comments

Comments
 (0)