[PATCH 03/12] rockchip: rk3399-gru: Move SPI flash payload offset for bob and kevin
Kever Yang
kever.yang at rock-chips.com
Fri Jan 3 07:43:56 CET 2025
On 2024/12/13 07:57, Jonas Karlman wrote:
> The BootROM on RK3399 only read the first 2 KB of each 4 KB page from
> SPI flash. With current FIT payload offset of 0x40000 this limits the
> supported TPL+SPL size to only 128 KB.
>
> Change to use 0xE0000 as FIT payload offset, similar to other RK3399
> boards, to allow a maximum size for TPL of 192 KB and SPL of 256 KB.
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>
Thanks,
- Kever
> ---
> configs/chromebook_bob_defconfig | 2 +-
> configs/chromebook_kevin_defconfig | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/configs/chromebook_bob_defconfig b/configs/chromebook_bob_defconfig
> index decac2e19352..69a07ef7e01e 100644
> --- a/configs/chromebook_bob_defconfig
> +++ b/configs/chromebook_bob_defconfig
> @@ -44,7 +44,7 @@ CONFIG_HANDOFF=y
> # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
> CONFIG_SPL_SPI_LOAD=y
> -CONFIG_SYS_SPI_U_BOOT_OFFS=0x40000
> +CONFIG_SYS_SPI_U_BOOT_OFFS=0xE0000
> CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
> CONFIG_CMD_BOOTZ=y
> CONFIG_CMD_GPIO=y
> diff --git a/configs/chromebook_kevin_defconfig b/configs/chromebook_kevin_defconfig
> index 5bbea6c42a8b..d689eeaf2781 100644
> --- a/configs/chromebook_kevin_defconfig
> +++ b/configs/chromebook_kevin_defconfig
> @@ -45,7 +45,7 @@ CONFIG_HANDOFF=y
> # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
> CONFIG_SPL_SPI_LOAD=y
> -CONFIG_SYS_SPI_U_BOOT_OFFS=0x40000
> +CONFIG_SYS_SPI_U_BOOT_OFFS=0xE0000
> CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
> CONFIG_CMD_BOOTZ=y
> CONFIG_CMD_GPIO=y
More information about the U-Boot
mailing list