summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-04-26 20:04:48 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-04-26 20:42:42 +0200
commiteed9d40133fe6468cc253d0345c7d7332d2aaa7c (patch)
tree43ec47a64dc41e4826f899712cff387a785b47c1
parent23a638ebd1fd7b9a38473efa819c0aaec8870822 (diff)
downloadmtk-20170518-eed9d40133fe6468cc253d0345c7d7332d2aaa7c.zip
mtk-20170518-eed9d40133fe6468cc253d0345c7d7332d2aaa7c.tar.gz
mtk-20170518-eed9d40133fe6468cc253d0345c7d7332d2aaa7c.tar.bz2
ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Some Ubiquiti U-boot versions, in particular the "U-Boot 1.1.4.2-s956 (Jun 10 2015 - 10:54:50)" found with AirOS 5.6, do not correctly flush the caches for the whole kernel address range after decompressing the kernel image, leading to hard to debug boot failures, depending on kernel version and configuration. As a workaround, prepend the relocate-kernels loader, which will invalidate the caches after moving the kernel to the correct load address. Reported-by: Andreas Ziegler <dev@andreas-ziegler.de> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
-rw-r--r--target/linux/ar71xx/image/ubnt.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/ubnt.mk b/target/linux/ar71xx/image/ubnt.mk
index 65ed708..899d5d0 100644
--- a/target/linux/ar71xx/image/ubnt.mk
+++ b/target/linux/ar71xx/image/ubnt.mk
@@ -47,6 +47,7 @@ define Device/ubnt-xm
UBNT_TYPE := XM
UBNT_BOARD := XM
UBNT_CHIP := ar7240
+ KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma | uImage lzma
IMAGES := sysupgrade.bin factory.bin
IMAGE/factory.bin = $$(IMAGE/sysupgrade.bin) | mkubntimage-split
IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)