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

Heiko Thiery heiko.thiery at gmail.com
Tue Feb 15 13:18:39 CET 2022


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 at kontron.de>
Signed-off-by: Heiko Thiery <heiko.thiery at 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" \
-- 
2.30.2



More information about the U-Boot mailing list