ramips: add support for Netgear R7450
[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 := $$(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-dx2033gr
711 $(Device/iodata_nand)
712 DEVICE_MODEL := WN-DX2033GR
713 KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
714 uImage lzma -M 0x434f4d42 -n '3.10(XID.0)b30' | iodata-mstc-header
715 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
716 endef
717 TARGET_DEVICES += iodata_wn-dx2033gr
718
719 define Device/iodata_wn-gx300gr
720 $(Device/dsa-migration)
721 $(Device/uimage-lzma-loader)
722 IMAGE_SIZE := 7616k
723 DEVICE_VENDOR := I-O DATA
724 DEVICE_MODEL := WN-GX300GR
725 DEVICE_PACKAGES := kmod-mt7603
726 endef
727 TARGET_DEVICES += iodata_wn-gx300gr
728
729 define Device/iodata_wnpr2600g
730 $(Device/dsa-migration)
731 $(Device/uimage-lzma-loader)
732 DEVICE_VENDOR := I-O DATA
733 DEVICE_MODEL := WNPR2600G
734 IMAGE_SIZE := 13952k
735 IMAGES += factory.bin
736 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
737 elx-header 0104003a 8844A2D168B45A2D
738 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
739 endef
740 TARGET_DEVICES += iodata_wnpr2600g
741
742 define Device/iptime_a6ns-m
743 $(Device/dsa-migration)
744 IMAGE_SIZE := 16128k
745 UIMAGE_NAME := a6nm
746 DEVICE_VENDOR := ipTIME
747 DEVICE_MODEL := A6ns-M
748 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
749 kmod-usb-ledtrig-usbport
750 endef
751 TARGET_DEVICES += iptime_a6ns-m
752
753 define Device/iptime_a8004t
754 $(Device/dsa-migration)
755 IMAGE_SIZE := 16128k
756 UIMAGE_NAME := a8004t
757 DEVICE_VENDOR := ipTIME
758 DEVICE_MODEL := A8004T
759 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
760 endef
761 TARGET_DEVICES += iptime_a8004t
762
763 define Device/jcg_jhr-ac876m
764 $(Device/dsa-migration)
765 IMAGE_SIZE := 16064k
766 IMAGES += factory.bin
767 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 89.1
768 JCG_MAXSIZE := 16064k
769 DEVICE_VENDOR := JCG
770 DEVICE_MODEL := JHR-AC876M
771 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
772 kmod-usb-ledtrig-usbport
773 endef
774 TARGET_DEVICES += jcg_jhr-ac876m
775
776 define Device/jcg_q20
777 $(Device/dsa-migration)
778 BLOCKSIZE := 128k
779 PAGESIZE := 2048
780 UBINIZE_OPTS := -E 5
781 KERNEL_SIZE := 4096k
782 IMAGE_SIZE := 91136k
783 IMAGES += factory.bin
784 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
785 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
786 check-size
787 DEVICE_VENDOR := JCG
788 DEVICE_MODEL := Q20
789 DEVICE_PACKAGES := kmod-mt7915e uboot-envtools
790 endef
791 TARGET_DEVICES += jcg_q20
792
793 define Device/jcg_y2
794 $(Device/dsa-migration)
795 $(Device/uimage-lzma-loader)
796 IMAGE_SIZE := 16064k
797 IMAGES += factory.bin
798 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 95.1
799 JCG_MAXSIZE := 16064k
800 DEVICE_VENDOR := JCG
801 DEVICE_MODEL := Y2
802 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
803 endef
804 TARGET_DEVICES += jcg_y2
805
806 define Device/lenovo_newifi-d1
807 $(Device/dsa-migration)
808 $(Device/uimage-lzma-loader)
809 IMAGE_SIZE := 32448k
810 DEVICE_VENDOR := Newifi
811 DEVICE_MODEL := D1
812 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
813 kmod-usb-ledtrig-usbport
814 SUPPORTED_DEVICES += newifi-d1
815 endef
816 TARGET_DEVICES += lenovo_newifi-d1
817
818 define Device/linksys_e5600
819 $(Device/dsa-migration)
820 $(Device/uimage-lzma-loader)
821 BLOCKSIZE := 128k
822 PAGESIZE := 2048
823 KERNEL_SIZE := 4096k
824 IMAGE_SIZE := 26624k
825 DEVICE_VENDOR := Linksys
826 DEVICE_MODEL := E5600
827 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap \
828 kmod-mt7663-firmware-sta uboot-envtools
829 UBINIZE_OPTS := -E 5
830 IMAGES += factory.bin
831 IMAGE/sysupgrade.bin := sysupgrade-tar | check-size | append-metadata
832 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
833 append-ubi | check-size | gemtek-trailer
834 endef
835 TARGET_DEVICES += linksys_e5600
836
837 define Device/linksys_ea7xxx
838 $(Device/dsa-migration)
839 $(Device/uimage-lzma-loader)
840 BLOCKSIZE := 128k
841 PAGESIZE := 2048
842 KERNEL_SIZE := 4096k
843 IMAGE_SIZE := 36864k
844 DEVICE_VENDOR := Linksys
845 DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware \
846 uboot-envtools
847 UBINIZE_OPTS := -E 5
848 IMAGES := sysupgrade.bin factory.bin
849 IMAGE/sysupgrade.bin := sysupgrade-tar | check-size | append-metadata
850 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
851 append-ubi | check-size | linksys-image type=$$$$(LINKSYS_HWNAME)
852 endef
853
854 define Device/linksys_ea7300-v1
855 $(Device/linksys_ea7xxx)
856 DEVICE_MODEL := EA7300
857 DEVICE_VARIANT := v1
858 LINKSYS_HWNAME := EA7300
859 endef
860 TARGET_DEVICES += linksys_ea7300-v1
861
862 define Device/linksys_ea7300-v2
863 $(Device/linksys_ea7xxx)
864 DEVICE_MODEL := EA7300
865 DEVICE_VARIANT := v2
866 LINKSYS_HWNAME := EA7300v2
867 DEVICE_PACKAGES += kmod-mt7603
868 endef
869 TARGET_DEVICES += linksys_ea7300-v2
870
871 define Device/linksys_ea7500-v2
872 $(Device/linksys_ea7xxx)
873 DEVICE_MODEL := EA7500
874 DEVICE_VARIANT := v2
875 LINKSYS_HWNAME := EA7500v2
876 endef
877 TARGET_DEVICES += linksys_ea7500-v2
878
879 define Device/linksys_ea8100-v1
880 $(Device/linksys_ea7xxx)
881 DEVICE_MODEL := EA8100
882 DEVICE_VARIANT := v1
883 LINKSYS_HWNAME := EA8100
884 endef
885 TARGET_DEVICES += linksys_ea8100-v1
886
887 define Device/linksys_ea8100-v2
888 $(Device/linksys_ea7xxx)
889 DEVICE_MODEL := EA8100
890 DEVICE_VARIANT := v2
891 LINKSYS_HWNAME := EA8100v2
892 endef
893 TARGET_DEVICES += linksys_ea8100-v2
894
895 define Device/linksys_re6500
896 $(Device/dsa-migration)
897 IMAGE_SIZE := 7872k
898 DEVICE_VENDOR := Linksys
899 DEVICE_MODEL := RE6500
900 DEVICE_PACKAGES := kmod-mt76x2
901 SUPPORTED_DEVICES += re6500
902 endef
903 TARGET_DEVICES += linksys_re6500
904
905 define Device/mediatek_ap-mt7621a-v60
906 $(Device/dsa-migration)
907 IMAGE_SIZE := 7872k
908 DEVICE_VENDOR := Mediatek
909 DEVICE_MODEL := AP-MT7621A-V60 EVB
910 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620 -wpad-basic-wolfssl
911 endef
912 TARGET_DEVICES += mediatek_ap-mt7621a-v60
913
914 define Device/mediatek_mt7621-eval-board
915 $(Device/dsa-migration)
916 BLOCKSIZE := 64k
917 IMAGE_SIZE := 15104k
918 DEVICE_VENDOR := MediaTek
919 DEVICE_MODEL := MT7621 EVB
920 DEVICE_PACKAGES := -wpad-basic-wolfssl
921 SUPPORTED_DEVICES += mt7621
922 endef
923 TARGET_DEVICES += mediatek_mt7621-eval-board
924
925 define Device/MikroTik
926 $(Device/dsa-migration)
927 DEVICE_VENDOR := MikroTik
928 BLOCKSIZE := 64k
929 IMAGE_SIZE := 16128k
930 DEVICE_PACKAGES := kmod-usb3
931 KERNEL_NAME := vmlinuz
932 KERNEL := kernel-bin | append-dtb-elf
933 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
934 pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | \
935 append-metadata
936 endef
937
938 define Device/mikrotik_routerboard-750gr3
939 $(Device/MikroTik)
940 DEVICE_MODEL := RouterBOARD 750Gr3
941 DEVICE_PACKAGES += -wpad-basic-wolfssl
942 SUPPORTED_DEVICES += mikrotik,rb750gr3
943 endef
944 TARGET_DEVICES += mikrotik_routerboard-750gr3
945
946 define Device/mikrotik_routerboard-760igs
947 $(Device/MikroTik)
948 DEVICE_MODEL := RouterBOARD 760iGS
949 DEVICE_PACKAGES += kmod-sfp -wpad-basic-wolfssl
950 endef
951 TARGET_DEVICES += mikrotik_routerboard-760igs
952
953 define Device/mikrotik_routerboard-m11g
954 $(Device/MikroTik)
955 DEVICE_MODEL := RouterBOARD M11G
956 DEVICE_PACKAGES := -wpad-basic-wolfssl
957 SUPPORTED_DEVICES += mikrotik,rbm11g
958 endef
959 TARGET_DEVICES += mikrotik_routerboard-m11g
960
961 define Device/mikrotik_routerboard-m33g
962 $(Device/MikroTik)
963 DEVICE_MODEL := RouterBOARD M33G
964 DEVICE_PACKAGES := -wpad-basic-wolfssl
965 SUPPORTED_DEVICES += mikrotik,rbm33g
966 endef
967 TARGET_DEVICES += mikrotik_routerboard-m33g
968
969 define Device/mqmaker_witi
970 $(Device/dsa-migration)
971 $(Device/uimage-lzma-loader)
972 IMAGE_SIZE := 16064k
973 DEVICE_VENDOR := MQmaker
974 DEVICE_MODEL := WiTi
975 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
976 kmod-usb-ledtrig-usbport
977 SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
978 endef
979 TARGET_DEVICES += mqmaker_witi
980
981 define Device/mtc_wr1201
982 $(Device/dsa-migration)
983 $(Device/uimage-lzma-loader)
984 IMAGE_SIZE := 16000k
985 DEVICE_VENDOR := MTC
986 DEVICE_MODEL := Wireless Router WR1201
987 KERNEL_INITRAMFS := $(KERNEL_DTB) | uImage lzma -n 'WR1201_8_128'
988 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
989 kmod-usb-ledtrig-usbport
990 endef
991 TARGET_DEVICES += mtc_wr1201
992
993 define Device/netgear_ex6150
994 $(Device/dsa-migration)
995 DEVICE_VENDOR := NETGEAR
996 DEVICE_MODEL := EX6150
997 DEVICE_PACKAGES := kmod-mt76x2
998 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
999 IMAGE_SIZE := 14848k
1000 IMAGES += factory.chk
1001 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size | netgear-chk
1002 endef
1003 TARGET_DEVICES += netgear_ex6150
1004
1005 define Device/netgear_sercomm_nand
1006 $(Device/dsa-migration)
1007 $(Device/uimage-lzma-loader)
1008 BLOCKSIZE := 128k
1009 PAGESIZE := 2048
1010 KERNEL_SIZE := 4096k
1011 UBINIZE_OPTS := -E 5
1012 IMAGES += factory.img kernel.bin rootfs.bin
1013 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \
1014 append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
1015 zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
1016 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1017 IMAGE/kernel.bin := append-kernel
1018 IMAGE/rootfs.bin := append-ubi | check-size
1019 DEVICE_VENDOR := NETGEAR
1020 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport
1021 endef
1022
1023 define Device/netgear_r6220
1024 $(Device/netgear_sercomm_nand)
1025 DEVICE_MODEL := R6220
1026 SERCOMM_HWNAME := R6220
1027 SERCOMM_HWID := AYA
1028 SERCOMM_HWVER := A001
1029 SERCOMM_SWVER := 0x0086
1030 IMAGE_SIZE := 28672k
1031 DEVICE_PACKAGES += kmod-mt76x2
1032 SUPPORTED_DEVICES += r6220
1033 endef
1034 TARGET_DEVICES += netgear_r6220
1035
1036
1037 define Device/netgear_r6260
1038 $(Device/netgear_sercomm_nand)
1039 DEVICE_MODEL := R6260
1040 SERCOMM_HWNAME := R6260
1041 SERCOMM_HWID := CHJ
1042 SERCOMM_HWVER := A001
1043 SERCOMM_SWVER := 0x0052
1044 IMAGE_SIZE := 40960k
1045 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1046 endef
1047 TARGET_DEVICES += netgear_r6260
1048
1049 define Device/netgear_r6350
1050 $(Device/netgear_sercomm_nand)
1051 DEVICE_MODEL := R6350
1052 SERCOMM_HWNAME := R6350
1053 SERCOMM_HWID := CHJ
1054 SERCOMM_HWVER := A001
1055 SERCOMM_SWVER := 0x0052
1056 IMAGE_SIZE := 40960k
1057 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1058 endef
1059 TARGET_DEVICES += netgear_r6350
1060
1061 define Device/netgear_r6700-v2
1062 $(Device/netgear_sercomm_nand)
1063 DEVICE_MODEL := R6700
1064 DEVICE_VARIANT := v2
1065 DEVICE_ALT0_VENDOR := NETGEAR
1066 DEVICE_ALT0_MODEL := Nighthawk AC2400
1067 DEVICE_ALT0_VARIANT := v1
1068 DEVICE_ALT1_VENDOR := NETGEAR
1069 DEVICE_ALT1_MODEL := Nighthawk AC2100
1070 DEVICE_ALT1_VARIANT := v1
1071 SERCOMM_HWNAME := R6950
1072 SERCOMM_HWID := BZV
1073 SERCOMM_HWVER := A001
1074 SERCOMM_SWVER := 0x1032
1075 IMAGE_SIZE := 40960k
1076 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1077 endef
1078 TARGET_DEVICES += netgear_r6700-v2
1079
1080 define Device/netgear_r6800
1081 $(Device/netgear_sercomm_nand)
1082 DEVICE_MODEL := R6800
1083 SERCOMM_HWNAME := R6950
1084 SERCOMM_HWID := BZV
1085 SERCOMM_HWVER := A001
1086 SERCOMM_SWVER := 0x0062
1087 IMAGE_SIZE := 40960k
1088 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1089 endef
1090 TARGET_DEVICES += netgear_r6800
1091
1092 define Device/netgear_r6850
1093 $(Device/netgear_sercomm_nand)
1094 DEVICE_MODEL := R6850
1095 SERCOMM_HWNAME := R6850
1096 SERCOMM_HWID := CHJ
1097 SERCOMM_HWVER := A001
1098 SERCOMM_SWVER := 0x0052
1099 IMAGE_SIZE := 40960k
1100 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1101 endef
1102 TARGET_DEVICES += netgear_r6850
1103
1104 define Device/netgear_r6900-v2
1105 $(Device/netgear_sercomm_nand)
1106 DEVICE_MODEL := R6900
1107 DEVICE_VARIANT := v2
1108 SERCOMM_HWNAME := R6950
1109 SERCOMM_HWID := BZV
1110 SERCOMM_HWVER := A001
1111 SERCOMM_SWVER := 0x1032
1112 IMAGE_SIZE := 40960k
1113 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1114 endef
1115 TARGET_DEVICES += netgear_r6900-v2
1116
1117 define Device/netgear_r7200
1118 $(Device/netgear_sercomm_nand)
1119 DEVICE_MODEL := R7200
1120 SERCOMM_HWNAME := R6950
1121 SERCOMM_HWID := BZV
1122 SERCOMM_HWVER := A001
1123 SERCOMM_SWVER := 0x1032
1124 IMAGE_SIZE := 40960k
1125 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1126 endef
1127 TARGET_DEVICES += netgear_r7200
1128
1129 define Device/netgear_r7450
1130 $(Device/netgear_sercomm_nand)
1131 DEVICE_MODEL := R7450
1132 SERCOMM_HWNAME := R6950
1133 SERCOMM_HWID := BZV
1134 SERCOMM_HWVER := A001
1135 SERCOMM_SWVER := 0x1032
1136 IMAGE_SIZE := 40960k
1137 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1138 endef
1139 TARGET_DEVICES += netgear_r7450
1140
1141 define Device/netgear_wac104
1142 $(Device/netgear_sercomm_nand)
1143 DEVICE_MODEL := WAC104
1144 SERCOMM_HWNAME := WAC104
1145 SERCOMM_HWID := CAY
1146 SERCOMM_HWVER := A001
1147 SERCOMM_SWVER := 0x0006
1148 IMAGE_SIZE := 28672k
1149 DEVICE_PACKAGES += kmod-mt76x2
1150 endef
1151 TARGET_DEVICES += netgear_wac104
1152
1153 define Device/netgear_wac124
1154 $(Device/netgear_sercomm_nand)
1155 DEVICE_MODEL := WAC124
1156 SERCOMM_HWNAME := WAC124
1157 SERCOMM_HWID := CTL
1158 SERCOMM_HWVER := A003
1159 SERCOMM_SWVER := 0x0402
1160 IMAGE_SIZE := 40960k
1161 DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware
1162 endef
1163 TARGET_DEVICES += netgear_wac124
1164
1165 define Device/netgear_wndr3700-v5
1166 $(Device/dsa-migration)
1167 $(Device/netgear_sercomm_nor)
1168 $(Device/uimage-lzma-loader)
1169 IMAGE_SIZE := 15232k
1170 DEVICE_MODEL := WNDR3700
1171 DEVICE_VARIANT := v5
1172 SERCOMM_HWNAME := WNDR3700v5
1173 SERCOMM_HWID := AYB
1174 SERCOMM_HWVER := A001
1175 SERCOMM_SWVER := 0x1054
1176 SERCOMM_PAD := 320k
1177 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1178 kmod-usb-ledtrig-usbport
1179 SUPPORTED_DEVICES += wndr3700v5
1180 endef
1181 TARGET_DEVICES += netgear_wndr3700-v5
1182
1183 define Device/netis_wf2881
1184 $(Device/dsa-migration)
1185 BLOCKSIZE := 128k
1186 PAGESIZE := 2048
1187 FILESYSTEMS := squashfs
1188 KERNEL_SIZE := 4096k
1189 IMAGE_SIZE := 129280k
1190 UBINIZE_OPTS := -E 5
1191 UIMAGE_NAME := WF2881_0.0.00
1192 KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
1193 IMAGES += factory.bin
1194 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1195 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
1196 check-size
1197 DEVICE_VENDOR := NETIS
1198 DEVICE_MODEL := WF2881
1199 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
1200 endef
1201 TARGET_DEVICES += netis_wf2881
1202
1203 define Device/phicomm_k2p
1204 $(Device/dsa-migration)
1205 IMAGE_SIZE := 15744k
1206 DEVICE_VENDOR := Phicomm
1207 DEVICE_MODEL := K2P
1208 DEVICE_ALT0_VENDOR := Phicomm
1209 DEVICE_ALT0_MODEL := KE 2P
1210 SUPPORTED_DEVICES += k2p
1211 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1212 endef
1213 TARGET_DEVICES += phicomm_k2p
1214
1215 define Device/planex_vr500
1216 $(Device/dsa-migration)
1217 $(Device/uimage-lzma-loader)
1218 IMAGE_SIZE := 65216k
1219 DEVICE_VENDOR := Planex
1220 DEVICE_MODEL := VR500
1221 DEVICE_PACKAGES := kmod-usb3 -wpad-basic-wolfssl
1222 SUPPORTED_DEVICES += vr500
1223 endef
1224 TARGET_DEVICES += planex_vr500
1225
1226 define Device/samknows_whitebox-v8
1227 $(Device/dsa-migration)
1228 IMAGE_SIZE := 16064k
1229 DEVICE_VENDOR := SamKnows
1230 DEVICE_MODEL := Whitebox 8
1231 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1232 kmod-usb-ledtrig-usbport uboot-envtools
1233 SUPPORTED_DEVICES += sk-wb8
1234 endef
1235 TARGET_DEVICES += samknows_whitebox-v8
1236
1237 define Device/sercomm_na502
1238 $(Device/uimage-lzma-loader)
1239 BLOCKSIZE := 128k
1240 PAGESIZE := 2048
1241 IMAGE_SIZE := 20480k
1242 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1243 UBINIZE_OPTS := -E 5
1244 KERNEL_SIZE := 4096k
1245 DEVICE_VENDOR := SERCOMM
1246 DEVICE_MODEL := NA502
1247 DEVICE_PACKAGES := kmod-mt76x2 kmod-mt7603 kmod-usb3
1248 endef
1249 TARGET_DEVICES += sercomm_na502
1250
1251 define Device/storylink_sap-g3200u3
1252 $(Device/dsa-migration)
1253 IMAGE_SIZE := 7872k
1254 DEVICE_VENDOR := STORYLiNK
1255 DEVICE_MODEL := SAP-G3200U3
1256 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
1257 SUPPORTED_DEVICES += sap-g3200u3
1258 endef
1259 TARGET_DEVICES += storylink_sap-g3200u3
1260
1261 define Device/telco-electronics_x1
1262 $(Device/dsa-migration)
1263 IMAGE_SIZE := 16064k
1264 DEVICE_VENDOR := Telco Electronics
1265 DEVICE_MODEL := X1
1266 DEVICE_PACKAGES := kmod-usb3 kmod-mt76
1267 endef
1268 TARGET_DEVICES += telco-electronics_x1
1269
1270 define Device/tenbay_t-mb5eu-v01
1271 $(Device/dsa-migration)
1272 DEVICE_VENDOR := Tenbay
1273 DEVICE_MODEL := T-MB5EU-V01
1274 DEVICE_DTS_CONFIG := config@1
1275 DEVICE_PACKAGES += kmod-mt7915e kmod-usb3
1276 KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1277 IMAGE_SIZE := 15808k
1278 SUPPORTED_DEVICES += mt7621-dm2-t-mb5eu-v01-nor
1279 endef
1280 TARGET_DEVICES += tenbay_t-mb5eu-v01
1281
1282 define Device/thunder_timecloud
1283 $(Device/dsa-migration)
1284 $(Device/uimage-lzma-loader)
1285 IMAGE_SIZE := 16064k
1286 DEVICE_VENDOR := Thunder
1287 DEVICE_MODEL := Timecloud
1288 DEVICE_PACKAGES := kmod-usb3 -wpad-basic-wolfssl
1289 SUPPORTED_DEVICES += timecloud
1290 endef
1291 TARGET_DEVICES += thunder_timecloud
1292
1293 define Device/totolink_a7000r
1294 $(Device/dsa-migration)
1295 IMAGE_SIZE := 16064k
1296 UIMAGE_NAME := C8340R1C-9999
1297 DEVICE_VENDOR := TOTOLINK
1298 DEVICE_MODEL := A7000R
1299 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1300 endef
1301 TARGET_DEVICES += totolink_a7000r
1302
1303 define Device/totolink_x5000r
1304 $(Device/dsa-migration)
1305 IMAGE_SIZE := 16064k
1306 UIMAGE_NAME := C8343R-9999
1307 DEVICE_VENDOR := TOTOLINK
1308 DEVICE_MODEL := X5000R
1309 DEVICE_PACKAGES := kmod-mt7915e
1310 endef
1311 TARGET_DEVICES += totolink_x5000r
1312
1313 define Device/tplink_archer-a6-v3
1314 $(Device/dsa-migration)
1315 $(Device/tplink-safeloader)
1316 DEVICE_MODEL := Archer A6
1317 DEVICE_VARIANT := V3
1318 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e \
1319 kmod-mt7663-firmware-ap kmod-mt7663-firmware-sta
1320 TPLINK_BOARD_ID := ARCHER-A6-V3
1321 KERNEL := $(KERNEL_DTB) | uImage lzma
1322 IMAGE_SIZE := 15744k
1323 endef
1324 TARGET_DEVICES += tplink_archer-a6-v3
1325
1326 define Device/tplink_archer-c6-v3
1327 $(Device/dsa-migration)
1328 $(Device/tplink-safeloader)
1329 DEVICE_MODEL := Archer C6
1330 DEVICE_VARIANT := V3
1331 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e \
1332 kmod-mt7663-firmware-ap kmod-mt7663-firmware-sta
1333 TPLINK_BOARD_ID := ARCHER-C6-V3
1334 KERNEL := $(KERNEL_DTB) | uImage lzma
1335 IMAGE_SIZE := 15744k
1336 endef
1337 TARGET_DEVICES += tplink_archer-c6-v3
1338
1339 define Device/tplink_archer-c6u-v1
1340 $(Device/dsa-migration)
1341 $(Device/tplink-safeloader)
1342 DEVICE_MODEL := Archer C6U
1343 DEVICE_VARIANT := v1
1344 DEVICE_PACKAGES := kmod-mt7603 \
1345 kmod-mt7615e kmod-mt7663-firmware-ap \
1346 kmod-usb3 kmod-usb-ledtrig-usbport
1347 KERNEL := $(KERNEL_DTB) | uImage lzma
1348 TPLINK_BOARD_ID := ARCHER-C6U-V1
1349 IMAGE_SIZE := 15744k
1350 endef
1351 TARGET_DEVICES += tplink_archer-c6u-v1
1352
1353 define Device/tplink_eap235-wall-v1
1354 $(Device/dsa-migration)
1355 $(Device/tplink-safeloader)
1356 DEVICE_MODEL := EAP235-Wall
1357 DEVICE_VARIANT := v1
1358 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap
1359 TPLINK_BOARD_ID := EAP235-WALL-V1
1360 IMAGE_SIZE := 13440k
1361 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory | \
1362 pad-extra 128
1363 endef
1364 TARGET_DEVICES += tplink_eap235-wall-v1
1365
1366 define Device/tplink_re350-v1
1367 $(Device/dsa-migration)
1368 $(Device/tplink-safeloader)
1369 DEVICE_MODEL := RE350
1370 DEVICE_VARIANT := v1
1371 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
1372 TPLINK_BOARD_ID := RE350-V1
1373 IMAGE_SIZE := 6016k
1374 SUPPORTED_DEVICES += re350-v1
1375 endef
1376 TARGET_DEVICES += tplink_re350-v1
1377
1378 define Device/tplink_re500-v1
1379 $(Device/dsa-migration)
1380 $(Device/tplink-safeloader)
1381 DEVICE_MODEL := RE500
1382 DEVICE_VARIANT := v1
1383 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1384 TPLINK_BOARD_ID := RE500-V1
1385 IMAGE_SIZE := 14208k
1386 endef
1387 TARGET_DEVICES += tplink_re500-v1
1388
1389 define Device/tplink_re650-v1
1390 $(Device/dsa-migration)
1391 $(Device/tplink-safeloader)
1392 DEVICE_MODEL := RE650
1393 DEVICE_VARIANT := v1
1394 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
1395 TPLINK_BOARD_ID := RE650-V1
1396 IMAGE_SIZE := 14208k
1397 endef
1398 TARGET_DEVICES += tplink_re650-v1
1399
1400 define Device/ubnt_edgerouter_common
1401 $(Device/dsa-migration)
1402 $(Device/uimage-lzma-loader)
1403 DEVICE_VENDOR := Ubiquiti
1404 IMAGE_SIZE := 256768k
1405 FILESYSTEMS := squashfs
1406 KERNEL_SIZE := 3145728
1407 KERNEL_INITRAMFS := $$(KERNEL) | \
1408 ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
1409 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1410 DEVICE_PACKAGES += -wpad-basic-wolfssl
1411 endef
1412
1413 define Device/ubnt_edgerouter-x
1414 $(Device/ubnt_edgerouter_common)
1415 DEVICE_MODEL := EdgeRouter X
1416 SUPPORTED_DEVICES += ubnt-erx ubiquiti,edgerouterx
1417 endef
1418 TARGET_DEVICES += ubnt_edgerouter-x
1419
1420 define Device/ubnt_edgerouter-x-sfp
1421 $(Device/ubnt_edgerouter_common)
1422 DEVICE_MODEL := EdgeRouter X SFP
1423 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
1424 SUPPORTED_DEVICES += ubnt-erx-sfp ubiquiti,edgerouterx-sfp
1425 endef
1426 TARGET_DEVICES += ubnt_edgerouter-x-sfp
1427
1428 define Device/ubnt_unifi-6-lite
1429 $(Device/dsa-migration)
1430 DEVICE_VENDOR := Ubiquiti
1431 DEVICE_MODEL := UniFi 6 Lite
1432 DEVICE_DTS_CONFIG := config@1
1433 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7915e
1434 KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1435 IMAGE_SIZE := 15424k
1436 endef
1437 TARGET_DEVICES += ubnt_unifi-6-lite
1438
1439 define Device/ubnt_unifi-nanohd
1440 $(Device/dsa-migration)
1441 DEVICE_VENDOR := Ubiquiti
1442 DEVICE_MODEL := UniFi nanoHD
1443 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1444 IMAGE_SIZE := 15552k
1445 endef
1446 TARGET_DEVICES += ubnt_unifi-nanohd
1447
1448 define Device/ubnt_usw-flex
1449 $(Device/dsa-migration)
1450 DEVICE_VENDOR := Ubiquiti
1451 DEVICE_MODEL := UniFi Switch Flex
1452 DEVICE_DTS_CONFIG := config@1
1453 KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1454 IMAGE_SIZE := 7360k
1455 endef
1456 TARGET_DEVICES += ubnt_usw-flex
1457
1458 define Device/unielec_u7621-01-16m
1459 $(Device/dsa-migration)
1460 $(Device/uimage-lzma-loader)
1461 IMAGE_SIZE := 16064k
1462 DEVICE_VENDOR := UniElec
1463 DEVICE_MODEL := U7621-01
1464 DEVICE_VARIANT := 16M
1465 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3
1466 endef
1467 TARGET_DEVICES += unielec_u7621-01-16m
1468
1469 define Device/unielec_u7621-06-16m
1470 $(Device/dsa-migration)
1471 $(Device/uimage-lzma-loader)
1472 IMAGE_SIZE := 16064k
1473 DEVICE_VENDOR := UniElec
1474 DEVICE_MODEL := U7621-06
1475 DEVICE_VARIANT := 16M
1476 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 -wpad-basic-wolfssl
1477 SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
1478 endef
1479 TARGET_DEVICES += unielec_u7621-06-16m
1480
1481 define Device/unielec_u7621-06-64m
1482 $(Device/dsa-migration)
1483 $(Device/uimage-lzma-loader)
1484 IMAGE_SIZE := 65216k
1485 DEVICE_VENDOR := UniElec
1486 DEVICE_MODEL := U7621-06
1487 DEVICE_VARIANT := 64M
1488 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 -wpad-basic-wolfssl
1489 SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
1490 endef
1491 TARGET_DEVICES += unielec_u7621-06-64m
1492
1493 define Device/wavlink_wl-wn531a6
1494 $(Device/dsa-migration)
1495 DEVICE_VENDOR := Wavlink
1496 DEVICE_MODEL := WL-WN531A6
1497 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware kmod-usb3
1498 IMAGE_SIZE := 15040k
1499 endef
1500 TARGET_DEVICES += wavlink_wl-wn531a6
1501
1502 define Device/wevo_11acnas
1503 $(Device/dsa-migration)
1504 $(Device/uimage-lzma-loader)
1505 IMAGE_SIZE := 16064k
1506 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
1507 DEVICE_VENDOR := WeVO
1508 DEVICE_MODEL := 11AC NAS Router
1509 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1510 kmod-usb-ledtrig-usbport
1511 SUPPORTED_DEVICES += 11acnas
1512 endef
1513 TARGET_DEVICES += wevo_11acnas
1514
1515 define Device/wevo_w2914ns-v2
1516 $(Device/dsa-migration)
1517 $(Device/uimage-lzma-loader)
1518 IMAGE_SIZE := 16064k
1519 UIMAGE_NAME := W2914NS-V2(0.0.0)
1520 DEVICE_VENDOR := WeVO
1521 DEVICE_MODEL := W2914NS
1522 DEVICE_VARIANT := v2
1523 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1524 kmod-usb-ledtrig-usbport
1525 SUPPORTED_DEVICES += w2914nsv2
1526 endef
1527 TARGET_DEVICES += wevo_w2914ns-v2
1528
1529 define Device/winstars_ws-wn583a6
1530 $(Device/dsa-migration)
1531 $(Device/uimage-lzma-loader)
1532 IMAGE_SIZE := 7872k
1533 DEVICE_VENDOR := Winstars
1534 DEVICE_MODEL := WS-WN583A6
1535 DEVICE_ALT0_VENDOR := Gemeita
1536 DEVICE_ALT0_MODEL := AC2100
1537 KERNEL_INITRAMFS_SUFFIX := -WN583A6$$(KERNEL_SUFFIX)
1538 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1539 endef
1540 TARGET_DEVICES += winstars_ws-wn583a6
1541
1542 define Device/xiaomi_nand_separate
1543 $(Device/dsa-migration)
1544 $(Device/uimage-lzma-loader)
1545 DEVICE_VENDOR := Xiaomi
1546 DEVICE_PACKAGES := uboot-envtools
1547 BLOCKSIZE := 128k
1548 PAGESIZE := 2048
1549 KERNEL_SIZE := 4096k
1550 UBINIZE_OPTS := -E 5
1551 IMAGES += kernel1.bin rootfs0.bin
1552 IMAGE/kernel1.bin := append-kernel
1553 IMAGE/rootfs0.bin := append-ubi | check-size
1554 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1555 endef
1556
1557 define Device/xiaomi_mi-router-3g
1558 $(Device/xiaomi_nand_separate)
1559 DEVICE_MODEL := Mi Router 3G
1560 IMAGE_SIZE := 124416k
1561 DEVICE_PACKAGES += kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1562 kmod-usb-ledtrig-usbport
1563 SUPPORTED_DEVICES += R3G mir3g xiaomi,mir3g
1564 endef
1565 TARGET_DEVICES += xiaomi_mi-router-3g
1566
1567 define Device/xiaomi_mi-router-3g-v2
1568 $(Device/dsa-migration)
1569 $(Device/uimage-lzma-loader)
1570 IMAGE_SIZE := 14848k
1571 DEVICE_VENDOR := Xiaomi
1572 DEVICE_MODEL := Mi Router 3G
1573 DEVICE_VARIANT := v2
1574 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
1575 SUPPORTED_DEVICES += xiaomi,mir3g-v2
1576 endef
1577 TARGET_DEVICES += xiaomi_mi-router-3g-v2
1578
1579 define Device/xiaomi_mi-router-3-pro
1580 $(Device/dsa-migration)
1581 $(Device/uimage-lzma-loader)
1582 BLOCKSIZE := 128k
1583 PAGESIZE := 2048
1584 KERNEL_SIZE:= 4096k
1585 UBINIZE_OPTS := -E 5
1586 IMAGE_SIZE := 255488k
1587 DEVICE_VENDOR := Xiaomi
1588 DEVICE_MODEL := Mi Router 3 Pro
1589 IMAGES += factory.bin
1590 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1591 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
1592 check-size
1593 DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
1594 kmod-usb-ledtrig-usbport uboot-envtools
1595 SUPPORTED_DEVICES += xiaomi,mir3p
1596 endef
1597 TARGET_DEVICES += xiaomi_mi-router-3-pro
1598
1599 define Device/xiaomi_mi-router-4
1600 $(Device/xiaomi_nand_separate)
1601 DEVICE_MODEL := Mi Router 4
1602 IMAGE_SIZE := 124416k
1603 DEVICE_PACKAGES += kmod-mt7603 kmod-mt76x2
1604 endef
1605 TARGET_DEVICES += xiaomi_mi-router-4
1606
1607 define Device/xiaomi_mi-router-4a-gigabit
1608 $(Device/dsa-migration)
1609 $(Device/uimage-lzma-loader)
1610 IMAGE_SIZE := 14848k
1611 DEVICE_VENDOR := Xiaomi
1612 DEVICE_MODEL := Mi Router 4A
1613 DEVICE_VARIANT := Gigabit Edition
1614 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
1615 endef
1616 TARGET_DEVICES += xiaomi_mi-router-4a-gigabit
1617
1618 define Device/xiaomi_mi-router-ac2100
1619 $(Device/xiaomi_nand_separate)
1620 DEVICE_MODEL := Mi Router AC2100
1621 IMAGE_SIZE := 120320k
1622 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1623 endef
1624 TARGET_DEVICES += xiaomi_mi-router-ac2100
1625
1626 define Device/xiaomi_redmi-router-ac2100
1627 $(Device/xiaomi_nand_separate)
1628 DEVICE_MODEL := Redmi Router AC2100
1629 IMAGE_SIZE := 120320k
1630 DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
1631 endef
1632 TARGET_DEVICES += xiaomi_redmi-router-ac2100
1633
1634 define Device/xiaoyu_xy-c5
1635 $(Device/dsa-migration)
1636 IMAGE_SIZE := 32448k
1637 DEVICE_VENDOR := XiaoYu
1638 DEVICE_MODEL := XY-C5
1639 DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 -wpad-basic-wolfssl
1640 endef
1641 TARGET_DEVICES += xiaoyu_xy-c5
1642
1643 define Device/xzwifi_creativebox-v1
1644 $(Device/dsa-migration)
1645 IMAGE_SIZE := 32448k
1646 DEVICE_VENDOR := CreativeBox
1647 DEVICE_MODEL := v1
1648 DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
1649 kmod-usb3 -wpad-basic-wolfssl
1650 endef
1651 TARGET_DEVICES += xzwifi_creativebox-v1
1652
1653 define Device/youhua_wr1200js
1654 $(Device/dsa-migration)
1655 IMAGE_SIZE := 16064k
1656 DEVICE_VENDOR := YouHua
1657 DEVICE_MODEL := WR1200JS
1658 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1659 kmod-usb-ledtrig-usbport
1660 endef
1661 TARGET_DEVICES += youhua_wr1200js
1662
1663 define Device/youku_yk-l2
1664 $(Device/dsa-migration)
1665 IMAGE_SIZE := 16064k
1666 DEVICE_VENDOR := Youku
1667 DEVICE_MODEL := YK-L2
1668 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1669 kmod-usb-ledtrig-usbport
1670 endef
1671 TARGET_DEVICES += youku_yk-l2
1672
1673 define Device/zbtlink_zbt-we1326
1674 $(Device/dsa-migration)
1675 $(Device/uimage-lzma-loader)
1676 IMAGE_SIZE := 16064k
1677 DEVICE_VENDOR := Zbtlink
1678 DEVICE_MODEL := ZBT-WE1326
1679 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620
1680 SUPPORTED_DEVICES += zbt-we1326
1681 endef
1682 TARGET_DEVICES += zbtlink_zbt-we1326
1683
1684 define Device/zbtlink_zbt-we3526
1685 $(Device/dsa-migration)
1686 $(Device/uimage-lzma-loader)
1687 IMAGE_SIZE := 16064k
1688 DEVICE_VENDOR := Zbtlink
1689 DEVICE_MODEL := ZBT-WE3526
1690 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1691 kmod-usb-ledtrig-usbport
1692 endef
1693 TARGET_DEVICES += zbtlink_zbt-we3526
1694
1695 define Device/zbtlink_zbt-wg2626
1696 $(Device/dsa-migration)
1697 $(Device/uimage-lzma-loader)
1698 IMAGE_SIZE := 16064k
1699 DEVICE_VENDOR := Zbtlink
1700 DEVICE_MODEL := ZBT-WG2626
1701 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1702 kmod-usb-ledtrig-usbport
1703 SUPPORTED_DEVICES += zbt-wg2626
1704 endef
1705 TARGET_DEVICES += zbtlink_zbt-wg2626
1706
1707 define Device/zbtlink_zbt-wg3526-16m
1708 $(Device/dsa-migration)
1709 $(Device/uimage-lzma-loader)
1710 IMAGE_SIZE := 16064k
1711 DEVICE_VENDOR := Zbtlink
1712 DEVICE_MODEL := ZBT-WG3526
1713 DEVICE_VARIANT := 16M
1714 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1715 kmod-usb3 kmod-usb-ledtrig-usbport
1716 SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
1717 endef
1718 TARGET_DEVICES += zbtlink_zbt-wg3526-16m
1719
1720 define Device/zbtlink_zbt-wg3526-32m
1721 $(Device/dsa-migration)
1722 $(Device/uimage-lzma-loader)
1723 IMAGE_SIZE := 32448k
1724 DEVICE_VENDOR := Zbtlink
1725 DEVICE_MODEL := ZBT-WG3526
1726 DEVICE_VARIANT := 32M
1727 DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1728 kmod-usb3 kmod-usb-ledtrig-usbport
1729 SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
1730 endef
1731 TARGET_DEVICES += zbtlink_zbt-wg3526-32m
1732
1733 define Device/zio_freezio
1734 $(Device/dsa-migration)
1735 IMAGE_SIZE := 16064k
1736 DEVICE_VENDOR := ZIO
1737 DEVICE_MODEL := FREEZIO
1738 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1739 kmod-usb-ledtrig-usbport
1740 endef
1741 TARGET_DEVICES += zio_freezio
1742
1743 define Device/zyxel_nr7101
1744 $(Device/dsa-migration)
1745 BLOCKSIZE := 128k
1746 PAGESIZE := 2048
1747 UBINIZE_OPTS := -E 5
1748 DEVICE_VENDOR := ZyXEL
1749 DEVICE_MODEL := NR7101
1750 DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 uboot-envtools kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1751 KERNEL := $(KERNEL_DTB) | uImage lzma | zytrx-header $$(DEVICE_MODEL) $$(VERSION_DIST)-$$(REVISION)
1752 KERNEL_INITRAMFS := $(KERNEL_DTB) | uImage lzma | zytrx-header $$(DEVICE_MODEL) 9.99(ABUV.9)$$(VERSION_DIST)-recovery
1753 KERNEL_INITRAMFS_SUFFIX := -recovery.bin
1754 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1755 endef
1756 TARGET_DEVICES += zyxel_nr7101
1757
1758 define Device/zyxel_wap6805
1759 $(Device/dsa-migration)
1760 BLOCKSIZE := 128k
1761 PAGESIZE := 2048
1762 KERNEL_SIZE := 4096k
1763 UBINIZE_OPTS := -E 5
1764 IMAGE_SIZE := 32448k
1765 DEVICE_VENDOR := ZyXEL
1766 DEVICE_MODEL := WAP6805
1767 DEVICE_PACKAGES := kmod-mt7603 kmod-mt7621-qtn-rgmii
1768 KERNEL := $(KERNEL_DTB) | uImage lzma | uimage-padhdr 160
1769 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1770 endef
1771 TARGET_DEVICES += zyxel_wap6805