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