station-m3: use radxa's new u-boot

This commit is contained in:
chainsx
2024-05-26 17:19:49 +08:00
committed by Igor
parent a1b2b82d1f
commit ce0f24bcc2
2 changed files with 24 additions and 9 deletions

View File

@@ -3,11 +3,11 @@ BOARD_NAME="Station M3"
BOARDFAMILY="rockchip-rk3588"
BOARD_MAINTAINER="chainsx"
KERNEL_TARGET="legacy,vendor"
BOOTCONFIG="rock-5a-rk3588s_defconfig"
FULL_DESKTOP="yes"
BOOT_LOGO="desktop"
BOOT_FDT_FILE="rockchip/rk3588s-roc-pc.dtb"
SRC_EXTLINUX="yes"
SRC_CMDLINE="console=ttyS02,1500000 console=tty0"
BOOT_SCENARIO="spl-blobs"
BOOT_SOC="rk3588"
IMAGE_PARTITION_TABLE="gpt"
declare -g UEFI_EDK2_BOARD_ID="station-m3" # This _only_ used for uefi-edk2-rk3588 extension
@@ -20,11 +20,13 @@ function post_family_tweaks__station_m3() {
return 0
}
# Override family config for this board; let's avoid conditionals in family config.
function post_family_config__stationm3_use_vendor_uboot() {
BOOTCONFIG="rk3588_defconfig"
BOOTSOURCE='https://github.com/150balbes/u-boot-rk'
BOOTBRANCH='branch:rk3588'
BOOTDIR="u-boot-${BOARD}"
BOOTPATCHDIR="u-boot-station-p2"
function post_family_tweaks__station-m3_naming_audios() {
display_alert "$BOARD" "Renaming station-m3 audios" "info"
mkdir -p $SDCARD/etc/udev/rules.d/
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8388-sound", ENV{SOUND_DESCRIPTION}="ES8388 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
return 0
}

View File

@@ -0,0 +1,13 @@
t a/configs/rock-5a-rk3588s_defconfig b/configs/rock-5a-rk3588s_defconfig
index adcdb4d9..92951132 100644
--- a/configs/rock-5a-rk3588s_defconfig
+++ b/configs/rock-5a-rk3588s_defconfig
@@ -23,7 +23,7 @@
CONFIG_SPL_LIBDISK_SUPPORT=y
CONFIG_SPL_SPI_FLASH_SUPPORT=y
CONFIG_SPL_SPI_SUPPORT=y
-CONFIG_DEFAULT_DEVICE_TREE="rk3588s-rock-5a"
+CONFIG_DEFAULT_DEVICE_TREE="rk3588-evb"
CONFIG_DEBUG_UART=y
CONFIG_FIT=y
CONFIG_FIT_IMAGE_POST_PROCESS=y