Skip to contentSkip to conversation

configs: add env. variable to support compressed kernel in qspiboot

PATCH In review Jit Loon Lim 2 participants 4 messages Dec 11, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 configs: add env. variable to support compressed kernel in qspiboot

From: Kah Jing Lee <[email protected]>

Fix qspiboot issue which uncompressed kernel(5.16) overflows to rootfs Add 2 env. variables to support compressed kernel in legacy qspiboot:
setenv kernel_comp_addr_r 0x9000000
setenv kernel_comp_size 0x01000000

---
 include/configs/socfpga_soc64_common.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/socfpga_soc64_common.h +2 -0
index f7f3bc1f13..7fe9dced88 100644
@@ -133,6 +133,8 @@
 #else
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"kernel_comp_addr_r=0x9000000\0" \
+	"kernel_comp_size=0x01000000\0" \
 	"qspibootimageaddr=0x020E0000\0" \
 	"qspifdtaddr=0x020D0000\0" \
 	"bootimagesize=0x01F00000\0" \
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/2 configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB

From: Kah Jing Lee <[email protected]>

Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts that is > 32MB

---
 include/configs/socfpga_soc64_common.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/socfpga_soc64_common.h +1 -0
index 7fe9dced88..5167a2903e 100644
@@ -22,6 +22,7 @@
  */
 
 /* Extend size of kernel image for uncompression */
+#define CONFIG_SYS_BOOTM_LEN		(64 * 1024 * 1024)
 
 /*
  * U-Boot run time memory configurations
Signature · 1 line
2.26.2
#2 lore raw

Re: [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB

Quoted 16 lines · Jit Loon Lim

From: Kah Jing Lee <[email protected]>

Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts that is > 32MB

---
 include/configs/socfpga_soc64_common.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/socfpga_soc64_common.h +0 -0
index 7fe9dced88..5167a2903e 100644

include/configs/socfpga_soc64_common.h line 25

Quoted 4 lines
include/configs/socfpga_soc64_common.h +1 -0
@@ -22,6 +22,7 @@
  */
 
 /* Extend size of kernel image for uncompression */
+#define CONFIG_SYS_BOOTM_LEN		(64 * 1024 * 1024)

This option is controlled via Kconfig.

Signature · 1 line
Tom
#3 lore raw
In reply to Jit Loon Lim
Quoted 18 lines · Jit Loon Lim

From: Kah Jing Lee <[email protected]>

Fix qspiboot issue which uncompressed kernel(5.16) overflows to rootfs Add 2 env. variables to support compressed kernel in legacy qspiboot:
setenv kernel_comp_addr_r 0x9000000
setenv kernel_comp_size 0x01000000

---
 include/configs/socfpga_soc64_common.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/socfpga_soc64_common.h +0 -0
index f7f3bc1f13..7fe9dced88 100644

include/configs/socfpga_soc64_common.h line 140

Quoted 8 lines
include/configs/socfpga_soc64_common.h +2 -0
@@ -133,6 +133,8 @@
 #else
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"kernel_comp_addr_r=0x9000000\0" \
+	"kernel_comp_size=0x01000000\0" \
 	"qspibootimageaddr=0x020E0000\0" \
 	"qspifdtaddr=0x020D0000\0" \
 	"bootimagesize=0x01F00000\0" \

I would really like to see these kind of changes start being introduced in the text based environment files instead at this point, thanks.

Signature · 1 line
Tom