Skip to content

Commit 32eaeb6

Browse files
rpardiniigorpecovnik
authored andcommitted
mixtile-core3588e: drop vendor u-boot (mainline works great)
- no need for vendor u-boot, as mainline can boot vendor kernel fine - update comments with hardware pin references - mainline boot order: NVMe -> USB -> eMMC
1 parent b8344d2 commit 32eaeb6

File tree

3 files changed

+11
-332
lines changed

3 files changed

+11
-332
lines changed

config/boards/mixtile-core3588e.csc

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare -g KERNEL_TARGET="edge,vendor"
77
declare -g BOOT_FDT_FILE="rockchip/rk3588-mixtile-core3588e.dtb" # same name vendor and edge
88
declare -g BOOT_SCENARIO="spl-blobs"
99
declare -g BOOT_SOC="rk3588"
10-
declare -g BOOTCONFIG="mixtile-core3588e-rk3588_defconfig" # same name vendor and edge
10+
declare -g BOOTCONFIG="mixtile-core3588e-rk3588_defconfig" # edge/mainline
1111
declare -g IMAGE_PARTITION_TABLE="gpt"
1212
# Does NOT have a UEFI_EDK2_BOARD_ID
1313

@@ -24,42 +24,24 @@ declare -g IMAGE_PARTITION_TABLE="gpt"
2424
# - Recovery "button" (NOT real "Maskrom"): "jumper cap to connect the FCREC and GND pins"; this depends on u-boot actually working (not bricked)
2525
# - OTG/Maskrom port is micro-USB port
2626
# - The "real" maskrom is to short two tiny solder-joints near the SoC on the SoM; see https://dh19rycdk230a.cloudfront.net/app/uploads/2023/11/solder-joints.png
27-
28-
# Vendor u-boot; use the default family (rockchip-rk3588) u-boot. See config/sources/families/rockchip-rk3588.conf
29-
function post_family_config__vendor_uboot_core3588e() {
30-
if [[ "${BRANCH}" == "vendor" || "${BRANCH}" == "legacy" ]]; then
31-
display_alert "$BOARD" "Using vendor u-boot for $BOARD on branch $BRANCH" "info"
32-
else
33-
return 0
34-
fi
35-
36-
display_alert "$BOARD" "Configuring $BOARD vendor u-boot (using Radxa's older next-dev-v2024.03)" "info"
37-
declare -g BOOTDELAY=1 # build injects this into u-boot config. we can then get into UMS mode and avoid the whole rockusb/rkdeveloptool thing
38-
39-
# Override the stuff from rockchip-rk3588 family; a patch for stable MAC address that breaks with Radxa's next-dev-v2024.10+
40-
declare -g BOOTSOURCE='https://github.com/radxa/u-boot.git'
41-
declare -g BOOTBRANCH='branch:next-dev-v2024.03' # NOT next-dev-v2024.10
42-
declare -g BOOTPATCHDIR="legacy/u-boot-radxa-rk35xx" # Patches from https://github.com/Joshua-Riek/ubuntu-rockchip/blob/main/packages/u-boot-radxa-rk3588/debian/patches/0002-board-rockchip-Add-the-Mixtile-Core-3588E.patch
43-
}
27+
# - Pinout of the LEETOP carrier board: https://www.cnx-software.com/wp-content/uploads/2023/12/Leetop-A206-40-pin-GPIO-header-pintout.png
28+
# - pin 1 is 3.3v; pin 6 and 9 and 25 are GND;
29+
# - pin 3 is SDA; pin 5 is SCL --> i2c-5 confirmed (mainline kernel) // i2c-1 confirmed (vendor kernel)
30+
# - pin 27 is SDA; pin 28 is SCL --> unconfirmed
31+
# - pin 8 is UART TX; pin 10 is UART RX --> uart1 unconfirmed
4432

4533
function post_family_config__core3588e_use_mainline_uboot() {
46-
if [[ "${BRANCH}" != "edge" ]]; then
47-
return 0
48-
fi
49-
5034
display_alert "$BOARD" "mainline u-boot overrides for $BOARD / $BRANCH" "info"
5135

52-
declare -g BOOTCONFIG="mixtile-core3588e-rk3588_defconfig" # custom / not mainline yet
5336
declare -g BOOTDELAY=1
5437
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git"
5538
declare -g BOOTBRANCH="tag:v2026.01-rc4"
5639
declare -g BOOTPATCHDIR="v2026.01"
5740
declare -g BOOTDIR="u-boot-${BOARD}"
5841

59-
UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin" # NOT u-boot-rockchip-spi.bin
60-
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd # disable stuff from rockchip64_common; we're using binman here which does all the work already
42+
UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
43+
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
6144

62-
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
6345
function write_uboot_platform() {
6446
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
6547
}
@@ -69,23 +51,15 @@ function post_family_config__core3588e_use_mainline_uboot() {
6951

7052
# "rockchip-common: boot SD card first, then NVMe, then mmc"
7153
# include/configs/rockchip-common.h
72-
# On the mixtile-core3588e: mmc0 is eMMC; mmc1 is microSD
73-
# Also the usb is non-functional in mainline u-boot right now, so we skip: "scsi" "usb"
54+
# On the mixtile-core3588e: mmc0 is eMMC; mmc1 is microSD (which doesn't really exist/work)
7455
function pre_config_uboot_target__core3588e_patch_rockchip_common_boot_order() {
75-
if [[ "${BRANCH}" != "edge" ]]; then
76-
return 0
77-
fi
78-
declare -a rockchip_uboot_targets=("mmc1" "nvme" "mmc0" "pxe" "dhcp" "spi") # for future make-this-generic delight
56+
declare -a rockchip_uboot_targets=("mmc1" "nvme" "scsi" "usb" "mmc0" "pxe" "dhcp" "spi") # for future make-this-generic delight
7957
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: adjust boot order to '${rockchip_uboot_targets[*]}'" "info"
8058
sed -i -e "s/#define BOOT_TARGETS.*/#define BOOT_TARGETS \"${rockchip_uboot_targets[*]}\"/" include/configs/rockchip-common.h
8159
regular_git diff -u include/configs/rockchip-common.h || true
8260
}
8361

84-
function post_config_uboot_target__extra_configs_for_nanopct6_mainline_environment_in_spi() {
85-
if [[ "${BRANCH}" != "edge" ]]; then
86-
return 0
87-
fi
88-
62+
function post_config_uboot_target__extra_configs_for_core3588e_mainline_environment_in_spi() {
8963
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enable board-specific configs" "info"
9064
run_host_command_logged scripts/config --enable CONFIG_CMD_MISC
9165

patch/u-boot/legacy/u-boot-radxa-rk35xx/defconfig/mixtile-core3588e-rk3588_defconfig

Lines changed: 0 additions & 235 deletions
This file was deleted.

patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3588-mixtile-core3588e.dts

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)