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