fbfc37d9865362967dddec5bd4258701e0aff688
[openwrt/openwrt.git] / target / linux / ramips / image / mt7628.mk
1 #
2 # MT7628 Profiles
3 #
4
5 DEVICE_VARS += TPLINK_BOARD_ID
6
7 define Device/mt7628
8 DTS := MT7628
9 BLOCKSIZE := 64k
10 IMAGE_SIZE := $(ralink_default_fw_size_4M)
11 DEVICE_TITLE := MediaTek MT7628 EVB
12 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
13 endef
14 TARGET_DEVICES += mt7628
15
16 define Device/hc5661a
17 DTS := HC5661A
18 IMAGE_SIZE := $(ralink_default_fw_size_16M)
19 DEVICE_TITLE := HiWiFi HC5661A
20 endef
21 TARGET_DEVICES += hc5661a
22
23 define Device/miwifi-nano
24 DTS := MIWIFI-NANO
25 IMAGE_SIZE := $(ralink_default_fw_size_16M)
26 DEVICE_TITLE := Xiaomi MiWiFi Nano
27 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
28 endef
29 TARGET_DEVICES += miwifi-nano
30
31 define Device/tl-wr840n-v4
32 DTS := TL-WR840NV4
33 IMAGE_SIZE := 7808k
34 DEVICE_TITLE := TP-Link TL-WR840N v4
35 TPLINK_BOARD_ID := TL-WR840NV4
36 KERNEL := $(KERNEL_DTB)
37 IMAGES += tftp-recovery.bin
38 IMAGE/factory.bin := tplink-v2-image
39 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
40 IMAGE/sysupgrade.bin := tplink-v2-image -s | append-metadata | \
41 check-size $$$$(IMAGE_SIZE)
42 endef
43 TARGET_DEVICES += tl-wr840n-v4
44
45 define Device/tl-wr841n-v13
46 $(Device/tl-wr840n-v4)
47 DTS := TL-WR841NV13
48 DEVICE_TITLE := TP-Link TL-WR841N v13
49 TPLINK_BOARD_ID := TL-WR841NV13
50 endef
51 TARGET_DEVICES += tl-wr841n-v13
52
53 define Device/gl-mt300n-v2
54 DTS := GL-MT300N-V2
55 IMAGE_SIZE := 16064k
56 DEVICE_TITLE := GL-iNet GL-MT300N-V2
57 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
58 endef
59 TARGET_DEVICES += gl-mt300n-v2
60
61 define Device/vocore2
62 DTS := VOCORE2
63 IMAGE_SIZE := $(ralink_default_fw_size_16M)
64 DEVICE_TITLE := VoCore VoCore2
65 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
66 kmod-sdhci-mt7620
67 endef
68 TARGET_DEVICES += vocore2
69
70 define Device/wl-wn575a3
71 DTS := WL-WN575A3
72 IMAGE_SIZE := $(ralink_default_fw_size_8M)
73 DEVICE_TITLE := Wavlink WL-WN575A3
74 endef
75 TARGET_DEVICES += wl-wn575a3
76
77 define Device/wrtnode2p
78 DTS := WRTNODE2P
79 IMAGE_SIZE := $(ralink_default_fw_size_16M)
80 DEVICE_TITLE := WRTnode 2P
81 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
82 endef
83 TARGET_DEVICES += wrtnode2p
84
85 define Device/duzun-dm06
86 DTS := DUZUN-DM06
87 DEVICE_TITLE := DuZun DM06
88 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
89 endef
90 TARGET_DEVICES += duzun-dm06
91
92 define Device/mac1200r-v2
93 DTS := MAC1200RV2
94 DEVICE_TITLE := Mercury MAC1200R v2.0
95 endef
96 TARGET_DEVICES += mac1200r-v2
97
98 define Device/wcr-1166ds
99 DTS := WCR-1166DS
100 BUFFALO_TAG_PLATFORM := MTK
101 BUFFALO_TAG_VERSION := 9.99
102 BUFFALO_TAG_MINOR := 9.99
103 IMAGES += factory.bin
104 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
105 IMAGE/factory.bin := \
106 trx -M 0x746f435c | pad-rootfs | append-metadata | \
107 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
108 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
109 buffalo-dhp-image
110 DEVICE_TITLE := Buffalo WCR-1166DS
111 endef
112 TARGET_DEVICES += wcr-1166ds