From: RISCi_ATOM Date: Wed, 3 Oct 2018 01:59:51 +0000 (-0400) Subject: Fix TL-WR1043N v5 image generation X-Git-Tag: v1.4.5~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7859eb605aaf08c9ccef227c6a6f0dee6ce68ae;p=librecmc%2Flibrecmc.git Fix TL-WR1043N v5 image generation --- 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