configs: ast2600: Move SPL bss section to DRAM space
authorChia-Wei Wang <chiawei_wang@aspeedtech.com>
Wed, 1 Jun 2022 08:21:15 +0000 (16:21 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 01:30:05 +0000 (21:30 -0400)
commit442a69c143759648f571e3784c7b3bc5be7ed595
tree6fcd92761efaaf80d656bfd867237e145941ad42
parent478c00718df842271fe0636031603bfcef420837
configs: ast2600: Move SPL bss section to DRAM space

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@aspeedtech.com>
Reviewed-by: Neal Liu <neal_liu@aspeedtech.com>
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds [new file with mode: 0644]
configs/evb-ast2600_defconfig