Skip to contentSkip to conversation

rpi: increase SYS_BOOTM_LEN to 64M

PATCH New Bonnans 2 participants 3 messages Jun 7, 2019 – Jul 31, 2019

lore
Share & tools
lore

Bonnans

#0 lore raw

PATCH 1/1 rpi: increase SYS_BOOTM_LEN to 64M

On AArch64, kernel images are not self-decompressing and easily exceed the 8MB limit.

---
 include/configs/rpi.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/rpi.h +1 -0
index 9ce41767a9..1a5ae26ae7 100644
@@ -55,6 +55,7 @@
 #define CONFIG_SYS_MEMTEST_START	0x00100000
 #define CONFIG_SYS_MEMTEST_END		0x00200000
 #define CONFIG_LOADADDR			0x00200000
+#define CONFIG_SYS_BOOTM_LEN		SZ_64M
 
 /* Devices */
 /* GPIO */
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 rpi: increase SYS_BOOTM_LEN to 64M

Hi Laurent,

Quoted 13 lines · Laurent

On AArch64, kernel images are not self-decompressing and easily exceed the 8MB limit.

---
 include/configs/rpi.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/rpi.h +0 -0
index 9ce41767a9..1a5ae26ae7 100644

include/configs/rpi.h line 59

Quoted 5 lines
include/configs/rpi.h +1 -0
@@ -55,6 +55,7 @@
 #define CONFIG_SYS_MEMTEST_START	0x00100000
 #define CONFIG_SYS_MEMTEST_END		0x00200000
 #define CONFIG_LOADADDR			0x00200000
+#define CONFIG_SYS_BOOTM_LEN		SZ_64M
 

Sorry for the late reply.
If it's only needed for ARM64 then we should make it set for this architecture, right?

Next time you send a patch, plese add the maintainers mailinglist. This way I'll find the patch easier.

Thanks,
Matthias

#2 lore raw

PATCH 1/1 rpi: increase SYS_BOOTM_LEN to 64M

Quoted 11 lines · Matthias Brugger

Hi Laurent,

Quoted 8 lines · Laurent

On AArch64, kernel images are not self-decompressing and easily exceed the 8MB limit.

---
  include/configs/rpi.h | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines

include/configs/rpi.h line 59

Quoted 10 lines
include/configs/rpi.h +1 -0
index 9ce41767a9..1a5ae26ae7 100644
@@ -55,6 +55,7 @@
  #define CONFIG_SYS_MEMTEST_START	0x00100000
  #define CONFIG_SYS_MEMTEST_END		0x00200000
  #define CONFIG_LOADADDR			0x00200000
+#define CONFIG_SYS_BOOTM_LEN		SZ_64M
 

Sorry for the late reply.
If it's only needed for ARM64 then we should make it set for this architecture, right?

That seems to be the best call indeed. Then I wonder if we should just set the default larger if CONFIG_ARM64 because the problem should arise almost in all case, I believe. There is a similar define in sunxi-common.h for example.

But anyway, that's a larger debate, I'll send another patch with the ARM64 check in the header file.

Quoted 2 lines

Next time you send a patch, plese add the maintainers mailinglist. This way I'll find the patch easier.

Yes, sorry about that. Only realized it later...

Laurent