All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: bcm47xx: enable ZBOOT support
@ 2018-01-16 22:21 Aaro Koskinen
  2018-02-01 16:16 ` James Hogan
  0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2018-01-16 22:21 UTC (permalink / raw)
  To: Ralf Baechle, James Hogan, Hauke Mehrtens,
	Rafał Miłecki, linux-mips
  Cc: Aaro Koskinen

Enable ZBOOT support. The WRT54GL router's bootloader limits kernel
size to 3 MB with the normal load address, which is a bit challenging
vmlinux size with modern Linux. A compressed kernel allows booting
much bigger kernels.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 arch/mips/Kconfig          | 1 +
 arch/mips/bcm47xx/Platform | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 350a990..1a8cd3b 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -253,6 +253,7 @@ config BCM47XX
 	select SYS_SUPPORTS_32BIT_KERNEL
 	select SYS_SUPPORTS_LITTLE_ENDIAN
 	select SYS_SUPPORTS_MIPS16
+	select SYS_SUPPORTS_ZBOOT
 	select SYS_HAS_EARLY_PRINTK
 	select USE_GENERIC_EARLY_PRINTK_8250
 	select GPIOLIB
diff --git a/arch/mips/bcm47xx/Platform b/arch/mips/bcm47xx/Platform
index 874b7ca..70783b7 100644
--- a/arch/mips/bcm47xx/Platform
+++ b/arch/mips/bcm47xx/Platform
@@ -5,3 +5,4 @@ platform-$(CONFIG_BCM47XX)	+= bcm47xx/
 cflags-$(CONFIG_BCM47XX)	+=					\
 		-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
 load-$(CONFIG_BCM47XX)		:= 0xffffffff80001000
+zload-$(CONFIG_BCM47XX)		+= 0xffffffff80400000
-- 
2.9.2

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

* Re: [PATCH] MIPS: bcm47xx: enable ZBOOT support
  2018-01-16 22:21 [PATCH] MIPS: bcm47xx: enable ZBOOT support Aaro Koskinen
@ 2018-02-01 16:16 ` James Hogan
  0 siblings, 0 replies; 2+ messages in thread
From: James Hogan @ 2018-02-01 16:16 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: Ralf Baechle, Hauke Mehrtens, Rafał Miłecki, linux-mips

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

On Wed, Jan 17, 2018 at 12:21:44AM +0200, Aaro Koskinen wrote:
> Enable ZBOOT support. The WRT54GL router's bootloader limits kernel
> size to 3 MB with the normal load address, which is a bit challenging
> vmlinux size with modern Linux. A compressed kernel allows booting
> much bigger kernels.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Applied to my 4.16 branch

Thanks
James

> ---
>  arch/mips/Kconfig          | 1 +
>  arch/mips/bcm47xx/Platform | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 350a990..1a8cd3b 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -253,6 +253,7 @@ config BCM47XX
>  	select SYS_SUPPORTS_32BIT_KERNEL
>  	select SYS_SUPPORTS_LITTLE_ENDIAN
>  	select SYS_SUPPORTS_MIPS16
> +	select SYS_SUPPORTS_ZBOOT
>  	select SYS_HAS_EARLY_PRINTK
>  	select USE_GENERIC_EARLY_PRINTK_8250
>  	select GPIOLIB
> diff --git a/arch/mips/bcm47xx/Platform b/arch/mips/bcm47xx/Platform
> index 874b7ca..70783b7 100644
> --- a/arch/mips/bcm47xx/Platform
> +++ b/arch/mips/bcm47xx/Platform
> @@ -5,3 +5,4 @@ platform-$(CONFIG_BCM47XX)	+= bcm47xx/
>  cflags-$(CONFIG_BCM47XX)	+=					\
>  		-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
>  load-$(CONFIG_BCM47XX)		:= 0xffffffff80001000
> +zload-$(CONFIG_BCM47XX)		+= 0xffffffff80400000
> -- 
> 2.9.2
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2018-02-01 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16 22:21 [PATCH] MIPS: bcm47xx: enable ZBOOT support Aaro Koskinen
2018-02-01 16:16 ` James Hogan

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.