ramips: add support for TP-Link RE500 v1
[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 kmod-mt7615-firmware 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 kmod-mt7615-firmware 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 DEVICE_ALT0_VENDOR := Buffalo
200 DEVICE_ALT0_MODEL := WSR-2533DHP
201 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
202 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
203 endef
204 TARGET_DEVICES += buffalo_wsr-2533dhpl
205
206 define Device/buffalo_wsr-600dhp
207 IMAGE_SIZE := 16064k
208 DEVICE_VENDOR := Buffalo
209 DEVICE_MODEL := WSR-600DHP
210 DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
211 SUPPORTED_DEVICES += wsr-600
212 endef
213 TARGET_DEVICES += buffalo_wsr-600dhp
214
215 define Device/dlink_dir-860l-b1
216 $(Device/seama)
217 BLOCKSIZE := 64k
218 SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
219 LOADER_TYPE := bin
220 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | relocate-kernel | \
221 lzma -a0 | uImage lzma
222 IMAGE_SIZE := 16064k
223 DEVICE_VENDOR := D-Link
224 DEVICE_MODEL := DIR-860L
225 DEVICE_VARIANT := B1
226 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
227 SUPPORTED_DEVICES += dir-860l-b1
228 endef
229 TARGET_DEVICES += dlink_dir-860l-b1
230
231 define Device/d-team_newifi-d2
232 $(Device/uimage-lzma-loader)
233 IMAGE_SIZE := 32448k
234 DEVICE_VENDOR := Newifi
235 DEVICE_MODEL := D2
236 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
237 kmod-usb-ledtrig-usbport wpad-basic
238 endef
239 TARGET_DEVICES += d-team_newifi-d2
240
241 define Device/d-team_pbr-m1
242 IMAGE_SIZE := 16064k
243 DEVICE_VENDOR := PandoraBox
244 DEVICE_MODEL := PBR-M1
245 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
246 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
247 SUPPORTED_DEVICES += pbr-m1
248 endef
249 TARGET_DEVICES += d-team_pbr-m1
250
251 define Device/edimax_ra21s
252 IMAGE_SIZE := 16064k
253 DEVICE_VENDOR := Edimax
254 DEVICE_MODEL := RA21S
255 DEVICE_ALT0_VENDOR := Edimax
256 DEVICE_ALT0_MODEL := Gemini RA21S
257 IMAGES += factory.bin
258 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
259 elx-header 02020040 8844A2D168B45A2D
260 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
261 endef
262 TARGET_DEVICES += edimax_ra21s
263
264 define Device/edimax_rg21s
265 IMAGE_SIZE := 16064k
266 DEVICE_VENDOR := Edimax
267 DEVICE_MODEL := Gemini AC2600 RG21S
268 IMAGES += factory.bin
269 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
270 elx-header 02020038 8844A2D168B45A2D
271 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
272 endef
273 TARGET_DEVICES += edimax_rg21s
274
275 define Device/elecom_wrc-1167ghbk2-s
276 IMAGE_SIZE := 15488k
277 DEVICE_VENDOR := ELECOM
278 DEVICE_MODEL := WRC-1167GHBK2-S
279 IMAGES += factory.bin
280 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
281 elecom-wrc-factory WRC-1167GHBK2-S 0.00
282 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
283 endef
284 TARGET_DEVICES += elecom_wrc-1167ghbk2-s
285
286 define Device/elecom_wrc-1900gst
287 $(Device/uimage-lzma-loader)
288 IMAGE_SIZE := 11264k
289 DEVICE_VENDOR := ELECOM
290 DEVICE_MODEL := WRC-1900GST
291 IMAGES += factory.bin
292 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
293 elecom-gst-factory WRC-1900GST 0.00
294 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
295 endef
296 TARGET_DEVICES += elecom_wrc-1900gst
297
298 define Device/elecom_wrc-2533gst
299 $(Device/uimage-lzma-loader)
300 IMAGE_SIZE := 11264k
301 DEVICE_VENDOR := ELECOM
302 DEVICE_MODEL := WRC-2533GST
303 IMAGES += factory.bin
304 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
305 elecom-gst-factory WRC-2533GST 0.00
306 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
307 endef
308 TARGET_DEVICES += elecom_wrc-2533gst
309
310 define Device/elecom_wrc-2533gst2
311 $(Device/uimage-lzma-loader)
312 IMAGE_SIZE := 24576k
313 DEVICE_VENDOR := ELECOM
314 DEVICE_MODEL := WRC-2533GST2
315 IMAGES += factory.bin
316 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
317 elecom-gst-factory WRC-2533GST2 0.00
318 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
319 endef
320 TARGET_DEVICES += elecom_wrc-2533gst2
321
322 define Device/firefly_firewrt
323 IMAGE_SIZE := 16064k
324 DEVICE_VENDOR := Firefly
325 DEVICE_MODEL := FireWRT
326 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
327 SUPPORTED_DEVICES += firewrt
328 endef
329 TARGET_DEVICES += firefly_firewrt
330
331 define Device/gehua_ghl-r-001
332 IMAGE_SIZE := 32448k
333 DEVICE_VENDOR := GeHua
334 DEVICE_MODEL := GHL-R-001
335 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
336 kmod-usb-ledtrig-usbport wpad-basic
337 endef
338 TARGET_DEVICES += gehua_ghl-r-001
339
340 define Device/gnubee_gb-pc1
341 DEVICE_VENDOR := GnuBee
342 DEVICE_MODEL := Personal Cloud One
343 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
344 IMAGE_SIZE := 32448k
345 endef
346 TARGET_DEVICES += gnubee_gb-pc1
347
348 define Device/gnubee_gb-pc2
349 DEVICE_VENDOR := GnuBee
350 DEVICE_MODEL := Personal Cloud Two
351 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
352 IMAGE_SIZE := 32448k
353 endef
354 TARGET_DEVICES += gnubee_gb-pc2
355
356 define Device/hiwifi_hc5962
357 BLOCKSIZE := 128k
358 PAGESIZE := 2048
359 KERNEL_SIZE := 4096k
360 UBINIZE_OPTS := -E 5
361 IMAGE_SIZE := 32768k
362 IMAGES += factory.bin
363 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
364 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
365 check-size
366 DEVICE_VENDOR := HiWiFi
367 DEVICE_MODEL := HC5962
368 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
369 endef
370 TARGET_DEVICES += hiwifi_hc5962
371
372 define Device/iodata_wn-ax1167gr
373 $(Device/uimage-lzma-loader)
374 IMAGE_SIZE := 15552k
375 KERNEL_INITRAMFS := $$(KERNEL) | \
376 iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
377 DEVICE_VENDOR := I-O DATA
378 DEVICE_MODEL := WN-AX1167GR
379 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
380 endef
381 TARGET_DEVICES += iodata_wn-ax1167gr
382
383 define Device/iodata_nand
384 DEVICE_VENDOR := I-O DATA
385 BLOCKSIZE := 128k
386 PAGESIZE := 2048
387 UBINIZE_OPTS := -E 5
388 KERNEL_SIZE := 4096k
389 IMAGE_SIZE := 51200k
390 LOADER_TYPE := bin
391 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma | uImage lzma
392 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
393 endef
394
395 define Device/iodata_wn-ax1167gr2
396 $(Device/iodata_nand)
397 UIMAGE_MAGIC := 0x434f4d42
398 DEVICE_MODEL := WN-AX1167GR2
399 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
400 custom-initramfs-uimage 3.10(XBC.1)b10 | iodata-mstc-header
401 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
402 endef
403 TARGET_DEVICES += iodata_wn-ax1167gr2
404
405 define Device/iodata_wn-ax2033gr
406 $(Device/iodata_nand)
407 UIMAGE_MAGIC := 0x434f4d42
408 DEVICE_MODEL := WN-AX2033GR
409 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
410 custom-initramfs-uimage 3.10(VST.1)C10 | iodata-mstc-header
411 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
412 endef
413 TARGET_DEVICES += iodata_wn-ax2033gr
414
415 define Device/iodata_wn-dx1167r
416 $(Device/iodata_nand)
417 UIMAGE_MAGIC := 0x434f4d43
418 DEVICE_MODEL := WN-DX1167R
419 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
420 custom-initramfs-uimage 3.10(XIK.1)b10 | iodata-mstc-header
421 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
422 endef
423 TARGET_DEVICES += iodata_wn-dx1167r
424
425 define Device/iodata_wn-gx300gr
426 $(Device/uimage-lzma-loader)
427 IMAGE_SIZE := 7616k
428 DEVICE_VENDOR := I-O DATA
429 DEVICE_MODEL := WN-GX300GR
430 DEVICE_PACKAGES := kmod-mt7603 wpad-basic
431 endef
432 TARGET_DEVICES += iodata_wn-gx300gr
433
434 define Device/iodata_wnpr2600g
435 $(Device/uimage-lzma-loader)
436 DEVICE_VENDOR := I-O DATA
437 DEVICE_MODEL := WNPR2600G
438 IMAGE_SIZE := 13952k
439 IMAGES += factory.bin
440 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
441 elx-header 0104003a 8844A2D168B45A2D
442 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
443 endef
444 TARGET_DEVICES += iodata_wnpr2600g
445
446 define Device/iptime_a6ns-m
447 IMAGE_SIZE := 16128k
448 UIMAGE_NAME := a6nm
449 DEVICE_VENDOR := ipTIME
450 DEVICE_MODEL := A6ns-M
451 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
452 endef
453 TARGET_DEVICES += iptime_a6ns-m
454
455 define Device/iptime_a8004t
456 IMAGE_SIZE := 16128k
457 UIMAGE_NAME := a8004t
458 DEVICE_VENDOR := ipTIME
459 DEVICE_MODEL := A8004T
460 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 wpad-basic
461 endef
462 TARGET_DEVICES += iptime_a8004t
463
464 define Device/jcg_jhr-ac876m
465 IMAGE_SIZE := 16064k
466 IMAGES += factory.bin
467 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 89.1
468 JCG_MAXSIZE := 16064k
469 DEVICE_VENDOR := JCG
470 DEVICE_MODEL := JHR-AC876M
471 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
472 endef
473 TARGET_DEVICES += jcg_jhr-ac876m
474
475 define Device/lenovo_newifi-d1
476 $(Device/uimage-lzma-loader)
477 IMAGE_SIZE := 32448k
478 DEVICE_VENDOR := Newifi
479 DEVICE_MODEL := D1
480 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
481 kmod-usb-ledtrig-usbport wpad-basic
482 SUPPORTED_DEVICES += newifi-d1
483 endef
484 TARGET_DEVICES += lenovo_newifi-d1
485
486 define Device/linksys_ea7500-v2
487 $(Device/uimage-lzma-loader)
488 BLOCKSIZE := 128k
489 PAGESIZE := 2048
490 KERNEL_SIZE := 4096k
491 IMAGE_SIZE := 36864k
492 DEVICE_VENDOR := Linksys
493 DEVICE_MODEL := EA7500
494 DEVICE_VARIANT := v2
495 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
496 UBINIZE_OPTS := -E 5
497 IMAGES := sysupgrade.bin factory.bin
498 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | check-size
499 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
500 append-ubi | check-size | linksys-image type=EA7500v2
501 endef
502 TARGET_DEVICES += linksys_ea7500-v2
503
504 define Device/linksys_re6500
505 IMAGE_SIZE := 7872k
506 DEVICE_VENDOR := Linksys
507 DEVICE_MODEL := RE6500
508 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
509 SUPPORTED_DEVICES += re6500
510 endef
511 TARGET_DEVICES += linksys_re6500
512
513 define Device/mediatek_ap-mt7621a-v60
514 IMAGE_SIZE := 7872k
515 DEVICE_VENDOR := Mediatek
516 DEVICE_MODEL := AP-MT7621A-V60 EVB
517 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
518 endef
519 TARGET_DEVICES += mediatek_ap-mt7621a-v60
520
521 define Device/mediatek_mt7621-eval-board
522 BLOCKSIZE := 64k
523 IMAGE_SIZE := 15104k
524 DEVICE_VENDOR := MediaTek
525 DEVICE_MODEL := MT7621 EVB
526 SUPPORTED_DEVICES += mt7621
527 endef
528 TARGET_DEVICES += mediatek_mt7621-eval-board
529
530 define Device/MikroTik
531 DEVICE_VENDOR := MikroTik
532 BLOCKSIZE := 64k
533 IMAGE_SIZE := 16128k
534 DEVICE_PACKAGES := kmod-usb3
535 LOADER_TYPE := elf
536 KERNEL := $(KERNEL_DTB) | loader-kernel
537 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
538 pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata | \
539 check-size
540 endef
541
542 define Device/mikrotik_routerboard-750gr3
543 $(Device/MikroTik)
544 DEVICE_MODEL := RouterBOARD 750Gr3
545 DEVICE_PACKAGES += kmod-gpio-beeper
546 SUPPORTED_DEVICES += mikrotik,rb750gr3
547 endef
548 TARGET_DEVICES += mikrotik_routerboard-750gr3
549
550 define Device/mikrotik_routerboard-m11g
551 $(Device/MikroTik)
552 DEVICE_MODEL := RouterBOARD M11G
553 SUPPORTED_DEVICES += mikrotik,rbm11g
554 endef
555 TARGET_DEVICES += mikrotik_routerboard-m11g
556
557 define Device/mikrotik_routerboard-m33g
558 $(Device/MikroTik)
559 DEVICE_MODEL := RouterBOARD M33G
560 SUPPORTED_DEVICES += mikrotik,rbm33g
561 endef
562 TARGET_DEVICES += mikrotik_routerboard-m33g
563
564 define Device/mqmaker_witi
565 IMAGE_SIZE := 16064k
566 DEVICE_VENDOR := MQmaker
567 DEVICE_MODEL := WiTi
568 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
569 kmod-usb-ledtrig-usbport wpad-basic
570 SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
571 endef
572 TARGET_DEVICES += mqmaker_witi
573
574 define Device/mtc_wr1201
575 IMAGE_SIZE := 16000k
576 DEVICE_VENDOR := MTC
577 DEVICE_MODEL := Wireless Router WR1201
578 KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage WR1201_8_128
579 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
580 kmod-usb-ledtrig-usbport wpad-basic
581 endef
582 TARGET_DEVICES += mtc_wr1201
583
584 define Device/netgear_ex6150
585 DEVICE_VENDOR := NETGEAR
586 DEVICE_MODEL := EX6150
587 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
588 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
589 IMAGE_SIZE := 14848k
590 IMAGES += factory.chk
591 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size | netgear-chk
592 endef
593 TARGET_DEVICES += netgear_ex6150
594
595 define Device/netgear_sercomm_nand
596 $(Device/uimage-lzma-loader)
597 BLOCKSIZE := 128k
598 PAGESIZE := 2048
599 KERNEL_SIZE := 4096k
600 UBINIZE_OPTS := -E 5
601 IMAGES += factory.img kernel.bin rootfs.bin
602 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \
603 append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
604 zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
605 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
606 IMAGE/kernel.bin := append-kernel
607 IMAGE/rootfs.bin := append-ubi | check-size
608 DEVICE_VENDOR := NETGEAR
609 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
610 endef
611
612 define Device/netgear_r6220
613 $(Device/netgear_sercomm_nand)
614 DEVICE_MODEL := R6220
615 SERCOMM_HWNAME := R6220
616 SERCOMM_HWID := AYA
617 SERCOMM_HWVER := A001
618 SERCOMM_SWVER := 0x0086
619 IMAGE_SIZE := 28672k
620 DEVICE_PACKAGES += kmod-mt76x2
621 SUPPORTED_DEVICES += r6220
622 endef
623 TARGET_DEVICES += netgear_r6220
624
625
626 define Device/netgear_r6260
627 $(Device/netgear_sercomm_nand)
628 DEVICE_MODEL := R6260
629 SERCOMM_HWNAME := R6260
630 SERCOMM_HWID := CHJ
631 SERCOMM_HWVER := A001
632 SERCOMM_SWVER := 0x0052
633 IMAGE_SIZE := 40960k
634 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
635 endef
636 TARGET_DEVICES += netgear_r6260
637
638 define Device/netgear_r6350
639 $(Device/netgear_sercomm_nand)
640 DEVICE_MODEL := R6350
641 SERCOMM_HWNAME := R6350
642 SERCOMM_HWID := CHJ
643 SERCOMM_HWVER := A001
644 SERCOMM_SWVER := 0x0052
645 IMAGE_SIZE := 40960k
646 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
647 endef
648 TARGET_DEVICES += netgear_r6350
649
650 define Device/netgear_r6700-v2
651 $(Device/netgear_sercomm_nand)
652 DEVICE_MODEL := R6700
653 DEVICE_VARIANT := v2
654 DEVICE_ALT0_VENDOR := NETGEAR
655 DEVICE_ALT0_MODEL := Nighthawk AC2400
656 DEVICE_ALT0_VARIANT := v1
657 DEVICE_ALT1_VENDOR := NETGEAR
658 DEVICE_ALT1_MODEL := R7200
659 DEVICE_ALT1_VARIANT := v1
660 SERCOMM_HWNAME := R6950
661 SERCOMM_HWID := BZV
662 SERCOMM_HWVER := A001
663 SERCOMM_SWVER := 0x1032
664 IMAGE_SIZE := 40960k
665 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
666 endef
667 TARGET_DEVICES += netgear_r6700-v2
668
669 define Device/netgear_r6800
670 $(Device/netgear_sercomm_nand)
671 DEVICE_MODEL := R6800
672 SERCOMM_HWNAME := R6950
673 SERCOMM_HWID := BZV
674 SERCOMM_HWVER := A001
675 SERCOMM_SWVER := 0x0062
676 IMAGE_SIZE := 40960k
677 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
678 endef
679 TARGET_DEVICES += netgear_r6800
680
681 define Device/netgear_r6850
682 $(Device/netgear_sercomm_nand)
683 DEVICE_MODEL := R6850
684 SERCOMM_HWNAME := R6850
685 SERCOMM_HWID := CHJ
686 SERCOMM_HWVER := A001
687 SERCOMM_SWVER := 0x0052
688 IMAGE_SIZE := 40960k
689 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
690 endef
691 TARGET_DEVICES += netgear_r6850
692
693 define Device/netgear_wac104
694 $(Device/netgear_sercomm_nand)
695 DEVICE_MODEL := WAC104
696 SERCOMM_HWNAME := WAC104
697 SERCOMM_HWID := CAY
698 SERCOMM_HWVER := A001
699 SERCOMM_SWVER := 0x0006
700 IMAGE_SIZE := 28672k
701 DEVICE_PACKAGES += kmod-mt76x2
702 endef
703 TARGET_DEVICES += netgear_wac104
704
705 define Device/netgear_wac124
706 $(Device/netgear_sercomm_nand)
707 DEVICE_MODEL := WAC124
708 SERCOMM_HWNAME := WAC124
709 SERCOMM_HWID := CTL
710 SERCOMM_HWVER := A003
711 SERCOMM_SWVER := 0x0402
712 IMAGE_SIZE := 40960k
713 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
714 endef
715 TARGET_DEVICES += netgear_wac124
716
717 define Device/netgear_wndr3700-v5
718 $(Device/uimage-lzma-loader)
719 BLOCKSIZE := 64k
720 IMAGE_SIZE := 15232k
721 SERCOMM_HWID := AYB
722 SERCOMM_HWVER := A001
723 SERCOMM_SWVER := 0x1054
724 IMAGES += factory.img
725 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
726 pad-rootfs
727 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size
728 IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | \
729 pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip WNDR3700v5.bin | \
730 sercom-seal
731 DEVICE_VENDOR := NETGEAR
732 DEVICE_MODEL := WNDR3700
733 DEVICE_VARIANT := v5
734 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
735 kmod-usb-ledtrig-usbport wpad-basic
736 SUPPORTED_DEVICES += wndr3700v5
737 endef
738 TARGET_DEVICES += netgear_wndr3700-v5
739
740 define Device/netis_wf2881
741 BLOCKSIZE := 128k
742 PAGESIZE := 2048
743 FILESYSTEMS := squashfs
744 KERNEL_SIZE := 4096k
745 IMAGE_SIZE := 129280k
746 UBINIZE_OPTS := -E 5
747 UIMAGE_NAME := WF2881_0.0.00
748 KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
749 IMAGES += factory.bin
750 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
751 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
752 check-size
753 DEVICE_VENDOR := NETIS
754 DEVICE_MODEL := WF2881
755 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
756 endef
757 TARGET_DEVICES += netis_wf2881
758
759 define Device/phicomm_k2p
760 IMAGE_SIZE := 15744k
761 DEVICE_VENDOR := Phicomm
762 DEVICE_MODEL := K2P
763 DEVICE_ALT0_VENDOR := Phicomm
764 DEVICE_ALT0_MODEL := KE 2P
765 SUPPORTED_DEVICES += k2p
766 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
767 endef
768 TARGET_DEVICES += phicomm_k2p
769
770 define Device/planex_vr500
771 $(Device/uimage-lzma-loader)
772 IMAGE_SIZE := 65216k
773 DEVICE_VENDOR := Planex
774 DEVICE_MODEL := VR500
775 DEVICE_PACKAGES := kmod-usb3
776 SUPPORTED_DEVICES += vr500
777 endef
778 TARGET_DEVICES += planex_vr500
779
780 define Device/samknows_whitebox-v8
781 IMAGE_SIZE := 16064k
782 DEVICE_VENDOR := SamKnows
783 DEVICE_MODEL := Whitebox 8
784 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
785 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
786 SUPPORTED_DEVICES += sk-wb8
787 endef
788 TARGET_DEVICES += samknows_whitebox-v8
789
790 define Device/storylink_sap-g3200u3
791 IMAGE_SIZE := 7872k
792 DEVICE_VENDOR := STORYLiNK
793 DEVICE_MODEL := SAP-G3200U3
794 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
795 SUPPORTED_DEVICES += sap-g3200u3
796 endef
797 TARGET_DEVICES += storylink_sap-g3200u3
798
799 define Device/telco-electronics_x1
800 IMAGE_SIZE := 16064k
801 DEVICE_VENDOR := Telco Electronics
802 DEVICE_MODEL := X1
803 DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
804 endef
805 TARGET_DEVICES += telco-electronics_x1
806
807 define Device/thunder_timecloud
808 $(Device/uimage-lzma-loader)
809 IMAGE_SIZE := 16064k
810 DEVICE_VENDOR := Thunder
811 DEVICE_MODEL := Timecloud
812 DEVICE_PACKAGES := kmod-usb3
813 SUPPORTED_DEVICES += timecloud
814 endef
815 TARGET_DEVICES += thunder_timecloud
816
817 define Device/totolink_a7000r
818 IMAGE_SIZE := 16064k
819 UIMAGE_NAME := C8340R1C-9999
820 DEVICE_VENDOR := TOTOLINK
821 DEVICE_MODEL := A7000R
822 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
823 endef
824 TARGET_DEVICES += totolink_a7000r
825
826 define Device/adslr_g7
827 IMAGE_SIZE := 16064k
828 DEVICE_VENDOR := ADSLR
829 DEVICE_MODEL := G7
830 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
831 endef
832 TARGET_DEVICES += adslr_g7
833
834 define Device/tplink_re350-v1
835 $(Device/tplink-safeloader)
836 DEVICE_MODEL := RE350
837 DEVICE_VARIANT := v1
838 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
839 TPLINK_BOARD_ID := RE350-V1
840 IMAGE_SIZE := 6016k
841 SUPPORTED_DEVICES += re350-v1
842 endef
843 TARGET_DEVICES += tplink_re350-v1
844
845 define Device/tplink_re500-v1
846 $(Device/tplink-safeloader)
847 DEVICE_MODEL := RE500
848 DEVICE_VARIANT := v1
849 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
850 TPLINK_BOARD_ID := RE500-V1
851 IMAGE_SIZE := 14208k
852 endef
853 TARGET_DEVICES += tplink_re500-v1
854
855 define Device/tplink_re650-v1
856 $(Device/tplink-safeloader)
857 DEVICE_MODEL := RE650
858 DEVICE_VARIANT := v1
859 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
860 TPLINK_BOARD_ID := RE650-V1
861 IMAGE_SIZE := 14208k
862 endef
863 TARGET_DEVICES += tplink_re650-v1
864
865 define Device/ubnt_edgerouter_common
866 $(Device/uimage-lzma-loader)
867 DEVICE_VENDOR := Ubiquiti
868 IMAGE_SIZE := 256768k
869 FILESYSTEMS := squashfs
870 KERNEL_SIZE := 3145728
871 KERNEL_INITRAMFS := $$(KERNEL) | \
872 ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
873 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
874 endef
875
876 define Device/ubnt_edgerouter-x
877 $(Device/ubnt_edgerouter_common)
878 DEVICE_MODEL := EdgeRouter X
879 SUPPORTED_DEVICES += ubnt-erx ubiquiti,edgerouterx
880 endef
881 TARGET_DEVICES += ubnt_edgerouter-x
882
883 define Device/ubnt_edgerouter-x-sfp
884 $(Device/ubnt_edgerouter_common)
885 DEVICE_MODEL := EdgeRouter X SFP
886 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
887 SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp
888 endef
889 TARGET_DEVICES += ubnt_edgerouter-x-sfp
890
891 define Device/ubnt_unifi-nanohd
892 DEVICE_VENDOR := Ubiquiti
893 DEVICE_MODEL := UniFi nanoHD
894 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
895 IMAGE_SIZE := 15552k
896 endef
897 TARGET_DEVICES += ubnt_unifi-nanohd
898
899 define Device/unielec_u7621-06-16m
900 IMAGE_SIZE := 16064k
901 DEVICE_VENDOR := UniElec
902 DEVICE_MODEL := U7621-06
903 DEVICE_VARIANT := 16M
904 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
905 SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
906 endef
907 TARGET_DEVICES += unielec_u7621-06-16m
908
909 define Device/unielec_u7621-06-64m
910 IMAGE_SIZE := 65216k
911 DEVICE_VENDOR := UniElec
912 DEVICE_MODEL := U7621-06
913 DEVICE_VARIANT := 64M
914 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
915 SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
916 endef
917 TARGET_DEVICES += unielec_u7621-06-64m
918
919 define Device/wevo_11acnas
920 IMAGE_SIZE := 16064k
921 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
922 DEVICE_VENDOR := WeVO
923 DEVICE_MODEL := 11AC NAS Router
924 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
925 kmod-usb-ledtrig-usbport wpad-basic
926 SUPPORTED_DEVICES += 11acnas
927 endef
928 TARGET_DEVICES += wevo_11acnas
929
930 define Device/wevo_w2914ns-v2
931 IMAGE_SIZE := 16064k
932 UIMAGE_NAME := W2914NS-V2(0.0.0)
933 DEVICE_VENDOR := WeVO
934 DEVICE_MODEL := W2914NS
935 DEVICE_VARIANT := v2
936 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
937 kmod-usb-ledtrig-usbport wpad-basic
938 SUPPORTED_DEVICES += w2914nsv2
939 endef
940 TARGET_DEVICES += wevo_w2914ns-v2
941
942 define Device/xiaomi_mir3g
943 $(Device/uimage-lzma-loader)
944 BLOCKSIZE := 128k
945 PAGESIZE := 2048
946 KERNEL_SIZE := 4096k
947 IMAGE_SIZE := 124416k
948 UBINIZE_OPTS := -E 5
949 IMAGES += kernel1.bin rootfs0.bin
950 IMAGE/kernel1.bin := append-kernel
951 IMAGE/rootfs0.bin := append-ubi | check-size
952 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
953 DEVICE_VENDOR := Xiaomi
954 DEVICE_MODEL := Mi Router 3G
955 SUPPORTED_DEVICES += R3G
956 SUPPORTED_DEVICES += mir3g
957 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
958 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
959 endef
960 TARGET_DEVICES += xiaomi_mir3g
961
962 define Device/xiaomi_mir3g-v2
963 $(Device/uimage-lzma-loader)
964 IMAGE_SIZE := 14848k
965 DEVICE_VENDOR := Xiaomi
966 DEVICE_MODEL := Mi Router 3G
967 DEVICE_VARIANT := v2
968 DEVICE_ALT0_VENDOR := Xiaomi
969 DEVICE_ALT0_MODEL := Mi Router 4A
970 DEVICE_ALT0_VARIANT := Gigabit Edition
971 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
972 endef
973 TARGET_DEVICES += xiaomi_mir3g-v2
974
975 define Device/xiaomi_mir3p
976 $(Device/uimage-lzma-loader)
977 BLOCKSIZE := 128k
978 PAGESIZE := 2048
979 KERNEL_SIZE:= 4096k
980 UBINIZE_OPTS := -E 5
981 IMAGE_SIZE := 255488k
982 DEVICE_VENDOR := Xiaomi
983 DEVICE_MODEL := Mi Router 3 Pro
984 IMAGES += factory.bin
985 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
986 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
987 check-size
988 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport \
989 wpad-basic uboot-envtools
990 endef
991 TARGET_DEVICES += xiaomi_mir3p
992
993 define Device/xiaomi_redmi-router-ac2100
994 $(Device/uimage-lzma-loader)
995 BLOCKSIZE := 128k
996 PAGESIZE := 2048
997 KERNEL_SIZE := 4096k
998 IMAGE_SIZE := 124416k
999 UBINIZE_OPTS := -E 5
1000 IMAGES += kernel1.bin rootfs0.bin
1001 IMAGE/kernel1.bin := append-kernel
1002 IMAGE/rootfs0.bin := append-ubi | check-size
1003 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1004 DEVICE_VENDOR := Xiaomi
1005 DEVICE_MODEL := Redmi Router AC2100
1006 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
1007 endef
1008 TARGET_DEVICES += xiaomi_redmi-router-ac2100
1009
1010 define Device/xiaoyu_xy-c5
1011 IMAGE_SIZE := 32448k
1012 DEVICE_VENDOR := XiaoYu
1013 DEVICE_MODEL := XY-C5
1014 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3
1015 endef
1016 TARGET_DEVICES += xiaoyu_xy-c5
1017
1018 define Device/xzwifi_creativebox-v1
1019 IMAGE_SIZE := 32448k
1020 DEVICE_VENDOR := CreativeBox
1021 DEVICE_MODEL := v1
1022 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
1023 kmod-usb3
1024 endef
1025 TARGET_DEVICES += xzwifi_creativebox-v1
1026
1027 define Device/youhua_wr1200js
1028 IMAGE_SIZE := 16064k
1029 DEVICE_VENDOR := YouHua
1030 DEVICE_MODEL := WR1200JS
1031 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1032 kmod-usb-ledtrig-usbport wpad-basic
1033 endef
1034 TARGET_DEVICES += youhua_wr1200js
1035
1036 define Device/youku_yk-l2
1037 IMAGE_SIZE := 16064k
1038 DEVICE_VENDOR := Youku
1039 DEVICE_MODEL := YK-L2
1040 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1041 kmod-usb-ledtrig-usbport wpad-basic
1042 endef
1043 TARGET_DEVICES += youku_yk-l2
1044
1045 define Device/zbtlink_zbt-we1326
1046 IMAGE_SIZE := 16064k
1047 DEVICE_VENDOR := Zbtlink
1048 DEVICE_MODEL := ZBT-WE1326
1049 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
1050 wpad-basic
1051 SUPPORTED_DEVICES += zbt-we1326
1052 endef
1053 TARGET_DEVICES += zbtlink_zbt-we1326
1054
1055 define Device/zbtlink_zbt-we3526
1056 IMAGE_SIZE := 16064k
1057 DEVICE_VENDOR := Zbtlink
1058 DEVICE_MODEL := ZBT-WE3526
1059 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1060 kmod-usb-ledtrig-usbport wpad-basic
1061 endef
1062 TARGET_DEVICES += zbtlink_zbt-we3526
1063
1064 define Device/zbtlink_zbt-wg2626
1065 IMAGE_SIZE := 16064k
1066 DEVICE_VENDOR := Zbtlink
1067 DEVICE_MODEL := ZBT-WG2626
1068 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1069 kmod-usb-ledtrig-usbport wpad-basic
1070 SUPPORTED_DEVICES += zbt-wg2626
1071 endef
1072 TARGET_DEVICES += zbtlink_zbt-wg2626
1073
1074 define Device/zbtlink_zbt-wg3526-16m
1075 IMAGE_SIZE := 16064k
1076 DEVICE_VENDOR := Zbtlink
1077 DEVICE_MODEL := ZBT-WG3526
1078 DEVICE_VARIANT := 16M
1079 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1080 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1081 SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
1082 endef
1083 TARGET_DEVICES += zbtlink_zbt-wg3526-16m
1084
1085 define Device/zbtlink_zbt-wg3526-32m
1086 IMAGE_SIZE := 32448k
1087 DEVICE_VENDOR := Zbtlink
1088 DEVICE_MODEL := ZBT-WG3526
1089 DEVICE_VARIANT := 32M
1090 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1091 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1092 SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
1093 endef
1094 TARGET_DEVICES += zbtlink_zbt-wg3526-32m
1095
1096 define Device/zio_freezio
1097 IMAGE_SIZE := 16064k
1098 DEVICE_VENDOR := ZIO
1099 DEVICE_MODEL := FREEZIO
1100 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1101 kmod-usb-ledtrig-usbport wpad-basic
1102 endef
1103 TARGET_DEVICES += zio_freezio