ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
authorMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 26 Apr 2018 18:04:48 +0000 (20:04 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 26 Apr 2018 18:42:42 +0000 (20:42 +0200)
commiteed9d40133fe6468cc253d0345c7d7332d2aaa7c
tree43ec47a64dc41e4826f899712cff387a785b47c1
parent23a638ebd1fd7b9a38473efa819c0aaec8870822
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>
target/linux/ar71xx/image/ubnt.mk