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

From: Kah Jing Lee kah.jing.lee@intel.com
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
Signed-off-by: Kah Jing Lee kah.jing.lee@intel.com Signed-off-by: Jit Loon Lim jit.loon.lim@intel.com --- include/configs/socfpga_soc64_common.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index f7f3bc1f13..7fe9dced88 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -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" \

From: Kah Jing Lee kah.jing.lee@intel.com
Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts that is > 32MB
Signed-off-by: Kah Jing Lee kah.jing.lee@intel.com Signed-off-by: Jit Loon Lim jit.loon.lim@intel.com --- include/configs/socfpga_soc64_common.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index 7fe9dced88..5167a2903e 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -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

On Sun, Dec 11, 2022 at 11:46:54PM +0800, Jit Loon Lim wrote:
From: Kah Jing Lee kah.jing.lee@intel.com
Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts that is > 32MB
Signed-off-by: Kah Jing Lee kah.jing.lee@intel.com Signed-off-by: Jit Loon Lim jit.loon.lim@intel.com
include/configs/socfpga_soc64_common.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index 7fe9dced88..5167a2903e 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -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.

On Sun, Dec 11, 2022 at 11:46:53PM +0800, Jit Loon Lim wrote:
From: Kah Jing Lee kah.jing.lee@intel.com
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
Signed-off-by: Kah Jing Lee kah.jing.lee@intel.com Signed-off-by: Jit Loon Lim jit.loon.lim@intel.com
include/configs/socfpga_soc64_common.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index f7f3bc1f13..7fe9dced88 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -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.
participants (2)
-
Jit Loon Lim
-
Tom Rini