ramips: add support for ALFA Network Tube-E4G
[openwrt/openwrt.git] / target / linux / ramips / image / mt7620.mk
1 #
2 # MT7620A Profiles
3 #
4
5 DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION \
6 DLINK_ROM_ID DLINK_FAMILY_MEMBER DLINK_FIRMWARE_SIZE
7
8 define Build/elecom-header
9 cp $@ $(KDIR)/v_0.0.0.bin
10 ( \
11 mkhash md5 $(KDIR)/v_0.0.0.bin && \
12 echo 458 \
13 ) | mkhash md5 > $(KDIR)/v_0.0.0.md5
14 $(STAGING_DIR_HOST)/bin/tar -c \
15 $(if $(SOURCE_DATE_EPOCH),--mtime=@$(SOURCE_DATE_EPOCH)) \
16 -f $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
17 endef
18
19 define Build/elx-header
20 $(eval hw_id=$(word 1,$(1)))
21 $(eval xor_pattern=$(word 2,$(1)))
22 ( \
23 echo -ne "\x00\x00\x00\x00\x00\x00\x00\x03" | \
24 dd bs=42 count=1 conv=sync; \
25 hw_id="$(hw_id)"; \
26 echo -ne "\x$${hw_id:0:2}\x$${hw_id:2:2}\x$${hw_id:4:2}\x$${hw_id:6:2}" | \
27 dd bs=20 count=1 conv=sync; \
28 echo -ne "$$(printf '%08x' $$(stat -c%s $@) | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \
29 dd bs=8 count=1 conv=sync; \
30 echo -ne "$$($(STAGING_DIR_HOST)/bin/mkhash md5 $@ | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \
31 dd bs=58 count=1 conv=sync; \
32 ) > $(KDIR)/tmp/$(DEVICE_NAME).header
33 $(call Build/xor-image,-p $(xor_pattern) -x)
34 cat $(KDIR)/tmp/$(DEVICE_NAME).header $@ > $@.new
35 mv $@.new $@
36 endef
37
38 define Device/ai-br100
39 DTS := AI-BR100
40 IMAGE_SIZE := 7936k
41 DEVICE_TITLE := Aigale Ai-BR100
42 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
43 endef
44 TARGET_DEVICES += ai-br100
45
46 define Device/alfa-network_ac1200rm
47 DTS := AC1200RM
48 IMAGE_SIZE := 16064k
49 DEVICE_TITLE := ALFA Network AC1200RM
50 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci uboot-envtools
51 endef
52 TARGET_DEVICES += alfa-network_ac1200rm
53
54 define Device/alfa-network_tube-e4g
55 DTS := TUBE-E4G
56 IMAGE_SIZE := 16064k
57 DEVICE_TITLE := ALFA Network Tube-E4G
58 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci uboot-envtools uqmi \
59 -iwinfo -kmod-rt2800-pci -kmod-rt2800-soc -wpad-basic
60 endef
61 TARGET_DEVICES += alfa-network_tube-e4g
62
63 define Device/Archer
64 TPLINK_HWREVADD := 0
65 TPLINK_HVERSION := 3
66 KERNEL := $(KERNEL_DTB)
67 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
68 IMAGE/factory.bin := tplink-v2-image -e
69 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata
70 endef
71
72 define Device/ArcherC20i
73 $(Device/Archer)
74 DTS := ArcherC20i
75 SUPPORTED_DEVICES := c20i
76 TPLINK_FLASHLAYOUT := 8Mmtk
77 TPLINK_HWID := 0xc2000001
78 TPLINK_HWREV := 58
79 IMAGES += factory.bin
80 DEVICE_PACKAGES := kmod-mt76x0e
81 DEVICE_TITLE := TP-Link ArcherC20i
82 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
83 endef
84 TARGET_DEVICES += ArcherC20i
85
86 define Device/ArcherC50v1
87 $(Device/Archer)
88 DTS := ArcherC50
89 SUPPORTED_DEVICES := c50
90 TPLINK_FLASHLAYOUT := 8Mmtk
91 TPLINK_HWID := 0xc7500001
92 TPLINK_HWREV := 69
93 IMAGES += factory-us.bin factory-eu.bin
94 IMAGE/factory-us.bin := tplink-v2-image -e -w 0
95 IMAGE/factory-eu.bin := tplink-v2-image -e -w 2
96 DEVICE_TITLE := TP-Link ArcherC50v1
97 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
98 endef
99 TARGET_DEVICES += ArcherC50v1
100
101 define Device/ArcherMR200
102 $(Device/Archer)
103 DTS := ArcherMR200
104 SUPPORTED_DEVICES := mr200
105 TPLINK_FLASHLAYOUT := 8MLmtk
106 TPLINK_HWID := 0xd7500001
107 TPLINK_HWREV := 0x4a
108 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
109 DEVICE_TITLE := TP-Link ArcherMR200
110 endef
111 TARGET_DEVICES += ArcherMR200
112
113 define Device/bdcom_wap2100-sk
114 DTS := BDCOM-WAP2100-SK
115 IMAGE_SIZE := 15808k
116 DEVICE_TITLE := BDCOM WAP2100-SK (ZTE ZXECS EBG3130)
117 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76x2 kmod-mt76x0e kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
118 endef
119 TARGET_DEVICES += bdcom_wap2100-sk
120
121 define Device/bocco
122 DTS := BOCCO
123 DEVICE_TITLE := YUKAI Engineering BOCCO
124 DEVICE_PACKAGES := kmod-sound-core kmod-sound-mt7620 kmod-i2c-ralink
125 endef
126 TARGET_DEVICES += bocco
127
128 define Device/c108
129 DTS := C108
130 IMAGE_SIZE := 16777216
131 DEVICE_TITLE := HNET C108
132 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
133 endef
134 TARGET_DEVICES += c108
135
136 define Device/cf-wr800n
137 DTS := CF-WR800N
138 DEVICE_TITLE := Comfast CF-WR800N
139 endef
140 TARGET_DEVICES += cf-wr800n
141
142 define Device/cs-qr10
143 DTS := CS-QR10
144 DEVICE_TITLE := Planex CS-QR10
145 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci \
146 kmod-sound-core kmod-sound-mt7620 \
147 kmod-i2c-ralink kmod-sdhci-mt7620
148 endef
149 TARGET_DEVICES += cs-qr10
150
151 define Device/d240
152 DTS := D240
153 IMAGE_SIZE := $(ralink_default_fw_size_16M)
154 DEVICE_TITLE := Sanlinking Technologies D240
155 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
156 endef
157 TARGET_DEVICES += d240
158
159 define Device/db-wrt01
160 DTS := DB-WRT01
161 DEVICE_TITLE := Planex DB-WRT01
162 endef
163 TARGET_DEVICES += db-wrt01
164
165 define Device/dch-m225
166 $(Device/seama)
167 DTS := DCH-M225
168 BLOCKSIZE := 4k
169 SEAMA_SIGNATURE := wapn22_dlink.2013gui_dap1320b
170 IMAGE_SIZE := 6848k
171 DEVICE_TITLE := D-Link DCH-M225
172 DEVICE_PACKAGES := kmod-sound-core kmod-sound-mt7620 kmod-i2c-ralink
173 endef
174 TARGET_DEVICES += dch-m225
175
176 define Device/dir-810l
177 DTS := DIR-810L
178 DEVICE_PACKAGES := kmod-mt76x0e
179 DEVICE_TITLE := D-Link DIR-810L
180 IMAGE_SIZE := 6720k
181 endef
182 TARGET_DEVICES += dir-810l
183
184 define Device/dlink_dwr-116-a1
185 DTS := DWR-116-A1
186 DEVICE_TITLE := D-Link DWR-116 A1/A2
187 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci jboot-tools
188 DLINK_ROM_ID := DLK6E3803001
189 DLINK_FAMILY_MEMBER := 0x6E38
190 DLINK_FIRMWARE_SIZE := 0x7E0000
191 KERNEL := $(KERNEL_DTB)
192 IMAGES += factory.bin
193 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
194 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
195 endef
196 TARGET_DEVICES += dlink_dwr-116-a1
197
198 define Device/dlink_dwr-118-a1
199 DTS := DWR-118-A1
200 DEVICE_TITLE := D-Link DWR-118 A1
201 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci jboot-tools kmod-mt76x0e
202 DLINK_ROM_ID := DLK6E3811001
203 DLINK_FAMILY_MEMBER := 0x6E38
204 DLINK_FIRMWARE_SIZE := 0xFE0000
205 KERNEL := $(KERNEL_DTB)
206 IMAGES += factory.bin
207 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
208 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
209 endef
210 TARGET_DEVICES += dlink_dwr-118-a1
211
212 define Device/dlink_dwr-118-a2
213 DTS := DWR-118-A2
214 DEVICE_TITLE := D-Link DWR-118 A2
215 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci jboot-tools
216 DLINK_ROM_ID := DLK6E3814001
217 DLINK_FAMILY_MEMBER := 0x6E38
218 DLINK_FIRMWARE_SIZE := 0xFE0000
219 KERNEL := $(KERNEL_DTB)
220 IMAGES += factory.bin
221 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
222 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
223 endef
224 TARGET_DEVICES += dlink_dwr-118-a2
225
226 define Device/dlink_dwr-921-c1
227 DTS := DWR-921-C1
228 IMAGE_SIZE := $(ralink_default_fw_size_16M)
229 DEVICE_TITLE := D-Link DWR-921 C1
230 DLINK_ROM_ID := DLK6E2414001
231 DLINK_FAMILY_MEMBER := 0x6E24
232 DLINK_FIRMWARE_SIZE := 0xFE0000
233 KERNEL := $(KERNEL_DTB)
234 IMAGES += factory.bin
235 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
236 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
237 DEVICE_PACKAGES := jboot-tools \
238 kmod-usb2 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
239 endef
240 TARGET_DEVICES += dlink_dwr-921-c1
241
242 define Device/dlink_dwr-921-c3
243 $(Device/dlink_dwr-921-c1)
244 DEVICE_TITLE := D-Link DWR-921 C3
245 DLINK_ROM_ID := DLK6E2414009
246 SUPPORTED_DEVICES := dlink,dwr-921-c1
247 endef
248 TARGET_DEVICES += dlink_dwr-921-c3
249
250 define Device/dlink_dwr-922-e2
251 DTS := DWR-922-E2
252 IMAGE_SIZE := $(ralink_default_fw_size_16M)
253 DEVICE_TITLE := D-Link DWR-922 E2
254 DLINK_ROM_ID := DLK6E2414005
255 DLINK_FAMILY_MEMBER := 0x6E24
256 DLINK_FIRMWARE_SIZE := 0xFE0000
257 KERNEL := $(KERNEL_DTB)
258 IMAGES += factory.bin
259 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
260 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
261 DEVICE_PACKAGES := jboot-tools \
262 kmod-usb2 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
263 endef
264 TARGET_DEVICES += dlink_dwr-922-e2
265
266 define Device/e1700
267 DTS := E1700
268 IMAGES += factory.bin
269 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
270 umedia-header 0x013326
271 DEVICE_TITLE := Linksys E1700
272 endef
273 TARGET_DEVICES += e1700
274
275 define Device/ex2700
276 NETGEAR_HW_ID := 29764623+4+0+32+2x2+0
277 NETGEAR_BOARD_ID := EX2700
278 DTS := EX2700
279 BLOCKSIZE := 4k
280 IMAGE_SIZE := $(ralink_default_fw_size_4M)
281 IMAGES += factory.bin
282 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakehdr filesystem
283 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
284 netgear-dni
285 DEVICE_TITLE := Netgear EX2700
286 endef
287 TARGET_DEVICES += ex2700
288
289 define Device/ex3700-ex3800
290 NETGEAR_BOARD_ID := U12H319T00_NETGEAR
291 DTS := EX3700
292 BLOCKSIZE := 4k
293 IMAGE_SIZE := 7744k
294 IMAGES += factory.chk
295 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
296 DEVICE_PACKAGES := kmod-mt76x2
297 DEVICE_TITLE := Netgear EX3700/EX3800
298 SUPPORTED_DEVICES := ex3700
299 endef
300 TARGET_DEVICES += ex3700-ex3800
301
302 define Device/gl-mt300a
303 DTS := GL-MT300A
304 IMAGE_SIZE := $(ralink_default_fw_size_16M)
305 DEVICE_TITLE := GL-Inet GL-MT300A
306 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
307 endef
308 TARGET_DEVICES += gl-mt300a
309
310 define Device/u25awf-h1
311 DTS := U25AWF-H1
312 IMAGE_SIZE := 16064k
313 DEVICE_TITLE := Kimax U25AWF-H1
314 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
315 endef
316 TARGET_DEVICES += u25awf-h1
317
318 define Device/gl-mt300n
319 DTS := GL-MT300N
320 IMAGE_SIZE := $(ralink_default_fw_size_16M)
321 DEVICE_TITLE := GL-Inet GL-MT300N
322 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
323 endef
324 TARGET_DEVICES += gl-mt300n
325
326 define Device/gl-mt750
327 DTS := GL-MT750
328 IMAGE_SIZE := $(ralink_default_fw_size_16M)
329 DEVICE_TITLE := GL-Inet GL-MT750
330 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
331 endef
332 TARGET_DEVICES += gl-mt750
333
334 define Device/hc5661
335 DTS := HC5661
336 IMAGE_SIZE := 15872k
337 DEVICE_TITLE := HiWiFi HC5661
338 DEVICE_PACKAGES := kmod-sdhci-mt7620
339 endef
340 TARGET_DEVICES += hc5661
341
342 define Device/hc5761
343 DTS := HC5761
344 IMAGE_SIZE := 15872k
345 DEVICE_TITLE := HiWiFi HC5761
346 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
347 endef
348 TARGET_DEVICES += hc5761
349
350 define Device/hc5861
351 DTS := HC5861
352 IMAGE_SIZE := 15872k
353 DEVICE_TITLE := HiWiFi HC5861
354 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
355 endef
356 TARGET_DEVICES += hc5861
357
358 define Device/iodata_wn-ac1167gr
359 DTS := WN-AC1167GR
360 DEVICE_TITLE := I-O DATA WN-AC1167GR
361 IMAGE_SIZE := 6864k
362 IMAGES += factory.bin
363 IMAGE/factory.bin := \
364 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
365 elx-header 01040016 8844A2D168B45A2D
366 DEVICE_PACKAGES := kmod-mt76x2
367 endef
368 TARGET_DEVICES += iodata_wn-ac1167gr
369
370 define Device/kimax_u35wf
371 DTS := U35WF
372 IMAGE_SIZE := 16064k
373 DEVICE_TITLE := Kimax U35WF
374 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
375 endef
376 TARGET_DEVICES += kimax_u35wf
377
378 define Device/kng_rc
379 DTS := kng_rc
380 IMAGE_SIZE := $(ralink_default_fw_size_16M)
381 DEVICE_TITLE := ZyXEL Keenetic Viva
382 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
383 IMAGES += factory.bin
384 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
385 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
386 SUPPORTED_DEVICES := kng_rc
387 endef
388 TARGET_DEVICES += kng_rc
389
390 define Device/kn_rc
391 DTS := kn_rc
392 DEVICE_TITLE := ZyXEL Keenetic Omni
393 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
394 IMAGES += factory.bin
395 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
396 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
397 SUPPORTED_DEVICES := kn_rc
398 endef
399 TARGET_DEVICES += kn_rc
400
401 define Device/kn_rf
402 DTS := kn_rf
403 DEVICE_TITLE := ZyXEL Keenetic Omni II
404 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
405 IMAGES += factory.bin
406 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
407 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
408 SUPPORTED_DEVICES := kn_rf
409 endef
410 TARGET_DEVICES += kn_rf
411
412 define Device/microwrt
413 DTS := MicroWRT
414 IMAGE_SIZE := 16128k
415 DEVICE_TITLE := Microduino MicroWRT
416 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
417 endef
418 TARGET_DEVICES += microwrt
419
420 define Device/lava_lr-25g001
421 DTS := LR-25G001
422 DEVICE_TITLE := LAVA LR-25G001
423 DLINK_ROM_ID := LVA6E3804001
424 DLINK_FAMILY_MEMBER := 0x6E38
425 DLINK_FIRMWARE_SIZE := 0xFE0000
426 KERNEL := $(KERNEL_DTB)
427 IMAGES += factory.bin
428 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
429 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
430 DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-usb-ohci kmod-mt76x0e
431 endef
432 TARGET_DEVICES += lava_lr-25g001
433
434 define Device/miwifi-mini
435 DTS := MIWIFI-MINI
436 IMAGE_SIZE := $(ralink_default_fw_size_16M)
437 DEVICE_TITLE := Xiaomi MiWiFi Mini
438 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
439 endef
440 TARGET_DEVICES += miwifi-mini
441
442 define Device/mlw221
443 DTS := MLW221
444 IMAGE_SIZE := $(ralink_default_fw_size_16M)
445 DEVICE_TITLE := Kingston MLW221
446 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
447 endef
448 TARGET_DEVICES += mlw221
449
450 define Device/mlwg2
451 DTS := MLWG2
452 IMAGE_SIZE := $(ralink_default_fw_size_16M)
453 DEVICE_TITLE := Kingston MLWG2
454 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
455 endef
456 TARGET_DEVICES += mlwg2
457
458 define Device/mt7620a
459 DTS := MT7620a
460 DEVICE_TITLE := MediaTek MT7620a EVB
461 endef
462 TARGET_DEVICES += mt7620a
463
464 define Device/mt7620a_mt7530
465 DTS := MT7620a_MT7530
466 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
467 SUPPORTED_DEVICES := mt7620a_mt7530
468 endef
469 TARGET_DEVICES += mt7620a_mt7530
470
471 define Device/mt7620a_mt7610e
472 DTS := MT7620a_MT7610e
473 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
474 DEVICE_PACKAGES := kmod-mt76x0e
475 SUPPORTED_DEVICES := mt7620a_mt7610e
476 endef
477 TARGET_DEVICES += mt7620a_mt7610e
478
479 define Device/mt7620a_v22sg
480 DTS := MT7620a_V22SG
481 DEVICE_TITLE := MediaTek MT7620a V22SG
482 SUPPORTED_DEVICES := mt7620a_v22sg
483 endef
484 TARGET_DEVICES += mt7620a_v22sg
485
486 define Device/mzk-750dhp
487 DTS := MZK-750DHP
488 DEVICE_TITLE := Planex MZK-750DHP
489 DEVICE_PACKAGES := kmod-mt76x0e
490 endef
491 TARGET_DEVICES += mzk-750dhp
492
493 define Device/mzk-ex300np
494 DTS := MZK-EX300NP
495 DEVICE_TITLE := Planex MZK-EX300NP
496 endef
497 TARGET_DEVICES += mzk-ex300np
498
499 define Device/mzk-ex750np
500 DTS := MZK-EX750NP
501 DEVICE_TITLE := Planex MZK-EX750NP
502 DEVICE_PACKAGES := kmod-mt76x2
503 endef
504 TARGET_DEVICES += mzk-ex750np
505
506 define Device/na930
507 DTS := NA930
508 IMAGE_SIZE := 20m
509 DEVICE_TITLE := Sercomm NA930
510 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
511 endef
512 TARGET_DEVICES += na930
513
514 define Device/oy-0001
515 DTS := OY-0001
516 IMAGE_SIZE := $(ralink_default_fw_size_16M)
517 DEVICE_TITLE := Oh Yeah OY-0001
518 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
519 endef
520 TARGET_DEVICES += oy-0001
521
522 define Device/psg1208
523 DTS := PSG1208
524 DEVICE_TITLE := Phicomm PSG1208
525 DEVICE_PACKAGES := kmod-mt76x2
526 endef
527 TARGET_DEVICES += psg1208
528
529 define Device/psg1218a
530 DTS := PSG1218A
531 DEVICE_TITLE := Phicomm PSG1218 rev.Ax
532 DEVICE_PACKAGES := kmod-mt76x2
533 SUPPORTED_DEVICES += psg1218
534 endef
535 TARGET_DEVICES += psg1218a
536
537 define Device/psg1218b
538 DTS := PSG1218B
539 DEVICE_TITLE := Phicomm PSG1218 rev.Bx
540 DEVICE_PACKAGES := kmod-mt76x2
541 SUPPORTED_DEVICES += psg1218
542 endef
543 TARGET_DEVICES += psg1218b
544
545 define Device/phicomm_k2g
546 DTS := K2G
547 IMAGE_SIZE := 7552k
548 DEVICE_TITLE := Phicomm K2G
549 DEVICE_PACKAGES := kmod-mt76x2
550 endef
551 TARGET_DEVICES += phicomm_k2g
552
553 define Device/rp-n53
554 DTS := RP-N53
555 DEVICE_TITLE := Asus RP-N53
556 endef
557 TARGET_DEVICES += rp-n53
558
559 define Device/rt-n12p
560 DTS := RT-N12-PLUS
561 DEVICE_TITLE := Asus RT-N11P/RT-N12+/RT-N12Eb1
562 endef
563 TARGET_DEVICES += rt-n12p
564
565 define Device/rt-n14u
566 DTS := RT-N14U
567 DEVICE_TITLE := Asus RT-N14u
568 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
569 endef
570 TARGET_DEVICES += rt-n14u
571
572 define Device/rt-ac51u
573 DTS := RT-AC51U
574 IMAGE_SIZE := $(ralink_default_fw_size_16M)
575 DEVICE_TITLE := Asus RT-AC51U
576 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
577 endef
578 TARGET_DEVICES += rt-ac51u
579
580 define Device/tiny-ac
581 DTS := TINY-AC
582 DEVICE_TITLE := Dovado Tiny AC
583 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
584 endef
585 TARGET_DEVICES += tiny-ac
586
587 define Device/edimax_br-6478ac-v2
588 DTS := BR-6478AC-V2
589 DEVICE_TITLE := Edimax BR-6478AC V2
590 BLOCKSIZE := 64k
591 IMAGE_SIZE := 7616k
592 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
593 edimax-header -s CSYS -m RN68 -f 0x70000 -S 0x01100000 | pad-rootfs | \
594 append-metadata | check-size $$$$(IMAGE_SIZE)
595 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
596 endef
597 TARGET_DEVICES += edimax_br-6478ac-v2
598
599 define Device/tplink_c2-v1
600 $(Device/Archer)
601 DTS := ArcherC2-v1
602 TPLINK_FLASHLAYOUT := 8Mmtk
603 TPLINK_HWID := 0xc7500001
604 TPLINK_HWREV := 50
605 IMAGES += factory.bin
606 DEVICE_TITLE := TP-Link Archer C2 v1
607 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
608 endef
609 TARGET_DEVICES += tplink_c2-v1
610
611 define Device/tplink_c20-v1
612 $(Device/Archer)
613 DTS := ArcherC20v1
614 TPLINK_FLASHLAYOUT := 8Mmtk
615 TPLINK_HWID := 0xc2000001
616 TPLINK_HWREV := 0x44
617 TPLINK_HWREVADD := 0x1
618 IMAGES += factory.bin
619 DEVICE_TITLE := TP-Link ArcherC20 v1
620 DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
621 endef
622 TARGET_DEVICES += tplink_c20-v1
623
624 define Device/vonets_var11n-300
625 DTS := VAR11N-300
626 IMAGE_SIZE := $(ralink_default_fw_size_4M)
627 BLOCKSIZE := 4k
628 DEVICE_TITLE := Vonets VAR11N-300
629 endef
630 TARGET_DEVICES += vonets_var11n-300
631
632 define Device/ravpower_wd03
633 DTS := WD03
634 IMAGE_SIZE := $(ralink_default_fw_size_8M)
635 DEVICE_TITLE := Ravpower WD03
636 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
637 endef
638 TARGET_DEVICES += ravpower_wd03
639
640 define Device/whr-1166d
641 DTS := WHR-1166D
642 IMAGE_SIZE := 15040k
643 DEVICE_TITLE := Buffalo WHR-1166D
644 DEVICE_PACKAGES := kmod-mt76x2
645 endef
646 TARGET_DEVICES += whr-1166d
647
648 define Device/whr-300hp2
649 DTS := WHR-300HP2
650 IMAGE_SIZE := 6848k
651 DEVICE_TITLE := Buffalo WHR-300HP2
652 endef
653 TARGET_DEVICES += whr-300hp2
654
655 define Device/whr-600d
656 DTS := WHR-600D
657 IMAGE_SIZE := 6848k
658 DEVICE_TITLE := Buffalo WHR-600D
659 endef
660 TARGET_DEVICES += whr-600d
661
662 define Device/wmr-300
663 DTS := WMR-300
664 DEVICE_TITLE := Buffalo WMR-300
665 endef
666 TARGET_DEVICES += wmr-300
667
668 define Device/wn3000rpv3
669 NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
670 NETGEAR_BOARD_ID := WN3000RPv3
671 DTS := WN3000RPV3
672 BLOCKSIZE := 4k
673 IMAGES += factory.bin
674 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakehdr filesystem
675 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
676 netgear-dni
677 DEVICE_TITLE := Netgear WN3000RPv3
678 endef
679 TARGET_DEVICES += wn3000rpv3
680
681 define Device/wrh-300cr
682 DTS := WRH-300CR
683 IMAGE_SIZE := $(ralink_default_fw_size_16M)
684 IMAGES += factory.bin
685 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
686 elecom-header
687 DEVICE_TITLE := Elecom WRH-300CR
688 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
689 endef
690 TARGET_DEVICES += wrh-300cr
691
692 define Device/wrtnode
693 DTS := WRTNODE
694 IMAGE_SIZE := $(ralink_default_fw_size_16M)
695 DEVICE_TITLE := WRTNode
696 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
697 endef
698 TARGET_DEVICES += wrtnode
699
700 define Device/wt3020-4M
701 DTS := WT3020-4M
702 BLOCKSIZE := 4k
703 IMAGE_SIZE := $(ralink_default_fw_size_4M)
704 IMAGES += factory.bin
705 SUPPORTED_DEVICES += wt3020
706 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
707 poray-header -B WT3020 -F 4M
708 DEVICE_TITLE := Nexx WT3020 (4MB)
709 endef
710 TARGET_DEVICES += wt3020-4M
711
712 define Device/wt3020-8M
713 DTS := WT3020-8M
714 IMAGES += factory.bin
715 SUPPORTED_DEVICES += wt3020
716 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
717 poray-header -B WT3020 -F 8M
718 DEVICE_TITLE := Nexx WT3020 (8MB)
719 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
720 endef
721 TARGET_DEVICES += wt3020-8M
722
723 define Device/y1
724 DTS := Y1
725 IMAGE_SIZE := $(ralink_default_fw_size_16M)
726 DEVICE_TITLE := Lenovo Y1
727 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
728 endef
729 TARGET_DEVICES += y1
730
731 define Device/y1s
732 DTS := Y1S
733 IMAGE_SIZE := $(ralink_default_fw_size_16M)
734 DEVICE_TITLE := Lenovo Y1S
735 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
736 endef
737 TARGET_DEVICES += y1s
738
739 define Device/youku-yk1
740 DTS := YOUKU-YK1
741 IMAGE_SIZE := $(ralink_default_fw_size_32M)
742 DEVICE_TITLE := YOUKU YK1
743 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
744 endef
745 TARGET_DEVICES += youku-yk1
746
747 define Device/we1026-5g-16m
748 DTS := WE1026-5G-16M
749 IMAGE_SIZE := 16777216
750 SUPPORTED_DEVICES += we1026-5g-16m
751 DEVICE_TITLE := Zbtlink ZBT-WE1026-5G (16M)
752 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
753 endef
754 TARGET_DEVICES += we1026-5g-16m
755
756 define Device/zbt-ape522ii
757 DTS := ZBT-APE522II
758 DEVICE_TITLE := Zbtlink ZBT-APE522II
759 DEVICE_PACKAGES := kmod-mt76x2
760 endef
761 TARGET_DEVICES += zbt-ape522ii
762
763 define Device/zbt-cpe102
764 DTS := ZBT-CPE102
765 DEVICE_TITLE := Zbtlink ZBT-CPE102
766 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
767 endef
768 TARGET_DEVICES += zbt-cpe102
769
770 define Device/zbt-wa05
771 DTS := ZBT-WA05
772 DEVICE_TITLE := Zbtlink ZBT-WA05
773 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
774 endef
775 TARGET_DEVICES += zbt-wa05
776
777 define Device/zbt-we2026
778 DTS := ZBT-WE2026
779 DEVICE_TITLE := Zbtlink ZBT-WE2026
780 endef
781 TARGET_DEVICES += zbt-we2026
782
783 define Device/zbt-we826-16M
784 DTS := ZBT-WE826-16M
785 IMAGE_SIZE := $(ralink_default_fw_size_16M)
786 SUPPORTED_DEVICES += zbt-we826
787 DEVICE_TITLE := Zbtlink ZBT-WE826 (16M)
788 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
789 endef
790 TARGET_DEVICES += zbt-we826-16M
791
792 define Device/zbt-we826-32M
793 DTS := ZBT-WE826-32M
794 IMAGE_SIZE := $(ralink_default_fw_size_32M)
795 DEVICE_TITLE := Zbtlink ZBT-WE826 (32M)
796 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
797 endef
798 TARGET_DEVICES += zbt-we826-32M
799
800 define Device/zbt-wr8305rt
801 DTS := ZBT-WR8305RT
802 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
803 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
804 endef
805 TARGET_DEVICES += zbt-wr8305rt
806
807 define Device/zte-q7
808 DTS := ZTE-Q7
809 DEVICE_TITLE := ZTE Q7
810 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
811 endef
812 TARGET_DEVICES += zte-q7