[LEDE-DEV] [openwrt/openwrt] ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Etienne Champetier
champetier.etienne at gmail.com
Thu Apr 26 12:22:15 PDT 2018
Hi Matthias,
2018-04-26 11:43 GMT-07:00 LEDE Commits <lede-commits at lists.infradead.org>:
> neoraider pushed a commit to openwrt/openwrt.git, branch lede-17.01:
> https://git.lede-project.org/eed9d40133fe6468cc253d0345c7d7332d2aaa7c
>
> commit eed9d40133fe6468cc253d0345c7d7332d2aaa7c
> Author: Matthias Schiffer <mschiffer at universe-factory.net>
> AuthorDate: Thu Apr 26 20:04:48 2018 +0200
>
> 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.
So if I understand correctly,
with this commit I don't need to downgrade my bullet M to v.5.5.10
(U-Boot 1.1.4.2-s594 (Dec 5 2012 - 15:23:07))
and I can just downgrade to v.5.6.x (U-Boot 1.1.4.2-s956 (Jun 10 2015
- 10:54:50)) and maybe even the firsts 6.0.X (without the signed
image)
mtdparts differences between the 2 uboot version:
https://community.ubnt.com/t5/airOS-SDK-Custom-Development/5-6-2-TFTP-ERROR/m-p/1310208/highlight/true#M2354
Thanks
Etienne
>
> Reported-by: Andreas Ziegler <dev at andreas-ziegler.de>
> Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
> ---
> target/linux/ar71xx/image/ubnt.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> 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)
>
> _______________________________________________
> lede-commits mailing list
> lede-commits at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-commits
More information about the Lede-dev
mailing list