Skip to contentSkip to conversation

kontron-sl-mx8mm: change kernel_addr_r and scriptaddr

PATCH In review Heiko Thiery 2 participants 3 messages Feb 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <[email protected]>
---
 include/configs/kontron-sl-mx8mm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/kontron-sl-mx8mm.h +2 -2
index d1e87f97d6..5c23d31950 100644
@@ -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" \
Signature · 1 line
2.30.2
#1 lore raw

Hi Heiko,

Quoted 4 lines

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

#2 lore raw

Hi,

Am Di., 15. Feb. 2022 um 15:03 Uhr schrieb Michael Walle <[email protected]>:

Quoted 10 lines

Hi Heiko,

Quoted 4 lines

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.

Signature · 1 line
Heiko