MIPS: bcm47xx: enable ZBOOT support
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 16 Jan 2018 22:21:44 +0000 (00:21 +0200)
committerJames Hogan <jhogan@kernel.org>
Wed, 24 Jan 2018 11:20:29 +0000 (11:20 +0000)
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>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18492/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/Kconfig
arch/mips/bcm47xx/Platform

index 883db58fe8fe9de827bfe5ae2d28b2aef41cf30c..f83f51fc2f82359476b2b379a0f634d0574a4177 100644 (file)
@@ -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
index 874b7ca4cd11de1d81d3a39d16bf986a7006d0c2..70783b75fd9df8553fe1d97e648ccd0cd566fd4f 100644 (file)
@@ -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