diff options
Diffstat (limited to 'target/linux/ramips/image')
| -rw-r--r-- | target/linux/ramips/image/common-tp-link.mk | 13 | ||||
| -rw-r--r-- | target/linux/ramips/image/mt7621.mk | 25 |
2 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/ramips/image/common-tp-link.mk b/target/linux/ramips/image/common-tp-link.mk index 915a086f98b..cb262759605 100644 --- a/target/linux/ramips/image/common-tp-link.mk +++ b/target/linux/ramips/image/common-tp-link.mk @@ -1,6 +1,19 @@ DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD DEVICE_VARS += TPLINK_HVERSION TPLINK_BOARD_ID TPLINK_HEADER_VERSION +define Build/uImage-tplink-c9 + mkimage \ + -A $(LINUX_KARCH) \ + -O linux \ + -T $(word 1,$(1)) \ + -C none \ + -a $(KERNEL_LOADADDR) \ + -e $(KERNEL_LOADADDR) \ + -n $(wordlist 2,$(words $(1)),$(1)) \ + -d $@ $@.new + mv $@.new $@ +endef + define Device/tplink-v1 DEVICE_VENDOR := TP-Link TPLINK_FLASHLAYOUT := diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index f2ca2a971d2..fd40b6f0a63 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -2005,6 +2005,31 @@ define Device/tplink_eap615-wall-v1 endef TARGET_DEVICES += tplink_eap615-wall-v1 +define Device/tplink_ec330-g5u-v1 + $(Device/dsa-migration) + LOADER := bin + BLOCKSIZE := 128k + PAGESIZE := 2048 + UBINIZE_OPTS := -E 5 + KERNEL_SIZE := 4096k + IMAGE_SIZE := 49152k + DEVICE_VENDOR := TP-Link + DEVICE_MODEL := EC330-G5u + DEVICE_ALT0_VENDOR := TP-Link + DEVICE_ALT0_MODEL := Archer C9ERT + DEVICE_VARIANT := v1 + DEVICE_PACKAGES := kmod-mt7615-firmware kmod-usb-ledtrig-usbport \ + kmod-usb3 uboot-envtools + KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | \ + uImage-tplink-c9 standalone '$(call toupper,$(LINUX_KARCH)) \ + $(VERSION_DIST) Linux-$(LINUX_VERSION)' | \ + uImage-tplink-c9 firmware 'OS IMAGE ($(VERSION_DIST))' + KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | \ + uImage none + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | check-size +endef +TARGET_DEVICES += tplink_ec330-g5u-v1 + define Device/tplink_er605-v2 $(Device/dsa-migration) DEVICE_VENDOR := TP-Link |
