[PATCH] kontron-sl-mx8mm: change kernel_addr_r and scriptaddr

Currently the space between kernel_addr_r and the fdt_addr_r is only 32MB. To have enought space to load kernel images bigger than 32MB change the kernel_addr_r to CONFIG_SYS_LOAD_ADDR. Also set the scriptaddr to this value.
Cc: Frieder Schrempf frieder.schrempf@kontron.de Signed-off-by: Heiko Thiery heiko.thiery@gmail.com --- include/configs/kontron-sl-mx8mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/configs/kontron-sl-mx8mm.h b/include/configs/kontron-sl-mx8mm.h index d1e87f97d6..5c23d31950 100644 --- a/include/configs/kontron-sl-mx8mm.h +++ b/include/configs/kontron-sl-mx8mm.h @@ -68,11 +68,11 @@ #define FEC_QUIRK_ENET_MAC
#define CONFIG_EXTRA_ENV_SETTINGS \ - "kernel_addr_r=0x42000000\0" \ + "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ "fdt_addr_r=0x44000000\0" \ "ramdisk_addr_r=0x46400000\0" \ "pxefile_addr_r=0x46000000\0" \ - "scriptaddr=0x46000000\0" \ + "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ "dfu_alt_info=sf 0:0=flash-bin raw 0x400 0x1f0000\0" \ "bootdelay=3\0" \ "hostname=" CONFIG_HOSTNAME "\0" \

Hi Heiko,
Currently the space between kernel_addr_r and the fdt_addr_r is only 32MB. To have enought space to load kernel images bigger than 32MB change the kernel_addr_r to CONFIG_SYS_LOAD_ADDR. Also set the scriptaddr to this value.
Did you check and align the values with the almost standard in: include/configs/ti_armv7_common.h
-michael

Hi,
Am Di., 15. Feb. 2022 um 15:03 Uhr schrieb Michael Walle michael@walle.cc:
Hi Heiko,
Currently the space between kernel_addr_r and the fdt_addr_r is only 32MB. To have enought space to load kernel images bigger than 32MB change the kernel_addr_r to CONFIG_SYS_LOAD_ADDR. Also set the scriptaddr to this value.
Did you check and align the values with the almost standard in: include/configs/ti_armv7_common.h
No, I was not aware that there is a good example of how the layout should be defined. I will rework that accordingly and send v2.
participants (2)
-
Heiko Thiery
-
Michael Walle