]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit78502352215e60a17158afdfe5a6ac4cba84d180
tree6fcd92761efaaf80d656bfd867237e145941ad42
parentea1b5b54e6675853091a78f74826a82cd397cbb7
configs: ast2600: Move SPL bss section to DRAM space

The commit 4ec8564f5550 ("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