cf3225dc81ec3d3f38a0febbc1f78276e1212ec8
[openwrt/staging/mkresin.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 += ELECOM_HWNAME LINKSYS_HWNAME
11
12 define Build/elecom-wrc-gs-factory
13 $(eval product=$(word 1,$(1)))
14 $(eval version=$(word 2,$(1)))
15 $(eval hash_opt=$(word 3,$(1)))
16 $(MKHASH) md5 $(hash_opt) $@ >> $@
17 ( \
18 echo -n "ELECOM $(product) v$(version)" | \
19 dd bs=32 count=1 conv=sync; \
20 dd if=$@; \
21 ) > $@.new
22 mv $@.new $@
23 endef
24
25 define Build/gemtek-trailer
26 printf "%s%08X" ".GEMTEK." "$$(cksum $@ | cut -d ' ' -f1)" >> $@
27 endef
28
29 define Build/iodata-factory
30 $(eval fw_size=$(word 1,$(1)))
31 $(eval fw_type=$(word 2,$(1)))
32 $(eval product=$(word 3,$(1)))
33 $(eval factory_bin=$(word 4,$(1)))
34 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(fw_size)" ]; then \
35 $(CP) $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) $(factory_bin); \
36 $(STAGING_DIR_HOST)/bin/mksenaofw \
37 -r 0x30a -p $(product) -t $(fw_type) \
38 -e $(factory_bin) -o $(factory_bin).new; \
39 mv $(factory_bin).new $(factory_bin); \
40 $(CP) $(factory_bin) $(BIN_DIR)/; \
41 else \
42 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
43 fi
44 endef
45
46 define Build/iodata-mstc-header
47 ( \
48 data_size_crc="$$(dd if=$@ ibs=64 skip=1 2>/dev/null | gzip -c | \
49 tail -c 8 | od -An -tx8 --endian little | tr -d ' \n')"; \
50 echo -ne "$$(echo $$data_size_crc | sed 's/../\\x&/g')" | \
51 dd of=$@ bs=8 count=1 seek=7 conv=notrunc 2>/dev/null; \
52 )
53 dd if=/dev/zero of=$@ bs=4 count=1 seek=1 conv=notrunc 2>/dev/null
54 ( \
55 header_crc="$$(dd if=$@ bs=64 count=1 2>/dev/null | gzip -c | \
56 tail -c 8 | od -An -N4 -tx4 --endian little | tr -d ' \n')"; \
57 echo -ne "$$(echo $$header_crc | sed 's/../\\x&/g')" | \
58 dd of=$@ bs=4 count=1 seek=1 conv=notrunc 2>/dev/null; \
59 )
60 endef
61
62 define Build/ubnt-erx-factory-image
63 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
64 echo '21001:7' > $(1).compat; \
65 $(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
66 \
67 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
68 $(MKHASH) md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
69 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
70 \
71 echo "dummy" > $(1).rootfs; \
72 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
73 \
74 $(MKHASH) md5 $(1).rootfs > $(1).md5; \
75 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
76 \
77 echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
78 $(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
79 \
80 $(CP) $(1) $(BIN_DIR)/; \
81 else \
82 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
83 fi
84 endef
85
86 define Build/zytrx-header
87 $(eval board=$(word 1,$(1)))
88 $(eval version=$(word 2,$(1)))
89 $(STAGING_DIR_HOST)/bin/zytrx -B '$(board)' -v '$(version)' -i $@ -o $@.new
90 mv $@.new $@
91 endef
92
93 define Device/dsa-migration
94 DEVICE_COMPAT_VERSION := 1.1
95 DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
96 endef
97
98 define Device/adslr_g7
99 $(Device/dsa-migration)
100 IMAGE_SIZE := 16064k
101 DEVICE_VENDOR := ADSLR
102 DEVICE_MODEL := G7
103 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
104 endef
105 TARGET_DEVICES += adslr_g7
106
107 define Device/afoundry_ew1200
108 $(Device/dsa-migration)
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
114 SUPPORTED_DEVICES += ew1200
115 endef
116 TARGET_DEVICES += afoundry_ew1200
117
118 define Device/alfa-network_quad-e4g
119 $(Device/dsa-migration)
120 IMAGE_SIZE := 16064k
121 DEVICE_VENDOR := ALFA Network
122 DEVICE_MODEL := Quad-E4G
123 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools \
124 -wpad-basic-wolfssl
125 SUPPORTED_DEVICES += quad-e4g
126 endef
127 TARGET_DEVICES += alfa-network_quad-e4g
128
129 define Device/ampedwireless_ally_common
130 $(Device/dsa-migration)
131 DEVICE_VENDOR := Amped Wireless
132 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware uboot-envtools
133 IMAGE_SIZE := 32768k
134 KERNEL_SIZE := 4096k
135 BLOCKSIZE := 128k
136 PAGESIZE := 2048
137 UBINIZE_OPTS := -E 5
138 KERNEL_INITRAMFS := $(KERNEL_DTB) | uImage lzma -n 'flashable-initramfs' |\
139 edimax-header -s CSYS -m RN68 -f 0x001c0000 -S 0x01100000
140 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
141 endef
142
143 define Device/ampedwireless_ally-r1900k
144 $(Device/ampedwireless_ally_common)
145 DEVICE_MODEL := ALLY-R1900K
146 DEVICE_PACKAGES += kmod-usb3
147 endef
148 TARGET_DEVICES += ampedwireless_ally-r1900k
149
150 define Device/ampedwireless_ally-00x19k
151 $(Device/ampedwireless_ally_common)
152 DEVICE_MODEL := ALLY-00X19K
153 endef
154 TARGET_DEVICES += ampedwireless_ally-00x19k
155
156 define Device/asiarf_ap7621-001
157 $(Device/dsa-migration)
158 IMAGE_SIZE := 16000k
159 DEVICE_VENDOR := AsiaRF
160 DEVICE_MODEL := AP7621-001
161 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 -wpad-basic-wolfssl
162 endef
163 TARGET_DEVICES += asiarf_ap7621-001
164
165 define Device/asiarf_ap7621-nv1
166 $(Device/dsa-migration)
167 IMAGE_SIZE := 16000k
168 DEVICE_VENDOR := AsiaRF
169 DEVICE_MODEL := AP7621-NV1
170 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 -wpad-basic-wolfssl
171 endef
172 TARGET_DEVICES += asiarf_ap7621-nv1
173
174 define Device/asus_rt-ac57u
175 $(Device/dsa-migration)
176 DEVICE_VENDOR := ASUS
177 DEVICE_MODEL := RT-AC57U
178 IMAGE_SIZE := 16064k
179 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
180 kmod-usb-ledtrig-usbport
181 endef
182 TARGET_DEVICES += asus_rt-ac57u
183
184 define Device/asus_rt-ac65p
185 $(Device/dsa-migration)
186 DEVICE_VENDOR := ASUS
187 DEVICE_MODEL := RT-AC65P
188 IMAGE_SIZE := 51200k
189 UBINIZE_OPTS := -E 5
190 BLOCKSIZE := 128k
191 PAGESIZE := 2048
192 KERNEL_SIZE := 4096k
193 IMAGES += factory.bin
194 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
195 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
196 check-size
197 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware uboot-envtools
198 endef
199 TARGET_DEVICES += asus_rt-ac65p
200
201 define Device/asus_rt-ac85p
202 $(Device/dsa-migration)
203 DEVICE_VENDOR := ASUS
204 DEVICE_MODEL := RT-AC85P
205 IMAGE_SIZE := 51200k
206 UBINIZE_OPTS := -E 5
207 BLOCKSIZE := 128k
208 PAGESIZE := 2048
209 KERNEL_SIZE := 4096k
210 IMAGES += factory.bin
211 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
212 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
213 check-size
214 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware uboot-envtools
215 endef
216 TARGET_DEVICES += asus_rt-ac85p
217
218 define Device/asus_rt-n56u-b1
219 $(Device/dsa-migration)
220 DEVICE_VENDOR := ASUS
221 DEVICE_MODEL := RT-N56U
222 DEVICE_VARIANT := B1
223 IMAGE_SIZE := 16064k
224 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
225 kmod-usb-ledtrig-usbport
226 endef
227 TARGET_DEVICES += asus_rt-n56u-b1
228
229 define Device/buffalo_wsr-1166dhp
230 $(Device/dsa-migration)
231 $(Device/uimage-lzma-loader)
232 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
233 IMAGE_SIZE := 15936k
234 DEVICE_VENDOR := Buffalo
235 DEVICE_MODEL := WSR-1166DHP
236 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
237 SUPPORTED_DEVICES += wsr-1166
238 endef
239 TARGET_DEVICES += buffalo_wsr-1166dhp
240
241 define Device/buffalo_wsr-2533dhpl
242 $(Device/dsa-migration)
243 $(Device/uimage-lzma-loader)
244 IMAGE_SIZE := 7936k
245 DEVICE_VENDOR := Buffalo
246 DEVICE_MODEL := WSR-2533DHPL
247 DEVICE_ALT0_VENDOR := Buffalo
248 DEVICE_ALT0_MODEL := WSR-2533DHP
249 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
250 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
251 endef
252 TARGET_DEVICES += buffalo_wsr-2533dhpl
253
254 define Device/buffalo_wsr-600dhp
255 $(Device/dsa-migration)
256 IMAGE_SIZE := 16064k
257 DEVICE_VENDOR := Buffalo
258 DEVICE_MODEL := WSR-600DHP
259 DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci
260 SUPPORTED_DEVICES += wsr-600
261 endef
262 TARGET_DEVICES += buffalo_wsr-600dhp
263
264 define Device/cudy_wr1300
265 $(Device/dsa-migration)
266 IMAGE_SIZE := 15872k
267 DEVICE_VENDOR := Cudy
268 DEVICE_MODEL := WR1300
269 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb2 kmod-usb3 \
270 kmod-usb-ledtrig-usbport
271 endef
272 TARGET_DEVICES += cudy_wr1300
273
274 define Device/cudy_wr2100
275 $(Device/dsa-migration)
276 DEVICE_VENDOR := Cudy
277 DEVICE_MODEL := WR2100
278 IMAGE_SIZE := 15872k
279 UIMAGE_NAME := R11
280 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
281 endef
282 TARGET_DEVICES += cudy_wr2100
283
284 define Device/dlink_dir-8xx-a1
285 $(Device/dsa-migration)
286 IMAGE_SIZE := 16000k
287 DEVICE_VENDOR := D-Link
288 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
289 KERNEL_INITRAMFS := $$(KERNEL) | uimage-padhdr 96
290 IMAGES += factory.bin
291 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | uimage-padhdr 96 |\
292 pad-rootfs | append-metadata | check-size
293 IMAGE/factory.bin := append-kernel | append-rootfs | uimage-padhdr 96 |\
294 check-size
295 endef
296
297 define Device/dlink_dir-8xx-r1
298 $(Device/dsa-migration)
299 IMAGE_SIZE := 16064k
300 DEVICE_VENDOR := D-Link
301 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
302 KERNEL_INITRAMFS := $$(KERNEL)
303 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
304 check-size | append-metadata
305 endef
306
307 define Device/dlink_dir-xx60-a1
308 $(Device/dsa-migration)
309 BLOCKSIZE := 128k
310 PAGESIZE := 2048
311 KERNEL_SIZE := 4096k
312 IMAGE_SIZE := 40960k
313 UBINIZE_OPTS := -E 5
314 DEVICE_VENDOR := D-Link
315 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
316 kmod-usb-ledtrig-usbport
317 KERNEL := $$(KERNEL) | uimage-padhdr 96
318 IMAGES += factory.bin
319 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
320 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
321 check-size
322 endef
323
324 define Device/dlink_dir-1960-a1
325 $(Device/dlink_dir-xx60-a1)
326 DEVICE_MODEL := DIR-1960
327 DEVICE_VARIANT := A1
328 endef
329 TARGET_DEVICES += dlink_dir-1960-a1
330
331 define Device/dlink_dir-2640-a1
332 $(Device/dlink_dir-xx60-a1)
333 DEVICE_MODEL := DIR-2640
334 DEVICE_VARIANT := A1
335 endef
336 TARGET_DEVICES += dlink_dir-2640-a1
337
338 define Device/dlink_dir-2660-a1
339 $(Device/dlink_dir-xx60-a1)
340 DEVICE_MODEL := DIR-2660
341 DEVICE_VARIANT := A1
342 endef
343 TARGET_DEVICES += dlink_dir-2660-a1
344
345 define Device/dlink_dir-860l-b1
346 $(Device/dsa-migration)
347 $(Device/seama)
348 BLOCKSIZE := 64k
349 SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
350 LOADER_TYPE := bin
351 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | relocate-kernel | \
352 lzma -a0 | uImage lzma
353 IMAGE_SIZE := 16064k
354 DEVICE_VENDOR := D-Link
355 DEVICE_MODEL := DIR-860L
356 DEVICE_VARIANT := B1
357 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
358 SUPPORTED_DEVICES += dir-860l-b1
359 endef
360 TARGET_DEVICES += dlink_dir-860l-b1
361
362 define Device/dlink_dir-867-a1
363 $(Device/dlink_dir-8xx-a1)
364 DEVICE_MODEL := DIR-867
365 DEVICE_VARIANT := A1
366 endef
367 TARGET_DEVICES += dlink_dir-867-a1
368
369 define Device/dlink_dir-878-a1
370 $(Device/dlink_dir-8xx-a1)
371 DEVICE_MODEL := DIR-878
372 DEVICE_VARIANT := A1
373 endef
374 TARGET_DEVICES += dlink_dir-878-a1
375
376 define Device/dlink_dir-882-a1
377 $(Device/dlink_dir-8xx-a1)
378 DEVICE_MODEL := DIR-882
379 DEVICE_VARIANT := A1
380 DEVICE_PACKAGES += kmod-usb3 kmod-usb-ledtrig-usbport
381 endef
382 TARGET_DEVICES += dlink_dir-882-a1
383
384 define Device/dlink_dir-882-r1
385 $(Device/dlink_dir-8xx-r1)
386 DEVICE_MODEL := DIR-882
387 DEVICE_VARIANT := R1
388 DEVICE_PACKAGES += kmod-usb3 kmod-usb-ledtrig-usbport
389 IMAGES += factory.bin
390 IMAGE/factory.bin := append-kernel | append-rootfs | check-size | \
391 sign-dlink-ru 57c5375741c30ca9ebcb36713db4ba51 \
392 ab0dff19af8842cdb70a86b4b68d23f7
393 endef
394 TARGET_DEVICES += dlink_dir-882-r1
395
396 define Device/d-team_newifi-d2
397 $(Device/dsa-migration)
398 $(Device/uimage-lzma-loader)
399 IMAGE_SIZE := 32448k
400 DEVICE_VENDOR := Newifi
401 DEVICE_MODEL := D2
402 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
403 kmod-usb-ledtrig-usbport
404 endef
405 TARGET_DEVICES += d-team_newifi-d2
406
407 define Device/d-team_pbr-m1
408 $(Device/dsa-migration)
409 IMAGE_SIZE := 32448k
410 DEVICE_VENDOR := PandoraBox
411 DEVICE_MODEL := PBR-M1
412 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
413 kmod-usb3 kmod-usb-ledtrig-usbport
414 SUPPORTED_DEVICES += pbr-m1
415 endef
416 TARGET_DEVICES += d-team_pbr-m1
417
418 define Device/edimax_ra21s
419 $(Device/dsa-migration)
420 $(Device/uimage-lzma-loader)
421 IMAGE_SIZE := 16064k
422 DEVICE_VENDOR := Edimax
423 DEVICE_MODEL := RA21S
424 DEVICE_ALT0_VENDOR := Edimax
425 DEVICE_ALT0_MODEL := Gemini RA21S
426 IMAGES += factory.bin
427 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
428 elx-header 02020040 8844A2D168B45A2D
429 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
430 endef
431 TARGET_DEVICES += edimax_ra21s
432
433 define Device/edimax_re23s
434 $(Device/dsa-migration)
435 $(Device/uimage-lzma-loader)
436 IMAGE_SIZE := 15680k
437 DEVICE_VENDOR := Edimax
438 DEVICE_MODEL := RE23S
439 DEVICE_ALT0_VENDOR := Edimax
440 DEVICE_ALT0_MODEL := Gemini RE23S
441 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
442 edimax-header -s CSYS -m RN76 -f 0x70000 -S 0x01100000 | pad-rootfs | \
443 append-metadata | check-size
444 IMAGES += factory.bin
445 IMAGE/factory.bin := append-kernel | append-rootfs | \
446 edimax-header -s CSYS -m RN76 -f 0x70000 -S 0x01100000 | pad-rootfs | \
447 check-size
448 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
449 endef
450 TARGET_DEVICES += edimax_re23s
451
452 define Device/edimax_rg21s
453 $(Device/dsa-migration)
454 $(Device/uimage-lzma-loader)
455 IMAGE_SIZE := 16064k
456 DEVICE_VENDOR := Edimax
457 DEVICE_MODEL := Gemini AC2600 RG21S
458 IMAGES += factory.bin
459 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
460 elx-header 02020038 8844A2D168B45A2D
461 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
462 endef
463 TARGET_DEVICES += edimax_rg21s
464
465 define Device/elecom_wrc-1167ghbk2-s
466 $(Device/dsa-migration)
467 IMAGE_SIZE := 15488k
468 DEVICE_VENDOR := ELECOM
469 DEVICE_MODEL := WRC-1167GHBK2-S
470 IMAGES += factory.bin
471 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
472 elecom-wrc-gs-factory WRC-1167GHBK2-S 0.00
473 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
474 endef
475 TARGET_DEVICES += elecom_wrc-1167ghbk2-s
476
477 define Device/elecom_wrc-gs
478 $(Device/dsa-migration)
479 $(Device/uimage-lzma-loader)
480 DEVICE_VENDOR := ELECOM
481 IMAGES += factory.bin
482 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
483 elecom-wrc-gs-factory $$$$(ELECOM_HWNAME) 0.00 -N | \
484 append-string MT7621_ELECOM_$$$$(ELECOM_HWNAME)
485 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
486 endef
487
488 define Device/elecom_wrc-1167gs2-b
489 $(Device/elecom_wrc-gs)
490 IMAGE_SIZE := 11264k
491 DEVICE_MODEL := WRC-1167GS2-B
492 ELECOM_HWNAME := WRC-1167GS2
493 endef
494 TARGET_DEVICES += elecom_wrc-1167gs2-b
495
496 define Device/elecom_wrc-1167gst2
497 $(Device/elecom_wrc-gs)
498 IMAGE_SIZE := 24576k
499 DEVICE_MODEL := WRC-1167GST2
500 ELECOM_HWNAME := WRC-1167GST2
501 endef
502 TARGET_DEVICES += elecom_wrc-1167gst2
503
504 define Device/elecom_wrc-1750gs
505 $(Device/elecom_wrc-gs)
506 IMAGE_SIZE := 11264k
507 DEVICE_MODEL := WRC-1750GS
508 ELECOM_HWNAME := WRC-1750GS
509 endef
510 TARGET_DEVICES += elecom_wrc-1750gs
511
512 define Device/elecom_wrc-1750gst2
513 $(Device/elecom_wrc-gs)
514 IMAGE_SIZE := 24576k
515 DEVICE_MODEL := WRC-1750GST2
516 ELECOM_HWNAME := WRC-1750GST2
517 endef
518 TARGET_DEVICES += elecom_wrc-1750gst2
519
520 define Device/elecom_wrc-1750gsv
521 $(Device/elecom_wrc-gs)
522 IMAGE_SIZE := 11264k
523 DEVICE_MODEL := WRC-1750GSV
524 ELECOM_HWNAME := WRC-1750GSV
525 endef
526 TARGET_DEVICES += elecom_wrc-1750gsv
527
528 define Device/elecom_wrc-1900gst
529 $(Device/elecom_wrc-gs)
530 IMAGE_SIZE := 11264k
531 DEVICE_MODEL := WRC-1900GST
532 ELECOM_HWNAME := WRC-1900GST
533 endef
534 TARGET_DEVICES += elecom_wrc-1900gst
535
536 define Device/elecom_wrc-2533ghbk-i
537 $(Device/dsa-migration)
538 $(Device/uimage-lzma-loader)
539 DEVICE_VENDOR := ELECOM
540 DEVICE_MODEL := WRC-2533GHBK-I
541 IMAGE_SIZE := 9856k
542 IMAGES += factory.bin
543 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
544 elx-header 0107002d 8844A2D168B45A2D | \
545 elecom-product-header WRC-2533GHBK-I
546 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
547 endef
548 TARGET_DEVICES += elecom_wrc-2533ghbk-i
549
550 define Device/elecom_wrc-2533gst
551 $(Device/elecom_wrc-gs)
552 IMAGE_SIZE := 11264k
553 DEVICE_MODEL := WRC-2533GST
554 ELECOM_HWNAME := WRC-2533GST
555 endef
556 TARGET_DEVICES += elecom_wrc-2533gst
557
558 define Device/elecom_wrc-2533gst2
559 $(Device/elecom_wrc-gs)
560 IMAGE_SIZE := 24576k
561 DEVICE_MODEL := WRC-2533GST2
562 ELECOM_HWNAME := WRC-2533GST2
563 endef
564 TARGET_DEVICES += elecom_wrc-2533gst2
565
566 define Device/firefly_firewrt
567 $(Device/dsa-migration)
568 IMAGE_SIZE := 16064k
569 DEVICE_VENDOR := Firefly
570 DEVICE_MODEL := FireWRT
571 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
572 SUPPORTED_DEVICES += firewrt
573 endef
574 TARGET_DEVICES += firefly_firewrt
575
576 define Device/gehua_ghl-r-001
577 $(Device/dsa-migration)
578 IMAGE_SIZE := 32448k
579 DEVICE_VENDOR := GeHua
580 DEVICE_MODEL := GHL-R-001
581 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
582 kmod-usb-ledtrig-usbport
583 endef
584 TARGET_DEVICES += gehua_ghl-r-001
585
586 define Device/glinet_gl-mt1300
587 $(Device/dsa-migration)
588 IMAGE_SIZE := 32448k
589 DEVICE_VENDOR := GL.iNet
590 DEVICE_MODEL := GL-MT1300
591 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
592 endef
593 TARGET_DEVICES += glinet_gl-mt1300
594
595 define Device/gnubee_gb-pc1
596 $(Device/dsa-migration)
597 DEVICE_VENDOR := GnuBee
598 DEVICE_MODEL := Personal Cloud One
599 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620 -wpad-basic-wolfssl
600 IMAGE_SIZE := 32448k
601 endef
602 TARGET_DEVICES += gnubee_gb-pc1
603
604 define Device/gnubee_gb-pc2
605 $(Device/dsa-migration)
606 DEVICE_VENDOR := GnuBee
607 DEVICE_MODEL := Personal Cloud Two
608 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620 -wpad-basic-wolfssl
609 IMAGE_SIZE := 32448k
610 endef
611 TARGET_DEVICES += gnubee_gb-pc2
612
613 define Device/hiwifi_hc5962
614 $(Device/dsa-migration)
615 BLOCKSIZE := 128k
616 PAGESIZE := 2048
617 KERNEL_SIZE := 4096k
618 UBINIZE_OPTS := -E 5
619 IMAGE_SIZE := 32768k
620 IMAGES += factory.bin
621 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
622 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
623 check-size
624 DEVICE_VENDOR := HiWiFi
625 DEVICE_MODEL := HC5962
626 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3
627 endef
628 TARGET_DEVICES += hiwifi_hc5962
629
630 define Device/iodata_wn-ax1167gr
631 $(Device/dsa-migration)
632 $(Device/uimage-lzma-loader)
633 IMAGE_SIZE := 15552k
634 KERNEL_INITRAMFS := $$(KERNEL) | \
635 iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
636 DEVICE_VENDOR := I-O DATA
637 DEVICE_MODEL := WN-AX1167GR
638 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
639 endef
640 TARGET_DEVICES += iodata_wn-ax1167gr
641
642 define Device/iodata_nand
643 $(Device/dsa-migration)
644 DEVICE_VENDOR := I-O DATA
645 BLOCKSIZE := 128k
646 PAGESIZE := 2048
647 UBINIZE_OPTS := -E 5
648 KERNEL_SIZE := 4096k
649 IMAGE_SIZE := 51200k
650 LOADER_TYPE := bin
651 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | lzma | uImage lzma
652 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
653 endef
654
655 # The OEM webinterface expects an kernel with initramfs which has the uImage
656 # header field ih_name.
657 # We don't want to set the header name field for the kernel include in the
658 # sysupgrade image as well, as this image shouldn't be accepted by the OEM
659 # webinterface. It will soft-brick the board.
660
661 define Device/iodata_wn-ax1167gr2
662 $(Device/iodata_nand)
663 DEVICE_MODEL := WN-AX1167GR2
664 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
665 uImage lzma -M 0x434f4d42 -n '3.10(XBC.1)b10' | iodata-mstc-header
666 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
667 endef
668 TARGET_DEVICES += iodata_wn-ax1167gr2
669
670 define Device/iodata_wn-ax2033gr
671 $(Device/iodata_nand)
672 DEVICE_MODEL := WN-AX2033GR
673 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
674 uImage lzma -M 0x434f4d42 -n '3.10(VST.1)C10' | iodata-mstc-header
675 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
676 endef
677 TARGET_DEVICES += iodata_wn-ax2033gr
678
679 define Device/iodata_wn-dx1167r
680 $(Device/iodata_nand)
681 DEVICE_MODEL := WN-DX1167R
682 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
683 uImage lzma -M 0x434f4d43 -n '3.10(XIK.1)b10' | iodata-mstc-header
684 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
685 endef
686 TARGET_DEVICES += iodata_wn-dx1167r
687
688 define Device/iodata_wn-dx1200gr
689 $(Device/iodata_nand)
690 DEVICE_MODEL := WN-DX1200GR
691 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
692 uImage lzma -M 0x434f4d43 -n '3.10(XIQ.0)b20' | iodata-mstc-header
693 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap
694 endef
695 TARGET_DEVICES += iodata_wn-dx1200gr
696
697 define Device/iodata_wn-gx300gr
698 $(Device/dsa-migration)
699 $(Device/uimage-lzma-loader)
700 IMAGE_SIZE := 7616k
701 DEVICE_VENDOR := I-O DATA
702 DEVICE_MODEL := WN-GX300GR
703 DEVICE_PACKAGES := kmod-mt7603
704 endef
705 TARGET_DEVICES += iodata_wn-gx300gr
706
707 define Device/iodata_wnpr2600g
708 $(Device/dsa-migration)
709 $(Device/uimage-lzma-loader)
710 DEVICE_VENDOR := I-O DATA
711 DEVICE_MODEL := WNPR2600G
712 IMAGE_SIZE := 13952k
713 IMAGES += factory.bin
714 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
715 elx-header 0104003a 8844A2D168B45A2D
716 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
717 endef
718 TARGET_DEVICES += iodata_wnpr2600g
719
720 define Device/iptime_a6ns-m
721 $(Device/dsa-migration)
722 IMAGE_SIZE := 16128k
723 UIMAGE_NAME := a6nm
724 DEVICE_VENDOR := ipTIME
725 DEVICE_MODEL := A6ns-M
726 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
727 kmod-usb-ledtrig-usbport
728 endef
729 TARGET_DEVICES += iptime_a6ns-m
730
731 define Device/iptime_a8004t
732 $(Device/dsa-migration)
733 IMAGE_SIZE := 16128k
734 UIMAGE_NAME := a8004t
735 DEVICE_VENDOR := ipTIME
736 DEVICE_MODEL := A8004T
737 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
738 endef
739 TARGET_DEVICES += iptime_a8004t
740
741 define Device/jcg_jhr-ac876m
742 $(Device/dsa-migration)
743 IMAGE_SIZE := 16064k
744 IMAGES += factory.bin
745 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 89.1
746 JCG_MAXSIZE := 16064k
747 DEVICE_VENDOR := JCG
748 DEVICE_MODEL := JHR-AC876M
749 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
750 kmod-usb-ledtrig-usbport
751 endef
752 TARGET_DEVICES += jcg_jhr-ac876m
753
754 define Device/jcg_q20
755 $(Device/dsa-migration)
756 BLOCKSIZE := 128k
757 PAGESIZE := 2048
758 UBINIZE_OPTS := -E 5
759 KERNEL_SIZE := 4096k
760 IMAGE_SIZE := 91136k
761 IMAGES += factory.bin
762 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
763 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
764 check-size
765 DEVICE_VENDOR := JCG
766 DEVICE_MODEL := Q20
767 DEVICE_PACKAGES := kmod-mt7915e uboot-envtools
768 endef
769 TARGET_DEVICES += jcg_q20
770
771 define Device/jcg_y2
772 $(Device/dsa-migration)
773 $(Device/uimage-lzma-loader)
774 IMAGE_SIZE := 16064k
775 IMAGES += factory.bin
776 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 95.1
777 JCG_MAXSIZE := 16064k
778 DEVICE_VENDOR := JCG
779 DEVICE_MODEL := Y2
780 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
781 endef
782 TARGET_DEVICES += jcg_y2
783
784 define Device/lenovo_newifi-d1
785 $(Device/dsa-migration)
786 $(Device/uimage-lzma-loader)
787 IMAGE_SIZE := 32448k
788 DEVICE_VENDOR := Newifi
789 DEVICE_MODEL := D1
790 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
791 kmod-usb-ledtrig-usbport
792 SUPPORTED_DEVICES += newifi-d1
793 endef
794 TARGET_DEVICES += lenovo_newifi-d1
795
796 define Device/linksys_e5600
797 $(Device/dsa-migration)
798 $(Device/uimage-lzma-loader)
799 BLOCKSIZE := 128k
800 PAGESIZE := 2048
801 KERNEL_SIZE := 4096k
802 IMAGE_SIZE := 26624k
803 DEVICE_VENDOR := Linksys
804 DEVICE_MODEL := E5600
805 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap \
806 kmod-mt7663-firmware-sta uboot-envtools
807 UBINIZE_OPTS := -E 5
808 IMAGES += factory.bin
809 IMAGE/sysupgrade.bin := sysupgrade-tar | check-size | append-metadata
810 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
811 append-ubi | check-size | gemtek-trailer
812 endef
813 TARGET_DEVICES += linksys_e5600
814
815 define Device/linksys_ea7xxx
816 $(Device/dsa-migration)
817 $(Device/uimage-lzma-loader)
818 BLOCKSIZE := 128k
819 PAGESIZE := 2048
820 KERNEL_SIZE := 4096k
821 IMAGE_SIZE := 36864k
822 DEVICE_VENDOR := Linksys
823 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware \
824 uboot-envtools
825 UBINIZE_OPTS := -E 5
826 IMAGES := sysupgrade.bin factory.bin
827 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | check-size
828 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
829 append-ubi | check-size | linksys-image type=$$$$(LINKSYS_HWNAME)
830 endef
831
832 define Device/linksys_ea7300-v1
833 $(Device/linksys_ea7xxx)
834 DEVICE_MODEL := EA7300
835 DEVICE_VARIANT := v1
836 LINKSYS_HWNAME := EA7300
837 endef
838 TARGET_DEVICES += linksys_ea7300-v1
839
840 define Device/linksys_ea7300-v2
841 $(Device/linksys_ea7xxx)
842 DEVICE_MODEL := EA7300
843 DEVICE_VARIANT := v2
844 LINKSYS_HWNAME := EA7300v2
845 DEVICE_PACKAGES += kmod-mt7603
846 endef
847 TARGET_DEVICES += linksys_ea7300-v2
848
849 define Device/linksys_ea7500-v2
850 $(Device/linksys_ea7xxx)
851 DEVICE_MODEL := EA7500
852 DEVICE_VARIANT := v2
853 LINKSYS_HWNAME := EA7500v2
854 endef
855 TARGET_DEVICES += linksys_ea7500-v2
856
857 define Device/linksys_ea8100-v1
858 $(Device/linksys_ea7xxx)
859 DEVICE_MODEL := EA8100
860 DEVICE_VARIANT := v1
861 LINKSYS_HWNAME := EA8100
862 endef
863 TARGET_DEVICES += linksys_ea8100-v1
864
865 define Device/linksys_re6500
866 $(Device/dsa-migration)
867 IMAGE_SIZE := 7872k
868 DEVICE_VENDOR := Linksys
869 DEVICE_MODEL := RE6500
870 DEVICE_PACKAGES := kmod-mt76x2
871 SUPPORTED_DEVICES += re6500
872 endef
873 TARGET_DEVICES += linksys_re6500
874
875 define Device/mediatek_ap-mt7621a-v60
876 $(Device/dsa-migration)
877 IMAGE_SIZE := 7872k
878 DEVICE_VENDOR := Mediatek
879 DEVICE_MODEL := AP-MT7621A-V60 EVB
880 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620 -wpad-basic-wolfssl
881 endef
882 TARGET_DEVICES += mediatek_ap-mt7621a-v60
883
884 define Device/mediatek_mt7621-eval-board
885 $(Device/dsa-migration)
886 BLOCKSIZE := 64k
887 IMAGE_SIZE := 15104k
888 DEVICE_VENDOR := MediaTek
889 DEVICE_MODEL := MT7621 EVB
890 DEVICE_PACKAGES := -wpad-basic-wolfssl
891 SUPPORTED_DEVICES += mt7621
892 endef
893 TARGET_DEVICES += mediatek_mt7621-eval-board
894
895 define Device/MikroTik
896 $(Device/dsa-migration)
897 DEVICE_VENDOR := MikroTik
898 BLOCKSIZE := 64k
899 IMAGE_SIZE := 16128k
900 DEVICE_PACKAGES := kmod-usb3
901 KERNEL_NAME := vmlinuz
902 KERNEL := kernel-bin | append-dtb-elf
903 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
904 pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata | \
905 check-size
906 endef
907
908 define Device/mikrotik_routerboard-750gr3
909 $(Device/MikroTik)
910 DEVICE_MODEL := RouterBOARD 750Gr3
911 DEVICE_PACKAGES += -wpad-basic-wolfssl
912 SUPPORTED_DEVICES += mikrotik,rb750gr3
913 endef
914 TARGET_DEVICES += mikrotik_routerboard-750gr3
915
916 define Device/mikrotik_routerboard-760igs
917 $(Device/MikroTik)
918 DEVICE_MODEL := RouterBOARD 760iGS
919 DEVICE_PACKAGES += kmod-sfp -wpad-basic-wolfssl
920 endef
921 TARGET_DEVICES += mikrotik_routerboard-760igs
922
923 define Device/mikrotik_routerboard-m11g
924 $(Device/MikroTik)
925 DEVICE_MODEL := RouterBOARD M11G
926 DEVICE_PACKAGES := -wpad-basic-wolfssl
927 SUPPORTED_DEVICES += mikrotik,rbm11g
928 endef
929 TARGET_DEVICES += mikrotik_routerboard-m11g
930
931 define Device/mikrotik_routerboard-m33g
932 $(Device/MikroTik)
933 DEVICE_MODEL := RouterBOARD M33G
934 DEVICE_PACKAGES := -wpad-basic-wolfssl
935 SUPPORTED_DEVICES += mikrotik,rbm33g
936 endef
937 TARGET_DEVICES += mikrotik_routerboard-m33g
938
939 define Device/mqmaker_witi
940 $(Device/dsa-migration)
941 $(Device/uimage-lzma-loader)
942 IMAGE_SIZE := 16064k
943 DEVICE_VENDOR := MQmaker
944 DEVICE_MODEL := WiTi
945 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
946 kmod-usb-ledtrig-usbport
947 SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
948 endef
949 TARGET_DEVICES += mqmaker_witi
950
951 define Device/mtc_wr1201
952 $(Device/dsa-migration)
953 $(Device/uimage-lzma-loader)
954 IMAGE_SIZE := 16000k
955 DEVICE_VENDOR := MTC
956 DEVICE_MODEL := Wireless Router WR1201
957 KERNEL_INITRAMFS := $(KERNEL_DTB) | uImage lzma -n 'WR1201_8_128'
958 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
959 kmod-usb-ledtrig-usbport
960 endef
961 TARGET_DEVICES += mtc_wr1201
962
963 define Device/netgear_ex6150
964 $(Device/dsa-migration)
965 DEVICE_VENDOR := NETGEAR
966 DEVICE_MODEL := EX6150
967 DEVICE_PACKAGES := kmod-mt76x2
968 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
969 IMAGE_SIZE := 14848k
970 IMAGES += factory.chk
971 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size | netgear-chk
972 endef
973 TARGET_DEVICES += netgear_ex6150
974
975 define Device/netgear_sercomm_nand
976 $(Device/dsa-migration)
977 $(Device/uimage-lzma-loader)
978 BLOCKSIZE := 128k
979 PAGESIZE := 2048
980 KERNEL_SIZE := 4096k
981 UBINIZE_OPTS := -E 5
982 IMAGES += factory.img kernel.bin rootfs.bin
983 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \
984 append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
985 zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
986 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
987 IMAGE/kernel.bin := append-kernel
988 IMAGE/rootfs.bin := append-ubi | check-size
989 DEVICE_VENDOR := NETGEAR
990 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport
991 endef
992
993 define Device/netgear_r6220
994 $(Device/netgear_sercomm_nand)
995 DEVICE_MODEL := R6220
996 SERCOMM_HWNAME := R6220
997 SERCOMM_HWID := AYA
998 SERCOMM_HWVER := A001
999 SERCOMM_SWVER := 0x0086
1000 IMAGE_SIZE := 28672k
1001 DEVICE_PACKAGES += kmod-mt76x2
1002 SUPPORTED_DEVICES += r6220
1003 endef
1004 TARGET_DEVICES += netgear_r6220
1005
1006
1007 define Device/netgear_r6260
1008 $(Device/netgear_sercomm_nand)
1009 DEVICE_MODEL := R6260
1010 SERCOMM_HWNAME := R6260
1011 SERCOMM_HWID := CHJ
1012 SERCOMM_HWVER := A001
1013 SERCOMM_SWVER := 0x0052
1014 IMAGE_SIZE := 40960k
1015 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1016 endef
1017 TARGET_DEVICES += netgear_r6260
1018
1019 define Device/netgear_r6350
1020 $(Device/netgear_sercomm_nand)
1021 DEVICE_MODEL := R6350
1022 SERCOMM_HWNAME := R6350
1023 SERCOMM_HWID := CHJ
1024 SERCOMM_HWVER := A001
1025 SERCOMM_SWVER := 0x0052
1026 IMAGE_SIZE := 40960k
1027 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1028 endef
1029 TARGET_DEVICES += netgear_r6350
1030
1031 define Device/netgear_r6700-v2
1032 $(Device/netgear_sercomm_nand)
1033 DEVICE_MODEL := R6700
1034 DEVICE_VARIANT := v2
1035 DEVICE_ALT0_VENDOR := NETGEAR
1036 DEVICE_ALT0_MODEL := Nighthawk AC2400
1037 DEVICE_ALT0_VARIANT := v1
1038 DEVICE_ALT1_VENDOR := NETGEAR
1039 DEVICE_ALT1_MODEL := R7200
1040 DEVICE_ALT1_VARIANT := v1
1041 SERCOMM_HWNAME := R6950
1042 SERCOMM_HWID := BZV
1043 SERCOMM_HWVER := A001
1044 SERCOMM_SWVER := 0x1032
1045 IMAGE_SIZE := 40960k
1046 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1047 endef
1048 TARGET_DEVICES += netgear_r6700-v2
1049
1050 define Device/netgear_r6800
1051 $(Device/netgear_sercomm_nand)
1052 DEVICE_MODEL := R6800
1053 SERCOMM_HWNAME := R6950
1054 SERCOMM_HWID := BZV
1055 SERCOMM_HWVER := A001
1056 SERCOMM_SWVER := 0x0062
1057 IMAGE_SIZE := 40960k
1058 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1059 endef
1060 TARGET_DEVICES += netgear_r6800
1061
1062 define Device/netgear_r6850
1063 $(Device/netgear_sercomm_nand)
1064 DEVICE_MODEL := R6850
1065 SERCOMM_HWNAME := R6850
1066 SERCOMM_HWID := CHJ
1067 SERCOMM_HWVER := A001
1068 SERCOMM_SWVER := 0x0052
1069 IMAGE_SIZE := 40960k
1070 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1071 endef
1072 TARGET_DEVICES += netgear_r6850
1073
1074 define Device/netgear_wac104
1075 $(Device/netgear_sercomm_nand)
1076 DEVICE_MODEL := WAC104
1077 SERCOMM_HWNAME := WAC104
1078 SERCOMM_HWID := CAY
1079 SERCOMM_HWVER := A001
1080 SERCOMM_SWVER := 0x0006
1081 IMAGE_SIZE := 28672k
1082 DEVICE_PACKAGES += kmod-mt76x2
1083 endef
1084 TARGET_DEVICES += netgear_wac104
1085
1086 define Device/netgear_wac124
1087 $(Device/netgear_sercomm_nand)
1088 DEVICE_MODEL := WAC124
1089 SERCOMM_HWNAME := WAC124
1090 SERCOMM_HWID := CTL
1091 SERCOMM_HWVER := A003
1092 SERCOMM_SWVER := 0x0402
1093 IMAGE_SIZE := 40960k
1094 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1095 endef
1096 TARGET_DEVICES += netgear_wac124
1097
1098 define Device/netgear_wndr3700-v5
1099 $(Device/dsa-migration)
1100 $(Device/netgear_sercomm_nor)
1101 $(Device/uimage-lzma-loader)
1102 IMAGE_SIZE := 15232k
1103 DEVICE_MODEL := WNDR3700
1104 DEVICE_VARIANT := v5
1105 SERCOMM_HWNAME := WNDR3700v5
1106 SERCOMM_HWID := AYB
1107 SERCOMM_HWVER := A001
1108 SERCOMM_SWVER := 0x1054
1109 SERCOMM_PAD := 320k
1110 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1111 kmod-usb-ledtrig-usbport
1112 SUPPORTED_DEVICES += wndr3700v5
1113 endef
1114 TARGET_DEVICES += netgear_wndr3700-v5
1115
1116 define Device/netis_wf2881
1117 $(Device/dsa-migration)
1118 BLOCKSIZE := 128k
1119 PAGESIZE := 2048
1120 FILESYSTEMS := squashfs
1121 KERNEL_SIZE := 4096k
1122 IMAGE_SIZE := 129280k
1123 UBINIZE_OPTS := -E 5
1124 UIMAGE_NAME := WF2881_0.0.00
1125 KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
1126 IMAGES += factory.bin
1127 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1128 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
1129 check-size
1130 DEVICE_VENDOR := NETIS
1131 DEVICE_MODEL := WF2881
1132 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
1133 endef
1134 TARGET_DEVICES += netis_wf2881
1135
1136 define Device/phicomm_k2p
1137 $(Device/dsa-migration)
1138 IMAGE_SIZE := 15744k
1139 DEVICE_VENDOR := Phicomm
1140 DEVICE_MODEL := K2P
1141 DEVICE_ALT0_VENDOR := Phicomm
1142 DEVICE_ALT0_MODEL := KE 2P
1143 SUPPORTED_DEVICES += k2p
1144 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1145 endef
1146 TARGET_DEVICES += phicomm_k2p
1147
1148 define Device/planex_vr500
1149 $(Device/dsa-migration)
1150 $(Device/uimage-lzma-loader)
1151 IMAGE_SIZE := 65216k
1152 DEVICE_VENDOR := Planex
1153 DEVICE_MODEL := VR500
1154 DEVICE_PACKAGES := kmod-usb3 -wpad-basic-wolfssl
1155 SUPPORTED_DEVICES += vr500
1156 endef
1157 TARGET_DEVICES += planex_vr500
1158
1159 define Device/samknows_whitebox-v8
1160 $(Device/dsa-migration)
1161 IMAGE_SIZE := 16064k
1162 DEVICE_VENDOR := SamKnows
1163 DEVICE_MODEL := Whitebox 8
1164 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1165 kmod-usb-ledtrig-usbport uboot-envtools
1166 SUPPORTED_DEVICES += sk-wb8
1167 endef
1168 TARGET_DEVICES += samknows_whitebox-v8
1169
1170 define Device/sercomm_na502
1171 $(Device/uimage-lzma-loader)
1172 BLOCKSIZE := 128k
1173 PAGESIZE := 2048
1174 IMAGE_SIZE := 20480k
1175 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1176 UBINIZE_OPTS := -E 5
1177 KERNEL_SIZE := 4096k
1178 DEVICE_VENDOR := SERCOMM
1179 DEVICE_MODEL := NA502
1180 DEVICE_PACKAGES := kmod-mt76x2 kmod-mt7603 kmod-usb3
1181 endef
1182 TARGET_DEVICES += sercomm_na502
1183
1184 define Device/storylink_sap-g3200u3
1185 $(Device/dsa-migration)
1186 IMAGE_SIZE := 7872k
1187 DEVICE_VENDOR := STORYLiNK
1188 DEVICE_MODEL := SAP-G3200U3
1189 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
1190 SUPPORTED_DEVICES += sap-g3200u3
1191 endef
1192 TARGET_DEVICES += storylink_sap-g3200u3
1193
1194 define Device/telco-electronics_x1
1195 $(Device/dsa-migration)
1196 IMAGE_SIZE := 16064k
1197 DEVICE_VENDOR := Telco Electronics
1198 DEVICE_MODEL := X1
1199 DEVICE_PACKAGES := kmod-usb3 kmod-mt76
1200 endef
1201 TARGET_DEVICES += telco-electronics_x1
1202
1203 define Device/tenbay_t-mb5eu-v01
1204 $(Device/dsa-migration)
1205 DEVICE_VENDOR := Tenbay
1206 DEVICE_MODEL := T-MB5EU-V01
1207 DEVICE_DTS_CONFIG := config@1
1208 DEVICE_PACKAGES += kmod-mt7915e kmod-usb3
1209 KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1210 IMAGE_SIZE := 15808k
1211 SUPPORTED_DEVICES += mt7621-dm2-t-mb5eu-v01-nor
1212 endef
1213 TARGET_DEVICES += tenbay_t-mb5eu-v01
1214
1215 define Device/thunder_timecloud
1216 $(Device/dsa-migration)
1217 $(Device/uimage-lzma-loader)
1218 IMAGE_SIZE := 16064k
1219 DEVICE_VENDOR := Thunder
1220 DEVICE_MODEL := Timecloud
1221 DEVICE_PACKAGES := kmod-usb3 -wpad-basic-wolfssl
1222 SUPPORTED_DEVICES += timecloud
1223 endef
1224 TARGET_DEVICES += thunder_timecloud
1225
1226 define Device/totolink_a7000r
1227 $(Device/dsa-migration)
1228 IMAGE_SIZE := 16064k
1229 UIMAGE_NAME := C8340R1C-9999
1230 DEVICE_VENDOR := TOTOLINK
1231 DEVICE_MODEL := A7000R
1232 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1233 endef
1234 TARGET_DEVICES += totolink_a7000r
1235
1236 define Device/totolink_x5000r
1237 $(Device/dsa-migration)
1238 IMAGE_SIZE := 16064k
1239 UIMAGE_NAME := C8343R-9999
1240 DEVICE_VENDOR := TOTOLINK
1241 DEVICE_MODEL := X5000R
1242 DEVICE_PACKAGES := kmod-mt7915e
1243 endef
1244 TARGET_DEVICES += totolink_x5000r
1245
1246 define Device/tplink_archer-a6-v3
1247 $(Device/dsa-migration)
1248 $(Device/tplink-safeloader)
1249 DEVICE_MODEL := Archer A6
1250 DEVICE_VARIANT := V3
1251 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e \
1252 kmod-mt7663-firmware-ap kmod-mt7663-firmware-sta
1253 TPLINK_BOARD_ID := ARCHER-A6-V3
1254 KERNEL := $(KERNEL_DTB) | uImage lzma
1255 IMAGE_SIZE := 15744k
1256 endef
1257 TARGET_DEVICES += tplink_archer-a6-v3
1258
1259 define Device/tplink_archer-c6-v3
1260 $(Device/dsa-migration)
1261 $(Device/tplink-safeloader)
1262 DEVICE_MODEL := Archer C6
1263 DEVICE_VARIANT := V3
1264 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e \
1265 kmod-mt7663-firmware-ap kmod-mt7663-firmware-sta
1266 TPLINK_BOARD_ID := ARCHER-C6-V3
1267 KERNEL := $(KERNEL_DTB) | uImage lzma
1268 IMAGE_SIZE := 15744k
1269 endef
1270 TARGET_DEVICES += tplink_archer-c6-v3
1271
1272 define Device/tplink_archer-c6u-v1
1273 $(Device/dsa-migration)
1274 $(Device/tplink-safeloader)
1275 DEVICE_MODEL := Archer C6U
1276 DEVICE_VARIANT := v1
1277 DEVICE_PACKAGES := kmod-mt7603 \
1278 kmod-mt7615e kmod-mt7663-firmware-ap \
1279 kmod-usb3 kmod-usb-ledtrig-usbport
1280 KERNEL := $(KERNEL_DTB) | uImage lzma
1281 TPLINK_BOARD_ID := ARCHER-C6U-V1
1282 IMAGE_SIZE := 15744k
1283 endef
1284 TARGET_DEVICES += tplink_archer-c6u-v1
1285
1286 define Device/tplink_eap235-wall-v1
1287 $(Device/dsa-migration)
1288 $(Device/tplink-safeloader)
1289 DEVICE_MODEL := EAP235-Wall
1290 DEVICE_VARIANT := v1
1291 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap
1292 TPLINK_BOARD_ID := EAP235-WALL-V1
1293 IMAGE_SIZE := 13440k
1294 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory | \
1295 pad-extra 128
1296 endef
1297 TARGET_DEVICES += tplink_eap235-wall-v1
1298
1299 define Device/tplink_re350-v1
1300 $(Device/dsa-migration)
1301 $(Device/tplink-safeloader)
1302 DEVICE_MODEL := RE350
1303 DEVICE_VARIANT := v1
1304 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
1305 TPLINK_BOARD_ID := RE350-V1
1306 IMAGE_SIZE := 6016k
1307 SUPPORTED_DEVICES += re350-v1
1308 endef
1309 TARGET_DEVICES += tplink_re350-v1
1310
1311 define Device/tplink_re500-v1
1312 $(Device/dsa-migration)
1313 $(Device/tplink-safeloader)
1314 DEVICE_MODEL := RE500
1315 DEVICE_VARIANT := v1
1316 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1317 TPLINK_BOARD_ID := RE500-V1
1318 IMAGE_SIZE := 14208k
1319 endef
1320 TARGET_DEVICES += tplink_re500-v1
1321
1322 define Device/tplink_re650-v1
1323 $(Device/dsa-migration)
1324 $(Device/tplink-safeloader)
1325 DEVICE_MODEL := RE650
1326 DEVICE_VARIANT := v1
1327 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1328 TPLINK_BOARD_ID := RE650-V1
1329 IMAGE_SIZE := 14208k
1330 endef
1331 TARGET_DEVICES += tplink_re650-v1
1332
1333 define Device/ubnt_edgerouter_common
1334 $(Device/dsa-migration)
1335 $(Device/uimage-lzma-loader)
1336 DEVICE_VENDOR := Ubiquiti
1337 IMAGE_SIZE := 256768k
1338 FILESYSTEMS := squashfs
1339 KERNEL_SIZE := 3145728
1340 KERNEL_INITRAMFS := $$(KERNEL) | \
1341 ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
1342 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1343 DEVICE_PACKAGES += -wpad-basic-wolfssl
1344 endef
1345
1346 define Device/ubnt_edgerouter-x
1347 $(Device/ubnt_edgerouter_common)
1348 DEVICE_MODEL := EdgeRouter X
1349 SUPPORTED_DEVICES += ubnt-erx ubiquiti,edgerouterx
1350 endef
1351 TARGET_DEVICES += ubnt_edgerouter-x
1352
1353 define Device/ubnt_edgerouter-x-sfp
1354 $(Device/ubnt_edgerouter_common)
1355 DEVICE_MODEL := EdgeRouter X SFP
1356 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
1357 SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp
1358 endef
1359 TARGET_DEVICES += ubnt_edgerouter-x-sfp
1360
1361 define Device/ubnt_unifi-6-lite
1362 $(Device/dsa-migration)
1363 DEVICE_VENDOR := Ubiquiti
1364 DEVICE_MODEL := UniFi 6 Lite
1365 DEVICE_DTS_CONFIG := config@1
1366 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7915e
1367 KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1368 IMAGE_SIZE := 15424k
1369 endef
1370 TARGET_DEVICES += ubnt_unifi-6-lite
1371
1372 define Device/ubnt_unifi-nanohd
1373 $(Device/dsa-migration)
1374 DEVICE_VENDOR := Ubiquiti
1375 DEVICE_MODEL := UniFi nanoHD
1376 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1377 IMAGE_SIZE := 15552k
1378 endef
1379 TARGET_DEVICES += ubnt_unifi-nanohd
1380
1381 define Device/unielec_u7621-01-16m
1382 $(Device/dsa-migration)
1383 $(Device/uimage-lzma-loader)
1384 IMAGE_SIZE := 16064k
1385 DEVICE_VENDOR := UniElec
1386 DEVICE_MODEL := U7621-01
1387 DEVICE_VARIANT := 16M
1388 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3
1389 endef
1390 TARGET_DEVICES += unielec_u7621-01-16m
1391
1392 define Device/unielec_u7621-06-16m
1393 $(Device/dsa-migration)
1394 $(Device/uimage-lzma-loader)
1395 IMAGE_SIZE := 16064k
1396 DEVICE_VENDOR := UniElec
1397 DEVICE_MODEL := U7621-06
1398 DEVICE_VARIANT := 16M
1399 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 -wpad-basic-wolfssl
1400 SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
1401 endef
1402 TARGET_DEVICES += unielec_u7621-06-16m
1403
1404 define Device/unielec_u7621-06-64m
1405 $(Device/dsa-migration)
1406 $(Device/uimage-lzma-loader)
1407 IMAGE_SIZE := 65216k
1408 DEVICE_VENDOR := UniElec
1409 DEVICE_MODEL := U7621-06
1410 DEVICE_VARIANT := 64M
1411 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 -wpad-basic-wolfssl
1412 SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
1413 endef
1414 TARGET_DEVICES += unielec_u7621-06-64m
1415
1416 define Device/wavlink_wl-wn531a6
1417 $(Device/dsa-migration)
1418 DEVICE_VENDOR := Wavlink
1419 DEVICE_MODEL := WL-WN531A6
1420 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware kmod-usb3
1421 IMAGE_SIZE := 15040k
1422 endef
1423 TARGET_DEVICES += wavlink_wl-wn531a6
1424
1425 define Device/wevo_11acnas
1426 $(Device/dsa-migration)
1427 $(Device/uimage-lzma-loader)
1428 IMAGE_SIZE := 16064k
1429 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
1430 DEVICE_VENDOR := WeVO
1431 DEVICE_MODEL := 11AC NAS Router
1432 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1433 kmod-usb-ledtrig-usbport
1434 SUPPORTED_DEVICES += 11acnas
1435 endef
1436 TARGET_DEVICES += wevo_11acnas
1437
1438 define Device/wevo_w2914ns-v2
1439 $(Device/dsa-migration)
1440 $(Device/uimage-lzma-loader)
1441 IMAGE_SIZE := 16064k
1442 UIMAGE_NAME := W2914NS-V2(0.0.0)
1443 DEVICE_VENDOR := WeVO
1444 DEVICE_MODEL := W2914NS
1445 DEVICE_VARIANT := v2
1446 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1447 kmod-usb-ledtrig-usbport
1448 SUPPORTED_DEVICES += w2914nsv2
1449 endef
1450 TARGET_DEVICES += wevo_w2914ns-v2
1451
1452 define Device/winstars_ws-wn583a6
1453 $(Device/dsa-migration)
1454 $(Device/uimage-lzma-loader)
1455 IMAGE_SIZE := 7872k
1456 DEVICE_VENDOR := Winstars
1457 DEVICE_MODEL := WS-WN583A6
1458 DEVICE_ALT0_VENDOR := Gemeita
1459 DEVICE_ALT0_MODEL := AC2100
1460 KERNEL_INITRAMFS_SUFFIX := -WN583A6$$(KERNEL_SUFFIX)
1461 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1462 endef
1463 TARGET_DEVICES += winstars_ws-wn583a6
1464
1465 define Device/xiaomi_nand_separate
1466 $(Device/dsa-migration)
1467 $(Device/uimage-lzma-loader)
1468 DEVICE_VENDOR := Xiaomi
1469 DEVICE_PACKAGES := uboot-envtools
1470 BLOCKSIZE := 128k
1471 PAGESIZE := 2048
1472 KERNEL_SIZE := 4096k
1473 UBINIZE_OPTS := -E 5
1474 IMAGES += kernel1.bin rootfs0.bin
1475 IMAGE/kernel1.bin := append-kernel
1476 IMAGE/rootfs0.bin := append-ubi | check-size
1477 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1478 endef
1479
1480 define Device/xiaomi_mi-router-3g
1481 $(Device/xiaomi_nand_separate)
1482 DEVICE_MODEL := Mi Router 3G
1483 IMAGE_SIZE := 124416k
1484 DEVICE_PACKAGES += kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1485 kmod-usb-ledtrig-usbport
1486 SUPPORTED_DEVICES += R3G mir3g xiaomi,mir3g
1487 endef
1488 TARGET_DEVICES += xiaomi_mi-router-3g
1489
1490 define Device/xiaomi_mi-router-3g-v2
1491 $(Device/dsa-migration)
1492 $(Device/uimage-lzma-loader)
1493 IMAGE_SIZE := 14848k
1494 DEVICE_VENDOR := Xiaomi
1495 DEVICE_MODEL := Mi Router 3G
1496 DEVICE_VARIANT := v2
1497 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
1498 SUPPORTED_DEVICES += xiaomi,mir3g-v2
1499 endef
1500 TARGET_DEVICES += xiaomi_mi-router-3g-v2
1501
1502 define Device/xiaomi_mi-router-3-pro
1503 $(Device/dsa-migration)
1504 $(Device/uimage-lzma-loader)
1505 BLOCKSIZE := 128k
1506 PAGESIZE := 2048
1507 KERNEL_SIZE:= 4096k
1508 UBINIZE_OPTS := -E 5
1509 IMAGE_SIZE := 255488k
1510 DEVICE_VENDOR := Xiaomi
1511 DEVICE_MODEL := Mi Router 3 Pro
1512 IMAGES += factory.bin
1513 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1514 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
1515 check-size
1516 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
1517 kmod-usb-ledtrig-usbport uboot-envtools
1518 SUPPORTED_DEVICES += xiaomi,mir3p
1519 endef
1520 TARGET_DEVICES += xiaomi_mi-router-3-pro
1521
1522 define Device/xiaomi_mi-router-4
1523 $(Device/xiaomi_nand_separate)
1524 DEVICE_MODEL := Mi Router 4
1525 IMAGE_SIZE := 124416k
1526 DEVICE_PACKAGES += kmod-mt7603 kmod-mt76x2
1527 endef
1528 TARGET_DEVICES += xiaomi_mi-router-4
1529
1530 define Device/xiaomi_mi-router-4a-gigabit
1531 $(Device/dsa-migration)
1532 $(Device/uimage-lzma-loader)
1533 IMAGE_SIZE := 14848k
1534 DEVICE_VENDOR := Xiaomi
1535 DEVICE_MODEL := Mi Router 4A
1536 DEVICE_VARIANT := Gigabit Edition
1537 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
1538 endef
1539 TARGET_DEVICES += xiaomi_mi-router-4a-gigabit
1540
1541 define Device/xiaomi_mi-router-ac2100
1542 $(Device/xiaomi_nand_separate)
1543 DEVICE_MODEL := Mi Router AC2100
1544 IMAGE_SIZE := 120320k
1545 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1546 endef
1547 TARGET_DEVICES += xiaomi_mi-router-ac2100
1548
1549 define Device/xiaomi_redmi-router-ac2100
1550 $(Device/xiaomi_nand_separate)
1551 DEVICE_MODEL := Redmi Router AC2100
1552 IMAGE_SIZE := 120320k
1553 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1554 endef
1555 TARGET_DEVICES += xiaomi_redmi-router-ac2100
1556
1557 define Device/xiaoyu_xy-c5
1558 $(Device/dsa-migration)
1559 IMAGE_SIZE := 32448k
1560 DEVICE_VENDOR := XiaoYu
1561 DEVICE_MODEL := XY-C5
1562 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 -wpad-basic-wolfssl
1563 endef
1564 TARGET_DEVICES += xiaoyu_xy-c5
1565
1566 define Device/xzwifi_creativebox-v1
1567 $(Device/dsa-migration)
1568 IMAGE_SIZE := 32448k
1569 DEVICE_VENDOR := CreativeBox
1570 DEVICE_MODEL := v1
1571 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
1572 kmod-usb3 -wpad-basic-wolfssl
1573 endef
1574 TARGET_DEVICES += xzwifi_creativebox-v1
1575
1576 define Device/youhua_wr1200js
1577 $(Device/dsa-migration)
1578 IMAGE_SIZE := 16064k
1579 DEVICE_VENDOR := YouHua
1580 DEVICE_MODEL := WR1200JS
1581 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1582 kmod-usb-ledtrig-usbport
1583 endef
1584 TARGET_DEVICES += youhua_wr1200js
1585
1586 define Device/youku_yk-l2
1587 $(Device/dsa-migration)
1588 IMAGE_SIZE := 16064k
1589 DEVICE_VENDOR := Youku
1590 DEVICE_MODEL := YK-L2
1591 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1592 kmod-usb-ledtrig-usbport
1593 endef
1594 TARGET_DEVICES += youku_yk-l2
1595
1596 define Device/zbtlink_zbt-we1326
1597 $(Device/dsa-migration)
1598 $(Device/uimage-lzma-loader)
1599 IMAGE_SIZE := 16064k
1600 DEVICE_VENDOR := Zbtlink
1601 DEVICE_MODEL := ZBT-WE1326
1602 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620
1603 SUPPORTED_DEVICES += zbt-we1326
1604 endef
1605 TARGET_DEVICES += zbtlink_zbt-we1326
1606
1607 define Device/zbtlink_zbt-we3526
1608 $(Device/dsa-migration)
1609 $(Device/uimage-lzma-loader)
1610 IMAGE_SIZE := 16064k
1611 DEVICE_VENDOR := Zbtlink
1612 DEVICE_MODEL := ZBT-WE3526
1613 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1614 kmod-usb-ledtrig-usbport
1615 endef
1616 TARGET_DEVICES += zbtlink_zbt-we3526
1617
1618 define Device/zbtlink_zbt-wg2626
1619 $(Device/dsa-migration)
1620 $(Device/uimage-lzma-loader)
1621 IMAGE_SIZE := 16064k
1622 DEVICE_VENDOR := Zbtlink
1623 DEVICE_MODEL := ZBT-WG2626
1624 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1625 kmod-usb-ledtrig-usbport
1626 SUPPORTED_DEVICES += zbt-wg2626
1627 endef
1628 TARGET_DEVICES += zbtlink_zbt-wg2626
1629
1630 define Device/zbtlink_zbt-wg3526-16m
1631 $(Device/dsa-migration)
1632 $(Device/uimage-lzma-loader)
1633 IMAGE_SIZE := 16064k
1634 DEVICE_VENDOR := Zbtlink
1635 DEVICE_MODEL := ZBT-WG3526
1636 DEVICE_VARIANT := 16M
1637 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1638 kmod-usb3 kmod-usb-ledtrig-usbport
1639 SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
1640 endef
1641 TARGET_DEVICES += zbtlink_zbt-wg3526-16m
1642
1643 define Device/zbtlink_zbt-wg3526-32m
1644 $(Device/dsa-migration)
1645 $(Device/uimage-lzma-loader)
1646 IMAGE_SIZE := 32448k
1647 DEVICE_VENDOR := Zbtlink
1648 DEVICE_MODEL := ZBT-WG3526
1649 DEVICE_VARIANT := 32M
1650 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1651 kmod-usb3 kmod-usb-ledtrig-usbport
1652 SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
1653 endef
1654 TARGET_DEVICES += zbtlink_zbt-wg3526-32m
1655
1656 define Device/zio_freezio
1657 $(Device/dsa-migration)
1658 IMAGE_SIZE := 16064k
1659 DEVICE_VENDOR := ZIO
1660 DEVICE_MODEL := FREEZIO
1661 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1662 kmod-usb-ledtrig-usbport
1663 endef
1664 TARGET_DEVICES += zio_freezio
1665
1666 define Device/zyxel_nr7101
1667 $(Device/dsa-migration)
1668 BLOCKSIZE := 128k
1669 PAGESIZE := 2048
1670 UBINIZE_OPTS := -E 5
1671 DEVICE_VENDOR := ZyXEL
1672 DEVICE_MODEL := NR7101
1673 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 uboot-envtools kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1674 KERNEL := $(KERNEL_DTB) | uImage lzma | zytrx-header $$(DEVICE_MODEL) $$(VERSION_DIST)-$$(REVISION)
1675 KERNEL_INITRAMFS := $(KERNEL_DTB) | uImage lzma | zytrx-header $$(DEVICE_MODEL) 9.99(ABUV.9)$$(VERSION_DIST)-recovery
1676 KERNEL_INITRAMFS_SUFFIX := -recovery.bin
1677 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1678 endef
1679 TARGET_DEVICES += zyxel_nr7101
1680
1681 define Device/zyxel_wap6805
1682 $(Device/dsa-migration)
1683 BLOCKSIZE := 128k
1684 PAGESIZE := 2048
1685 KERNEL_SIZE := 4096k
1686 UBINIZE_OPTS := -E 5
1687 IMAGE_SIZE := 32448k
1688 DEVICE_VENDOR := ZyXEL
1689 DEVICE_MODEL := WAP6805
1690 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7621-qtn-rgmii
1691 KERNEL := $(KERNEL_DTB) | uImage lzma | uimage-padhdr 160
1692 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1693 endef
1694 TARGET_DEVICES += zyxel_wap6805