ramips: Add support for Xiaomi Redmi Router AC2100 (RM2100)
[openwrt/openwrt.git] / target / linux / ramips / image / mt7621.mk
1 #
2 # MT7621 Profiles
3 #
4
5 include ./common-tp-link.mk
6
7 DEFAULT_SOC := mt7621
8
9 KERNEL_DTB += -d21
10 DEVICE_VARS += UIMAGE_MAGIC SERCOMM_HWNAME
11
12 # The OEM webinterface expects an kernel with initramfs which has the uImage
13 # header field ih_name.
14 # We don't want to set the header name field for the kernel include in the
15 # sysupgrade image as well, as this image shouldn't be accepted by the OEM
16 # webinterface. It will soft-brick the board.
17 define Build/custom-initramfs-uimage
18 mkimage -A $(LINUX_KARCH) \
19 -O linux -T kernel \
20 -C lzma -a $(KERNEL_LOADADDR) $(if $(UIMAGE_MAGIC),-M $(UIMAGE_MAGIC),) \
21 -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
22 -n '$(1)' -d $@ $@.new
23 mv $@.new $@
24 endef
25
26 define Build/elecom-gst-factory
27 $(eval product=$(word 1,$(1)))
28 $(eval version=$(word 2,$(1)))
29 ( $(STAGING_DIR_HOST)/bin/mkhash md5 $@ | tr -d '\n' ) >> $@
30 ( \
31 echo -n "ELECOM $(product) v$(version)" | \
32 dd bs=32 count=1 conv=sync; \
33 dd if=$@; \
34 ) > $@.new
35 mv $@.new $@
36 echo -n "MT7621_ELECOM_$(product)" >> $@
37 endef
38
39 define Build/elecom-wrc-factory
40 $(eval product=$(word 1,$(1)))
41 $(eval version=$(word 2,$(1)))
42 $(STAGING_DIR_HOST)/bin/mkhash md5 $@ >> $@
43 ( \
44 echo -n "ELECOM $(product) v$(version)" | \
45 dd bs=32 count=1 conv=sync; \
46 dd if=$@; \
47 ) > $@.new
48 mv $@.new $@
49 endef
50
51 define Build/iodata-factory
52 $(eval fw_size=$(word 1,$(1)))
53 $(eval fw_type=$(word 2,$(1)))
54 $(eval product=$(word 3,$(1)))
55 $(eval factory_bin=$(word 4,$(1)))
56 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(fw_size)" ]; then \
57 $(CP) $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) $(factory_bin); \
58 $(STAGING_DIR_HOST)/bin/mksenaofw \
59 -r 0x30a -p $(product) -t $(fw_type) \
60 -e $(factory_bin) -o $(factory_bin).new; \
61 mv $(factory_bin).new $(factory_bin); \
62 $(CP) $(factory_bin) $(BIN_DIR)/; \
63 else \
64 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
65 fi
66 endef
67
68 define Build/iodata-mstc-header
69 ( \
70 data_size_crc="$$(dd if=$@ ibs=64 skip=1 2>/dev/null | gzip -c | \
71 tail -c 8 | od -An -tx8 --endian little | tr -d ' \n')"; \
72 echo -ne "$$(echo $$data_size_crc | sed 's/../\\x&/g')" | \
73 dd of=$@ bs=8 count=1 seek=7 conv=notrunc 2>/dev/null; \
74 )
75 dd if=/dev/zero of=$@ bs=4 count=1 seek=1 conv=notrunc 2>/dev/null
76 ( \
77 header_crc="$$(dd if=$@ bs=64 count=1 2>/dev/null | gzip -c | \
78 tail -c 8 | od -An -N4 -tx4 --endian little | tr -d ' \n')"; \
79 echo -ne "$$(echo $$header_crc | sed 's/../\\x&/g')" | \
80 dd of=$@ bs=4 count=1 seek=1 conv=notrunc 2>/dev/null; \
81 )
82 endef
83
84 define Build/ubnt-erx-factory-image
85 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
86 echo '21001:7' > $(1).compat; \
87 $(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
88 \
89 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
90 mkhash md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
91 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
92 \
93 echo "dummy" > $(1).rootfs; \
94 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
95 \
96 mkhash md5 $(1).rootfs > $(1).md5; \
97 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
98 \
99 echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
100 $(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
101 \
102 $(CP) $(1) $(BIN_DIR)/; \
103 else \
104 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
105 fi
106 endef
107
108 define Device/afoundry_ew1200
109 IMAGE_SIZE := 16064k
110 DEVICE_VENDOR := AFOUNDRY
111 DEVICE_MODEL := EW1200
112 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
113 kmod-usb-ledtrig-usbport wpad-basic
114 SUPPORTED_DEVICES += ew1200
115 endef
116 TARGET_DEVICES += afoundry_ew1200
117
118 define Device/alfa-network_quad-e4g
119 IMAGE_SIZE := 16064k
120 DEVICE_VENDOR := ALFA Network
121 DEVICE_MODEL := Quad-E4G
122 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools
123 endef
124 TARGET_DEVICES += alfa-network_quad-e4g
125
126 define Device/asiarf_ap7621-001
127 IMAGE_SIZE := 16000k
128 DEVICE_VENDOR := AsiaRF
129 DEVICE_MODEL := AP7621-001
130 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
131 endef
132 TARGET_DEVICES += asiarf_ap7621-001
133
134 define Device/asiarf_ap7621-nv1
135 IMAGE_SIZE := 16000k
136 DEVICE_VENDOR := AsiaRF
137 DEVICE_MODEL := AP7621-NV1
138 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
139 endef
140 TARGET_DEVICES += asiarf_ap7621-nv1
141
142 define Device/asus_rt-ac57u
143 DEVICE_VENDOR := ASUS
144 DEVICE_MODEL := RT-AC57U
145 IMAGE_SIZE := 16064k
146 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
147 kmod-usb-ledtrig-usbport wpad-basic
148 endef
149 TARGET_DEVICES += asus_rt-ac57u
150
151 define Device/asus_rt-ac65p
152 DEVICE_VENDOR := ASUS
153 DEVICE_MODEL := RT-AC65P
154 IMAGE_SIZE := 51200k
155 UBINIZE_OPTS := -E 5
156 BLOCKSIZE := 128k
157 PAGESIZE := 2048
158 KERNEL_SIZE := 4096k
159 IMAGES += factory.bin
160 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
161 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
162 check-size
163 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
164 endef
165 TARGET_DEVICES += asus_rt-ac65p
166
167 define Device/asus_rt-ac85p
168 DEVICE_VENDOR := ASUS
169 DEVICE_MODEL := RT-AC85P
170 IMAGE_SIZE := 51200k
171 UBINIZE_OPTS := -E 5
172 BLOCKSIZE := 128k
173 PAGESIZE := 2048
174 KERNEL_SIZE := 4096k
175 IMAGES += factory.bin
176 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
177 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
178 check-size
179 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
180 endef
181 TARGET_DEVICES += asus_rt-ac85p
182
183 define Device/buffalo_wsr-1166dhp
184 $(Device/uimage-lzma-loader)
185 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
186 IMAGE_SIZE := 15936k
187 DEVICE_VENDOR := Buffalo
188 DEVICE_MODEL := WSR-1166DHP
189 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
190 SUPPORTED_DEVICES += wsr-1166
191 endef
192 TARGET_DEVICES += buffalo_wsr-1166dhp
193
194 define Device/buffalo_wsr-2533dhpl
195 $(Device/uimage-lzma-loader)
196 IMAGE_SIZE := 7936k
197 DEVICE_VENDOR := Buffalo
198 DEVICE_MODEL := WSR-2533DHPL
199 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
200 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
201 endef
202 TARGET_DEVICES += buffalo_wsr-2533dhpl
203
204 define Device/buffalo_wsr-600dhp
205 IMAGE_SIZE := 16064k
206 DEVICE_VENDOR := Buffalo
207 DEVICE_MODEL := WSR-600DHP
208 DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
209 SUPPORTED_DEVICES += wsr-600
210 endef
211 TARGET_DEVICES += buffalo_wsr-600dhp
212
213 define Device/dlink_dir-860l-b1
214 $(Device/seama)
215 BLOCKSIZE := 64k
216 SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
217 LOADER_TYPE := bin
218 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | relocate-kernel | \
219 lzma -a0 | uImage lzma
220 IMAGE_SIZE := 16064k
221 DEVICE_VENDOR := D-Link
222 DEVICE_MODEL := DIR-860L
223 DEVICE_VARIANT := B1
224 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
225 SUPPORTED_DEVICES += dir-860l-b1
226 endef
227 TARGET_DEVICES += dlink_dir-860l-b1
228
229 define Device/d-team_newifi-d2
230 $(Device/uimage-lzma-loader)
231 IMAGE_SIZE := 32448k
232 DEVICE_VENDOR := Newifi
233 DEVICE_MODEL := D2
234 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
235 kmod-usb-ledtrig-usbport wpad-basic
236 endef
237 TARGET_DEVICES += d-team_newifi-d2
238
239 define Device/d-team_pbr-m1
240 IMAGE_SIZE := 16064k
241 DEVICE_VENDOR := PandoraBox
242 DEVICE_MODEL := PBR-M1
243 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
244 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
245 SUPPORTED_DEVICES += pbr-m1
246 endef
247 TARGET_DEVICES += d-team_pbr-m1
248
249 define Device/edimax_ra21s
250 IMAGE_SIZE := 16064k
251 DEVICE_VENDOR := Edimax
252 DEVICE_MODEL := RA21S
253 DEVICE_ALT0_VENDOR := Edimax
254 DEVICE_ALT0_MODEL := Gemini RA21S
255 IMAGES += factory.bin
256 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
257 elx-header 02020040 8844A2D168B45A2D
258 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
259 endef
260 TARGET_DEVICES += edimax_ra21s
261
262 define Device/edimax_rg21s
263 IMAGE_SIZE := 16064k
264 DEVICE_VENDOR := Edimax
265 DEVICE_MODEL := Gemini AC2600 RG21S
266 IMAGES += factory.bin
267 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
268 elx-header 02020038 8844A2D168B45A2D
269 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
270 endef
271 TARGET_DEVICES += edimax_rg21s
272
273 define Device/elecom_wrc-1167ghbk2-s
274 IMAGE_SIZE := 15488k
275 DEVICE_VENDOR := ELECOM
276 DEVICE_MODEL := WRC-1167GHBK2-S
277 IMAGES += factory.bin
278 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
279 elecom-wrc-factory WRC-1167GHBK2-S 0.00
280 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
281 endef
282 TARGET_DEVICES += elecom_wrc-1167ghbk2-s
283
284 define Device/elecom_wrc-1900gst
285 $(Device/uimage-lzma-loader)
286 IMAGE_SIZE := 11264k
287 DEVICE_VENDOR := ELECOM
288 DEVICE_MODEL := WRC-1900GST
289 IMAGES += factory.bin
290 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
291 elecom-gst-factory WRC-1900GST 0.00
292 endef
293 TARGET_DEVICES += elecom_wrc-1900gst
294
295 define Device/elecom_wrc-2533gst
296 $(Device/uimage-lzma-loader)
297 IMAGE_SIZE := 11264k
298 DEVICE_VENDOR := ELECOM
299 DEVICE_MODEL := WRC-2533GST
300 IMAGES += factory.bin
301 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
302 elecom-gst-factory WRC-2533GST 0.00
303 endef
304 TARGET_DEVICES += elecom_wrc-2533gst
305
306 define Device/firefly_firewrt
307 IMAGE_SIZE := 16064k
308 DEVICE_VENDOR := Firefly
309 DEVICE_MODEL := FireWRT
310 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
311 SUPPORTED_DEVICES += firewrt
312 endef
313 TARGET_DEVICES += firefly_firewrt
314
315 define Device/gehua_ghl-r-001
316 IMAGE_SIZE := 32448k
317 DEVICE_VENDOR := GeHua
318 DEVICE_MODEL := GHL-R-001
319 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
320 kmod-usb-ledtrig-usbport wpad-basic
321 endef
322 TARGET_DEVICES += gehua_ghl-r-001
323
324 define Device/gnubee_gb-pc1
325 DEVICE_VENDOR := GnuBee
326 DEVICE_MODEL := Personal Cloud One
327 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
328 IMAGE_SIZE := 32448k
329 endef
330 TARGET_DEVICES += gnubee_gb-pc1
331
332 define Device/gnubee_gb-pc2
333 DEVICE_VENDOR := GnuBee
334 DEVICE_MODEL := Personal Cloud Two
335 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
336 IMAGE_SIZE := 32448k
337 endef
338 TARGET_DEVICES += gnubee_gb-pc2
339
340 define Device/hiwifi_hc5962
341 BLOCKSIZE := 128k
342 PAGESIZE := 2048
343 KERNEL_SIZE := 4096k
344 UBINIZE_OPTS := -E 5
345 IMAGE_SIZE := 32768k
346 IMAGES += factory.bin
347 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
348 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
349 check-size
350 DEVICE_VENDOR := HiWiFi
351 DEVICE_MODEL := HC5962
352 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
353 endef
354 TARGET_DEVICES += hiwifi_hc5962
355
356 define Device/iodata_wn-ax1167gr
357 $(Device/uimage-lzma-loader)
358 IMAGE_SIZE := 15552k
359 KERNEL_INITRAMFS := $$(KERNEL) | \
360 iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
361 DEVICE_VENDOR := I-O DATA
362 DEVICE_MODEL := WN-AX1167GR
363 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
364 endef
365 TARGET_DEVICES += iodata_wn-ax1167gr
366
367 define Device/iodata_nand
368 DEVICE_VENDOR := I-O DATA
369 BLOCKSIZE := 128k
370 PAGESIZE := 2048
371 UBINIZE_OPTS := -E 5
372 KERNEL_SIZE := 4096k
373 IMAGE_SIZE := 51200k
374 LOADER_TYPE := bin
375 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma | uImage lzma
376 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
377 endef
378
379 define Device/iodata_wn-ax1167gr2
380 $(Device/iodata_nand)
381 UIMAGE_MAGIC := 0x434f4d42
382 DEVICE_MODEL := WN-AX1167GR2
383 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
384 custom-initramfs-uimage 3.10(XBC.1)b10 | iodata-mstc-header
385 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
386 endef
387 TARGET_DEVICES += iodata_wn-ax1167gr2
388
389 define Device/iodata_wn-ax2033gr
390 $(Device/iodata_nand)
391 UIMAGE_MAGIC := 0x434f4d42
392 DEVICE_MODEL := WN-AX2033GR
393 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
394 custom-initramfs-uimage 3.10(VST.1)C10 | iodata-mstc-header
395 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-basic
396 endef
397 TARGET_DEVICES += iodata_wn-ax2033gr
398
399 define Device/iodata_wn-dx1167r
400 $(Device/iodata_nand)
401 UIMAGE_MAGIC := 0x434f4d43
402 DEVICE_MODEL := WN-DX1167R
403 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
404 custom-initramfs-uimage 3.10(XIK.1)b10 | iodata-mstc-header
405 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
406 endef
407 TARGET_DEVICES += iodata_wn-dx1167r
408
409 define Device/iodata_wn-gx300gr
410 $(Device/uimage-lzma-loader)
411 IMAGE_SIZE := 7616k
412 DEVICE_VENDOR := I-O DATA
413 DEVICE_MODEL := WN-GX300GR
414 DEVICE_PACKAGES := kmod-mt7603 wpad-basic
415 endef
416 TARGET_DEVICES += iodata_wn-gx300gr
417
418 define Device/iodata_wnpr2600g
419 $(Device/uimage-lzma-loader)
420 DEVICE_VENDOR := I-O DATA
421 DEVICE_MODEL := WNPR2600G
422 IMAGE_SIZE := 13952k
423 IMAGES += factory.bin
424 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
425 elx-header 0104003a 8844A2D168B45A2D
426 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
427 endef
428 TARGET_DEVICES += iodata_wnpr2600g
429
430 define Device/iptime_a6ns-m
431 IMAGE_SIZE := 16128k
432 UIMAGE_NAME := a6nm
433 DEVICE_VENDOR := ipTIME
434 DEVICE_MODEL := A6ns-M
435 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
436 endef
437 TARGET_DEVICES += iptime_a6ns-m
438
439 define Device/iptime_a8004t
440 IMAGE_SIZE := 16128k
441 UIMAGE_NAME := a8004t
442 DEVICE_VENDOR := ipTIME
443 DEVICE_MODEL := A8004T
444 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 wpad-basic
445 endef
446 TARGET_DEVICES += iptime_a8004t
447
448 define Device/jcg_jhr-ac876m
449 IMAGE_SIZE := 16064k
450 IMAGES += factory.bin
451 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 89.1
452 JCG_MAXSIZE := 16064k
453 DEVICE_VENDOR := JCG
454 DEVICE_MODEL := JHR-AC876M
455 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
456 endef
457 TARGET_DEVICES += jcg_jhr-ac876m
458
459 define Device/lenovo_newifi-d1
460 $(Device/uimage-lzma-loader)
461 IMAGE_SIZE := 32448k
462 DEVICE_VENDOR := Newifi
463 DEVICE_MODEL := D1
464 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
465 kmod-usb-ledtrig-usbport wpad-basic
466 SUPPORTED_DEVICES += newifi-d1
467 endef
468 TARGET_DEVICES += lenovo_newifi-d1
469
470 define Device/linksys_ea7500-v2
471 $(Device/uimage-lzma-loader)
472 BLOCKSIZE := 128k
473 PAGESIZE := 2048
474 KERNEL_SIZE := 4096k
475 IMAGE_SIZE := 36864k
476 DEVICE_VENDOR := Linksys
477 DEVICE_MODEL := EA7500
478 DEVICE_VARIANT := v2
479 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
480 UBINIZE_OPTS := -E 5
481 IMAGES := sysupgrade.bin factory.bin
482 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | check-size
483 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
484 append-ubi | check-size | linksys-image type=EA7500v2
485 endef
486 TARGET_DEVICES += linksys_ea7500-v2
487
488 define Device/linksys_re6500
489 IMAGE_SIZE := 7872k
490 DEVICE_VENDOR := Linksys
491 DEVICE_MODEL := RE6500
492 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
493 SUPPORTED_DEVICES += re6500
494 endef
495 TARGET_DEVICES += linksys_re6500
496
497 define Device/mediatek_ap-mt7621a-v60
498 IMAGE_SIZE := 7872k
499 DEVICE_VENDOR := Mediatek
500 DEVICE_MODEL := AP-MT7621A-V60 EVB
501 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
502 endef
503 TARGET_DEVICES += mediatek_ap-mt7621a-v60
504
505 define Device/mediatek_mt7621-eval-board
506 BLOCKSIZE := 64k
507 IMAGE_SIZE := 15104k
508 DEVICE_VENDOR := MediaTek
509 DEVICE_MODEL := MT7621 EVB
510 SUPPORTED_DEVICES += mt7621
511 endef
512 TARGET_DEVICES += mediatek_mt7621-eval-board
513
514 define Device/MikroTik
515 DEVICE_VENDOR := MikroTik
516 BLOCKSIZE := 64k
517 IMAGE_SIZE := 16128k
518 DEVICE_PACKAGES := kmod-usb3
519 LOADER_TYPE := elf
520 KERNEL := $(KERNEL_DTB) | loader-kernel
521 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
522 pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata | \
523 check-size
524 endef
525
526 define Device/mikrotik_routerboard-750gr3
527 $(Device/MikroTik)
528 DEVICE_MODEL := RouterBOARD 750Gr3
529 DEVICE_PACKAGES += kmod-gpio-beeper
530 SUPPORTED_DEVICES += mikrotik,rb750gr3
531 endef
532 TARGET_DEVICES += mikrotik_routerboard-750gr3
533
534 define Device/mikrotik_routerboard-m11g
535 $(Device/MikroTik)
536 DEVICE_MODEL := RouterBOARD M11G
537 SUPPORTED_DEVICES += mikrotik,rbm11g
538 endef
539 TARGET_DEVICES += mikrotik_routerboard-m11g
540
541 define Device/mikrotik_routerboard-m33g
542 $(Device/MikroTik)
543 DEVICE_MODEL := RouterBOARD M33G
544 SUPPORTED_DEVICES += mikrotik,rbm33g
545 endef
546 TARGET_DEVICES += mikrotik_routerboard-m33g
547
548 define Device/mqmaker_witi
549 IMAGE_SIZE := 16064k
550 DEVICE_VENDOR := MQmaker
551 DEVICE_MODEL := WiTi
552 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
553 kmod-usb-ledtrig-usbport wpad-basic
554 SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
555 endef
556 TARGET_DEVICES += mqmaker_witi
557
558 define Device/mtc_wr1201
559 IMAGE_SIZE := 16000k
560 DEVICE_VENDOR := MTC
561 DEVICE_MODEL := Wireless Router WR1201
562 KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage WR1201_8_128
563 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
564 kmod-usb-ledtrig-usbport wpad-basic
565 endef
566 TARGET_DEVICES += mtc_wr1201
567
568 define Device/netgear_ex6150
569 DEVICE_VENDOR := NETGEAR
570 DEVICE_MODEL := EX6150
571 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
572 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
573 IMAGE_SIZE := 14848k
574 IMAGES += factory.chk
575 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size | netgear-chk
576 endef
577 TARGET_DEVICES += netgear_ex6150
578
579 define Device/netgear_sercomm_nand
580 $(Device/uimage-lzma-loader)
581 BLOCKSIZE := 128k
582 PAGESIZE := 2048
583 KERNEL_SIZE := 4096k
584 UBINIZE_OPTS := -E 5
585 IMAGES += factory.img kernel.bin rootfs.bin
586 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \
587 append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
588 zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
589 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
590 IMAGE/kernel.bin := append-kernel
591 IMAGE/rootfs.bin := append-ubi | check-size
592 DEVICE_VENDOR := NETGEAR
593 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
594 endef
595
596 define Device/netgear_r6220
597 $(Device/netgear_sercomm_nand)
598 DEVICE_MODEL := R6220
599 SERCOMM_HWNAME := R6220
600 SERCOMM_HWID := AYA
601 SERCOMM_HWVER := A001
602 SERCOMM_SWVER := 0x0086
603 IMAGE_SIZE := 28672k
604 DEVICE_PACKAGES += kmod-mt76x2
605 SUPPORTED_DEVICES += r6220
606 endef
607 TARGET_DEVICES += netgear_r6220
608
609
610 define Device/netgear_r6260
611 $(Device/netgear_sercomm_nand)
612 DEVICE_MODEL := R6260
613 SERCOMM_HWNAME := R6260
614 SERCOMM_HWID := CHJ
615 SERCOMM_HWVER := A001
616 SERCOMM_SWVER := 0x0052
617 IMAGE_SIZE := 40960k
618 DEVICE_PACKAGES += kmod-mt7615e
619 endef
620 TARGET_DEVICES += netgear_r6260
621
622 define Device/netgear_r6350
623 $(Device/netgear_sercomm_nand)
624 DEVICE_MODEL := R6350
625 SERCOMM_HWNAME := R6350
626 SERCOMM_HWID := CHJ
627 SERCOMM_HWVER := A001
628 SERCOMM_SWVER := 0x0052
629 IMAGE_SIZE := 40960k
630 DEVICE_PACKAGES += kmod-mt7615e
631 endef
632 TARGET_DEVICES += netgear_r6350
633
634 define Device/netgear_r6700-v2
635 $(Device/netgear_sercomm_nand)
636 DEVICE_MODEL := R6700
637 DEVICE_VARIANT := v2
638 DEVICE_ALT0_VENDOR := NETGEAR
639 DEVICE_ALT0_MODEL := Nighthawk AC2400
640 DEVICE_ALT0_VARIANT := v1
641 DEVICE_ALT1_VENDOR := NETGEAR
642 DEVICE_ALT1_MODEL := R7200
643 DEVICE_ALT1_VARIANT := v1
644 SERCOMM_HWNAME := R6950
645 SERCOMM_HWID := BZV
646 SERCOMM_HWVER := A001
647 SERCOMM_SWVER := 0x1032
648 IMAGE_SIZE := 40960k
649 DEVICE_PACKAGES += kmod-mt7615e
650 endef
651 TARGET_DEVICES += netgear_r6700-v2
652
653 define Device/netgear_r6800
654 $(Device/netgear_sercomm_nand)
655 DEVICE_MODEL := R6800
656 SERCOMM_HWNAME := R6950
657 SERCOMM_HWID := BZV
658 SERCOMM_HWVER := A001
659 SERCOMM_SWVER := 0x0062
660 IMAGE_SIZE := 40960k
661 DEVICE_PACKAGES += kmod-mt7615e
662 endef
663 TARGET_DEVICES += netgear_r6800
664
665 define Device/netgear_r6850
666 $(Device/netgear_sercomm_nand)
667 DEVICE_MODEL := R6850
668 SERCOMM_HWNAME := R6850
669 SERCOMM_HWID := CHJ
670 SERCOMM_HWVER := A001
671 SERCOMM_SWVER := 0x0052
672 IMAGE_SIZE := 40960k
673 DEVICE_PACKAGES += kmod-mt7615e
674 endef
675 TARGET_DEVICES += netgear_r6850
676
677 define Device/netgear_wndr3700-v5
678 $(Device/uimage-lzma-loader)
679 BLOCKSIZE := 64k
680 IMAGE_SIZE := 15232k
681 SERCOMM_HWID := AYB
682 SERCOMM_HWVER := A001
683 SERCOMM_SWVER := 0x1054
684 IMAGES += factory.img
685 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
686 pad-rootfs
687 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size
688 IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | \
689 pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip WNDR3700v5.bin | \
690 sercom-seal
691 DEVICE_VENDOR := NETGEAR
692 DEVICE_MODEL := WNDR3700
693 DEVICE_VARIANT := v5
694 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
695 kmod-usb-ledtrig-usbport wpad-basic
696 SUPPORTED_DEVICES += wndr3700v5
697 endef
698 TARGET_DEVICES += netgear_wndr3700-v5
699
700 define Device/netis_wf2881
701 BLOCKSIZE := 128k
702 PAGESIZE := 2048
703 FILESYSTEMS := squashfs
704 KERNEL_SIZE := 4096k
705 IMAGE_SIZE := 129280k
706 UBINIZE_OPTS := -E 5
707 UIMAGE_NAME := WF2881_0.0.00
708 KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
709 IMAGES += factory.bin
710 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
711 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
712 check-size
713 DEVICE_VENDOR := NETIS
714 DEVICE_MODEL := WF2881
715 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
716 endef
717 TARGET_DEVICES += netis_wf2881
718
719 define Device/phicomm_k2p
720 IMAGE_SIZE := 15744k
721 DEVICE_VENDOR := Phicomm
722 DEVICE_MODEL := K2P
723 DEVICE_ALT0_VENDOR := Phicomm
724 DEVICE_ALT0_MODEL := KE 2P
725 SUPPORTED_DEVICES += k2p
726 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
727 endef
728 TARGET_DEVICES += phicomm_k2p
729
730 define Device/planex_vr500
731 $(Device/uimage-lzma-loader)
732 IMAGE_SIZE := 65216k
733 DEVICE_VENDOR := Planex
734 DEVICE_MODEL := VR500
735 DEVICE_PACKAGES := kmod-usb3
736 SUPPORTED_DEVICES += vr500
737 endef
738 TARGET_DEVICES += planex_vr500
739
740 define Device/samknows_whitebox-v8
741 IMAGE_SIZE := 16064k
742 DEVICE_VENDOR := SamKnows
743 DEVICE_MODEL := Whitebox 8
744 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
745 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
746 SUPPORTED_DEVICES += sk-wb8
747 endef
748 TARGET_DEVICES += samknows_whitebox-v8
749
750 define Device/storylink_sap-g3200u3
751 IMAGE_SIZE := 7872k
752 DEVICE_VENDOR := STORYLiNK
753 DEVICE_MODEL := SAP-G3200U3
754 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
755 SUPPORTED_DEVICES += sap-g3200u3
756 endef
757 TARGET_DEVICES += storylink_sap-g3200u3
758
759 define Device/telco-electronics_x1
760 IMAGE_SIZE := 16064k
761 DEVICE_VENDOR := Telco Electronics
762 DEVICE_MODEL := X1
763 DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
764 endef
765 TARGET_DEVICES += telco-electronics_x1
766
767 define Device/thunder_timecloud
768 $(Device/uimage-lzma-loader)
769 IMAGE_SIZE := 16064k
770 DEVICE_VENDOR := Thunder
771 DEVICE_MODEL := Timecloud
772 DEVICE_PACKAGES := kmod-usb3
773 SUPPORTED_DEVICES += timecloud
774 endef
775 TARGET_DEVICES += thunder_timecloud
776
777 define Device/totolink_a7000r
778 IMAGE_SIZE := 16064k
779 UIMAGE_NAME := C8340R1C-9999
780 DEVICE_VENDOR := TOTOLINK
781 DEVICE_MODEL := A7000R
782 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
783 endef
784 TARGET_DEVICES += totolink_a7000r
785
786 define Device/adslr_g7
787 IMAGE_SIZE := 16064k
788 DEVICE_VENDOR := ADSLR
789 DEVICE_MODEL := G7
790 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
791 endef
792 TARGET_DEVICES += adslr_g7
793
794 define Device/tplink_re350-v1
795 $(Device/tplink-safeloader)
796 DEVICE_MODEL := RE350
797 DEVICE_VARIANT := v1
798 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
799 TPLINK_BOARD_ID := RE350-V1
800 IMAGE_SIZE := 6016k
801 SUPPORTED_DEVICES += re350-v1
802 endef
803 TARGET_DEVICES += tplink_re350-v1
804
805 define Device/tplink_re650-v1
806 $(Device/tplink-safeloader)
807 DEVICE_MODEL := RE650
808 DEVICE_VARIANT := v1
809 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
810 TPLINK_BOARD_ID := RE650-V1
811 IMAGE_SIZE := 14208k
812 endef
813 TARGET_DEVICES += tplink_re650-v1
814
815 define Device/ubnt_edgerouter_common
816 $(Device/uimage-lzma-loader)
817 DEVICE_VENDOR := Ubiquiti
818 IMAGE_SIZE := 256768k
819 FILESYSTEMS := squashfs
820 KERNEL_SIZE := 3145728
821 KERNEL_INITRAMFS := $$(KERNEL) | \
822 ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
823 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
824 endef
825
826 define Device/ubnt_edgerouter-x
827 $(Device/ubnt_edgerouter_common)
828 DEVICE_MODEL := EdgeRouter X
829 SUPPORTED_DEVICES += ubnt-erx ubiquiti,edgerouterx
830 endef
831 TARGET_DEVICES += ubnt_edgerouter-x
832
833 define Device/ubnt_edgerouter-x-sfp
834 $(Device/ubnt_edgerouter_common)
835 DEVICE_MODEL := EdgeRouter X SFP
836 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
837 SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp
838 endef
839 TARGET_DEVICES += ubnt_edgerouter-x-sfp
840
841 define Device/ubnt_unifi-nanohd
842 DEVICE_VENDOR := Ubiquiti
843 DEVICE_MODEL := UniFi nanoHD
844 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e wpad-basic
845 IMAGE_SIZE := 15552k
846 endef
847 TARGET_DEVICES += ubnt_unifi-nanohd
848
849 define Device/unielec_u7621-06-16m
850 IMAGE_SIZE := 16064k
851 DEVICE_VENDOR := UniElec
852 DEVICE_MODEL := U7621-06
853 DEVICE_VARIANT := 16M
854 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
855 SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
856 endef
857 TARGET_DEVICES += unielec_u7621-06-16m
858
859 define Device/unielec_u7621-06-64m
860 IMAGE_SIZE := 65216k
861 DEVICE_VENDOR := UniElec
862 DEVICE_MODEL := U7621-06
863 DEVICE_VARIANT := 64M
864 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
865 SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
866 endef
867 TARGET_DEVICES += unielec_u7621-06-64m
868
869 define Device/wevo_11acnas
870 IMAGE_SIZE := 16064k
871 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
872 DEVICE_VENDOR := WeVO
873 DEVICE_MODEL := 11AC NAS Router
874 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
875 kmod-usb-ledtrig-usbport wpad-basic
876 SUPPORTED_DEVICES += 11acnas
877 endef
878 TARGET_DEVICES += wevo_11acnas
879
880 define Device/wevo_w2914ns-v2
881 IMAGE_SIZE := 16064k
882 UIMAGE_NAME := W2914NS-V2(0.0.0)
883 DEVICE_VENDOR := WeVO
884 DEVICE_MODEL := W2914NS
885 DEVICE_VARIANT := v2
886 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
887 kmod-usb-ledtrig-usbport wpad-basic
888 SUPPORTED_DEVICES += w2914nsv2
889 endef
890 TARGET_DEVICES += wevo_w2914ns-v2
891
892 define Device/xiaomi_mir3g
893 $(Device/uimage-lzma-loader)
894 BLOCKSIZE := 128k
895 PAGESIZE := 2048
896 KERNEL_SIZE := 4096k
897 IMAGE_SIZE := 124416k
898 UBINIZE_OPTS := -E 5
899 IMAGES += kernel1.bin rootfs0.bin
900 IMAGE/kernel1.bin := append-kernel
901 IMAGE/rootfs0.bin := append-ubi | check-size
902 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
903 DEVICE_VENDOR := Xiaomi
904 DEVICE_MODEL := Mi Router 3G
905 SUPPORTED_DEVICES += R3G
906 SUPPORTED_DEVICES += mir3g
907 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
908 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
909 endef
910 TARGET_DEVICES += xiaomi_mir3g
911
912 define Device/xiaomi_mir3g-v2
913 $(Device/uimage-lzma-loader)
914 IMAGE_SIZE := 14848k
915 DEVICE_VENDOR := Xiaomi
916 DEVICE_MODEL := Mi Router 3G
917 DEVICE_VARIANT := v2
918 DEVICE_ALT0_VENDOR := Xiaomi
919 DEVICE_ALT0_MODEL := Mi Router 4A
920 DEVICE_ALT0_VARIANT := Gigabit Edition
921 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
922 endef
923 TARGET_DEVICES += xiaomi_mir3g-v2
924
925 define Device/xiaomi_mir3p
926 $(Device/uimage-lzma-loader)
927 BLOCKSIZE := 128k
928 PAGESIZE := 2048
929 KERNEL_SIZE:= 4096k
930 UBINIZE_OPTS := -E 5
931 IMAGE_SIZE := 255488k
932 DEVICE_VENDOR := Xiaomi
933 DEVICE_MODEL := Mi Router 3 Pro
934 IMAGES += factory.bin
935 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
936 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
937 check-size
938 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \
939 wpad-basic uboot-envtools
940 endef
941 TARGET_DEVICES += xiaomi_mir3p
942
943 define Device/xiaomi_redmi-router-ac2100
944 $(Device/uimage-lzma-loader)
945 BLOCKSIZE := 128k
946 PAGESIZE := 2048
947 KERNEL_SIZE := 4096k
948 IMAGE_SIZE := 124416k
949 UBINIZE_OPTS := -E 5
950 IMAGES += kernel1.bin rootfs0.bin
951 IMAGE/kernel1.bin := append-kernel
952 IMAGE/rootfs0.bin := append-ubi | check-size
953 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
954 DEVICE_VENDOR := Xiaomi
955 DEVICE_MODEL := Redmi Router AC2100
956 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-basic uboot-envtools
957 endef
958 TARGET_DEVICES += xiaomi_redmi-router-ac2100
959
960 define Device/xiaoyu_xy-c5
961 IMAGE_SIZE := 32448k
962 DEVICE_VENDOR := XiaoYu
963 DEVICE_MODEL := XY-C5
964 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3
965 endef
966 TARGET_DEVICES += xiaoyu_xy-c5
967
968 define Device/xzwifi_creativebox-v1
969 IMAGE_SIZE := 32448k
970 DEVICE_VENDOR := CreativeBox
971 DEVICE_MODEL := v1
972 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
973 kmod-usb3
974 endef
975 TARGET_DEVICES += xzwifi_creativebox-v1
976
977 define Device/youhua_wr1200js
978 IMAGE_SIZE := 16064k
979 DEVICE_VENDOR := YouHua
980 DEVICE_MODEL := WR1200JS
981 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
982 kmod-usb-ledtrig-usbport wpad-basic
983 endef
984 TARGET_DEVICES += youhua_wr1200js
985
986 define Device/youku_yk-l2
987 IMAGE_SIZE := 16064k
988 DEVICE_VENDOR := Youku
989 DEVICE_MODEL := YK-L2
990 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
991 kmod-usb-ledtrig-usbport wpad-basic
992 endef
993 TARGET_DEVICES += youku_yk-l2
994
995 define Device/zbtlink_zbt-we1326
996 IMAGE_SIZE := 16064k
997 DEVICE_VENDOR := Zbtlink
998 DEVICE_MODEL := ZBT-WE1326
999 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
1000 wpad-basic
1001 SUPPORTED_DEVICES += zbt-we1326
1002 endef
1003 TARGET_DEVICES += zbtlink_zbt-we1326
1004
1005 define Device/zbtlink_zbt-we3526
1006 IMAGE_SIZE := 16064k
1007 DEVICE_VENDOR := Zbtlink
1008 DEVICE_MODEL := ZBT-WE3526
1009 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1010 kmod-usb-ledtrig-usbport wpad-basic
1011 endef
1012 TARGET_DEVICES += zbtlink_zbt-we3526
1013
1014 define Device/zbtlink_zbt-wg2626
1015 IMAGE_SIZE := 16064k
1016 DEVICE_VENDOR := Zbtlink
1017 DEVICE_MODEL := ZBT-WG2626
1018 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1019 kmod-usb-ledtrig-usbport wpad-basic
1020 SUPPORTED_DEVICES += zbt-wg2626
1021 endef
1022 TARGET_DEVICES += zbtlink_zbt-wg2626
1023
1024 define Device/zbtlink_zbt-wg3526-16m
1025 IMAGE_SIZE := 16064k
1026 DEVICE_VENDOR := Zbtlink
1027 DEVICE_MODEL := ZBT-WG3526
1028 DEVICE_VARIANT := 16M
1029 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1030 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1031 SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
1032 endef
1033 TARGET_DEVICES += zbtlink_zbt-wg3526-16m
1034
1035 define Device/zbtlink_zbt-wg3526-32m
1036 IMAGE_SIZE := 32448k
1037 DEVICE_VENDOR := Zbtlink
1038 DEVICE_MODEL := ZBT-WG3526
1039 DEVICE_VARIANT := 32M
1040 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1041 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1042 SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
1043 endef
1044 TARGET_DEVICES += zbtlink_zbt-wg3526-32m
1045
1046 define Device/zio_freezio
1047 IMAGE_SIZE := 16064k
1048 DEVICE_VENDOR := ZIO
1049 DEVICE_MODEL := FREEZIO
1050 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1051 kmod-usb-ledtrig-usbport wpad-basic
1052 endef
1053 TARGET_DEVICES += zio_freezio