diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-03-30 20:20:15 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-03-30 20:20:15 +0000 |
commit | d8ba40cfcdd509e7e1ed68878cb93d9a81e245b6 (patch) | |
tree | 9e287d80d109a48c824498a2eb1ba576834ccd6f /target/linux/brcm63xx/patches-3.18 | |
parent | 8353a3bd455f1ee5e0250d0a97b5d058f21316c7 (diff) | |
download | upstream-d8ba40cfcdd509e7e1ed68878cb93d9a81e245b6.tar.gz upstream-d8ba40cfcdd509e7e1ed68878cb93d9a81e245b6.tar.bz2 upstream-d8ba40cfcdd509e7e1ed68878cb93d9a81e245b6.zip |
brcm63xx: use relocate to move the kernel back to start of ram
Appearently the kernel only uses kernel above it, so moving it to an
higher address causes a lot of unavailable memory (#19327).
Also move the on-flash kernel to 0x80a0000, as newer CFEs don't like
uncompressing there (net-booting an ELF kernel is fine, though).
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45164
Diffstat (limited to 'target/linux/brcm63xx/patches-3.18')
-rw-r--r-- | target/linux/brcm63xx/patches-3.18/810-BCM63XX-move-kernel-behind-CFE.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/brcm63xx/patches-3.18/810-BCM63XX-move-kernel-behind-CFE.patch b/target/linux/brcm63xx/patches-3.18/810-BCM63XX-move-kernel-behind-CFE.patch deleted file mode 100644 index b161edbd72..0000000000 --- a/target/linux/brcm63xx/patches-3.18/810-BCM63XX-move-kernel-behind-CFE.patch +++ /dev/null @@ -1,29 +0,0 @@ -From b99815f47828214b298178b0d0e2a9f3aae9f24a Mon Sep 17 00:00:00 2001 -From: Jonas Gorski <jogo@openwrt.org> -Date: Sun, 22 Mar 2015 11:49:16 +0100 -Subject: [PATCH] MIPS: BCM63XX: move kernel behind CFE - -CFE will load itself to offset 4 MiB (or 6 MiB) in memory occupying a -bit over one MiB. Traditionally the kernel will get linked to and loaded -at offset 64k. -This will pose a problem if the kernel size reaches 4 MiB - 64 kB, as -CFE will start overwriting itself. This can easily happen by including a -ramdisk image in the kernel. -While for net-booted elf kernels this can be worked around by wrapping -them in a lzma boot loader, on-flash images require the kernel to be -lzma compressed. This would cause inefficient double compression. - -Luckily we have full control over where the kernel will be extracted to -and the entry point to be called, so move the kernel to behind CFE. ---- - arch/mips/bcm63xx/Platform | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/arch/mips/bcm63xx/Platform -+++ b/arch/mips/bcm63xx/Platform -@@ -4,4 +4,4 @@ - platform-$(CONFIG_BCM63XX) += bcm63xx/ - cflags-$(CONFIG_BCM63XX) += \ - -I$(srctree)/arch/mips/include/asm/mach-bcm63xx/ --load-$(CONFIG_BCM63XX) := 0xffffffff80010000 -+load-$(CONFIG_BCM63XX) := 0xffffffff80800000 |