# MT7620A Profiles
#
-DEVICE_VARS += TPLINK_BOARD_ID
+DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
define Build/elecom-header
cp $@ $(KDIR)/v_0.0.0.bin
TARGET_DEVICES += ai-br100
define Device/Archer
+ TPLINK_HWREVADD := 0
+ TPLINK_HVERSION := 3
KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header
- IMAGE/factory.bin := tplink-v2-image
- IMAGE/sysupgrade.bin := tplink-v2-image -s | append-metadata
+ KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
+ IMAGE/factory.bin := tplink-v2-image -e
+ IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata
endef
define Device/ArcherC20
$(Device/Archer)
DTS := ArcherC20
SUPPORTED_DEVICES := c20
- TPLINK_BOARD_ID := ArcherC20
+ TPLINK_FLASHLAYOUT := 8Mmtk
+ TPLINK_HWID := 0xc2000001
+ TPLINK_HWREV := 0x44
+ TPLINK_HWREVADD := 0x1
IMAGES += factory.bin
DEVICE_TITLE := TP-Link ArcherC20
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
$(Device/Archer)
DTS := ArcherC20i
SUPPORTED_DEVICES := c20i
- TPLINK_BOARD_ID := ArcherC20i
+ TPLINK_FLASHLAYOUT := 8Mmtk
+ TPLINK_HWID := 0xc2000001
+ TPLINK_HWREV := 58
IMAGES += factory.bin
DEVICE_TITLE := TP-Link ArcherC20i
endef
$(Device/Archer)
DTS := ArcherC50
SUPPORTED_DEVICES := c50
- TPLINK_BOARD_ID := ArcherC50
+ TPLINK_FLASHLAYOUT := 8Mmtk
+ TPLINK_HWID := 0xc7500001
+ TPLINK_HWREV := 69
IMAGES += factory-us.bin factory-eu.bin
- IMAGE/factory-us.bin := tplink-v2-image -w 0
- IMAGE/factory-eu.bin := tplink-v2-image -w 2
+ IMAGE/factory-us.bin := tplink-v2-image -e -w 0
+ IMAGE/factory-eu.bin := tplink-v2-image -e -w 2
DEVICE_TITLE := TP-Link ArcherC50v1
endef
TARGET_DEVICES += ArcherC50v1
$(Device/Archer)
DTS := ArcherMR200
SUPPORTED_DEVICES := mr200
- TPLINK_BOARD_ID := ArcherMR200
+ TPLINK_FLASHLAYOUT := 8MLmtk
+ TPLINK_HWID := 0xd7500001
+ TPLINK_HWREV := 0x4a
DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
DEVICE_TITLE := TP-Link ArcherMR200
endef