# MT7620A Profiles
#
-define Build/tplink-header
- $(STAGING_DIR_HOST)/bin/mktplinkfw2 -a 0x4 -V "ver. 2.0" -B $(1) \
- -o $@.new -k $@ -r $(IMAGE_ROOTFS) && mv $@.new $@
-endef
+DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
define Build/elecom-header
cp $@ $(KDIR)/v_0.0.0.bin
endef
TARGET_DEVICES += ai-br100
+define Device/Archer
+ TPLINK_HWREVADD := 0
+ TPLINK_HVERSION := 3
+ KERNEL := $(KERNEL_DTB)
+ 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_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
+endef
+TARGET_DEVICES += ArcherC20
+
define Device/ArcherC20i
+ $(Device/Archer)
DTS := ArcherC20i
SUPPORTED_DEVICES := c20i
- KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c
- IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j | append-metadata
+ TPLINK_FLASHLAYOUT := 8Mmtk
+ TPLINK_HWID := 0xc2000001
+ TPLINK_HWREV := 58
+ IMAGES += factory.bin
DEVICE_TITLE := TP-Link ArcherC20i
endef
TARGET_DEVICES += ArcherC20i
-define Device/ArcherC50
+define Device/ArcherC50v1
+ $(Device/Archer)
DTS := ArcherC50
SUPPORTED_DEVICES := c50
- KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
- IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j | append-metadata
- DEVICE_TITLE := TP-Link ArcherC50
+ TPLINK_FLASHLAYOUT := 8Mmtk
+ TPLINK_HWID := 0xc7500001
+ TPLINK_HWREV := 69
+ IMAGES += factory-us.bin factory-eu.bin
+ 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 += ArcherC50
+TARGET_DEVICES += ArcherC50v1
define Device/ArcherMR200
+ $(Device/Archer)
DTS := ArcherMR200
SUPPORTED_DEVICES := mr200
- KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c
- IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j | append-metadata
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
+ 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
TARGET_DEVICES += ArcherMR200
+define Device/c108
+ DTS := C108
+ IMAGE_SIZE := 16777216
+ DEVICE_TITLE := HNET C108
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
+endef
+TARGET_DEVICES += c108
+
define Device/cf-wr800n
DTS := CF-WR800N
DEVICE_TITLE := Comfast CF-WR800N
endef
TARGET_DEVICES += ex2700
-define Device/ex3700
+define Device/ex3700-ex3800
NETGEAR_BOARD_ID := U12H319T00_NETGEAR
DTS := EX3700
BLOCKSIZE := 4k
IMAGE_SIZE := 7744k
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
+ IMAGES += factory.chk
+ IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
DEVICE_PACKAGES := -kmod-mt76 kmod-mt76x2
- DEVICE_TITLE := Netgear EX3700
+ DEVICE_TITLE := Netgear EX3700/EX3800
+ SUPPORTED_DEVICES := ex3700
endef
-TARGET_DEVICES += ex3700
+TARGET_DEVICES += ex3700-ex3800
define Device/gl-mt300a
DTS := GL-MT300A
endef
TARGET_DEVICES += psg1208
-define Device/psg1218
- DTS := PSG1218
- DEVICE_TITLE := Phicomm PSG1218
- DEVICE_PACKAGES := kmod-mt76
+define Device/psg1218a
+ DTS := PSG1218A
+ DEVICE_TITLE := Phicomm PSG1218 rev.Ax
+ DEVICE_PACKAGES := kmod-mt76x2
+ SUPPORTED_DEVICES += psg1218
+endef
+TARGET_DEVICES += psg1218a
+
+define Device/psg1218b
+ DTS := PSG1218B
+ DEVICE_TITLE := Phicomm PSG1218 rev.Bx
+ DEVICE_PACKAGES := kmod-mt76x2
+ SUPPORTED_DEVICES += psg1218
endef
-TARGET_DEVICES += psg1218
+TARGET_DEVICES += psg1218b
define Device/rp-n53
DTS := RP-N53
endef
TARGET_DEVICES += rt-n14u
+define Device/rt-ac51u
+ DTS := RT-AC51U
+ IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ DEVICE_TITLE := Asus RT-AC51U
+ DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport
+endef
+TARGET_DEVICES += rt-ac51u
+
define Device/tiny-ac
DTS := TINY-AC
DEVICE_TITLE := Dovado Tiny AC
BLOCKSIZE := 4k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
IMAGES += factory.bin
+ SUPPORTED_DEVICES += wt3020
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
poray-header -B WT3020 -F 4M
DEVICE_TITLE := Nexx WT3020 (4MB)
define Device/wt3020-8M
DTS := WT3020-8M
IMAGES += factory.bin
+ SUPPORTED_DEVICES += wt3020
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
poray-header -B WT3020 -F 8M
DEVICE_TITLE := Nexx WT3020 (8MB)
endef
TARGET_DEVICES += youku-yk1
+define Device/we1026-5g-16m
+ DTS := WE1026-5G-16M
+ IMAGE_SIZE := 16777216
+ SUPPORTED_DEVICES += we1026-5g-16m
+ DEVICE_TITLE := Zbtlink ZBT-WE1026-5G (16M)
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
+endef
+TARGET_DEVICES += we1026-5g-16m
+
define Device/zbt-ape522ii
DTS := ZBT-APE522II
DEVICE_TITLE := Zbtlink ZBT-APE522II
endef
TARGET_DEVICES += zbt-wa05
-define Device/zbt-we826
- DTS := ZBT-WE826
+define Device/zbt-we2026
+ DTS := ZBT-WE2026
+ DEVICE_TITLE := Zbtlink ZBT-WE2026
+endef
+TARGET_DEVICES += zbt-we2026
+
+define Device/zbt-we826-16M
+ DTS := ZBT-WE826-16M
IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Zbtlink ZBT-WE826
+ SUPPORTED_DEVICES += zbt-we826
+ DEVICE_TITLE := Zbtlink ZBT-WE826 (16M)
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
endef
-TARGET_DEVICES += zbt-we826
+TARGET_DEVICES += zbt-we826-16M
+
+define Device/zbt-we826-32M
+ DTS := ZBT-WE826-32M
+ IMAGE_SIZE := $(ralink_default_fw_size_32M)
+ DEVICE_TITLE := Zbtlink ZBT-WE826 (32M)
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
+endef
+TARGET_DEVICES += zbt-we826-32M
define Device/zbt-wr8305rt
DTS := ZBT-WR8305RT