From c7859eb605aaf08c9ccef227c6a6f0dee6ce68ae Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Tue, 2 Oct 2018 21:59:51 -0400 Subject: [PATCH] Fix TL-WR1043N v5 image generation --- target/linux/ar71xx/image/tp-link.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk index 4b4615ac2c..cf318586c8 100644 --- a/target/linux/ar71xx/image/tp-link.mk +++ b/target/linux/ar71xx/image/tp-link.mk @@ -45,6 +45,14 @@ define Build/mktplinkfw-kernel @mv $@.new $@ endef +define Build/uImageArcher + mkimage -A $(LINUX_KARCH) \ + -O linux -T kernel \ + -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -n '$(call toupper,$(LINUX_KARCH)) libreCMC Linux-$(LINUX_VERSION)' -d $@ $@.new + @mv $@.new $@ +endef + define Device/tplink TPLINK_HWREV := 0x1 TPLINK_HEADER_VERSION := 1 @@ -95,6 +103,14 @@ $(Device/tplink) IMAGE_SIZE := 15872k endef +define Device/archer-cxx + KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ + append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory +endef + define Device/cpe510-520 DEVICE_TITLE := TP-LINK CPE510/520 DEVICE_PACKAGES := rssileds -- 2.25.1