Skip to contentSkip to conversation

configs: verdin-imx8m[mp]: set CONFIG_SPL_LOAD_FIT_ADDRESS

PATCH Applied Hiago De Franco 3 participants 3 messages Aug 29, 2024 – Sep 2, 2024 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: verdin-imx8m[mp]: set CONFIG_SPL_LOAD_FIT_ADDRESS

From: Rogerio Guerra Borin <[email protected]>

Set the CONFIG_SPL_LOAD_FIT_ADDRESS for both verdin-imx8mm and verdin-imx8mp configurations to specify the load address for FIT images loaded by the SPL.

As per lastest instructions from NXP, the generation of a HABv4 CSF (Command Sequence File) requires the U-Boot FIT image (u-boot.itb) load address to be set to a fixed value when binman is used. The address is defined by CONFIG_SPL_LOAD_FIT_ADDRESS.

Here we set CONFIG_SPL_LOAD_FIT_ADDRESS to an address 64MB past the start of the DDR memory leaving plenty of room for the various DDR- residing artifacts to be moved to their usual load addresses which are close to the start of the DDR.

---
 configs/verdin-imx8mm_defconfig | 1 +
 configs/verdin-imx8mp_defconfig | 1 +
 2 files changed, 2 insertions(+)
configs/verdin-imx8mm_defconfig +1 -0
index ef7f3b1bc10d..a6f92f3d070e 100644
@@ -29,6 +29,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_FIT_VERBOSE=y
 CONFIG_SPL_LOAD_FIT=y
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x44000000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 CONFIG_OF_SYSTEM_SETUP=y
configs/verdin-imx8mp_defconfig +1 -0
index fca91f7b1eee..594fea3a1b03 100644
@@ -38,6 +38,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_FIT_VERBOSE=y
 CONFIG_SPL_LOAD_FIT=y
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x44000000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 CONFIG_OF_SYSTEM_SETUP=y
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Hiago De Franco

From: Rogerio Guerra Borin <[email protected]>

Set the CONFIG_SPL_LOAD_FIT_ADDRESS for both verdin-imx8mm and verdin-imx8mp configurations to specify the load address for FIT images loaded by the SPL.

As per lastest instructions from NXP, the generation of a HABv4 CSF (Command Sequence File) requires the U-Boot FIT image (u-boot.itb) load address to be set to a fixed value when binman is used. The address is defined by CONFIG_SPL_LOAD_FIT_ADDRESS.

Quoted 7 lines

Here we set CONFIG_SPL_LOAD_FIT_ADDRESS to an address 64MB past the start of the DDR memory leaving plenty of room for the various DDR- residing artifacts to be moved to their usual load addresses which are close to the start of the DDR.

Francesco

reviewer Applied
#2 lore raw
In reply to Hiago De Franco
Quoted 12 lines · Hiago De Franco

From: Rogerio Guerra Borin <[email protected]>

Set the CONFIG_SPL_LOAD_FIT_ADDRESS for both verdin-imx8mm and verdin-imx8mp configurations to specify the load address for FIT images loaded by the SPL.

As per lastest instructions from NXP, the generation of a HABv4 CSF (Command Sequence File) requires the U-Boot FIT image (u-boot.itb) load address to be set to a fixed value when binman is used. The address is defined by CONFIG_SPL_LOAD_FIT_ADDRESS.

Quoted 7 lines

Here we set CONFIG_SPL_LOAD_FIT_ADDRESS to an address 64MB past the start of the DDR memory leaving plenty of room for the various DDR- residing artifacts to be moved to their usual load addresses which are close to the start of the DDR.

Applied, thanks.