All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot
@ 2022-12-11 15:46 Jit Loon Lim
  2022-12-11 15:46 ` [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB Jit Loon Lim
  2022-12-11 20:42 ` [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Jit Loon Lim @ 2022-12-11 15:46 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
	Hazim, Jit Loon Lim, Sieu Mun Tang, Kah Jing Lee

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" \
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB
  2022-12-11 15:46 [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot Jit Loon Lim
@ 2022-12-11 15:46 ` Jit Loon Lim
  2022-12-11 20:43   ` Tom Rini
  2022-12-11 20:42 ` [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Jit Loon Lim @ 2022-12-11 15:46 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
	Hazim, Jit Loon Lim, Sieu Mun Tang, Kah Jing Lee

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
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot
  2022-12-11 15:46 [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot Jit Loon Lim
  2022-12-11 15:46 ` [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB Jit Loon Lim
@ 2022-12-11 20:42 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2022-12-11 20:42 UTC (permalink / raw)
  To: Jit Loon Lim
  Cc: u-boot, Jagan Teki, Vignesh R, Marek, Simon, Tien Fong,
	Kok Kiang, Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif,
	Teik Heng, Hazim, Sieu Mun Tang, Kah Jing Lee

[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]

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.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB
  2022-12-11 15:46 ` [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB Jit Loon Lim
@ 2022-12-11 20:43   ` Tom Rini
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2022-12-11 20:43 UTC (permalink / raw)
  To: Jit Loon Lim
  Cc: u-boot, Jagan Teki, Vignesh R, Marek, Simon, Tien Fong,
	Kok Kiang, Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif,
	Teik Heng, Hazim, Sieu Mun Tang, Kah Jing Lee

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]

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.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-11 20:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-11 15:46 [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot Jit Loon Lim
2022-12-11 15:46 ` [PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB Jit Loon Lim
2022-12-11 20:43   ` Tom Rini
2022-12-11 20:42 ` [PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.