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