00593dd6f50650694e8ed30b2795db1dbeffcc31
[openwrt/openwrt.git] / target / linux / ramips / image / mt76x8.mk
1 #
2 # MT76x8 Profiles
3 #
4
5 include ./common-tp-link.mk
6
7 DEFAULT_SOC := mt7628an
8
9 define Build/ravpower-wd009-factory
10 mkimage -A mips -T standalone -C none -a 0x80010000 -e 0x80010000 \
11 -n "OpenWrt Bootloader" -d $(UBOOT_PATH) $@.new
12 cat $@ >> $@.new
13 @mv $@.new $@
14 endef
15
16
17 define Device/alfa-network_awusfree1
18 IMAGE_SIZE := 7872k
19 DEVICE_VENDOR := ALFA Network
20 DEVICE_MODEL := AWUSFREE1
21 DEVICE_PACKAGES := uboot-envtools
22 endef
23 TARGET_DEVICES += alfa-network_awusfree1
24
25 define Device/asus_rt-n10p-v3
26 IMAGE_SIZE := 7872k
27 DEVICE_VENDOR := Asus
28 DEVICE_MODEL := RT-N10P
29 DEVICE_VARIANT := V3
30 endef
31 TARGET_DEVICES += asus_rt-n10p-v3
32
33 define Device/asus_rt-n11p-b1
34 IMAGE_SIZE := 7872k
35 DEVICE_VENDOR := Asus
36 DEVICE_MODEL := RT-N11P
37 DEVICE_VARIANT := B1
38 endef
39 TARGET_DEVICES += asus_rt-n11p-b1
40
41 define Device/asus_rt-n12-vp-b1
42 IMAGE_SIZE := 7872k
43 DEVICE_VENDOR := Asus
44 DEVICE_MODEL := RT-N12 VP
45 DEVICE_VARIANT := B1
46 endef
47 TARGET_DEVICES += asus_rt-n12-vp-b1
48
49 define Device/buffalo_wcr-1166ds
50 IMAGE_SIZE := 7936k
51 BUFFALO_TAG_PLATFORM := MTK
52 BUFFALO_TAG_VERSION := 9.99
53 BUFFALO_TAG_MINOR := 9.99
54 IMAGES += factory.bin
55 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
56 IMAGE/factory.bin := trx -M 0x746f435c | pad-rootfs | append-metadata | \
57 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
58 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | buffalo-dhp-image
59 DEVICE_VENDOR := Buffalo
60 DEVICE_MODEL := WCR-1166DS
61 DEVICE_PACKAGES := kmod-mt76x2
62 SUPPORTED_DEVICES += wcr-1166ds
63 endef
64 TARGET_DEVICES += buffalo_wcr-1166ds
65
66 define Device/cudy_wr1000
67 IMAGE_SIZE := 7872k
68 IMAGES += factory.bin
69 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 92.122
70 JCG_MAXSIZE := 7872k
71 DEVICE_VENDOR := Cudy
72 DEVICE_MODEL := WR1000
73 DEVICE_PACKAGES := kmod-mt76x2
74 SUPPORTED_DEVICES += wr1000
75 endef
76 TARGET_DEVICES += cudy_wr1000
77
78 define Device/d-team_pbr-d1
79 IMAGE_SIZE := 16064k
80 DEVICE_VENDOR := PandoraBox
81 DEVICE_MODEL := PBR-D1
82 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
83 SUPPORTED_DEVICES += pbr-d1
84 endef
85 TARGET_DEVICES += d-team_pbr-d1
86
87 define Device/duzun_dm06
88 IMAGE_SIZE := 7872k
89 DEVICE_VENDOR := DuZun
90 DEVICE_MODEL := DM06
91 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
92 SUPPORTED_DEVICES += duzun-dm06
93 endef
94 TARGET_DEVICES += duzun_dm06
95
96 define Device/glinet_gl-mt300n-v2
97 IMAGE_SIZE := 16064k
98 DEVICE_VENDOR := GL.iNet
99 DEVICE_MODEL := GL-MT300N
100 DEVICE_VARIANT := V2
101 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
102 SUPPORTED_DEVICES += gl-mt300n-v2
103 endef
104 TARGET_DEVICES += glinet_gl-mt300n-v2
105
106 define Device/glinet_microuter-n300
107 IMAGE_SIZE := 16064k
108 DEVICE_VENDOR := GL.iNet
109 DEVICE_MODEL := microuter-N300
110 SUPPORTED_DEVICES += microuter-n300
111 endef
112 TARGET_DEVICES += glinet_microuter-n300
113
114 define Device/glinet_vixmini
115 IMAGE_SIZE := 7872k
116 DEVICE_VENDOR := GL.iNet
117 DEVICE_MODEL := VIXMINI
118 SUPPORTED_DEVICES += vixmini
119 endef
120 TARGET_DEVICES += glinet_vixmini
121
122 define Device/hak5_wifi-pineapple-mk7
123 IMAGE_SIZE := 32448k
124 DEVICE_VENDOR := Hak5
125 DEVICE_MODEL := WiFi Pineapple Mark 7
126 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
127 SUPPORTED_DEVICES += wifi-pineapple-mk7
128 endef
129 TARGET_DEVICES += hak5_wifi-pineapple-mk7
130
131 define Device/hilink_hlk-7628n
132 IMAGE_SIZE := 32448k
133 DEVICE_VENDOR := HILINK
134 DEVICE_MODEL := HLK-7628N
135 endef
136 TARGET_DEVICES += hilink_hlk-7628n
137
138 define Device/hiwifi_hc5661a
139 IMAGE_SIZE := 15808k
140 DEVICE_VENDOR := HiWiFi
141 DEVICE_MODEL := HC5661A
142 SUPPORTED_DEVICES += hc5661a
143 endef
144 TARGET_DEVICES += hiwifi_hc5661a
145
146 define Device/hiwifi_hc5761a
147 IMAGE_SIZE := 15808k
148 DEVICE_VENDOR := HiWiFi
149 DEVICE_MODEL := HC5761A
150 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
151 endef
152 TARGET_DEVICES += hiwifi_hc5761a
153
154 define Device/hiwifi_hc5861b
155 IMAGE_SIZE := 15808k
156 DEVICE_VENDOR := HiWiFi
157 DEVICE_MODEL := HC5861B
158 DEVICE_PACKAGES := kmod-mt76x2
159 endef
160 TARGET_DEVICES += hiwifi_hc5861b
161
162 define Device/iptime_a3
163 IMAGE_SIZE := 7936k
164 UIMAGE_NAME := a3
165 DEVICE_VENDOR := ipTIME
166 DEVICE_MODEL := A3
167 DEVICE_PACKAGES := kmod-mt76x2
168 endef
169 TARGET_DEVICES += iptime_a3
170
171 define Device/iptime_a604m
172 IMAGE_SIZE := 7936k
173 UIMAGE_NAME := a604m
174 DEVICE_VENDOR := ipTIME
175 DEVICE_MODEL := A604M
176 DEVICE_PACKAGES := kmod-mt76x2
177 endef
178 TARGET_DEVICES += iptime_a604m
179
180 define Device/jotale_js76x8
181 DEVICE_VENDOR := Jotale
182 DEVICE_MODEL := JS76x8
183 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
184 endef
185
186 define Device/jotale_js76x8-8m
187 $(Device/jotale_js76x8)
188 IMAGE_SIZE := 7872k
189 DEVICE_VARIANT := 8M
190 endef
191 TARGET_DEVICES += jotale_js76x8-8m
192
193 define Device/jotale_js76x8-16m
194 $(Device/jotale_js76x8)
195 IMAGE_SIZE := 16064k
196 DEVICE_VARIANT := 16M
197 endef
198 TARGET_DEVICES += jotale_js76x8-16m
199
200 define Device/jotale_js76x8-32m
201 $(Device/jotale_js76x8)
202 IMAGE_SIZE := 32448k
203 DEVICE_VARIANT := 32M
204 endef
205 TARGET_DEVICES += jotale_js76x8-32m
206
207 define Device/mediatek_linkit-smart-7688
208 IMAGE_SIZE := 32448k
209 DEVICE_VENDOR := MediaTek
210 DEVICE_MODEL := LinkIt Smart 7688
211 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
212 SUPPORTED_DEVICES += linkits7688 linkits7688d
213 endef
214 TARGET_DEVICES += mediatek_linkit-smart-7688
215
216 define Device/mediatek_mt7628an-eval-board
217 BLOCKSIZE := 64k
218 IMAGE_SIZE := 7872k
219 DEVICE_VENDOR := MediaTek
220 DEVICE_MODEL := MT7628 EVB
221 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
222 SUPPORTED_DEVICES += mt7628
223 endef
224 TARGET_DEVICES += mediatek_mt7628an-eval-board
225
226 define Device/mercury_mac1200r-v2
227 IMAGE_SIZE := 7936k
228 DEVICE_VENDOR := Mercury
229 DEVICE_MODEL := MAC1200R
230 DEVICE_VARIANT := v2.0
231 DEVICE_PACKAGES := kmod-mt76x2
232 SUPPORTED_DEVICES += mac1200rv2
233 endef
234 TARGET_DEVICES += mercury_mac1200r-v2
235
236 define Device/netgear_r6020
237 $(Device/netgear_sercomm_nor)
238 IMAGE_SIZE := 7104k
239 DEVICE_MODEL := R6020
240 DEVICE_PACKAGES := kmod-mt76x2
241 SERCOMM_HWNAME := R6020
242 SERCOMM_HWID := CFR
243 SERCOMM_HWVER := A001
244 SERCOMM_SWVER := 0x0040
245 SERCOMM_PAD := 576k
246 endef
247 TARGET_DEVICES += netgear_r6020
248
249 define Device/netgear_r6080
250 $(Device/netgear_sercomm_nor)
251 IMAGE_SIZE := 7552k
252 DEVICE_MODEL := R6080
253 DEVICE_PACKAGES := kmod-mt76x2
254 SERCOMM_HWNAME := R6080
255 SERCOMM_HWID := CFR
256 SERCOMM_HWVER := A001
257 SERCOMM_SWVER := 0x0040
258 SERCOMM_PAD := 576k
259 endef
260 TARGET_DEVICES += netgear_r6080
261
262 define Device/netgear_r6120
263 $(Device/netgear_sercomm_nor)
264 IMAGE_SIZE := 15744k
265 DEVICE_MODEL := R6120
266 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
267 SERCOMM_HWNAME := R6120
268 SERCOMM_HWID := CGQ
269 SERCOMM_HWVER := A001
270 SERCOMM_SWVER := 0x0040
271 SERCOMM_PAD := 576k
272 endef
273 TARGET_DEVICES += netgear_r6120
274
275 define Device/onion_omega2
276 IMAGE_SIZE := 16064k
277 DEVICE_VENDOR := Onion
278 DEVICE_MODEL := Omega2
279 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
280 SUPPORTED_DEVICES += omega2
281 endef
282 TARGET_DEVICES += onion_omega2
283
284 define Device/onion_omega2p
285 IMAGE_SIZE := 32448k
286 DEVICE_VENDOR := Onion
287 DEVICE_MODEL := Omega2+
288 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
289 SUPPORTED_DEVICES += omega2p
290 endef
291 TARGET_DEVICES += onion_omega2p
292
293 define Device/rakwireless_rak633
294 IMAGE_SIZE := 7872k
295 DEVICE_VENDOR := Rakwireless
296 DEVICE_MODEL := RAK633
297 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
298 endef
299 TARGET_DEVICES += rakwireless_rak633
300
301 define Device/ravpower_rp-wd009
302 IMAGE_SIZE := 14272k
303 DEVICE_VENDOR := RAVPower
304 DEVICE_MODEL := RP-WD009
305 UBOOT_PATH := $(STAGING_DIR_IMAGE)/ravpower_rp-wd009-u-boot.bin
306 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \
307 kmod-sdhci-mt7620 kmod-i2c-mt7628 ravpower-mcu
308 IMAGES += factory.bin
309 IMAGE/factory.bin := $$(sysupgrade_bin) | ravpower-wd009-factory
310 endef
311 TARGET_DEVICES += ravpower_rp-wd009
312
313 define Device/skylab_skw92a
314 IMAGE_SIZE := 16064k
315 DEVICE_VENDOR := Skylab
316 DEVICE_MODEL := SKW92A
317 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
318 endef
319 TARGET_DEVICES += skylab_skw92a
320
321 define Device/tama_w06
322 IMAGE_SIZE := 15040k
323 DEVICE_VENDOR := Tama
324 DEVICE_MODEL := W06
325 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
326 endef
327 TARGET_DEVICES += tama_w06
328
329 define Device/totolink_a3
330 IMAGE_SIZE := 7936k
331 UIMAGE_NAME := za3
332 DEVICE_VENDOR := TOTOLINK
333 DEVICE_MODEL := A3
334 DEVICE_PACKAGES := kmod-mt76x2
335 endef
336 TARGET_DEVICES += totolink_a3
337
338 define Device/totolink_lr1200
339 IMAGE_SIZE := 7872k
340 DEVICE_VENDOR := TOTOLINK
341 DEVICE_MODEL := LR1200
342 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 uqmi
343 endef
344 TARGET_DEVICES += totolink_lr1200
345
346 define Device/tplink_archer-c20-v4
347 $(Device/tplink-v2)
348 IMAGE_SIZE := 7808k
349 DEVICE_MODEL := Archer C20
350 DEVICE_VARIANT := v4
351 TPLINK_FLASHLAYOUT := 8Mmtk
352 TPLINK_HWID := 0xc200004
353 TPLINK_HWREVADD := 0x4
354 DEVICE_PACKAGES := kmod-mt76x0e
355 IMAGES := sysupgrade.bin tftp-recovery.bin
356 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
357 SUPPORTED_DEVICES += tplink,c20-v4
358 endef
359 TARGET_DEVICES += tplink_archer-c20-v4
360
361 define Device/tplink_archer-c20-v5
362 $(Device/tplink-v2)
363 IMAGE_SIZE := 7616k
364 DEVICE_MODEL := Archer C20
365 DEVICE_VARIANT := v5
366 TPLINK_FLASHLAYOUT := 8MSUmtk
367 TPLINK_HWID := 0xc200005
368 TPLINK_HWREVADD := 0x5
369 DEVICE_PACKAGES := kmod-mt76x0e
370 IMAGES := sysupgrade.bin
371 endef
372 TARGET_DEVICES += tplink_archer-c20-v5
373
374 define Device/tplink_archer-c50-v3
375 $(Device/tplink-v2)
376 IMAGE_SIZE := 7808k
377 DEVICE_MODEL := Archer C50
378 DEVICE_VARIANT := v3
379 TPLINK_FLASHLAYOUT := 8Mmtk
380 TPLINK_HWID := 0x001D9BA4
381 TPLINK_HWREV := 0x79
382 TPLINK_HWREVADD := 0x1
383 DEVICE_PACKAGES := kmod-mt76x2
384 IMAGES := sysupgrade.bin tftp-recovery.bin
385 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
386 SUPPORTED_DEVICES += tplink,c50-v3
387 endef
388 TARGET_DEVICES += tplink_archer-c50-v3
389
390 define Device/tplink_archer-c50-v4
391 $(Device/tplink-v2)
392 IMAGE_SIZE := 7616k
393 DEVICE_MODEL := Archer C50
394 DEVICE_VARIANT := v4
395 TPLINK_FLASHLAYOUT := 8MSUmtk
396 TPLINK_HWID := 0x001D589B
397 TPLINK_HWREV := 0x93
398 TPLINK_HWREVADD := 0x2
399 DEVICE_PACKAGES := kmod-mt76x2
400 IMAGES := sysupgrade.bin
401 SUPPORTED_DEVICES += tplink,c50-v4
402 endef
403 TARGET_DEVICES += tplink_archer-c50-v4
404
405 define Device/tplink_re200-v2
406 $(Device/tplink-safeloader)
407 IMAGE_SIZE := 7808k
408 DEVICE_MODEL := RE200
409 DEVICE_VARIANT := v2
410 DEVICE_PACKAGES := kmod-mt76x0e
411 TPLINK_BOARD_ID := RE200-V2
412 endef
413 TARGET_DEVICES += tplink_re200-v2
414
415 define Device/tplink_re200-v3
416 $(Device/tplink-safeloader)
417 IMAGE_SIZE := 7808k
418 DEVICE_MODEL := RE200
419 DEVICE_VARIANT := v3
420 DEVICE_PACKAGES := kmod-mt76x0e
421 TPLINK_BOARD_ID := RE200-V3
422 endef
423 TARGET_DEVICES += tplink_re200-v3
424
425 define Device/tplink_re200-v4
426 $(Device/tplink-safeloader)
427 IMAGE_SIZE := 7808k
428 DEVICE_MODEL := RE200
429 DEVICE_VARIANT := v4
430 DEVICE_PACKAGES := kmod-mt76x0e
431 TPLINK_BOARD_ID := RE200-V4
432 endef
433 TARGET_DEVICES += tplink_re200-v4
434
435 define Device/tplink_re220-v2
436 $(Device/tplink-safeloader)
437 IMAGE_SIZE := 7808k
438 DEVICE_MODEL := RE220
439 DEVICE_VARIANT := v2
440 DEVICE_PACKAGES := kmod-mt76x0e
441 TPLINK_BOARD_ID := RE220-V2
442 endef
443 TARGET_DEVICES += tplink_re220-v2
444
445 define Device/tplink_re305-v1
446 $(Device/tplink-safeloader)
447 IMAGE_SIZE := 6016k
448 DEVICE_MODEL := RE305
449 DEVICE_VARIANT := v1
450 DEVICE_PACKAGES := kmod-mt76x2
451 TPLINK_BOARD_ID := RE305-V1
452 endef
453 TARGET_DEVICES += tplink_re305-v1
454
455 define Device/tplink_tl-mr3020-v3
456 $(Device/tplink-v2)
457 IMAGE_SIZE := 7808k
458 DEVICE_MODEL := TL-MR3020
459 DEVICE_VARIANT := v3
460 TPLINK_FLASHLAYOUT := 8Mmtk
461 TPLINK_HWID := 0x30200003
462 TPLINK_HWREV := 0x3
463 TPLINK_HWREVADD := 0x3
464 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
465 IMAGES := sysupgrade.bin tftp-recovery.bin
466 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
467 endef
468 TARGET_DEVICES += tplink_tl-mr3020-v3
469
470 define Device/tplink_tl-mr3420-v5
471 $(Device/tplink-v2)
472 IMAGE_SIZE := 7808k
473 DEVICE_MODEL := TL-MR3420
474 DEVICE_VARIANT := v5
475 TPLINK_FLASHLAYOUT := 8Mmtk
476 TPLINK_HWID := 0x34200005
477 TPLINK_HWREV := 0x5
478 TPLINK_HWREVADD := 0x5
479 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
480 IMAGES := sysupgrade.bin tftp-recovery.bin
481 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
482 endef
483 TARGET_DEVICES += tplink_tl-mr3420-v5
484
485 define Device/tplink_tl-mr6400-v4
486 $(Device/tplink-v2)
487 IMAGE_SIZE := 7808k
488 DEVICE_MODEL := TL-MR6400
489 DEVICE_VARIANT := v4
490 TPLINK_FLASHLAYOUT := 8Mmtk
491 TPLINK_HWID := 0x64000004
492 TPLINK_HWREV := 0x4
493 TPLINK_HWREVADD := 0x4
494 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
495 kmod-usb-serial kmod-usb-serial-option kmod-usb-net-qmi-wwan uqmi
496 IMAGES := sysupgrade.bin tftp-recovery.bin
497 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
498 endef
499 TARGET_DEVICES += tplink_tl-mr6400-v4
500
501 define Device/tplink_tl-mr6400-v5
502 $(Device/tplink-v2)
503 IMAGE_SIZE := 7808k
504 DEVICE_MODEL := TL-MR6400
505 DEVICE_VARIANT := v5
506 TPLINK_FLASHLAYOUT := 8Mmtk
507 TPLINK_HWID := 0x64000005
508 TPLINK_HWREV := 0x5
509 TPLINK_HWREVADD := 0x5
510 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
511 kmod-usb-serial kmod-usb-serial-option kmod-usb-net-qmi-wwan uqmi
512 IMAGES := sysupgrade.bin tftp-recovery.bin
513 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
514 endef
515 TARGET_DEVICES += tplink_tl-mr6400-v5
516
517 define Device/tplink_tl-wa801nd-v5
518 $(Device/tplink-v2)
519 IMAGE_SIZE := 7808k
520 DEVICE_MODEL := TL-WA801ND
521 DEVICE_VARIANT := v5
522 TPLINK_FLASHLAYOUT := 8Mmtk
523 TPLINK_HWID := 0x08010005
524 TPLINK_HWREVADD := 0x5
525 IMAGES := sysupgrade.bin tftp-recovery.bin
526 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
527 endef
528 TARGET_DEVICES += tplink_tl-wa801nd-v5
529
530 define Device/tplink_tl-wr802n-v4
531 $(Device/tplink-v2)
532 IMAGE_SIZE := 7808k
533 DEVICE_MODEL := TL-WR802N
534 DEVICE_VARIANT := v4
535 TPLINK_FLASHLAYOUT := 8Mmtk
536 TPLINK_HWID := 0x08020004
537 TPLINK_HWREVADD := 0x4
538 IMAGES := sysupgrade.bin tftp-recovery.bin
539 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
540 endef
541 TARGET_DEVICES += tplink_tl-wr802n-v4
542
543 define Device/tplink_tl-wr840n-v4
544 $(Device/tplink-v2)
545 IMAGE_SIZE := 7808k
546 DEVICE_MODEL := TL-WR840N
547 DEVICE_VARIANT := v4
548 TPLINK_FLASHLAYOUT := 8Mmtk
549 TPLINK_HWID := 0x08400004
550 TPLINK_HWREVADD := 0x4
551 IMAGES := sysupgrade.bin tftp-recovery.bin
552 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
553 SUPPORTED_DEVICES += tl-wr840n-v4
554 endef
555 TARGET_DEVICES += tplink_tl-wr840n-v4
556
557 define Device/tplink_tl-wr840n-v5
558 $(Device/tplink-v2)
559 IMAGE_SIZE := 3904k
560 DEVICE_MODEL := TL-WR840N
561 DEVICE_VARIANT := v5
562 TPLINK_FLASHLAYOUT := 4Mmtk
563 TPLINK_HWID := 0x08400005
564 TPLINK_HWREVADD := 0x5
565 IMAGES := sysupgrade.bin
566 SUPPORTED_DEVICES += tl-wr840n-v5
567 DEFAULT := n
568 endef
569 TARGET_DEVICES += tplink_tl-wr840n-v5
570
571 define Device/tplink_tl-wr841n-v13
572 $(Device/tplink-v2)
573 IMAGE_SIZE := 7808k
574 DEVICE_MODEL := TL-WR841N
575 DEVICE_VARIANT := v13
576 TPLINK_FLASHLAYOUT := 8Mmtk
577 TPLINK_HWID := 0x08410013
578 TPLINK_HWREV := 0x268
579 TPLINK_HWREVADD := 0x13
580 IMAGES := sysupgrade.bin tftp-recovery.bin
581 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
582 SUPPORTED_DEVICES += tl-wr841n-v13
583 endef
584 TARGET_DEVICES += tplink_tl-wr841n-v13
585
586 define Device/tplink_tl-wr841n-v14
587 $(Device/tplink-v2)
588 IMAGE_SIZE := 3968k
589 DEVICE_MODEL := TL-WR841N
590 DEVICE_VARIANT := v14
591 TPLINK_FLASHLAYOUT := 4MLmtk
592 TPLINK_HWID := 0x08410014
593 TPLINK_HWREVADD := 0x14
594 IMAGES := sysupgrade.bin tftp-recovery.bin
595 IMAGE/tftp-recovery.bin := pad-extra 64k | $$(IMAGE/factory.bin)
596 DEFAULT := n
597 endef
598 TARGET_DEVICES += tplink_tl-wr841n-v14
599
600 define Device/tplink_tl-wr842n-v5
601 $(Device/tplink-v2)
602 IMAGE_SIZE := 7808k
603 DEVICE_MODEL := TL-WR842N
604 DEVICE_VARIANT := v5
605 TPLINK_FLASHLAYOUT := 8Mmtk
606 TPLINK_HWID := 0x08420005
607 TPLINK_HWREV := 0x5
608 TPLINK_HWREVADD := 0x5
609 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
610 IMAGES := sysupgrade.bin tftp-recovery.bin
611 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
612 endef
613 TARGET_DEVICES += tplink_tl-wr842n-v5
614
615 define Device/tplink_tl-wr850n-v2
616 $(Device/tplink-v2)
617 IMAGE_SIZE := 7808k
618 DEVICE_MODEL := TL-WR850N
619 DEVICE_VARIANT := v2
620 TPLINK_FLASHLAYOUT := 8Mmtk
621 TPLINK_HWID := 0x08500002
622 TPLINK_HWREVADD := 0x2
623 IMAGES := sysupgrade.bin tftp-recovery.bin
624 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
625 endef
626 TARGET_DEVICES += tplink_tl-wr850n-v2
627
628 define Device/tplink_tl-wr902ac-v3
629 $(Device/tplink-v2)
630 IMAGE_SIZE := 7808k
631 DEVICE_MODEL := TL-WR902AC
632 DEVICE_VARIANT := v3
633 TPLINK_FLASHLAYOUT := 8Mmtk
634 TPLINK_HWID := 0x000dc88f
635 TPLINK_HWREV := 0x89
636 TPLINK_HWREVADD := 0x1
637 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \
638 kmod-usb-ledtrig-usbport
639 IMAGES := sysupgrade.bin tftp-recovery.bin
640 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
641 endef
642 TARGET_DEVICES += tplink_tl-wr902ac-v3
643
644 define Device/unielec_u7628-01-16m
645 IMAGE_SIZE := 16064k
646 DEVICE_VENDOR := UniElec
647 DEVICE_MODEL := U7628-01
648 DEVICE_VARIANT := 16M
649 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
650 SUPPORTED_DEVICES += u7628-01-128M-16M unielec,u7628-01-128m-16m
651 endef
652 TARGET_DEVICES += unielec_u7628-01-16m
653
654 define Device/vocore_vocore2
655 IMAGE_SIZE := 16064k
656 DEVICE_VENDOR := VoCore
657 DEVICE_MODEL := VoCore2
658 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
659 kmod-sdhci-mt7620
660 SUPPORTED_DEVICES += vocore2
661 endef
662 TARGET_DEVICES += vocore_vocore2
663
664 define Device/vocore_vocore2-lite
665 IMAGE_SIZE := 7872k
666 DEVICE_VENDOR := VoCore
667 DEVICE_MODEL := VoCore2-Lite
668 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
669 kmod-sdhci-mt7620
670 SUPPORTED_DEVICES += vocore2lite
671 endef
672 TARGET_DEVICES += vocore_vocore2-lite
673
674 define Device/wavlink_wl-wn570ha1
675 IMAGE_SIZE := 7872k
676 DEVICE_VENDOR := Wavlink
677 DEVICE_MODEL := WL-WN570HA1
678 DEVICE_PACKAGES := kmod-mt76x0e
679 endef
680 TARGET_DEVICES += wavlink_wl-wn570ha1
681
682 define Device/wavlink_wl-wn575a3
683 IMAGE_SIZE := 7872k
684 DEVICE_VENDOR := Wavlink
685 DEVICE_MODEL := WL-WN575A3
686 DEVICE_PACKAGES := kmod-mt76x2
687 SUPPORTED_DEVICES += wl-wn575a3
688 endef
689 TARGET_DEVICES += wavlink_wl-wn575a3
690
691 define Device/wavlink_wl-wn577a2
692 IMAGE_SIZE := 7872k
693 DEVICE_VENDOR := Wavlink
694 DEVICE_MODEL := WL-WN577A2
695 DEVICE_ALT0_VENDOR := Maginon
696 DEVICE_ALT0_MODEL := WLR-755
697 DEVICE_PACKAGES := kmod-mt76x0e
698 endef
699 TARGET_DEVICES += wavlink_wl-wn577a2
700
701 define Device/widora_neo-16m
702 IMAGE_SIZE := 16064k
703 DEVICE_VENDOR := Widora
704 DEVICE_MODEL := Widora-NEO
705 DEVICE_VARIANT := 16M
706 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
707 SUPPORTED_DEVICES += widora-neo
708 endef
709 TARGET_DEVICES += widora_neo-16m
710
711 define Device/widora_neo-32m
712 IMAGE_SIZE := 32448k
713 DEVICE_VENDOR := Widora
714 DEVICE_MODEL := Widora-NEO
715 DEVICE_VARIANT := 32M
716 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
717 endef
718 TARGET_DEVICES += widora_neo-32m
719
720 define Device/wiznet_wizfi630s
721 IMAGE_SIZE := 32448k
722 DEVICE_VENDOR := WIZnet
723 DEVICE_MODEL := WizFi630S
724 SUPPORTED_DEVICES += wizfi630s
725 endef
726 TARGET_DEVICES += wiznet_wizfi630s
727
728 define Device/wrtnode_wrtnode2p
729 IMAGE_SIZE := 32448k
730 DEVICE_VENDOR := WRTnode
731 DEVICE_MODEL := WRTnode 2P
732 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
733 SUPPORTED_DEVICES += wrtnode2p
734 endef
735 TARGET_DEVICES += wrtnode_wrtnode2p
736
737 define Device/wrtnode_wrtnode2r
738 IMAGE_SIZE := 32448k
739 DEVICE_VENDOR := WRTnode
740 DEVICE_MODEL := WRTnode 2R
741 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
742 SUPPORTED_DEVICES += wrtnode2r
743 endef
744 TARGET_DEVICES += wrtnode_wrtnode2r
745
746 define Device/xiaomi_mi-router-4a-100m
747 IMAGE_SIZE := 14976k
748 DEVICE_VENDOR := Xiaomi
749 DEVICE_MODEL := Mi Router 4A
750 DEVICE_VARIANT := 100M Edition
751 DEVICE_PACKAGES := kmod-mt76x2
752 SUPPORTED_DEVICES += xiaomi,mir4a-100m
753 endef
754 TARGET_DEVICES += xiaomi_mi-router-4a-100m
755
756 define Device/xiaomi_mi-router-4c
757 IMAGE_SIZE := 14976k
758 DEVICE_VENDOR := Xiaomi
759 DEVICE_MODEL := Mi Router 4C
760 DEVICE_PACKAGES := uboot-envtools
761 endef
762 TARGET_DEVICES += xiaomi_mi-router-4c
763
764 define Device/xiaomi_miwifi-nano
765 IMAGE_SIZE := 16064k
766 DEVICE_VENDOR := Xiaomi
767 DEVICE_MODEL := MiWiFi Nano
768 DEVICE_PACKAGES := uboot-envtools
769 SUPPORTED_DEVICES += miwifi-nano
770 endef
771 TARGET_DEVICES += xiaomi_miwifi-nano
772
773 define Device/zbtlink_zbt-we1226
774 IMAGE_SIZE := 7872k
775 DEVICE_VENDOR := Zbtlink
776 DEVICE_MODEL := ZBT-WE1226
777 endef
778 TARGET_DEVICES += zbtlink_zbt-we1226
779
780 define Device/zyxel_keenetic-extra-ii
781 IMAGE_SIZE := 14912k
782 BLOCKSIZE := 64k
783 DEVICE_VENDOR := ZyXEL
784 DEVICE_MODEL := Keenetic Extra II
785 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci \
786 kmod-usb-ledtrig-usbport
787 IMAGES += factory.bin
788 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to $$$$(BLOCKSIZE) | \
789 check-size | zyimage -d 6162 -v "ZyXEL Keenetic Extra II"
790 endef
791 TARGET_DEVICES += zyxel_keenetic-extra-ii