ramips: add support for Hi-Link HLK-7688A
[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/hilink_hlk-7688a
139 IMAGE_SIZE := 32448k
140 DEVICE_VENDOR := Hi-Link
141 DEVICE_MODEL := HLK-7688A
142 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
143 endef
144 TARGET_DEVICES += hilink_hlk-7688a
145
146 define Device/hiwifi_hc5661a
147 IMAGE_SIZE := 15808k
148 DEVICE_VENDOR := HiWiFi
149 DEVICE_MODEL := HC5661A
150 SUPPORTED_DEVICES += hc5661a
151 endef
152 TARGET_DEVICES += hiwifi_hc5661a
153
154 define Device/hiwifi_hc5761a
155 IMAGE_SIZE := 15808k
156 DEVICE_VENDOR := HiWiFi
157 DEVICE_MODEL := HC5761A
158 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
159 endef
160 TARGET_DEVICES += hiwifi_hc5761a
161
162 define Device/hiwifi_hc5861b
163 IMAGE_SIZE := 15808k
164 DEVICE_VENDOR := HiWiFi
165 DEVICE_MODEL := HC5861B
166 DEVICE_PACKAGES := kmod-mt76x2
167 endef
168 TARGET_DEVICES += hiwifi_hc5861b
169
170 define Device/iptime_a3
171 IMAGE_SIZE := 7936k
172 UIMAGE_NAME := a3
173 DEVICE_VENDOR := ipTIME
174 DEVICE_MODEL := A3
175 DEVICE_PACKAGES := kmod-mt76x2
176 endef
177 TARGET_DEVICES += iptime_a3
178
179 define Device/iptime_a604m
180 IMAGE_SIZE := 7936k
181 UIMAGE_NAME := a604m
182 DEVICE_VENDOR := ipTIME
183 DEVICE_MODEL := A604M
184 DEVICE_PACKAGES := kmod-mt76x2
185 endef
186 TARGET_DEVICES += iptime_a604m
187
188 define Device/jotale_js76x8
189 DEVICE_VENDOR := Jotale
190 DEVICE_MODEL := JS76x8
191 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
192 endef
193
194 define Device/jotale_js76x8-8m
195 $(Device/jotale_js76x8)
196 IMAGE_SIZE := 7872k
197 DEVICE_VARIANT := 8M
198 endef
199 TARGET_DEVICES += jotale_js76x8-8m
200
201 define Device/jotale_js76x8-16m
202 $(Device/jotale_js76x8)
203 IMAGE_SIZE := 16064k
204 DEVICE_VARIANT := 16M
205 endef
206 TARGET_DEVICES += jotale_js76x8-16m
207
208 define Device/jotale_js76x8-32m
209 $(Device/jotale_js76x8)
210 IMAGE_SIZE := 32448k
211 DEVICE_VARIANT := 32M
212 endef
213 TARGET_DEVICES += jotale_js76x8-32m
214
215 define Device/mediatek_linkit-smart-7688
216 IMAGE_SIZE := 32448k
217 DEVICE_VENDOR := MediaTek
218 DEVICE_MODEL := LinkIt Smart 7688
219 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
220 SUPPORTED_DEVICES += linkits7688 linkits7688d
221 endef
222 TARGET_DEVICES += mediatek_linkit-smart-7688
223
224 define Device/mediatek_mt7628an-eval-board
225 BLOCKSIZE := 64k
226 IMAGE_SIZE := 7872k
227 DEVICE_VENDOR := MediaTek
228 DEVICE_MODEL := MT7628 EVB
229 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
230 SUPPORTED_DEVICES += mt7628
231 endef
232 TARGET_DEVICES += mediatek_mt7628an-eval-board
233
234 define Device/mercury_mac1200r-v2
235 IMAGE_SIZE := 7936k
236 DEVICE_VENDOR := Mercury
237 DEVICE_MODEL := MAC1200R
238 DEVICE_VARIANT := v2.0
239 DEVICE_PACKAGES := kmod-mt76x2
240 SUPPORTED_DEVICES += mac1200rv2
241 endef
242 TARGET_DEVICES += mercury_mac1200r-v2
243
244 define Device/netgear_r6020
245 $(Device/netgear_sercomm_nor)
246 IMAGE_SIZE := 7104k
247 DEVICE_MODEL := R6020
248 DEVICE_PACKAGES := kmod-mt76x2
249 SERCOMM_HWNAME := R6020
250 SERCOMM_HWID := CFR
251 SERCOMM_HWVER := A001
252 SERCOMM_SWVER := 0x0040
253 SERCOMM_PAD := 576k
254 endef
255 TARGET_DEVICES += netgear_r6020
256
257 define Device/netgear_r6080
258 $(Device/netgear_sercomm_nor)
259 IMAGE_SIZE := 7552k
260 DEVICE_MODEL := R6080
261 DEVICE_PACKAGES := kmod-mt76x2
262 SERCOMM_HWNAME := R6080
263 SERCOMM_HWID := CFR
264 SERCOMM_HWVER := A001
265 SERCOMM_SWVER := 0x0040
266 SERCOMM_PAD := 576k
267 endef
268 TARGET_DEVICES += netgear_r6080
269
270 define Device/netgear_r6120
271 $(Device/netgear_sercomm_nor)
272 IMAGE_SIZE := 15744k
273 DEVICE_MODEL := R6120
274 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
275 SERCOMM_HWNAME := R6120
276 SERCOMM_HWID := CGQ
277 SERCOMM_HWVER := A001
278 SERCOMM_SWVER := 0x0040
279 SERCOMM_PAD := 576k
280 endef
281 TARGET_DEVICES += netgear_r6120
282
283 define Device/onion_omega2
284 IMAGE_SIZE := 16064k
285 DEVICE_VENDOR := Onion
286 DEVICE_MODEL := Omega2
287 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
288 SUPPORTED_DEVICES += omega2
289 endef
290 TARGET_DEVICES += onion_omega2
291
292 define Device/onion_omega2p
293 IMAGE_SIZE := 32448k
294 DEVICE_VENDOR := Onion
295 DEVICE_MODEL := Omega2+
296 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
297 SUPPORTED_DEVICES += omega2p
298 endef
299 TARGET_DEVICES += onion_omega2p
300
301 define Device/rakwireless_rak633
302 IMAGE_SIZE := 7872k
303 DEVICE_VENDOR := Rakwireless
304 DEVICE_MODEL := RAK633
305 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
306 endef
307 TARGET_DEVICES += rakwireless_rak633
308
309 define Device/ravpower_rp-wd009
310 IMAGE_SIZE := 14272k
311 DEVICE_VENDOR := RAVPower
312 DEVICE_MODEL := RP-WD009
313 UBOOT_PATH := $(STAGING_DIR_IMAGE)/ravpower_rp-wd009-u-boot.bin
314 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \
315 kmod-sdhci-mt7620 kmod-i2c-mt7628 ravpower-mcu
316 IMAGES += factory.bin
317 IMAGE/factory.bin := $$(sysupgrade_bin) | ravpower-wd009-factory
318 endef
319 TARGET_DEVICES += ravpower_rp-wd009
320
321 define Device/skylab_skw92a
322 IMAGE_SIZE := 16064k
323 DEVICE_VENDOR := Skylab
324 DEVICE_MODEL := SKW92A
325 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
326 endef
327 TARGET_DEVICES += skylab_skw92a
328
329 define Device/tama_w06
330 IMAGE_SIZE := 15040k
331 DEVICE_VENDOR := Tama
332 DEVICE_MODEL := W06
333 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
334 endef
335 TARGET_DEVICES += tama_w06
336
337 define Device/totolink_a3
338 IMAGE_SIZE := 7936k
339 UIMAGE_NAME := za3
340 DEVICE_VENDOR := TOTOLINK
341 DEVICE_MODEL := A3
342 DEVICE_PACKAGES := kmod-mt76x2
343 endef
344 TARGET_DEVICES += totolink_a3
345
346 define Device/totolink_lr1200
347 IMAGE_SIZE := 7872k
348 DEVICE_VENDOR := TOTOLINK
349 DEVICE_MODEL := LR1200
350 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 uqmi
351 endef
352 TARGET_DEVICES += totolink_lr1200
353
354 define Device/tplink_archer-c20-v4
355 $(Device/tplink-v2)
356 IMAGE_SIZE := 7808k
357 DEVICE_MODEL := Archer C20
358 DEVICE_VARIANT := v4
359 TPLINK_FLASHLAYOUT := 8Mmtk
360 TPLINK_HWID := 0xc200004
361 TPLINK_HWREVADD := 0x4
362 DEVICE_PACKAGES := kmod-mt76x0e
363 IMAGES := sysupgrade.bin tftp-recovery.bin
364 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
365 SUPPORTED_DEVICES += tplink,c20-v4
366 endef
367 TARGET_DEVICES += tplink_archer-c20-v4
368
369 define Device/tplink_archer-c20-v5
370 $(Device/tplink-v2)
371 IMAGE_SIZE := 7616k
372 DEVICE_MODEL := Archer C20
373 DEVICE_VARIANT := v5
374 TPLINK_FLASHLAYOUT := 8MSUmtk
375 TPLINK_HWID := 0xc200005
376 TPLINK_HWREVADD := 0x5
377 DEVICE_PACKAGES := kmod-mt76x0e
378 IMAGES := sysupgrade.bin
379 endef
380 TARGET_DEVICES += tplink_archer-c20-v5
381
382 define Device/tplink_archer-c50-v3
383 $(Device/tplink-v2)
384 IMAGE_SIZE := 7808k
385 DEVICE_MODEL := Archer C50
386 DEVICE_VARIANT := v3
387 TPLINK_FLASHLAYOUT := 8Mmtk
388 TPLINK_HWID := 0x001D9BA4
389 TPLINK_HWREV := 0x79
390 TPLINK_HWREVADD := 0x1
391 DEVICE_PACKAGES := kmod-mt76x2
392 IMAGES := sysupgrade.bin tftp-recovery.bin
393 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
394 SUPPORTED_DEVICES += tplink,c50-v3
395 endef
396 TARGET_DEVICES += tplink_archer-c50-v3
397
398 define Device/tplink_archer-c50-v4
399 $(Device/tplink-v2)
400 IMAGE_SIZE := 7616k
401 DEVICE_MODEL := Archer C50
402 DEVICE_VARIANT := v4
403 TPLINK_FLASHLAYOUT := 8MSUmtk
404 TPLINK_HWID := 0x001D589B
405 TPLINK_HWREV := 0x93
406 TPLINK_HWREVADD := 0x2
407 DEVICE_PACKAGES := kmod-mt76x2
408 IMAGES := sysupgrade.bin
409 SUPPORTED_DEVICES += tplink,c50-v4
410 endef
411 TARGET_DEVICES += tplink_archer-c50-v4
412
413 define Device/tplink_re200-v2
414 $(Device/tplink-safeloader)
415 IMAGE_SIZE := 7808k
416 DEVICE_MODEL := RE200
417 DEVICE_VARIANT := v2
418 DEVICE_PACKAGES := kmod-mt76x0e
419 TPLINK_BOARD_ID := RE200-V2
420 endef
421 TARGET_DEVICES += tplink_re200-v2
422
423 define Device/tplink_re200-v3
424 $(Device/tplink-safeloader)
425 IMAGE_SIZE := 7808k
426 DEVICE_MODEL := RE200
427 DEVICE_VARIANT := v3
428 DEVICE_PACKAGES := kmod-mt76x0e
429 TPLINK_BOARD_ID := RE200-V3
430 endef
431 TARGET_DEVICES += tplink_re200-v3
432
433 define Device/tplink_re200-v4
434 $(Device/tplink-safeloader)
435 IMAGE_SIZE := 7808k
436 DEVICE_MODEL := RE200
437 DEVICE_VARIANT := v4
438 DEVICE_PACKAGES := kmod-mt76x0e
439 TPLINK_BOARD_ID := RE200-V4
440 endef
441 TARGET_DEVICES += tplink_re200-v4
442
443 define Device/tplink_re220-v2
444 $(Device/tplink-safeloader)
445 IMAGE_SIZE := 7808k
446 DEVICE_MODEL := RE220
447 DEVICE_VARIANT := v2
448 DEVICE_PACKAGES := kmod-mt76x0e
449 TPLINK_BOARD_ID := RE220-V2
450 endef
451 TARGET_DEVICES += tplink_re220-v2
452
453 define Device/tplink_re305-v1
454 $(Device/tplink-safeloader)
455 IMAGE_SIZE := 6016k
456 DEVICE_MODEL := RE305
457 DEVICE_VARIANT := v1
458 DEVICE_PACKAGES := kmod-mt76x2
459 TPLINK_BOARD_ID := RE305-V1
460 endef
461 TARGET_DEVICES += tplink_re305-v1
462
463 define Device/tplink_tl-mr3020-v3
464 $(Device/tplink-v2)
465 IMAGE_SIZE := 7808k
466 DEVICE_MODEL := TL-MR3020
467 DEVICE_VARIANT := v3
468 TPLINK_FLASHLAYOUT := 8Mmtk
469 TPLINK_HWID := 0x30200003
470 TPLINK_HWREV := 0x3
471 TPLINK_HWREVADD := 0x3
472 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
473 IMAGES := sysupgrade.bin tftp-recovery.bin
474 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
475 endef
476 TARGET_DEVICES += tplink_tl-mr3020-v3
477
478 define Device/tplink_tl-mr3420-v5
479 $(Device/tplink-v2)
480 IMAGE_SIZE := 7808k
481 DEVICE_MODEL := TL-MR3420
482 DEVICE_VARIANT := v5
483 TPLINK_FLASHLAYOUT := 8Mmtk
484 TPLINK_HWID := 0x34200005
485 TPLINK_HWREV := 0x5
486 TPLINK_HWREVADD := 0x5
487 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
488 IMAGES := sysupgrade.bin tftp-recovery.bin
489 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
490 endef
491 TARGET_DEVICES += tplink_tl-mr3420-v5
492
493 define Device/tplink_tl-mr6400-v4
494 $(Device/tplink-v2)
495 IMAGE_SIZE := 7808k
496 DEVICE_MODEL := TL-MR6400
497 DEVICE_VARIANT := v4
498 TPLINK_FLASHLAYOUT := 8Mmtk
499 TPLINK_HWID := 0x64000004
500 TPLINK_HWREV := 0x4
501 TPLINK_HWREVADD := 0x4
502 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
503 kmod-usb-serial kmod-usb-serial-option kmod-usb-net-qmi-wwan uqmi
504 IMAGES := sysupgrade.bin tftp-recovery.bin
505 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
506 endef
507 TARGET_DEVICES += tplink_tl-mr6400-v4
508
509 define Device/tplink_tl-mr6400-v5
510 $(Device/tplink-v2)
511 IMAGE_SIZE := 7808k
512 DEVICE_MODEL := TL-MR6400
513 DEVICE_VARIANT := v5
514 TPLINK_FLASHLAYOUT := 8Mmtk
515 TPLINK_HWID := 0x64000005
516 TPLINK_HWREV := 0x5
517 TPLINK_HWREVADD := 0x5
518 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
519 kmod-usb-serial kmod-usb-serial-option kmod-usb-net-qmi-wwan uqmi
520 IMAGES := sysupgrade.bin tftp-recovery.bin
521 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
522 endef
523 TARGET_DEVICES += tplink_tl-mr6400-v5
524
525 define Device/tplink_tl-wa801nd-v5
526 $(Device/tplink-v2)
527 IMAGE_SIZE := 7808k
528 DEVICE_MODEL := TL-WA801ND
529 DEVICE_VARIANT := v5
530 TPLINK_FLASHLAYOUT := 8Mmtk
531 TPLINK_HWID := 0x08010005
532 TPLINK_HWREVADD := 0x5
533 IMAGES := sysupgrade.bin tftp-recovery.bin
534 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
535 endef
536 TARGET_DEVICES += tplink_tl-wa801nd-v5
537
538 define Device/tplink_tl-wr802n-v4
539 $(Device/tplink-v2)
540 IMAGE_SIZE := 7808k
541 DEVICE_MODEL := TL-WR802N
542 DEVICE_VARIANT := v4
543 TPLINK_FLASHLAYOUT := 8Mmtk
544 TPLINK_HWID := 0x08020004
545 TPLINK_HWREVADD := 0x4
546 IMAGES := sysupgrade.bin tftp-recovery.bin
547 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
548 endef
549 TARGET_DEVICES += tplink_tl-wr802n-v4
550
551 define Device/tplink_tl-wr840n-v4
552 $(Device/tplink-v2)
553 IMAGE_SIZE := 7808k
554 DEVICE_MODEL := TL-WR840N
555 DEVICE_VARIANT := v4
556 TPLINK_FLASHLAYOUT := 8Mmtk
557 TPLINK_HWID := 0x08400004
558 TPLINK_HWREVADD := 0x4
559 IMAGES := sysupgrade.bin tftp-recovery.bin
560 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
561 SUPPORTED_DEVICES += tl-wr840n-v4
562 endef
563 TARGET_DEVICES += tplink_tl-wr840n-v4
564
565 define Device/tplink_tl-wr840n-v5
566 $(Device/tplink-v2)
567 IMAGE_SIZE := 3904k
568 DEVICE_MODEL := TL-WR840N
569 DEVICE_VARIANT := v5
570 TPLINK_FLASHLAYOUT := 4Mmtk
571 TPLINK_HWID := 0x08400005
572 TPLINK_HWREVADD := 0x5
573 IMAGES := sysupgrade.bin
574 SUPPORTED_DEVICES += tl-wr840n-v5
575 DEFAULT := n
576 endef
577 TARGET_DEVICES += tplink_tl-wr840n-v5
578
579 define Device/tplink_tl-wr841n-v13
580 $(Device/tplink-v2)
581 IMAGE_SIZE := 7808k
582 DEVICE_MODEL := TL-WR841N
583 DEVICE_VARIANT := v13
584 TPLINK_FLASHLAYOUT := 8Mmtk
585 TPLINK_HWID := 0x08410013
586 TPLINK_HWREV := 0x268
587 TPLINK_HWREVADD := 0x13
588 IMAGES := sysupgrade.bin tftp-recovery.bin
589 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
590 SUPPORTED_DEVICES += tl-wr841n-v13
591 endef
592 TARGET_DEVICES += tplink_tl-wr841n-v13
593
594 define Device/tplink_tl-wr841n-v14
595 $(Device/tplink-v2)
596 IMAGE_SIZE := 3968k
597 DEVICE_MODEL := TL-WR841N
598 DEVICE_VARIANT := v14
599 TPLINK_FLASHLAYOUT := 4MLmtk
600 TPLINK_HWID := 0x08410014
601 TPLINK_HWREVADD := 0x14
602 IMAGES := sysupgrade.bin tftp-recovery.bin
603 IMAGE/tftp-recovery.bin := pad-extra 64k | $$(IMAGE/factory.bin)
604 DEFAULT := n
605 endef
606 TARGET_DEVICES += tplink_tl-wr841n-v14
607
608 define Device/tplink_tl-wr842n-v5
609 $(Device/tplink-v2)
610 IMAGE_SIZE := 7808k
611 DEVICE_MODEL := TL-WR842N
612 DEVICE_VARIANT := v5
613 TPLINK_FLASHLAYOUT := 8Mmtk
614 TPLINK_HWID := 0x08420005
615 TPLINK_HWREV := 0x5
616 TPLINK_HWREVADD := 0x5
617 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
618 IMAGES := sysupgrade.bin tftp-recovery.bin
619 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
620 endef
621 TARGET_DEVICES += tplink_tl-wr842n-v5
622
623 define Device/tplink_tl-wr850n-v2
624 $(Device/tplink-v2)
625 IMAGE_SIZE := 7808k
626 DEVICE_MODEL := TL-WR850N
627 DEVICE_VARIANT := v2
628 TPLINK_FLASHLAYOUT := 8Mmtk
629 TPLINK_HWID := 0x08500002
630 TPLINK_HWREVADD := 0x2
631 IMAGES := sysupgrade.bin tftp-recovery.bin
632 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
633 endef
634 TARGET_DEVICES += tplink_tl-wr850n-v2
635
636 define Device/tplink_tl-wr902ac-v3
637 $(Device/tplink-v2)
638 IMAGE_SIZE := 7808k
639 DEVICE_MODEL := TL-WR902AC
640 DEVICE_VARIANT := v3
641 TPLINK_FLASHLAYOUT := 8Mmtk
642 TPLINK_HWID := 0x000dc88f
643 TPLINK_HWREV := 0x89
644 TPLINK_HWREVADD := 0x1
645 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci \
646 kmod-usb-ledtrig-usbport
647 IMAGES := sysupgrade.bin tftp-recovery.bin
648 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
649 endef
650 TARGET_DEVICES += tplink_tl-wr902ac-v3
651
652 define Device/unielec_u7628-01-16m
653 IMAGE_SIZE := 16064k
654 DEVICE_VENDOR := UniElec
655 DEVICE_MODEL := U7628-01
656 DEVICE_VARIANT := 16M
657 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
658 SUPPORTED_DEVICES += u7628-01-128M-16M unielec,u7628-01-128m-16m
659 endef
660 TARGET_DEVICES += unielec_u7628-01-16m
661
662 define Device/vocore_vocore2
663 IMAGE_SIZE := 16064k
664 DEVICE_VENDOR := VoCore
665 DEVICE_MODEL := VoCore2
666 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
667 kmod-sdhci-mt7620
668 SUPPORTED_DEVICES += vocore2
669 endef
670 TARGET_DEVICES += vocore_vocore2
671
672 define Device/vocore_vocore2-lite
673 IMAGE_SIZE := 7872k
674 DEVICE_VENDOR := VoCore
675 DEVICE_MODEL := VoCore2-Lite
676 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
677 kmod-sdhci-mt7620
678 SUPPORTED_DEVICES += vocore2lite
679 endef
680 TARGET_DEVICES += vocore_vocore2-lite
681
682 define Device/wavlink_wl-wn570ha1
683 IMAGE_SIZE := 7872k
684 DEVICE_VENDOR := Wavlink
685 DEVICE_MODEL := WL-WN570HA1
686 DEVICE_PACKAGES := kmod-mt76x0e
687 endef
688 TARGET_DEVICES += wavlink_wl-wn570ha1
689
690 define Device/wavlink_wl-wn575a3
691 IMAGE_SIZE := 7872k
692 DEVICE_VENDOR := Wavlink
693 DEVICE_MODEL := WL-WN575A3
694 DEVICE_PACKAGES := kmod-mt76x2
695 SUPPORTED_DEVICES += wl-wn575a3
696 endef
697 TARGET_DEVICES += wavlink_wl-wn575a3
698
699 define Device/wavlink_wl-wn577a2
700 IMAGE_SIZE := 7872k
701 DEVICE_VENDOR := Wavlink
702 DEVICE_MODEL := WL-WN577A2
703 DEVICE_ALT0_VENDOR := Maginon
704 DEVICE_ALT0_MODEL := WLR-755
705 DEVICE_PACKAGES := kmod-mt76x0e
706 endef
707 TARGET_DEVICES += wavlink_wl-wn577a2
708
709 define Device/widora_neo-16m
710 IMAGE_SIZE := 16064k
711 DEVICE_VENDOR := Widora
712 DEVICE_MODEL := Widora-NEO
713 DEVICE_VARIANT := 16M
714 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
715 SUPPORTED_DEVICES += widora-neo
716 endef
717 TARGET_DEVICES += widora_neo-16m
718
719 define Device/widora_neo-32m
720 IMAGE_SIZE := 32448k
721 DEVICE_VENDOR := Widora
722 DEVICE_MODEL := Widora-NEO
723 DEVICE_VARIANT := 32M
724 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
725 endef
726 TARGET_DEVICES += widora_neo-32m
727
728 define Device/wiznet_wizfi630s
729 IMAGE_SIZE := 32448k
730 DEVICE_VENDOR := WIZnet
731 DEVICE_MODEL := WizFi630S
732 SUPPORTED_DEVICES += wizfi630s
733 endef
734 TARGET_DEVICES += wiznet_wizfi630s
735
736 define Device/wrtnode_wrtnode2p
737 IMAGE_SIZE := 32448k
738 DEVICE_VENDOR := WRTnode
739 DEVICE_MODEL := WRTnode 2P
740 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
741 SUPPORTED_DEVICES += wrtnode2p
742 endef
743 TARGET_DEVICES += wrtnode_wrtnode2p
744
745 define Device/wrtnode_wrtnode2r
746 IMAGE_SIZE := 32448k
747 DEVICE_VENDOR := WRTnode
748 DEVICE_MODEL := WRTnode 2R
749 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
750 SUPPORTED_DEVICES += wrtnode2r
751 endef
752 TARGET_DEVICES += wrtnode_wrtnode2r
753
754 define Device/xiaomi_mi-router-4a-100m
755 IMAGE_SIZE := 14976k
756 DEVICE_VENDOR := Xiaomi
757 DEVICE_MODEL := Mi Router 4A
758 DEVICE_VARIANT := 100M Edition
759 DEVICE_PACKAGES := kmod-mt76x2
760 SUPPORTED_DEVICES += xiaomi,mir4a-100m
761 endef
762 TARGET_DEVICES += xiaomi_mi-router-4a-100m
763
764 define Device/xiaomi_mi-router-4c
765 IMAGE_SIZE := 14976k
766 DEVICE_VENDOR := Xiaomi
767 DEVICE_MODEL := Mi Router 4C
768 DEVICE_PACKAGES := uboot-envtools
769 endef
770 TARGET_DEVICES += xiaomi_mi-router-4c
771
772 define Device/xiaomi_miwifi-nano
773 IMAGE_SIZE := 16064k
774 DEVICE_VENDOR := Xiaomi
775 DEVICE_MODEL := MiWiFi Nano
776 DEVICE_PACKAGES := uboot-envtools
777 SUPPORTED_DEVICES += miwifi-nano
778 endef
779 TARGET_DEVICES += xiaomi_miwifi-nano
780
781 define Device/zbtlink_zbt-we1226
782 IMAGE_SIZE := 7872k
783 DEVICE_VENDOR := Zbtlink
784 DEVICE_MODEL := ZBT-WE1226
785 endef
786 TARGET_DEVICES += zbtlink_zbt-we1226
787
788 define Device/zyxel_keenetic-extra-ii
789 IMAGE_SIZE := 14912k
790 BLOCKSIZE := 64k
791 DEVICE_VENDOR := ZyXEL
792 DEVICE_MODEL := Keenetic Extra II
793 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci \
794 kmod-usb-ledtrig-usbport
795 IMAGES += factory.bin
796 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to $$$$(BLOCKSIZE) | \
797 check-size | zyimage -d 6162 -v "ZyXEL Keenetic Extra II"
798 endef
799 TARGET_DEVICES += zyxel_keenetic-extra-ii