ramips: add support for ELECOM WRC-2533GST2
[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_wndr3700-v5
706 $(Device/uimage-lzma-loader)
707 BLOCKSIZE := 64k
708 IMAGE_SIZE := 15232k
709 SERCOMM_HWID := AYB
710 SERCOMM_HWVER := A001
711 SERCOMM_SWVER := 0x1054
712 IMAGES += factory.img
713 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
714 pad-rootfs
715 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size
716 IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | \
717 pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip WNDR3700v5.bin | \
718 sercom-seal
719 DEVICE_VENDOR := NETGEAR
720 DEVICE_MODEL := WNDR3700
721 DEVICE_VARIANT := v5
722 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
723 kmod-usb-ledtrig-usbport wpad-basic
724 SUPPORTED_DEVICES += wndr3700v5
725 endef
726 TARGET_DEVICES += netgear_wndr3700-v5
727
728 define Device/netis_wf2881
729 BLOCKSIZE := 128k
730 PAGESIZE := 2048
731 FILESYSTEMS := squashfs
732 KERNEL_SIZE := 4096k
733 IMAGE_SIZE := 129280k
734 UBINIZE_OPTS := -E 5
735 UIMAGE_NAME := WF2881_0.0.00
736 KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
737 IMAGES += factory.bin
738 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
739 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
740 check-size
741 DEVICE_VENDOR := NETIS
742 DEVICE_MODEL := WF2881
743 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
744 endef
745 TARGET_DEVICES += netis_wf2881
746
747 define Device/phicomm_k2p
748 IMAGE_SIZE := 15744k
749 DEVICE_VENDOR := Phicomm
750 DEVICE_MODEL := K2P
751 DEVICE_ALT0_VENDOR := Phicomm
752 DEVICE_ALT0_MODEL := KE 2P
753 SUPPORTED_DEVICES += k2p
754 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
755 endef
756 TARGET_DEVICES += phicomm_k2p
757
758 define Device/planex_vr500
759 $(Device/uimage-lzma-loader)
760 IMAGE_SIZE := 65216k
761 DEVICE_VENDOR := Planex
762 DEVICE_MODEL := VR500
763 DEVICE_PACKAGES := kmod-usb3
764 SUPPORTED_DEVICES += vr500
765 endef
766 TARGET_DEVICES += planex_vr500
767
768 define Device/samknows_whitebox-v8
769 IMAGE_SIZE := 16064k
770 DEVICE_VENDOR := SamKnows
771 DEVICE_MODEL := Whitebox 8
772 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
773 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
774 SUPPORTED_DEVICES += sk-wb8
775 endef
776 TARGET_DEVICES += samknows_whitebox-v8
777
778 define Device/storylink_sap-g3200u3
779 IMAGE_SIZE := 7872k
780 DEVICE_VENDOR := STORYLiNK
781 DEVICE_MODEL := SAP-G3200U3
782 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
783 SUPPORTED_DEVICES += sap-g3200u3
784 endef
785 TARGET_DEVICES += storylink_sap-g3200u3
786
787 define Device/telco-electronics_x1
788 IMAGE_SIZE := 16064k
789 DEVICE_VENDOR := Telco Electronics
790 DEVICE_MODEL := X1
791 DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
792 endef
793 TARGET_DEVICES += telco-electronics_x1
794
795 define Device/thunder_timecloud
796 $(Device/uimage-lzma-loader)
797 IMAGE_SIZE := 16064k
798 DEVICE_VENDOR := Thunder
799 DEVICE_MODEL := Timecloud
800 DEVICE_PACKAGES := kmod-usb3
801 SUPPORTED_DEVICES += timecloud
802 endef
803 TARGET_DEVICES += thunder_timecloud
804
805 define Device/totolink_a7000r
806 IMAGE_SIZE := 16064k
807 UIMAGE_NAME := C8340R1C-9999
808 DEVICE_VENDOR := TOTOLINK
809 DEVICE_MODEL := A7000R
810 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
811 endef
812 TARGET_DEVICES += totolink_a7000r
813
814 define Device/adslr_g7
815 IMAGE_SIZE := 16064k
816 DEVICE_VENDOR := ADSLR
817 DEVICE_MODEL := G7
818 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
819 endef
820 TARGET_DEVICES += adslr_g7
821
822 define Device/tplink_re350-v1
823 $(Device/tplink-safeloader)
824 DEVICE_MODEL := RE350
825 DEVICE_VARIANT := v1
826 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
827 TPLINK_BOARD_ID := RE350-V1
828 IMAGE_SIZE := 6016k
829 SUPPORTED_DEVICES += re350-v1
830 endef
831 TARGET_DEVICES += tplink_re350-v1
832
833 define Device/tplink_re650-v1
834 $(Device/tplink-safeloader)
835 DEVICE_MODEL := RE650
836 DEVICE_VARIANT := v1
837 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
838 TPLINK_BOARD_ID := RE650-V1
839 IMAGE_SIZE := 14208k
840 endef
841 TARGET_DEVICES += tplink_re650-v1
842
843 define Device/ubnt_edgerouter_common
844 $(Device/uimage-lzma-loader)
845 DEVICE_VENDOR := Ubiquiti
846 IMAGE_SIZE := 256768k
847 FILESYSTEMS := squashfs
848 KERNEL_SIZE := 3145728
849 KERNEL_INITRAMFS := $$(KERNEL) | \
850 ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
851 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
852 endef
853
854 define Device/ubnt_edgerouter-x
855 $(Device/ubnt_edgerouter_common)
856 DEVICE_MODEL := EdgeRouter X
857 SUPPORTED_DEVICES += ubnt-erx ubiquiti,edgerouterx
858 endef
859 TARGET_DEVICES += ubnt_edgerouter-x
860
861 define Device/ubnt_edgerouter-x-sfp
862 $(Device/ubnt_edgerouter_common)
863 DEVICE_MODEL := EdgeRouter X SFP
864 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
865 SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp
866 endef
867 TARGET_DEVICES += ubnt_edgerouter-x-sfp
868
869 define Device/ubnt_unifi-nanohd
870 DEVICE_VENDOR := Ubiquiti
871 DEVICE_MODEL := UniFi nanoHD
872 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
873 IMAGE_SIZE := 15552k
874 endef
875 TARGET_DEVICES += ubnt_unifi-nanohd
876
877 define Device/unielec_u7621-06-16m
878 IMAGE_SIZE := 16064k
879 DEVICE_VENDOR := UniElec
880 DEVICE_MODEL := U7621-06
881 DEVICE_VARIANT := 16M
882 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
883 SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
884 endef
885 TARGET_DEVICES += unielec_u7621-06-16m
886
887 define Device/unielec_u7621-06-64m
888 IMAGE_SIZE := 65216k
889 DEVICE_VENDOR := UniElec
890 DEVICE_MODEL := U7621-06
891 DEVICE_VARIANT := 64M
892 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
893 SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
894 endef
895 TARGET_DEVICES += unielec_u7621-06-64m
896
897 define Device/wevo_11acnas
898 IMAGE_SIZE := 16064k
899 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
900 DEVICE_VENDOR := WeVO
901 DEVICE_MODEL := 11AC NAS Router
902 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
903 kmod-usb-ledtrig-usbport wpad-basic
904 SUPPORTED_DEVICES += 11acnas
905 endef
906 TARGET_DEVICES += wevo_11acnas
907
908 define Device/wevo_w2914ns-v2
909 IMAGE_SIZE := 16064k
910 UIMAGE_NAME := W2914NS-V2(0.0.0)
911 DEVICE_VENDOR := WeVO
912 DEVICE_MODEL := W2914NS
913 DEVICE_VARIANT := v2
914 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
915 kmod-usb-ledtrig-usbport wpad-basic
916 SUPPORTED_DEVICES += w2914nsv2
917 endef
918 TARGET_DEVICES += wevo_w2914ns-v2
919
920 define Device/xiaomi_mir3g
921 $(Device/uimage-lzma-loader)
922 BLOCKSIZE := 128k
923 PAGESIZE := 2048
924 KERNEL_SIZE := 4096k
925 IMAGE_SIZE := 124416k
926 UBINIZE_OPTS := -E 5
927 IMAGES += kernel1.bin rootfs0.bin
928 IMAGE/kernel1.bin := append-kernel
929 IMAGE/rootfs0.bin := append-ubi | check-size
930 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
931 DEVICE_VENDOR := Xiaomi
932 DEVICE_MODEL := Mi Router 3G
933 SUPPORTED_DEVICES += R3G
934 SUPPORTED_DEVICES += mir3g
935 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
936 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
937 endef
938 TARGET_DEVICES += xiaomi_mir3g
939
940 define Device/xiaomi_mir3g-v2
941 $(Device/uimage-lzma-loader)
942 IMAGE_SIZE := 14848k
943 DEVICE_VENDOR := Xiaomi
944 DEVICE_MODEL := Mi Router 3G
945 DEVICE_VARIANT := v2
946 DEVICE_ALT0_VENDOR := Xiaomi
947 DEVICE_ALT0_MODEL := Mi Router 4A
948 DEVICE_ALT0_VARIANT := Gigabit Edition
949 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
950 endef
951 TARGET_DEVICES += xiaomi_mir3g-v2
952
953 define Device/xiaomi_mir3p
954 $(Device/uimage-lzma-loader)
955 BLOCKSIZE := 128k
956 PAGESIZE := 2048
957 KERNEL_SIZE:= 4096k
958 UBINIZE_OPTS := -E 5
959 IMAGE_SIZE := 255488k
960 DEVICE_VENDOR := Xiaomi
961 DEVICE_MODEL := Mi Router 3 Pro
962 IMAGES += factory.bin
963 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
964 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
965 check-size
966 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport \
967 wpad-basic uboot-envtools
968 endef
969 TARGET_DEVICES += xiaomi_mir3p
970
971 define Device/xiaomi_redmi-router-ac2100
972 $(Device/uimage-lzma-loader)
973 BLOCKSIZE := 128k
974 PAGESIZE := 2048
975 KERNEL_SIZE := 4096k
976 IMAGE_SIZE := 124416k
977 UBINIZE_OPTS := -E 5
978 IMAGES += kernel1.bin rootfs0.bin
979 IMAGE/kernel1.bin := append-kernel
980 IMAGE/rootfs0.bin := append-ubi | check-size
981 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
982 DEVICE_VENDOR := Xiaomi
983 DEVICE_MODEL := Redmi Router AC2100
984 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
985 endef
986 TARGET_DEVICES += xiaomi_redmi-router-ac2100
987
988 define Device/xiaoyu_xy-c5
989 IMAGE_SIZE := 32448k
990 DEVICE_VENDOR := XiaoYu
991 DEVICE_MODEL := XY-C5
992 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3
993 endef
994 TARGET_DEVICES += xiaoyu_xy-c5
995
996 define Device/xzwifi_creativebox-v1
997 IMAGE_SIZE := 32448k
998 DEVICE_VENDOR := CreativeBox
999 DEVICE_MODEL := v1
1000 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
1001 kmod-usb3
1002 endef
1003 TARGET_DEVICES += xzwifi_creativebox-v1
1004
1005 define Device/youhua_wr1200js
1006 IMAGE_SIZE := 16064k
1007 DEVICE_VENDOR := YouHua
1008 DEVICE_MODEL := WR1200JS
1009 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1010 kmod-usb-ledtrig-usbport wpad-basic
1011 endef
1012 TARGET_DEVICES += youhua_wr1200js
1013
1014 define Device/youku_yk-l2
1015 IMAGE_SIZE := 16064k
1016 DEVICE_VENDOR := Youku
1017 DEVICE_MODEL := YK-L2
1018 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1019 kmod-usb-ledtrig-usbport wpad-basic
1020 endef
1021 TARGET_DEVICES += youku_yk-l2
1022
1023 define Device/zbtlink_zbt-we1326
1024 IMAGE_SIZE := 16064k
1025 DEVICE_VENDOR := Zbtlink
1026 DEVICE_MODEL := ZBT-WE1326
1027 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
1028 wpad-basic
1029 SUPPORTED_DEVICES += zbt-we1326
1030 endef
1031 TARGET_DEVICES += zbtlink_zbt-we1326
1032
1033 define Device/zbtlink_zbt-we3526
1034 IMAGE_SIZE := 16064k
1035 DEVICE_VENDOR := Zbtlink
1036 DEVICE_MODEL := ZBT-WE3526
1037 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1038 kmod-usb-ledtrig-usbport wpad-basic
1039 endef
1040 TARGET_DEVICES += zbtlink_zbt-we3526
1041
1042 define Device/zbtlink_zbt-wg2626
1043 IMAGE_SIZE := 16064k
1044 DEVICE_VENDOR := Zbtlink
1045 DEVICE_MODEL := ZBT-WG2626
1046 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1047 kmod-usb-ledtrig-usbport wpad-basic
1048 SUPPORTED_DEVICES += zbt-wg2626
1049 endef
1050 TARGET_DEVICES += zbtlink_zbt-wg2626
1051
1052 define Device/zbtlink_zbt-wg3526-16m
1053 IMAGE_SIZE := 16064k
1054 DEVICE_VENDOR := Zbtlink
1055 DEVICE_MODEL := ZBT-WG3526
1056 DEVICE_VARIANT := 16M
1057 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1058 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1059 SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
1060 endef
1061 TARGET_DEVICES += zbtlink_zbt-wg3526-16m
1062
1063 define Device/zbtlink_zbt-wg3526-32m
1064 IMAGE_SIZE := 32448k
1065 DEVICE_VENDOR := Zbtlink
1066 DEVICE_MODEL := ZBT-WG3526
1067 DEVICE_VARIANT := 32M
1068 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1069 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1070 SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
1071 endef
1072 TARGET_DEVICES += zbtlink_zbt-wg3526-32m
1073
1074 define Device/zio_freezio
1075 IMAGE_SIZE := 16064k
1076 DEVICE_VENDOR := ZIO
1077 DEVICE_MODEL := FREEZIO
1078 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1079 kmod-usb-ledtrig-usbport wpad-basic
1080 endef
1081 TARGET_DEVICES += zio_freezio