kernel: add module to support SFP cages
[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 | \
71 gzip -c | 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 | \
78 gzip -c | 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/netis-tail
85 echo -n $(1) >> $@
86 echo -n $(UIMAGE_NAME)-yun | $(STAGING_DIR_HOST)/bin/mkhash md5 | \
87 sed 's/../\\\\x&/g' | xargs echo -ne >> $@
88 endef
89
90 define Build/ubnt-erx-factory-image
91 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
92 echo '21001:6' > $(1).compat; \
93 $(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
94 \
95 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
96 mkhash md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
97 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
98 \
99 echo "dummy" > $(1).rootfs; \
100 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
101 \
102 mkhash md5 $(1).rootfs > $(1).md5; \
103 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
104 \
105 echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
106 $(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
107 \
108 $(CP) $(1) $(BIN_DIR)/; \
109 else \
110 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
111 fi
112 endef
113
114 define Device/afoundry_ew1200
115 IMAGE_SIZE := 16064k
116 DEVICE_VENDOR := AFOUNDRY
117 DEVICE_MODEL := EW1200
118 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
119 kmod-usb-ledtrig-usbport wpad-basic
120 SUPPORTED_DEVICES += ew1200
121 endef
122 TARGET_DEVICES += afoundry_ew1200
123
124 define Device/alfa-network_quad-e4g
125 IMAGE_SIZE := 16064k
126 DEVICE_VENDOR := ALFA Network
127 DEVICE_MODEL := Quad-E4G
128 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools
129 endef
130 TARGET_DEVICES += alfa-network_quad-e4g
131
132 define Device/asiarf_ap7621-001
133 IMAGE_SIZE := 16000k
134 DEVICE_VENDOR := AsiaRF
135 DEVICE_MODEL := AP7621-001
136 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
137 endef
138 TARGET_DEVICES += asiarf_ap7621-001
139
140 define Device/asiarf_ap7621-nv1
141 IMAGE_SIZE := 16000k
142 DEVICE_VENDOR := AsiaRF
143 DEVICE_MODEL := AP7621-NV1
144 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
145 endef
146 TARGET_DEVICES += asiarf_ap7621-nv1
147
148 define Device/asus_rt-ac57u
149 DEVICE_VENDOR := ASUS
150 DEVICE_MODEL := RT-AC57U
151 IMAGE_SIZE := 16064k
152 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
153 kmod-usb-ledtrig-usbport wpad-basic
154 endef
155 TARGET_DEVICES += asus_rt-ac57u
156
157 define Device/asus_rt-ac65p
158 DEVICE_VENDOR := ASUS
159 DEVICE_MODEL := RT-AC65P
160 IMAGE_SIZE := 51200k
161 UBINIZE_OPTS := -E 5
162 BLOCKSIZE := 128k
163 PAGESIZE := 2048
164 KERNEL_SIZE := 4096k
165 IMAGES += factory.bin
166 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
167 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
168 check-size
169 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
170 endef
171 TARGET_DEVICES += asus_rt-ac65p
172
173 define Device/asus_rt-ac85p
174 DEVICE_VENDOR := ASUS
175 DEVICE_MODEL := RT-AC85P
176 IMAGE_SIZE := 51200k
177 UBINIZE_OPTS := -E 5
178 BLOCKSIZE := 128k
179 PAGESIZE := 2048
180 KERNEL_SIZE := 4096k
181 IMAGES += factory.bin
182 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
183 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
184 check-size
185 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
186 endef
187 TARGET_DEVICES += asus_rt-ac85p
188
189 define Device/buffalo_wsr-1166dhp
190 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
191 IMAGE_SIZE := 15936k
192 DEVICE_VENDOR := Buffalo
193 DEVICE_MODEL := WSR-1166DHP
194 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
195 SUPPORTED_DEVICES += wsr-1166
196 endef
197 TARGET_DEVICES += buffalo_wsr-1166dhp
198
199 define Device/buffalo_wsr-2533dhpl
200 IMAGE_SIZE := 7936k
201 DEVICE_VENDOR := Buffalo
202 DEVICE_MODEL := WSR-2533DHPL
203 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
204 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
205 endef
206 TARGET_DEVICES += buffalo_wsr-2533dhpl
207
208 define Device/buffalo_wsr-600dhp
209 IMAGE_SIZE := 16064k
210 DEVICE_VENDOR := Buffalo
211 DEVICE_MODEL := WSR-600DHP
212 DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
213 SUPPORTED_DEVICES += wsr-600
214 endef
215 TARGET_DEVICES += buffalo_wsr-600dhp
216
217 define Device/dlink_dir-860l-b1
218 $(Device/seama)
219 BLOCKSIZE := 64k
220 SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
221 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | 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 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 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 wpad-basic
283 endef
284 TARGET_DEVICES += elecom_wrc-1167ghbk2-s
285
286 define Device/elecom_wrc-1900gst
287 IMAGE_SIZE := 11264k
288 DEVICE_VENDOR := ELECOM
289 DEVICE_MODEL := WRC-1900GST
290 IMAGES += factory.bin
291 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
292 elecom-gst-factory WRC-1900GST 0.00
293 endef
294 TARGET_DEVICES += elecom_wrc-1900gst
295
296 define Device/elecom_wrc-2533gst
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 IMAGE_SIZE := 15552k
358 KERNEL_INITRAMFS := $$(KERNEL) | \
359 iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
360 DEVICE_VENDOR := I-O DATA
361 DEVICE_MODEL := WN-AX1167GR
362 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
363 endef
364 TARGET_DEVICES += iodata_wn-ax1167gr
365
366 define Device/iodata_wn-ax1167gr2
367 BLOCKSIZE := 128k
368 PAGESIZE := 2048
369 UBINIZE_OPTS := -E 5
370 UIMAGE_MAGIC := 0x434f4d42
371 KERNEL_SIZE := 4096k
372 IMAGE_SIZE := 51200k
373 DEVICE_VENDOR := I-O DATA
374 DEVICE_MODEL := WN-AX1167GR2
375 KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage 3.10(XBC.1)b10 | \
376 iodata-mstc-header
377 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
378 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
379 endef
380 TARGET_DEVICES += iodata_wn-ax1167gr2
381
382 define Device/iodata_wn-ax2033gr
383 BLOCKSIZE := 128k
384 PAGESIZE := 2048
385 UBINIZE_OPTS := -E 5
386 UIMAGE_MAGIC := 0x434f4d42
387 KERNEL_SIZE := 4096k
388 IMAGE_SIZE := 51200k
389 DEVICE_VENDOR := I-O DATA
390 DEVICE_MODEL := WN-AX2033GR
391 KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage 3.10(VST.1)C10 | \
392 iodata-mstc-header
393 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
394 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-basic
395 endef
396 TARGET_DEVICES += iodata_wn-ax2033gr
397
398 define Device/iodata_wn-dx1167r
399 BLOCKSIZE := 128k
400 PAGESIZE := 2048
401 UBINIZE_OPTS := -E 5
402 UIMAGE_MAGIC := 0x434f4d43
403 KERNEL_SIZE := 4096k
404 IMAGE_SIZE := 51200k
405 DEVICE_VENDOR := I-O DATA
406 DEVICE_MODEL := WN-DX1167R
407 KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage 3.10(XIK.1)b10 | \
408 iodata-mstc-header
409 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
410 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
411 endef
412 TARGET_DEVICES += iodata_wn-dx1167r
413
414 define Device/iodata_wn-gx300gr
415 IMAGE_SIZE := 7616k
416 DEVICE_VENDOR := I-O DATA
417 DEVICE_MODEL := WN-GX300GR
418 DEVICE_PACKAGES := kmod-mt7603 wpad-basic
419 endef
420 TARGET_DEVICES += iodata_wn-gx300gr
421
422 define Device/iodata_wnpr2600g
423 DEVICE_VENDOR := I-O DATA
424 DEVICE_MODEL := WNPR2600G
425 IMAGE_SIZE := 13952k
426 IMAGES += factory.bin
427 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
428 elx-header 0104003a 8844A2D168B45A2D
429 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
430 endef
431 TARGET_DEVICES += iodata_wnpr2600g
432
433 define Device/iptime_a6ns-m
434 IMAGE_SIZE := 16128k
435 UIMAGE_NAME := a6nm
436 DEVICE_VENDOR := ipTIME
437 DEVICE_MODEL := A6ns-M
438 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
439 endef
440 TARGET_DEVICES += iptime_a6ns-m
441
442 define Device/iptime_a8004t
443 IMAGE_SIZE := 16128k
444 UIMAGE_NAME := a8004t
445 DEVICE_VENDOR := ipTIME
446 DEVICE_MODEL := A8004T
447 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 wpad-basic
448 endef
449 TARGET_DEVICES += iptime_a8004t
450
451 define Device/jcg_jhr-ac876m
452 IMAGE_SIZE := 16064k
453 IMAGES += factory.bin
454 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
455 jcg-header 89.1
456 JCG_MAXSIZE := 16064k
457 DEVICE_VENDOR := JCG
458 DEVICE_MODEL := JHR-AC876M
459 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
460 endef
461 TARGET_DEVICES += jcg_jhr-ac876m
462
463 define Device/lenovo_newifi-d1
464 $(Device/uimage-lzma-loader)
465 IMAGE_SIZE := 32448k
466 DEVICE_VENDOR := Newifi
467 DEVICE_MODEL := D1
468 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
469 kmod-usb-ledtrig-usbport wpad-basic
470 SUPPORTED_DEVICES += newifi-d1
471 endef
472 TARGET_DEVICES += lenovo_newifi-d1
473
474 define Device/linksys_re6500
475 IMAGE_SIZE := 7872k
476 DEVICE_VENDOR := Linksys
477 DEVICE_MODEL := RE6500
478 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
479 SUPPORTED_DEVICES += re6500
480 endef
481 TARGET_DEVICES += linksys_re6500
482
483 define Device/mediatek_ap-mt7621a-v60
484 IMAGE_SIZE := 7872k
485 DEVICE_VENDOR := Mediatek
486 DEVICE_MODEL := AP-MT7621A-V60 EVB
487 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
488 endef
489 TARGET_DEVICES += mediatek_ap-mt7621a-v60
490
491 define Device/mediatek_mt7621-eval-board
492 BLOCKSIZE := 64k
493 IMAGE_SIZE := 15104k
494 DEVICE_VENDOR := MediaTek
495 DEVICE_MODEL := MT7621 EVB
496 SUPPORTED_DEVICES += mt7621
497 endef
498 TARGET_DEVICES += mediatek_mt7621-eval-board
499
500 define Device/MikroTik
501 DEVICE_VENDOR := MikroTik
502 BLOCKSIZE := 64k
503 IMAGE_SIZE := 16128k
504 DEVICE_PACKAGES := kmod-usb3
505 LOADER_TYPE := elf
506 KERNEL := $(KERNEL_DTB) | loader-kernel
507 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
508 pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata | \
509 check-size
510 endef
511
512 define Device/mikrotik_routerboard-750gr3
513 $(Device/MikroTik)
514 DEVICE_MODEL := RouterBOARD 750Gr3
515 DEVICE_PACKAGES += kmod-gpio-beeper
516 SUPPORTED_DEVICES += mikrotik,rb750gr3
517 endef
518 TARGET_DEVICES += mikrotik_routerboard-750gr3
519
520 define Device/mikrotik_routerboard-m11g
521 $(Device/MikroTik)
522 DEVICE_MODEL := RouterBOARD M11G
523 SUPPORTED_DEVICES += mikrotik,rbm11g
524 endef
525 TARGET_DEVICES += mikrotik_routerboard-m11g
526
527 define Device/mikrotik_routerboard-m33g
528 $(Device/MikroTik)
529 DEVICE_MODEL := RouterBOARD M33G
530 SUPPORTED_DEVICES += mikrotik,rbm33g
531 endef
532 TARGET_DEVICES += mikrotik_routerboard-m33g
533
534 define Device/mqmaker_witi
535 IMAGE_SIZE := 16064k
536 DEVICE_VENDOR := MQmaker
537 DEVICE_MODEL := WiTi
538 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
539 kmod-usb-ledtrig-usbport wpad-basic
540 SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
541 endef
542 TARGET_DEVICES += mqmaker_witi
543
544 define Device/mtc_wr1201
545 IMAGE_SIZE := 16000k
546 DEVICE_VENDOR := MTC
547 DEVICE_MODEL := Wireless Router WR1201
548 KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage WR1201_8_128
549 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
550 kmod-usb-ledtrig-usbport wpad-basic
551 endef
552 TARGET_DEVICES += mtc_wr1201
553
554 define Device/netgear_ex6150
555 DEVICE_VENDOR := NETGEAR
556 DEVICE_MODEL := EX6150
557 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
558 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
559 IMAGE_SIZE := 14848k
560 IMAGES += factory.chk
561 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size | \
562 netgear-chk
563 endef
564 TARGET_DEVICES += netgear_ex6150
565
566 define Device/netgear_sercomm_nand
567 $(Device/uimage-lzma-loader)
568 BLOCKSIZE := 128k
569 PAGESIZE := 2048
570 KERNEL_SIZE := 4096k
571 UBINIZE_OPTS := -E 5
572 IMAGES += factory.img kernel.bin rootfs.bin
573 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \
574 append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
575 zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
576 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
577 IMAGE/kernel.bin := append-kernel
578 IMAGE/rootfs.bin := append-ubi | check-size
579 DEVICE_VENDOR := NETGEAR
580 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
581 endef
582
583 define Device/netgear_r6220
584 $(Device/netgear_sercomm_nand)
585 DEVICE_MODEL := R6220
586 SERCOMM_HWNAME := R6220
587 SERCOMM_HWID := AYA
588 SERCOMM_HWVER := A001
589 SERCOMM_SWVER := 0x0086
590 IMAGE_SIZE := 28672k
591 DEVICE_PACKAGES += kmod-mt76x2
592 SUPPORTED_DEVICES += r6220
593 endef
594 TARGET_DEVICES += netgear_r6220
595
596
597 define Device/netgear_r6260
598 $(Device/netgear_sercomm_nand)
599 DEVICE_MODEL := R6260
600 SERCOMM_HWNAME := R6260
601 SERCOMM_HWID := CHJ
602 SERCOMM_HWVER := A001
603 SERCOMM_SWVER := 0x0052
604 IMAGE_SIZE := 40960k
605 DEVICE_PACKAGES += kmod-mt7615e
606 endef
607 TARGET_DEVICES += netgear_r6260
608
609 define Device/netgear_r6350
610 $(Device/netgear_sercomm_nand)
611 DEVICE_MODEL := R6350
612 SERCOMM_HWNAME := R6350
613 SERCOMM_HWID := CHJ
614 SERCOMM_HWVER := A001
615 SERCOMM_SWVER := 0x0052
616 IMAGE_SIZE := 40960k
617 DEVICE_PACKAGES += kmod-mt7615e
618 endef
619 TARGET_DEVICES += netgear_r6350
620
621 define Device/netgear_r6700-v2
622 $(Device/netgear_sercomm_nand)
623 DEVICE_MODEL := R6700
624 DEVICE_VARIANT := v2
625 DEVICE_ALT0_VENDOR := NETGEAR
626 DEVICE_ALT0_MODEL := Nighthawk AC2400
627 DEVICE_ALT0_VARIANT := v1
628 DEVICE_ALT1_VENDOR := NETGEAR
629 DEVICE_ALT1_MODEL := R7200
630 DEVICE_ALT1_VARIANT := v1
631 SERCOMM_HWNAME := R6950
632 SERCOMM_HWID := BZV
633 SERCOMM_HWVER := A001
634 SERCOMM_SWVER := 0x1032
635 IMAGE_SIZE := 40960k
636 DEVICE_PACKAGES += kmod-mt7615e
637 endef
638 TARGET_DEVICES += netgear_r6700-v2
639
640 define Device/netgear_r6800
641 $(Device/netgear_sercomm_nand)
642 DEVICE_MODEL := R6800
643 SERCOMM_HWNAME := R6950
644 SERCOMM_HWID := BZV
645 SERCOMM_HWVER := A001
646 SERCOMM_SWVER := 0x0062
647 IMAGE_SIZE := 40960k
648 DEVICE_PACKAGES += kmod-mt7615e
649 endef
650 TARGET_DEVICES += netgear_r6800
651
652 define Device/netgear_r6850
653 $(Device/netgear_sercomm_nand)
654 DEVICE_MODEL := R6850
655 SERCOMM_HWNAME := R6850
656 SERCOMM_HWID := CHJ
657 SERCOMM_HWVER := A001
658 SERCOMM_SWVER := 0x0052
659 IMAGE_SIZE := 40960k
660 DEVICE_PACKAGES += kmod-mt7615e
661 endef
662 TARGET_DEVICES += netgear_r6850
663
664 define Device/netgear_wndr3700-v5
665 $(Device/uimage-lzma-loader)
666 BLOCKSIZE := 64k
667 IMAGE_SIZE := 15232k
668 SERCOMM_HWID := AYB
669 SERCOMM_HWVER := A001
670 SERCOMM_SWVER := 0x1054
671 IMAGES += factory.img
672 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
673 pad-rootfs
674 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
675 check-size
676 IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | \
677 pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
678 zip WNDR3700v5.bin | sercom-seal
679 DEVICE_VENDOR := NETGEAR
680 DEVICE_MODEL := WNDR3700
681 DEVICE_VARIANT := v5
682 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
683 kmod-usb-ledtrig-usbport wpad-basic
684 SUPPORTED_DEVICES += wndr3700v5
685 endef
686 TARGET_DEVICES += netgear_wndr3700-v5
687
688 define Device/netis_wf2881
689 BLOCKSIZE := 128k
690 PAGESIZE := 2048
691 FILESYSTEMS := squashfs
692 KERNEL_SIZE := 4096k
693 IMAGE_SIZE := 129280k
694 UBINIZE_OPTS := -E 5
695 UIMAGE_NAME := WF2881_0.0.00
696 KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
697 IMAGES += factory.bin
698 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
699 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
700 check-size
701 DEVICE_VENDOR := NETIS
702 DEVICE_MODEL := WF2881
703 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
704 endef
705 TARGET_DEVICES += netis_wf2881
706
707 define Device/phicomm_k2p
708 IMAGE_SIZE := 15744k
709 DEVICE_VENDOR := Phicomm
710 DEVICE_MODEL := K2P
711 DEVICE_ALT0_VENDOR := Phicomm
712 DEVICE_ALT0_MODEL := KE 2P
713 SUPPORTED_DEVICES += k2p
714 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
715 endef
716 TARGET_DEVICES += phicomm_k2p
717
718 define Device/planex_vr500
719 IMAGE_SIZE := 65216k
720 DEVICE_VENDOR := Planex
721 DEVICE_MODEL := VR500
722 DEVICE_PACKAGES := kmod-usb3
723 SUPPORTED_DEVICES += vr500
724 endef
725 TARGET_DEVICES += planex_vr500
726
727 define Device/samknows_whitebox-v8
728 IMAGE_SIZE := 16064k
729 DEVICE_VENDOR := SamKnows
730 DEVICE_MODEL := Whitebox 8
731 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
732 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
733 SUPPORTED_DEVICES += sk-wb8
734 endef
735 TARGET_DEVICES += samknows_whitebox-v8
736
737 define Device/storylink_sap-g3200u3
738 IMAGE_SIZE := 7872k
739 DEVICE_VENDOR := STORYLiNK
740 DEVICE_MODEL := SAP-G3200U3
741 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
742 SUPPORTED_DEVICES += sap-g3200u3
743 endef
744 TARGET_DEVICES += storylink_sap-g3200u3
745
746 define Device/telco-electronics_x1
747 IMAGE_SIZE := 16064k
748 DEVICE_VENDOR := Telco Electronics
749 DEVICE_MODEL := X1
750 DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
751 endef
752 TARGET_DEVICES += telco-electronics_x1
753
754 define Device/thunder_timecloud
755 $(Device/uimage-lzma-loader)
756 IMAGE_SIZE := 16064k
757 DEVICE_VENDOR := Thunder
758 DEVICE_MODEL := Timecloud
759 DEVICE_PACKAGES := kmod-usb3
760 SUPPORTED_DEVICES += timecloud
761 endef
762 TARGET_DEVICES += thunder_timecloud
763
764 define Device/totolink_a7000r
765 IMAGE_SIZE := 16064k
766 UIMAGE_NAME := C8340R1C-9999
767 DEVICE_VENDOR := TOTOLINK
768 DEVICE_MODEL := A7000R
769 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
770 endef
771 TARGET_DEVICES += totolink_a7000r
772
773 define Device/adslr_g7
774 IMAGE_SIZE := 16064k
775 DEVICE_VENDOR := ADSLR
776 DEVICE_MODEL := G7
777 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
778 endef
779 TARGET_DEVICES += adslr_g7
780
781 define Device/tplink_re350-v1
782 $(Device/tplink-safeloader)
783 DEVICE_MODEL := RE350
784 DEVICE_VARIANT := v1
785 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
786 TPLINK_BOARD_ID := RE350-V1
787 IMAGE_SIZE := 6016k
788 SUPPORTED_DEVICES += re350-v1
789 endef
790 TARGET_DEVICES += tplink_re350-v1
791
792 define Device/tplink_re650-v1
793 $(Device/tplink-safeloader)
794 DEVICE_MODEL := RE650
795 DEVICE_VARIANT := v1
796 DEVICE_PACKAGES := kmod-mt7615e wpad-basic
797 TPLINK_BOARD_ID := RE650-V1
798 IMAGE_SIZE := 14208k
799 endef
800 TARGET_DEVICES += tplink_re650-v1
801
802 define Device/ubnt_edgerouter_common
803 $(Device/uimage-lzma-loader)
804 DEVICE_VENDOR := Ubiquiti
805 IMAGE_SIZE := 256768k
806 FILESYSTEMS := squashfs
807 KERNEL_SIZE := 3145728
808 KERNEL_INITRAMFS := $$(KERNEL) | \
809 ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
810 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
811 endef
812
813 define Device/ubnt_edgerouter-x
814 $(Device/ubnt_edgerouter_common)
815 DEVICE_MODEL := EdgeRouter X
816 SUPPORTED_DEVICES += ubnt-erx ubiquiti,edgerouterx
817 endef
818 TARGET_DEVICES += ubnt_edgerouter-x
819
820 define Device/ubnt_edgerouter-x-sfp
821 $(Device/ubnt_edgerouter_common)
822 DEVICE_MODEL := EdgeRouter X SFP
823 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
824 SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp
825 endef
826 TARGET_DEVICES += ubnt_edgerouter-x-sfp
827
828 define Device/ubnt_unifi-nanohd
829 DEVICE_VENDOR := Ubiquiti
830 DEVICE_MODEL := UniFi nanoHD
831 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e wpad-basic
832 IMAGE_SIZE := 15552k
833 endef
834 TARGET_DEVICES += ubnt_unifi-nanohd
835
836 define Device/unielec_u7621-06-16m
837 IMAGE_SIZE := 16064k
838 DEVICE_VENDOR := UniElec
839 DEVICE_MODEL := U7621-06
840 DEVICE_VARIANT := 16M
841 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
842 SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
843 endef
844 TARGET_DEVICES += unielec_u7621-06-16m
845
846 define Device/unielec_u7621-06-64m
847 IMAGE_SIZE := 65216k
848 DEVICE_VENDOR := UniElec
849 DEVICE_MODEL := U7621-06
850 DEVICE_VARIANT := 64M
851 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
852 SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
853 endef
854 TARGET_DEVICES += unielec_u7621-06-64m
855
856 define Device/wevo_11acnas
857 IMAGE_SIZE := 16064k
858 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
859 DEVICE_VENDOR := WeVO
860 DEVICE_MODEL := 11AC NAS Router
861 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
862 kmod-usb-ledtrig-usbport wpad-basic
863 SUPPORTED_DEVICES += 11acnas
864 endef
865 TARGET_DEVICES += wevo_11acnas
866
867 define Device/wevo_w2914ns-v2
868 IMAGE_SIZE := 16064k
869 UIMAGE_NAME := W2914NS-V2(0.0.0)
870 DEVICE_VENDOR := WeVO
871 DEVICE_MODEL := W2914NS
872 DEVICE_VARIANT := v2
873 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
874 kmod-usb-ledtrig-usbport wpad-basic
875 SUPPORTED_DEVICES += w2914nsv2
876 endef
877 TARGET_DEVICES += wevo_w2914ns-v2
878
879 define Device/xiaomi_mir3g
880 $(Device/uimage-lzma-loader)
881 BLOCKSIZE := 128k
882 PAGESIZE := 2048
883 KERNEL_SIZE := 4096k
884 IMAGE_SIZE := 124416k
885 UBINIZE_OPTS := -E 5
886 IMAGES += kernel1.bin rootfs0.bin
887 IMAGE/kernel1.bin := append-kernel
888 IMAGE/rootfs0.bin := append-ubi | check-size
889 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
890 DEVICE_VENDOR := Xiaomi
891 DEVICE_MODEL := Mi Router 3G
892 SUPPORTED_DEVICES += R3G
893 SUPPORTED_DEVICES += mir3g
894 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
895 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
896 endef
897 TARGET_DEVICES += xiaomi_mir3g
898
899 define Device/xiaomi_mir3g-v2
900 $(Device/uimage-lzma-loader)
901 IMAGE_SIZE := 14848k
902 DEVICE_VENDOR := Xiaomi
903 DEVICE_MODEL := Mi Router 3G
904 DEVICE_VARIANT := v2
905 DEVICE_ALT0_VENDOR := Xiaomi
906 DEVICE_ALT0_MODEL := Mi Router 4A
907 DEVICE_ALT0_VARIANT := Gigabit Edition
908 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
909 endef
910 TARGET_DEVICES += xiaomi_mir3g-v2
911
912 define Device/xiaomi_mir3p
913 $(Device/uimage-lzma-loader)
914 BLOCKSIZE := 128k
915 PAGESIZE := 2048
916 KERNEL_SIZE:= 4096k
917 UBINIZE_OPTS := -E 5
918 IMAGE_SIZE := 255488k
919 DEVICE_VENDOR := Xiaomi
920 DEVICE_MODEL := Mi Router 3 Pro
921 IMAGES += factory.bin
922 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
923 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
924 check-size
925 DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \
926 wpad-basic uboot-envtools
927 endef
928 TARGET_DEVICES += xiaomi_mir3p
929
930 define Device/xiaoyu_xy-c5
931 IMAGE_SIZE := 32448k
932 DEVICE_VENDOR := XiaoYu
933 DEVICE_MODEL := XY-C5
934 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3
935 endef
936 TARGET_DEVICES += xiaoyu_xy-c5
937
938 define Device/xzwifi_creativebox-v1
939 IMAGE_SIZE := 32448k
940 DEVICE_VENDOR := CreativeBox
941 DEVICE_MODEL := v1
942 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
943 kmod-usb3
944 endef
945 TARGET_DEVICES += xzwifi_creativebox-v1
946
947 define Device/youhua_wr1200js
948 IMAGE_SIZE := 16064k
949 DEVICE_VENDOR := YouHua
950 DEVICE_MODEL := WR1200JS
951 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
952 kmod-usb-ledtrig-usbport wpad-basic
953 endef
954 TARGET_DEVICES += youhua_wr1200js
955
956 define Device/youku_yk-l2
957 IMAGE_SIZE := 16064k
958 DEVICE_VENDOR := Youku
959 DEVICE_MODEL := YK-L2
960 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
961 kmod-usb-ledtrig-usbport wpad-basic
962 endef
963 TARGET_DEVICES += youku_yk-l2
964
965 define Device/zbtlink_zbt-we1326
966 IMAGE_SIZE := 16064k
967 DEVICE_VENDOR := Zbtlink
968 DEVICE_MODEL := ZBT-WE1326
969 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
970 wpad-basic
971 SUPPORTED_DEVICES += zbt-we1326
972 endef
973 TARGET_DEVICES += zbtlink_zbt-we1326
974
975 define Device/zbtlink_zbt-we3526
976 IMAGE_SIZE := 16064k
977 DEVICE_VENDOR := Zbtlink
978 DEVICE_MODEL := ZBT-WE3526
979 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
980 kmod-usb-ledtrig-usbport wpad-basic
981 endef
982 TARGET_DEVICES += zbtlink_zbt-we3526
983
984 define Device/zbtlink_zbt-wg2626
985 IMAGE_SIZE := 16064k
986 DEVICE_VENDOR := Zbtlink
987 DEVICE_MODEL := ZBT-WG2626
988 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
989 kmod-usb-ledtrig-usbport wpad-basic
990 SUPPORTED_DEVICES += zbt-wg2626
991 endef
992 TARGET_DEVICES += zbtlink_zbt-wg2626
993
994 define Device/zbtlink_zbt-wg3526-16m
995 IMAGE_SIZE := 16064k
996 DEVICE_VENDOR := Zbtlink
997 DEVICE_MODEL := ZBT-WG3526
998 DEVICE_VARIANT := 16M
999 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1000 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1001 SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
1002 endef
1003 TARGET_DEVICES += zbtlink_zbt-wg3526-16m
1004
1005 define Device/zbtlink_zbt-wg3526-32m
1006 IMAGE_SIZE := 32448k
1007 DEVICE_VENDOR := Zbtlink
1008 DEVICE_MODEL := ZBT-WG3526
1009 DEVICE_VARIANT := 32M
1010 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1011 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1012 SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
1013 endef
1014 TARGET_DEVICES += zbtlink_zbt-wg3526-32m
1015
1016 define Device/zio_freezio
1017 IMAGE_SIZE := 16064k
1018 DEVICE_VENDOR := ZIO
1019 DEVICE_MODEL := FREEZIO
1020 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1021 kmod-usb-ledtrig-usbport wpad-basic
1022 endef
1023 TARGET_DEVICES += zio_freezio