From 28261933c5ab6e9e0c0935efb09810b08ab3d16d Mon Sep 17 00:00:00 2001 From: Randolph Date: Wed, 29 Oct 2025 16:23:28 +0800 Subject: [PATCH] falcon: support booting linux from MMC/Parallel Flash To support booting Linux from MMC, the file name should be set up correctly. To support booting Linux from Parallel Flash, the SPL_LOAD_FIT_ADDRESS should point to the Parallel Flash. Signed-off-by: Randolph --- common/spl/Kconfig | 1 + configs/ae350_rv32_falcon_xip_defconfig | 3 ++- configs/ae350_rv64_falcon_xip_defconfig | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 8dade2b501e..06081af3ce1 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -787,6 +787,7 @@ config SPL_FS_LOAD_PAYLOAD_NAME string "File to load for U-Boot from the filesystem" depends on SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS || SPL_SEMIHOSTING default "tispl.bin" if SYS_K3_SPL_ATF + default "linux.itb" if SPL_LOAD_FIT_OPENSBI_OS_BOOT default "u-boot.itb" if SPL_LOAD_FIT default "linux.itb" if SPL_LOAD_FIT_OPENSBI_OS_BOOT default "u-boot.img" diff --git a/configs/ae350_rv32_falcon_xip_defconfig b/configs/ae350_rv32_falcon_xip_defconfig index 1895d52a180..4ae973b6e7a 100644 --- a/configs/ae350_rv32_falcon_xip_defconfig +++ b/configs/ae350_rv32_falcon_xip_defconfig @@ -18,7 +18,8 @@ CONFIG_SPL_XIP=y CONFIG_SPL_LOAD_FIT_OPENSBI_OS_BOOT=y CONFIG_SYS_MONITOR_BASE=0x88000000 CONFIG_FIT=y -CONFIG_SPL_LOAD_FIT_ADDRESS=0x80010000 +CONFIG_SPL_LOAD_FIT_ADDRESS=0x88600000 +CONFIG_SYS_BOOTM_LEN=0x4000000 CONFIG_DISTRO_DEFAULTS=y CONFIG_BOOTDELAY=3 CONFIG_SYS_PBSIZE=1050 diff --git a/configs/ae350_rv64_falcon_xip_defconfig b/configs/ae350_rv64_falcon_xip_defconfig index ae31675cc9c..14d22b9d32a 100644 --- a/configs/ae350_rv64_falcon_xip_defconfig +++ b/configs/ae350_rv64_falcon_xip_defconfig @@ -18,7 +18,8 @@ CONFIG_SPL_XIP=y CONFIG_SPL_LOAD_FIT_OPENSBI_OS_BOOT=y CONFIG_SYS_MONITOR_BASE=0x88000000 CONFIG_FIT=y -CONFIG_SPL_LOAD_FIT_ADDRESS=0x80010000 +CONFIG_SPL_LOAD_FIT_ADDRESS=0x88600000 +CONFIG_SYS_BOOTM_LEN=0x4000000 CONFIG_DISTRO_DEFAULTS=y CONFIG_BOOTDELAY=3 CONFIG_SYS_PBSIZE=1050