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