u-boot/arch/arm/cpu/arm926ejs
Lukasz Majewski 014315b2d8 spl: Provide more space to be used for storing SPL on imx28 OCRAM
With the current configuration provided in mxsimage{-spl}.mx28.cfg the
size of SPL binary has been constrained to 32 KiB, due to "LOAD IVT"
command with 0x8000 offset.

The problem was that, the imx28 ROM takes the u-boot.sb and then
extracts from it the IVT header and places it on the 0x8000 OCRAM offset
overwriting any valid (i.e. loaded from eMMC or SPI-NOR) SPL code. This
bug was unnoticed as the overwrite size was just 32 bytes, so the
probability that some important code is altered was low.

However, in the XEA board (where the SPL size is ~39KiB), the overwritten
data was `(struct dm_spi_ops *) 0x800c <mxs_spi_ops>`, which is used
during the boot process.

As a result the SPL execution code hanged with "undefined instruction"
abort as callbacks (with wrong addresses) from it were called.

The fix is to change the OCRAM's offset where IVT is loaded to 0xE000,
so the SPL can grow up to ~57KiB (the maximal size of OCRAM memory
available is 0xE3FC).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
2022-02-05 13:38:39 +01:00
..
mx27 reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
mxs spl: Provide more space to be used for storing SPL on imx28 OCRAM 2022-02-05 13:38:39 +01:00
sunxi arm: arm926ej-s: Add sunxi code 2022-02-04 00:09:57 +00:00
cache.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
cpu.c arm: arm926ej-s: Add sunxi code 2022-02-04 00:09:57 +00:00
Makefile arm: arm926ej-s: Add sunxi code 2022-02-04 00:09:57 +00:00
start.S arm: arm926ej-s: start.S: port save_boot_params support from armv7 code 2022-02-04 00:09:57 +00:00