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