[PATCH] configs: ast2600: Move SPL bss section to DRAM space

Neal Liu neal_liu at aspeedtech.com
Thu Jun 2 04:05:45 CEST 2022


> The commit b583348ca8c8 ("image: fit: Align hash output buffers") places the
> hash output buffer at the .bss section. However, AST2600 by default executes
> SPL in the NOR flash XIP way. This results in the hash output cannot be written
> to the buffer as it is located at the R/X only region.
> 
> We need to move the .bss section out of the SPL body to the DRAM space,
> where hash output can be written to. This patch includes:
>  - Define the .bss section base and size
>  - A new SPL linker script is added with a separate .bss region specified
>  - Enable CONFIG_SPL_SEPARATE_BSS kconfig option
> 
> Signed-off-by: Chia-Wei Wang <chiawei_wang at aspeedtech.com>

LGTM.

Reviewed-by: Neal Liu <neal_liu at aspeedtech.com>

Best Regards,
-Neal

> ---
>  arch/arm/mach-aspeed/ast2600/u-boot-spl.lds | 94
> +++++++++++++++++++++
>  configs/evb-ast2600_defconfig               |  3 +
>  include/configs/evb_ast2600.h               |  3 +
>  3 files changed, 100 insertions(+)
>  create mode 100644 arch/arm/mach-aspeed/ast2600/u-boot-spl.lds



More information about the U-Boot mailing list