# 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_BOARD_ID
define Build/elecom-header
cp $@ $(KDIR)/v_0.0.0.bin
endef
TARGET_DEVICES += ai-br100
+define Device/Archer
+ 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
+endef
+
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_BOARD_ID := ArcherC20i
+ IMAGES += factory.bin
DEVICE_TITLE := TP-Link ArcherC20i
endef
TARGET_DEVICES += ArcherC20i
define Device/ArcherC50
+ $(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
+ TPLINK_BOARD_ID := ArcherC50
+ IMAGES += factory.bin
DEVICE_TITLE := TP-Link ArcherC50
endef
TARGET_DEVICES += ArcherC50
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_BOARD_ID := ArcherMR200
+ 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 += zbt-we2026
-define Device/zbt-we826
- DTS := ZBT-WE826
+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