4362c3bc433ffda8d1b197772bf3088a4cd65b95
[openwrt/openwrt.git] / target / linux / ramips / image / mt76x8.mk
1 #
2 # MT76x8 Profiles
3 #
4
5 define Device/tplink
6 TPLINK_FLASHLAYOUT :=
7 TPLINK_HWID :=
8 TPLINK_HWREV :=
9 TPLINK_HWREVADD :=
10 TPLINK_HVERSION :=
11 KERNEL := $(KERNEL_DTB)
12 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
13 IMAGES += tftp-recovery.bin
14 IMAGE/factory.bin := tplink-v2-image -e
15 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
16 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
17 check-size $$$$(IMAGE_SIZE)
18 endef
19 DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
20
21
22 define Device/alfa-network_awusfree1
23 DTS := AWUSFREE1
24 IMAGE_SIZE := $(ralink_default_fw_size_8M)
25 DEVICE_TITLE := ALFA Network AWUSFREE1
26 DEVICE_PACKAGES := uboot-envtools
27 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
28 endef
29 TARGET_DEVICES += alfa-network_awusfree1
30
31 define Device/tama_w06
32 DTS := W06
33 IMAGE_SIZE := 15040k
34 DEVICE_TITLE := Tama W06
35 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
36 endef
37 TARGET_DEVICES += tama_w06
38
39 define Device/duzun-dm06
40 DTS := DUZUN-DM06
41 DEVICE_TITLE := DuZun DM06
42 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
43 endef
44 TARGET_DEVICES += duzun-dm06
45
46 define Device/gl-mt300n-v2
47 DTS := GL-MT300N-V2
48 IMAGE_SIZE := 16064k
49 DEVICE_TITLE := GL-iNet GL-MT300N-V2
50 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
51 endef
52 TARGET_DEVICES += gl-mt300n-v2
53
54 define Device/hc5661a
55 DTS := HC5661A
56 IMAGE_SIZE := $(ralink_default_fw_size_16M)
57 DEVICE_TITLE := HiWiFi HC5661A
58 endef
59 TARGET_DEVICES += hc5661a
60
61 define Device/LinkIt7688
62 DTS := LINKIT7688
63 IMAGE_SIZE := $(ralink_default_fw_size_32M)
64 SUPPORTED_DEVICES := linkits7688 linkits7688d
65 DEVICE_TITLE := MediaTek LinkIt Smart 7688
66 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
67 endef
68 TARGET_DEVICES += LinkIt7688
69
70 define Device/mac1200r-v2
71 DTS := MAC1200RV2
72 DEVICE_TITLE := Mercury MAC1200R v2.0
73 SUPPORTED_DEVICES := mac1200rv2
74 endef
75 TARGET_DEVICES += mac1200r-v2
76
77 define Device/miwifi-nano
78 DTS := MIWIFI-NANO
79 IMAGE_SIZE := $(ralink_default_fw_size_16M)
80 DEVICE_TITLE := Xiaomi MiWiFi Nano
81 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
82 endef
83 TARGET_DEVICES += miwifi-nano
84
85 define Device/mt7628
86 DTS := MT7628
87 BLOCKSIZE := 64k
88 IMAGE_SIZE := $(ralink_default_fw_size_4M)
89 DEVICE_TITLE := MediaTek MT7628 EVB
90 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
91 endef
92
93 define Device/omega2
94 DTS := OMEGA2
95 IMAGE_SIZE := $(ralink_default_fw_size_16M)
96 DEVICE_TITLE := Onion Omega2
97 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
98 endef
99 TARGET_DEVICES += omega2
100
101 define Device/omega2p
102 DTS := OMEGA2P
103 IMAGE_SIZE := $(ralink_default_fw_size_32M)
104 DEVICE_TITLE := Onion Omega2+
105 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
106 endef
107 TARGET_DEVICES += omega2p
108
109 define Device/pbr-d1
110 DTS := PBR-D1
111 IMAGE_SIZE := $(ralink_default_fw_size_16M)
112 DEVICE_TITLE := PBR-D1
113 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
114 endef
115 TARGET_DEVICES += pbr-d1
116
117 define Device/tl-wr840n-v4
118 $(Device/tplink)
119 DTS := TL-WR840NV4
120 IMAGE_SIZE := 7808k
121 DEVICE_TITLE := TP-Link TL-WR840N v4
122 TPLINK_FLASHLAYOUT := 8Mmtk
123 TPLINK_HWID := 0x08400004
124 TPLINK_HWREV := 0x1
125 TPLINK_HWREVADD := 0x4
126 TPLINK_HVERSION := 3
127 endef
128 TARGET_DEVICES += tl-wr840n-v4
129
130 define Device/tl-wr840n-v5
131 DTS := TL-WR840NV5
132 IMAGE_SIZE := 3904k
133 DEVICE_TITLE := TP-Link TL-WR840N v5
134 TPLINK_FLASHLAYOUT := 4Mmtk
135 TPLINK_HWID := 0x08400005
136 TPLINK_HWREV := 0x1
137 TPLINK_HWREVADD := 0x5
138 TPLINK_HVERSION := 3
139 KERNEL := $(KERNEL_DTB)
140 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
141 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
142 check-size $$$$(IMAGE_SIZE)
143 endef
144 TARGET_DEVICES += tl-wr840n-v5
145
146 define Device/tl-wr841n-v13
147 $(Device/tplink)
148 DTS := TL-WR841NV13
149 IMAGE_SIZE := 7808k
150 DEVICE_TITLE := TP-Link TL-WR841N v13
151 TPLINK_FLASHLAYOUT := 8Mmtk
152 TPLINK_HWID := 0x08410013
153 TPLINK_HWREV := 0x268
154 TPLINK_HWREVADD := 0x13
155 TPLINK_HVERSION := 3
156 endef
157 TARGET_DEVICES += tl-wr841n-v13
158
159 define Device/tplink_c20-v4
160 $(Device/tplink)
161 DTS := ArcherC20v4
162 IMAGE_SIZE := 7808k
163 DEVICE_TITLE := TP-Link ArcherC20 v4
164 TPLINK_FLASHLAYOUT := 8Mmtk
165 TPLINK_HWID := 0xc200004
166 TPLINK_HWREV := 0x1
167 TPLINK_HWREVADD := 0x4
168 TPLINK_HVERSION := 3
169 endef
170 TARGET_DEVICES += tplink_c20-v4
171
172 define Device/tplink_c50-v3
173 $(Device/tplink)
174 DTS := ArcherC50V3
175 IMAGE_SIZE := 7808k
176 DEVICE_TITLE := TP-Link ArcherC50 v3
177 TPLINK_FLASHLAYOUT := 8Mmtk
178 TPLINK_HWID := 0x001D9BA4
179 TPLINK_HWREV := 0x79
180 TPLINK_HWREVADD := 0x1
181 TPLINK_HVERSION := 3
182 endef
183 TARGET_DEVICES += tplink_c50-v3
184
185 define Device/tplink_tl-mr3420-v5
186 $(Device/tplink)
187 DTS := TL-MR3420V5
188 IMAGE_SIZE := 7808k
189 DEVICE_TITLE := TP-Link TL-MR3420 v5
190 TPLINK_FLASHLAYOUT := 8Mmtk
191 TPLINK_HWID := 0x34200005
192 TPLINK_HWREV := 0x5
193 TPLINK_HWREVADD := 0x5
194 TPLINK_HVERSION := 3
195 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
196 endef
197 TARGET_DEVICES += tplink_tl-mr3420-v5
198
199 define Device/tplink_tl-wr902ac-v3
200 $(Device/tplink)
201 DTS := TL-WR902ACV3
202 IMAGE_SIZE := 7808k
203 DEVICE_TITLE := TP-Link TL-WR902AC v3
204 TPLINK_FLASHLAYOUT := 8Mmtk
205 TPLINK_HWID := 0x000dc88f
206 TPLINK_HWREV := 0x89
207 TPLINK_HWREVADD := 0x1
208 TPLINK_HVERSION := 3
209 IMAGES += factory.bin
210 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
211 endef
212 TARGET_DEVICES += tplink_tl-wr902ac-v3
213
214 define Device/u7628-01-128M-16M
215 DTS := U7628-01-128M-16M
216 IMAGE_SIZE := 16064k
217 DEVICE_TITLE := UniElec U7628-01 (128M RAM/16M flash)
218 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
219 endef
220 TARGET_DEVICES += u7628-01-128M-16M
221
222 define Device/vocore2
223 DTS := VOCORE2
224 IMAGE_SIZE := $(ralink_default_fw_size_16M)
225 DEVICE_TITLE := VoCore VoCore2
226 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
227 kmod-sdhci-mt7620
228 endef
229 TARGET_DEVICES += vocore2
230
231 define Device/vocore2lite
232 DTS := VOCORE2LITE
233 IMAGE_SIZE := $(ralink_default_fw_size_16M)
234 DEVICE_TITLE := VoCore VoCore2-Lite
235 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
236 kmod-sdhci-mt7620
237 endef
238 TARGET_DEVICES += vocore2lite
239
240 define Device/wcr-1166ds
241 DTS := WCR-1166DS
242 BUFFALO_TAG_PLATFORM := MTK
243 BUFFALO_TAG_VERSION := 9.99
244 BUFFALO_TAG_MINOR := 9.99
245 IMAGES += factory.bin
246 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
247 IMAGE/factory.bin := \
248 trx -M 0x746f435c | pad-rootfs | append-metadata | \
249 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
250 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
251 buffalo-dhp-image
252 DEVICE_TITLE := Buffalo WCR-1166DS
253 endef
254 TARGET_DEVICES += wcr-1166ds
255
256 define Device/wl-wn575a3
257 DTS := WL-WN575A3
258 IMAGE_SIZE := $(ralink_default_fw_size_8M)
259 DEVICE_TITLE := Wavlink WL-WN575A3
260 endef
261 TARGET_DEVICES += wl-wn575a3
262
263 define Device/widora_neo-16m
264 DTS := WIDORA-NEO-16M
265 IMAGE_SIZE := $(ralink_default_fw_size_16M)
266 DEVICE_TITLE := Widora-NEO (16M)
267 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
268 SUPPORTED_DEVICES += widora-neo
269 endef
270 TARGET_DEVICES += widora_neo-16m
271
272 define Device/widora_neo-32m
273 DTS := WIDORA-NEO-32M
274 IMAGE_SIZE := $(ralink_default_fw_size_32M)
275 DEVICE_TITLE := Widora-NEO (32M)
276 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
277 endef
278 TARGET_DEVICES += widora_neo-32m
279
280 define Device/wrtnode2p
281 DTS := WRTNODE2P
282 IMAGE_SIZE := $(ralink_default_fw_size_16M)
283 DEVICE_TITLE := WRTnode 2P
284 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
285 endef
286 TARGET_DEVICES += wrtnode2p
287
288 define Device/wrtnode2r
289 DTS := WRTNODE2R
290 IMAGE_SIZE := $(ralink_default_fw_size_16M)
291 DEVICE_TITLE := WRTnode 2R
292 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
293 endef
294 TARGET_DEVICES += wrtnode2r
295
296 define Device/zbtlink_zbt-we1226
297 DTS := ZBT-WE1226
298 IMAGE_SIZE := $(ralink_default_fw_size_8M)
299 DEVICE_TITLE := ZBTlink ZBT-WE1226
300 endef
301 TARGET_DEVICES += zbtlink_zbt-we1226