configs: add env. variable to support compressed kernel in qspiboot
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
@@ -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
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
@@ -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
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_LENto support kernel image from 5.15.lts that is > 32MBSigned-off-by Kah Jing Lee <[email protected]>Signed-off-by Jit Loon Lim <[email protected]>--- include/configs/socfpga_soc64_common.h | 1 + 1 file changed, 1 insertion(+)include/configs/socfpga_soc64_common.h +0
-0
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
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:
setenvkernel_comp_addr_r0x9000000
setenvkernel_comp_size0x01000000Signed-off-by Kah Jing Lee <[email protected]>Signed-off-by Jit Loon Lim <[email protected]>--- include/configs/socfpga_soc64_common.h | 2 ++ 1 file changed, 2 insertions(+)include/configs/socfpga_soc64_common.h +0
-0
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