mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-03-09 23:17:52 +00:00
ath79: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Apply ar71xx fix for broken Ubiquiti bootloader to ath79 as well. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
6069bdd087
commit
db34cdf6c5
@ -36,6 +36,19 @@ define Build/loader-okli
|
|||||||
mv "$@.new" "$@"
|
mv "$@.new" "$@"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/relocate-kernel
|
||||||
|
rm -rf $@.relocate
|
||||||
|
$(CP) ../../generic/image/relocate $@.relocate
|
||||||
|
$(MAKE) -j1 -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
|
||||||
|
( \
|
||||||
|
dd if=$@.relocate/loader.bin bs=32 conv=sync && \
|
||||||
|
perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
|
||||||
|
cat "$@" \
|
||||||
|
) > "$@.new"
|
||||||
|
mv "$@.new" "$@"
|
||||||
|
rm -rf $@.relocate
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/copy-file
|
define Build/copy-file
|
||||||
cat "$(1)" > "$@"
|
cat "$(1)" > "$@"
|
||||||
endef
|
endef
|
||||||
|
@ -52,6 +52,7 @@ define Device/ubnt-xm
|
|||||||
UBNT_TYPE := XM
|
UBNT_TYPE := XM
|
||||||
UBNT_CHIP := ar7240
|
UBNT_CHIP := ar7240
|
||||||
ATH_SOC := ar7241
|
ATH_SOC := ar7241
|
||||||
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Device/ubnt-xw
|
define Device/ubnt-xw
|
||||||
|
Loading…
Reference in New Issue
Block a user