5 include .
/common-tp-link.mk
10 DEVICE_VARS
+= UIMAGE_MAGIC SERCOMM_HWNAME
12 # The OEM webinterface expects an kernel with initramfs which has the uImage
13 # header field ih_name.
14 # We don't want to set the header name field for the kernel include in the
15 # sysupgrade image as well, as this image shouldn't be accepted by the OEM
16 # webinterface. It will soft-brick the board.
17 define Build
/custom-initramfs-uimage
18 mkimage
-A
$(LINUX_KARCH
) \
20 -C lzma
-a
$(KERNEL_LOADADDR
) $(if
$(UIMAGE_MAGIC
),-M
$(UIMAGE_MAGIC
),) \
21 -e
$(if
$(KERNEL_ENTRY
),$(KERNEL_ENTRY
),$(KERNEL_LOADADDR
)) \
22 -n
'$(1)' -d
$@
$@.new
26 define Build
/elecom-gst-factory
27 $(eval product
=$(word 1,$(1)))
28 $(eval version
=$(word 2,$(1)))
29 ( $(STAGING_DIR_HOST
)/bin
/mkhash md5
$@ | tr
-d
'\n' ) >> $@
31 echo
-n
"ELECOM $(product) v$(version)" | \
32 dd bs
=32 count
=1 conv
=sync
; \
36 echo
-n
"MT7621_ELECOM_$(product)" >> $@
39 define Build
/elecom-wrc-factory
40 $(eval product
=$(word 1,$(1)))
41 $(eval version
=$(word 2,$(1)))
42 $(STAGING_DIR_HOST
)/bin
/mkhash md5
$@
>> $@
44 echo
-n
"ELECOM $(product) v$(version)" | \
45 dd bs
=32 count
=1 conv
=sync
; \
51 define Build
/iodata-factory
52 $(eval fw_size
=$(word 1,$(1)))
53 $(eval fw_type
=$(word 2,$(1)))
54 $(eval product
=$(word 3,$(1)))
55 $(eval factory_bin
=$(word 4,$(1)))
56 if
[ -e
$(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
) -a
"$$(stat -c%s $@)" -lt
"$(fw_size)" ]; then \
57 $(CP
) $(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
) $(factory_bin
); \
58 $(STAGING_DIR_HOST
)/bin
/mksenaofw \
59 -r
0x30a -p
$(product
) -t
$(fw_type
) \
60 -e
$(factory_bin
) -o
$(factory_bin
).new
; \
61 mv
$(factory_bin
).new
$(factory_bin
); \
62 $(CP
) $(factory_bin
) $(BIN_DIR
)/; \
64 echo
"WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
68 define Build
/iodata-mstc-header
70 data_size_crc
="$$(dd if=$@ ibs=64 skip=1 2>/dev/null | \
71 gzip -c | tail -c 8 | od -An -tx8 --endian little | tr -d ' \n')"; \
72 echo
-ne
"$$(echo $$data_size_crc | sed 's/../\\x&/g')" | \
73 dd of
=$@ bs
=8 count
=1 seek
=7 conv
=notrunc
2>/dev
/null
; \
75 dd if
=/dev
/zero of
=$@ bs
=4 count
=1 seek
=1 conv
=notrunc
2>/dev
/null
77 header_crc
="$$(dd if=$@ bs=64 count=1 2>/dev/null | \
78 gzip -c | tail -c 8 | od -An -N4 -tx4 --endian little | tr -d ' \n')"; \
79 echo
-ne
"$$(echo $$header_crc | sed 's/../\\x&/g')" | \
80 dd of
=$@ bs
=4 count
=1 seek
=1 conv
=notrunc
2>/dev
/null
; \
84 define Build
/netis-tail
86 echo
-n
$(UIMAGE_NAME
)-yun |
$(STAGING_DIR_HOST
)/bin
/mkhash md5 | \
87 sed
's/../\\\\x&/g' | xargs echo
-ne
>> $@
90 define Build
/ubnt-erx-factory-image
91 if
[ -e
$(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
) -a
"$$(stat -c%s $@)" -lt
"$(KERNEL_SIZE)" ]; then \
92 echo
'21001:6' > $(1).compat
; \
93 $(TAR
) -cf
$(1) --transform
='s/^.*/compat/' $(1).compat
; \
95 $(TAR
) -rf
$(1) --transform
='s/^.*/vmlinux.tmp/' $(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
); \
96 mkhash md5
$(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
) > $(1).md5
; \
97 $(TAR
) -rf
$(1) --transform
='s/^.*/vmlinux.tmp.md5/' $(1).md5
; \
99 echo
"dummy" > $(1).rootfs
; \
100 $(TAR
) -rf
$(1) --transform
='s/^.*/squashfs.tmp/' $(1).rootfs
; \
102 mkhash md5
$(1).rootfs
> $(1).md5
; \
103 $(TAR
) -rf
$(1) --transform
='s/^.*/squashfs.tmp.md5/' $(1).md5
; \
105 echo
'$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version
; \
106 $(TAR
) -rf
$(1) --transform
='s/^.*/version.tmp/' $(1).version
; \
108 $(CP
) $(1) $(BIN_DIR
)/; \
110 echo
"WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
114 define Device
/afoundry_ew1200
116 DEVICE_VENDOR
:= AFOUNDRY
117 DEVICE_MODEL
:= EW1200
118 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
119 kmod-usb-ledtrig-usbport wpad-basic
120 SUPPORTED_DEVICES
+= ew1200
122 TARGET_DEVICES
+= afoundry_ew1200
124 define Device
/alfa-network_quad-e4g
126 DEVICE_VENDOR
:= ALFA Network
127 DEVICE_MODEL
:= Quad-E4G
128 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools
130 TARGET_DEVICES
+= alfa-network_quad-e4g
132 define Device
/asiarf_ap7621-001
134 DEVICE_VENDOR
:= AsiaRF
135 DEVICE_MODEL
:= AP7621-001
136 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
138 TARGET_DEVICES
+= asiarf_ap7621-001
140 define Device
/asiarf_ap7621-nv1
142 DEVICE_VENDOR
:= AsiaRF
143 DEVICE_MODEL
:= AP7621-NV1
144 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
146 TARGET_DEVICES
+= asiarf_ap7621-nv1
148 define Device
/asus_rt-ac57u
149 DEVICE_VENDOR
:= ASUS
150 DEVICE_MODEL
:= RT-AC57U
152 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
153 kmod-usb-ledtrig-usbport wpad-basic
155 TARGET_DEVICES
+= asus_rt-ac57u
157 define Device
/asus_rt-ac65p
158 DEVICE_VENDOR
:= ASUS
159 DEVICE_MODEL
:= RT-AC65P
165 IMAGES
+= factory.bin
166 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
167 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
168 check-size
$$$$(IMAGE_SIZE
)
169 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
171 TARGET_DEVICES
+= asus_rt-ac65p
173 define Device
/asus_rt-ac85p
174 DEVICE_VENDOR
:= ASUS
175 DEVICE_MODEL
:= RT-AC85P
181 IMAGES
+= factory.bin
182 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
183 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
184 check-size
$$$$(IMAGE_SIZE
)
185 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
187 TARGET_DEVICES
+= asus_rt-ac85p
189 define Device
/buffalo_wsr-1166dhp
190 IMAGE
/sysupgrade.bin
:= trx | pad-rootfs | append-metadata
192 DEVICE_VENDOR
:= Buffalo
193 DEVICE_MODEL
:= WSR-1166DHP
194 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
195 SUPPORTED_DEVICES
+= wsr-1166
197 TARGET_DEVICES
+= buffalo_wsr-1166dhp
199 define Device
/buffalo_wsr-600dhp
201 DEVICE_VENDOR
:= Buffalo
202 DEVICE_MODEL
:= WSR-600DHP
203 DEVICE_PACKAGES
:= kmod-mt7603 kmod-rt2800-pci wpad-basic
204 SUPPORTED_DEVICES
+= wsr-600
206 TARGET_DEVICES
+= buffalo_wsr-600dhp
208 define Device
/dlink_dir-860l-b1
211 SEAMA_SIGNATURE
:= wrgac13_dlink
.2013gui_dir860lb
212 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
214 DEVICE_VENDOR
:= D-Link
215 DEVICE_MODEL
:= DIR-860L
217 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
218 SUPPORTED_DEVICES
+= dir-860l-b1
220 TARGET_DEVICES
+= dlink_dir-860l-b1
222 define Device
/d-team_newifi-d2
224 DEVICE_VENDOR
:= Newifi
226 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
227 kmod-usb-ledtrig-usbport wpad-basic
229 TARGET_DEVICES
+= d-team_newifi-d2
231 define Device
/d-team_pbr-m1
233 DEVICE_VENDOR
:= PandoraBox
234 DEVICE_MODEL
:= PBR-M1
235 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
236 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
237 SUPPORTED_DEVICES
+= pbr-m1
239 TARGET_DEVICES
+= d-team_pbr-m1
241 define Device
/edimax_ra21s
243 DEVICE_VENDOR
:= Edimax
244 DEVICE_MODEL
:= RA21S
245 DEVICE_ALT0_VENDOR
:= Edimax
246 DEVICE_ALT0_MODEL
:= Gemini RA21S
247 IMAGES
+= factory.bin
248 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
249 elx-header
02020040 8844A2D168B45A2D
250 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
252 TARGET_DEVICES
+= edimax_ra21s
254 define Device
/edimax_rg21s
256 DEVICE_VENDOR
:= Edimax
257 DEVICE_MODEL
:= Gemini AC2600 RG21S
258 IMAGES
+= factory.bin
259 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
260 elx-header
02020038 8844A2D168B45A2D
261 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
263 TARGET_DEVICES
+= edimax_rg21s
265 define Device
/elecom_wrc-1167ghbk2-s
267 DEVICE_VENDOR
:= ELECOM
268 DEVICE_MODEL
:= WRC-1167GHBK2-S
269 IMAGES
+= factory.bin
270 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
271 elecom-wrc-factory WRC-1167GHBK2-S
0.00
272 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
274 TARGET_DEVICES
+= elecom_wrc-1167ghbk2-s
276 define Device
/elecom_wrc-1900gst
278 DEVICE_VENDOR
:= ELECOM
279 DEVICE_MODEL
:= WRC-1900GST
280 IMAGES
+= factory.bin
281 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
282 elecom-gst-factory WRC-1900GST
0.00
284 TARGET_DEVICES
+= elecom_wrc-1900gst
286 define Device
/elecom_wrc-2533gst
288 DEVICE_VENDOR
:= ELECOM
289 DEVICE_MODEL
:= WRC-2533GST
290 IMAGES
+= factory.bin
291 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
292 elecom-gst-factory WRC-2533GST
0.00
294 TARGET_DEVICES
+= elecom_wrc-2533gst
296 define Device
/firefly_firewrt
298 DEVICE_VENDOR
:= Firefly
299 DEVICE_MODEL
:= FireWRT
300 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
301 SUPPORTED_DEVICES
+= firewrt
303 TARGET_DEVICES
+= firefly_firewrt
305 define Device
/gehua_ghl-r-001
307 DEVICE_VENDOR
:= GeHua
308 DEVICE_MODEL
:= GHL-R-001
309 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
310 kmod-usb-ledtrig-usbport wpad-basic
313 TARGET_DEVICES
+= gehua_ghl-r-001
315 define Device
/gnubee_gb-pc1
316 DEVICE_VENDOR
:= GnuBee
317 DEVICE_MODEL
:= Personal Cloud One
318 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
321 TARGET_DEVICES
+= gnubee_gb-pc1
323 define Device
/gnubee_gb-pc2
324 DEVICE_VENDOR
:= GnuBee
325 DEVICE_MODEL
:= Personal Cloud Two
326 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
329 TARGET_DEVICES
+= gnubee_gb-pc2
331 define Device
/hiwifi_hc5962
334 KERNEL_SIZE
:= 2097152
337 IMAGES
+= factory.bin
338 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
339 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
340 check-size
$$$$(IMAGE_SIZE
)
341 DEVICE_VENDOR
:= HiWiFi
342 DEVICE_MODEL
:= HC5962
343 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
344 SUPPORTED_DEVICES
+= hc5962
345 # Kernel partition too small
348 TARGET_DEVICES
+= hiwifi_hc5962
350 define Device
/iodata_wn-ax1167gr
352 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
353 iodata-factory
7864320 4 0x1055 $(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.bin
354 DEVICE_VENDOR
:= I-O DATA
355 DEVICE_MODEL
:= WN-AX1167GR
356 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
358 TARGET_DEVICES
+= iodata_wn-ax1167gr
360 define Device
/iodata_wn-ax1167gr2
364 UIMAGE_MAGIC
:= 0x434f4d42
367 DEVICE_VENDOR
:= I-O DATA
368 DEVICE_MODEL
:= WN-AX1167GR2
369 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage
3.10(XBC
.1)b10 | \
371 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
372 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
374 TARGET_DEVICES
+= iodata_wn-ax1167gr2
376 define Device
/iodata_wn-dx1167r
380 UIMAGE_MAGIC
:= 0x434f4d43
383 DEVICE_VENDOR
:= I-O DATA
384 DEVICE_MODEL
:= WN-DX1167R
385 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage
3.10(XIK
.1)b10 | \
387 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
388 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
390 TARGET_DEVICES
+= iodata_wn-dx1167r
392 define Device
/iodata_wn-gx300gr
394 DEVICE_VENDOR
:= I-O DATA
395 DEVICE_MODEL
:= WN-GX300GR
396 DEVICE_PACKAGES
:= kmod-mt7603 wpad-basic
398 TARGET_DEVICES
+= iodata_wn-gx300gr
400 define Device
/iodata_wnpr2600g
401 DEVICE_VENDOR
:= I-O DATA
402 DEVICE_MODEL
:= WNPR2600G
404 IMAGES
+= factory.bin
405 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
406 elx-header
0104003a
8844A2D168B45A2D
407 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
409 TARGET_DEVICES
+= iodata_wnpr2600g
411 define Device
/iptime_a6ns-m
414 DEVICE_VENDOR
:= ipTIME
415 DEVICE_MODEL
:= A6ns-M
416 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
418 TARGET_DEVICES
+= iptime_a6ns-m
420 define Device
/iptime_a8004t
422 UIMAGE_NAME
:= a8004t
423 DEVICE_VENDOR
:= ipTIME
424 DEVICE_MODEL
:= A8004T
425 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 wpad-basic
427 TARGET_DEVICES
+= iptime_a8004t
429 define Device
/jcg_jhr-ac876m
431 IMAGES
+= factory.bin
432 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
434 JCG_MAXSIZE
:= 16064k
436 DEVICE_MODEL
:= JHR-AC876M
437 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
439 TARGET_DEVICES
+= jcg_jhr-ac876m
441 define Device
/lenovo_newifi-d1
443 DEVICE_VENDOR
:= Newifi
445 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
446 kmod-usb-ledtrig-usbport wpad-basic
447 SUPPORTED_DEVICES
+= newifi-d1
449 TARGET_DEVICES
+= lenovo_newifi-d1
451 define Device
/linksys_re6500
453 DEVICE_VENDOR
:= Linksys
454 DEVICE_MODEL
:= RE6500
455 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
456 SUPPORTED_DEVICES
+= re6500
458 TARGET_DEVICES
+= linksys_re6500
460 define Device
/mediatek_ap-mt7621a-v60
462 DEVICE_VENDOR
:= Mediatek
463 DEVICE_MODEL
:= AP-MT7621A-V60 EVB
464 DEVICE_PACKAGES
:= kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
466 TARGET_DEVICES
+= mediatek_ap-mt7621a-v60
468 define Device
/mediatek_mt7621-eval-board
471 DEVICE_VENDOR
:= MediaTek
472 DEVICE_MODEL
:= MT7621 EVB
473 SUPPORTED_DEVICES
+= mt7621
475 TARGET_DEVICES
+= mediatek_mt7621-eval-board
477 define Device
/MikroTik
478 DEVICE_VENDOR
:= MikroTik
481 DEVICE_PACKAGES
:= kmod-usb3
484 KERNEL
:= $(KERNEL_DTB
) | loader-kernel
485 IMAGE
/sysupgrade.bin
:= append-kernel | kernel2minor
-s
1024 | \
486 pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | append-metadata | \
487 check-size
$$$$(IMAGE_SIZE
)
490 define Device
/mikrotik_rb750gr3
492 DEVICE_MODEL
:= RouterBOARD RB750G
494 DEVICE_PACKAGES
+= kmod-gpio-beeper
496 TARGET_DEVICES
+= mikrotik_rb750gr3
498 define Device
/mikrotik_rbm11g
500 DEVICE_MODEL
:= RouterBOARD M11G
502 TARGET_DEVICES
+= mikrotik_rbm11g
504 define Device
/mikrotik_rbm33g
506 DEVICE_MODEL
:= RouterBOARD M33G
508 TARGET_DEVICES
+= mikrotik_rbm33g
510 define Device
/mqmaker_witi
512 DEVICE_VENDOR
:= MQmaker
514 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
515 kmod-usb-ledtrig-usbport wpad-basic
516 SUPPORTED_DEVICES
+= witi mqmaker
,witi-256m mqmaker
,witi-512m
518 TARGET_DEVICES
+= mqmaker_witi
520 define Device
/mtc_wr1201
523 DEVICE_MODEL
:= Wireless Router WR1201
524 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage WR1201_8_128
525 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
526 kmod-usb-ledtrig-usbport wpad-basic
528 TARGET_DEVICES
+= mtc_wr1201
530 define Device
/netgear_ex6150
531 DEVICE_VENDOR
:= NETGEAR
532 DEVICE_MODEL
:= EX6150
533 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
534 NETGEAR_BOARD_ID
:= U12H318T00_NETGEAR
536 IMAGES
+= factory.chk
537 IMAGE
/factory.chk
:= $$(sysupgrade_bin
) | check-size
$$$$(IMAGE_SIZE
) | \
540 TARGET_DEVICES
+= netgear_ex6150
542 define Device
/netgear_sercomm_nand
547 IMAGES
+= factory.img kernel.bin rootfs.bin
548 IMAGE
/factory.img
:= pad-extra
2048k | append-kernel | pad-to
6144k | \
549 append-ubi | pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | \
550 zip
$$$$(SERCOMM_HWNAME
).bin | sercom-seal
551 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
552 IMAGE
/kernel.bin
:= append-kernel
553 IMAGE
/rootfs.bin
:= append-ubi | check-size
$$$$(IMAGE_SIZE
)
554 DEVICE_VENDOR
:= NETGEAR
555 DEVICE_PACKAGES
:= kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
558 define Device
/netgear_r6220
559 $(Device
/netgear_sercomm_nand
)
560 DEVICE_MODEL
:= R6220
561 SERCOMM_HWNAME
:= R6220
563 SERCOMM_HWVER
:= A001
564 SERCOMM_SWVER
:= 0x0086
566 DEVICE_PACKAGES
+= kmod-mt76x2
567 SUPPORTED_DEVICES
+= r6220
569 TARGET_DEVICES
+= netgear_r6220
572 define Device
/netgear_r6260
573 $(Device
/netgear_sercomm_nand
)
574 DEVICE_MODEL
:= R6260
575 SERCOMM_HWNAME
:= R6260
577 SERCOMM_HWVER
:= A001
578 SERCOMM_SWVER
:= 0x0052
580 DEVICE_PACKAGES
+= kmod-mt7615e
582 TARGET_DEVICES
+= netgear_r6260
584 define Device
/netgear_r6350
585 $(Device
/netgear_sercomm_nand
)
586 DEVICE_MODEL
:= R6350
587 SERCOMM_HWNAME
:= R6350
589 SERCOMM_HWVER
:= A001
590 SERCOMM_SWVER
:= 0x0052
592 DEVICE_PACKAGES
+= kmod-mt7615e
594 TARGET_DEVICES
+= netgear_r6350
596 define Device
/netgear_r6700-v2
597 $(Device
/netgear_sercomm_nand
)
598 DEVICE_MODEL
:= R6700
600 DEVICE_ALT0_VENDOR
:= NETGEAR
601 DEVICE_ALT0_MODEL
:= Nighthawk AC2400
602 SERCOMM_HWNAME
:= R6950
604 SERCOMM_HWVER
:= A001
605 SERCOMM_SWVER
:= 0x1032
607 DEVICE_PACKAGES
+= kmod-mt7615e
609 TARGET_DEVICES
+= netgear_r6700-v2
611 define Device
/netgear_r6800
612 $(Device
/netgear_sercomm_nand
)
613 DEVICE_MODEL
:= R6800
614 SERCOMM_HWNAME
:= R6950
616 SERCOMM_HWVER
:= A001
617 SERCOMM_SWVER
:= 0x0062
619 DEVICE_PACKAGES
+= kmod-mt7615e
621 TARGET_DEVICES
+= netgear_r6800
623 define Device
/netgear_r6850
624 $(Device
/netgear_sercomm_nand
)
625 DEVICE_MODEL
:= R6850
626 SERCOMM_HWNAME
:= R6850
628 SERCOMM_HWVER
:= A001
629 SERCOMM_SWVER
:= 0x0052
631 DEVICE_PACKAGES
+= kmod-mt7615e
633 TARGET_DEVICES
+= netgear_r6850
635 define Device
/netgear_wndr3700-v5
639 SERCOMM_HWVER
:= A001
640 SERCOMM_SWVER
:= 0x1054
641 IMAGES
+= factory.img
642 IMAGE
/default
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | \
644 IMAGE
/sysupgrade.bin
:= $$(IMAGE
/default
) | append-metadata | \
645 check-size
$$$$(IMAGE_SIZE
)
646 IMAGE
/factory.img
:= pad-extra
320k |
$$(IMAGE
/default
) | \
647 pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | \
648 zip WNDR3700v5.bin | sercom-seal
649 DEVICE_VENDOR
:= NETGEAR
650 DEVICE_MODEL
:= WNDR3700
652 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
653 kmod-usb-ledtrig-usbport wpad-basic
654 SUPPORTED_DEVICES
+= wndr3700v5
656 TARGET_DEVICES
+= netgear_wndr3700-v5
658 define Device
/netis_wf2881
661 FILESYSTEMS
:= squashfs
663 IMAGE_SIZE
:= 129280k
665 UIMAGE_NAME
:= WF2881_0.0
.00
666 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | netis-tail WF2881 | uImage lzma
667 IMAGES
+= factory.bin
668 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
669 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | \
670 check-size
$$$$(IMAGE_SIZE
)
671 DEVICE_VENDOR
:= NETIS
672 DEVICE_MODEL
:= WF2881
673 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
675 TARGET_DEVICES
+= netis_wf2881
677 define Device
/phicomm_k2p
679 DEVICE_VENDOR
:= Phicomm
681 DEVICE_ALT0_VENDOR
:= Phicomm
682 DEVICE_ALT0_MODEL
:= KE
2P
683 SUPPORTED_DEVICES
+= k2p
684 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
686 TARGET_DEVICES
+= phicomm_k2p
688 define Device
/planex_vr500
690 DEVICE_VENDOR
:= Planex
691 DEVICE_MODEL
:= VR500
692 DEVICE_PACKAGES
:= kmod-usb3
693 SUPPORTED_DEVICES
+= vr500
695 TARGET_DEVICES
+= planex_vr500
697 define Device
/samknows_whitebox-v8
699 DEVICE_VENDOR
:= SamKnows
700 DEVICE_MODEL
:= Whitebox
8
701 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
702 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
703 SUPPORTED_DEVICES
+= sk-wb8
705 TARGET_DEVICES
+= samknows_whitebox-v8
707 define Device
/storylink_sap-g3200u3
709 DEVICE_VENDOR
:= STORYLiNK
710 DEVICE_MODEL
:= SAP-G3200U3
711 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
712 SUPPORTED_DEVICES
+= sap-g3200u3
714 TARGET_DEVICES
+= storylink_sap-g3200u3
716 define Device
/telco-electronics_x1
718 DEVICE_VENDOR
:= Telco Electronics
720 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt76 wpad-basic
722 TARGET_DEVICES
+= telco-electronics_x1
724 define Device
/thunder_timecloud
726 DEVICE_VENDOR
:= Thunder
727 DEVICE_MODEL
:= Timecloud
728 DEVICE_PACKAGES
:= kmod-usb3
729 SUPPORTED_DEVICES
+= timecloud
731 TARGET_DEVICES
+= thunder_timecloud
733 define Device
/totolink_a7000r
735 UIMAGE_NAME
:= C8340R1C-9999
736 DEVICE_VENDOR
:= TOTOLINK
737 DEVICE_MODEL
:= A7000R
738 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
740 TARGET_DEVICES
+= totolink_a7000r
742 define Device
/adslr_g7
744 DEVICE_VENDOR
:= ADSLR
746 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
748 TARGET_DEVICES
+= adslr_g7
750 define Device
/tplink_re350-v1
751 $(Device
/tplink-safeloader
)
752 DEVICE_MODEL
:= RE350
754 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
755 TPLINK_BOARD_ID
:= RE350-V1
757 SUPPORTED_DEVICES
+= re350-v1
759 TARGET_DEVICES
+= tplink_re350-v1
761 define Device
/tplink_re650-v1
762 $(Device
/tplink-safeloader
)
763 DEVICE_MODEL
:= RE650
765 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
766 TPLINK_BOARD_ID
:= RE650-V1
769 TARGET_DEVICES
+= tplink_re650-v1
771 define Device
/ubiquiti_edgerouterx
772 IMAGE_SIZE
:= 256768k
773 FILESYSTEMS
:= squashfs
774 KERNEL_SIZE
:= 3145728
775 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
776 ubnt-erx-factory-image
$(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.
tar
777 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
778 DEVICE_VENDOR
:= Ubiquiti
779 DEVICE_MODEL
:= EdgeRouter X
780 SUPPORTED_DEVICES
+= ubnt-erx
782 TARGET_DEVICES
+= ubiquiti_edgerouterx
784 define Device
/ubiquiti_edgerouterx-sfp
785 $(Device
/ubiquiti_edgerouterx
)
786 DEVICE_VENDOR
:= Ubiquiti
787 DEVICE_MODEL
:= EdgeRouter X-SFP
788 DEVICE_PACKAGES
+= kmod-i2c-algo-pca kmod-gpio-pca953x kmod-i2c-gpio-custom
789 SUPPORTED_DEVICES
+= ubnt-erx-sfp
791 TARGET_DEVICES
+= ubiquiti_edgerouterx-sfp
793 define Device
/ubnt_unifi-nanohd
794 DEVICE_VENDOR
:= Ubiquiti
795 DEVICE_MODEL
:= UniFi nanoHD
796 DEVICE_PACKAGES
+= kmod-mt7603 kmod-mt7615e wpad-basic
799 TARGET_DEVICES
+= ubnt_unifi-nanohd
801 define Device
/unielec_u7621-06-16m
803 DEVICE_VENDOR
:= UniElec
804 DEVICE_MODEL
:= U7621-06
805 DEVICE_VARIANT
:= 16M
806 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
807 SUPPORTED_DEVICES
+= u7621-06-256M-16M unielec
,u7621-06-256m-16m
809 TARGET_DEVICES
+= unielec_u7621-06-16m
811 define Device
/unielec_u7621-06-64m
813 DEVICE_VENDOR
:= UniElec
814 DEVICE_MODEL
:= U7621-06
815 DEVICE_VARIANT
:= 64M
816 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
817 SUPPORTED_DEVICES
+= unielec
,u7621-06-512m-64m
819 TARGET_DEVICES
+= unielec_u7621-06-64m
821 define Device
/wevo_11acnas
823 UIMAGE_NAME
:= 11AC-NAS-Router
(0.0.0)
824 DEVICE_VENDOR
:= WeVO
825 DEVICE_MODEL
:= 11AC NAS Router
826 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
827 kmod-usb-ledtrig-usbport wpad-basic
828 SUPPORTED_DEVICES
+= 11acnas
830 TARGET_DEVICES
+= wevo_11acnas
832 define Device
/wevo_w2914ns-v2
834 UIMAGE_NAME
:= W2914NS-V2
(0.0.0)
835 DEVICE_VENDOR
:= WeVO
836 DEVICE_MODEL
:= W2914NS
838 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
839 kmod-usb-ledtrig-usbport wpad-basic
840 SUPPORTED_DEVICES
+= w2914nsv2
842 TARGET_DEVICES
+= wevo_w2914ns-v2
844 define Device
/xiaomi_mir3g
848 IMAGE_SIZE
:= 124416k
850 IMAGES
+= kernel1.bin rootfs0.bin
851 IMAGE
/kernel1.bin
:= append-kernel
852 IMAGE
/rootfs0.bin
:= append-ubi | check-size
$$$$(IMAGE_SIZE
)
853 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
854 DEVICE_VENDOR
:= Xiaomi
855 DEVICE_MODEL
:= Mi Router
3G
856 SUPPORTED_DEVICES
+= R3G
857 SUPPORTED_DEVICES
+= mir3g
858 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
859 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
861 TARGET_DEVICES
+= xiaomi_mir3g
863 define Device
/xiaomi_mir3g-v2
865 DEVICE_VENDOR
:= Xiaomi
866 DEVICE_MODEL
:= Mi Router
3G
868 DEVICE_ALT0_VENDOR
:= Xiaomi
869 DEVICE_ALT0_MODEL
:= Mi Router
4A
870 DEVICE_ALT0_VARIANT
:= Gigabit Edition
871 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
873 TARGET_DEVICES
+= xiaomi_mir3g-v2
875 define Device
/xiaomi_mir3p
880 IMAGE_SIZE
:= 255488k
881 DEVICE_VENDOR
:= Xiaomi
882 DEVICE_MODEL
:= Mi Router
3 Pro
883 IMAGES
+= factory.bin
884 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
885 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
886 check-size
$$$$(IMAGE_SIZE
)
887 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \
888 wpad-basic uboot-envtools
890 TARGET_DEVICES
+= xiaomi_mir3p
892 define Device
/xiaoyu_xy-c5
894 DEVICE_VENDOR
:= XiaoYu
895 DEVICE_MODEL
:= XY-C5
896 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3
898 TARGET_DEVICES
+= xiaoyu_xy-c5
900 define Device
/xzwifi_creativebox-v1
902 DEVICE_VENDOR
:= CreativeBox
904 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
907 TARGET_DEVICES
+= xzwifi_creativebox-v1
909 define Device
/youhua_wr1200js
911 DEVICE_VENDOR
:= YouHua
912 DEVICE_MODEL
:= WR1200JS
913 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
914 kmod-usb-ledtrig-usbport wpad-basic
916 TARGET_DEVICES
+= youhua_wr1200js
918 define Device
/youku_yk-l2
920 DEVICE_VENDOR
:= Youku
921 DEVICE_MODEL
:= YK-L2
922 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
923 kmod-usb-ledtrig-usbport wpad-basic
925 TARGET_DEVICES
+= youku_yk-l2
927 define Device
/zbtlink_zbt-we1326
929 DEVICE_VENDOR
:= Zbtlink
930 DEVICE_MODEL
:= ZBT-WE1326
931 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
933 SUPPORTED_DEVICES
+= zbt-we1326
935 TARGET_DEVICES
+= zbtlink_zbt-we1326
937 define Device
/zbtlink_zbt-we3526
939 DEVICE_VENDOR
:= Zbtlink
940 DEVICE_MODEL
:= ZBT-WE3526
941 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
942 kmod-usb-ledtrig-usbport wpad-basic
944 TARGET_DEVICES
+= zbtlink_zbt-we3526
946 define Device
/zbtlink_zbt-wg2626
948 DEVICE_VENDOR
:= Zbtlink
949 DEVICE_MODEL
:= ZBT-WG2626
950 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
951 kmod-usb-ledtrig-usbport wpad-basic
952 SUPPORTED_DEVICES
+= zbt-wg2626
954 TARGET_DEVICES
+= zbtlink_zbt-wg2626
956 define Device
/zbtlink_zbt-wg3526-16m
958 DEVICE_VENDOR
:= Zbtlink
959 DEVICE_MODEL
:= ZBT-WG3526
960 DEVICE_VARIANT
:= 16M
961 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
962 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
963 SUPPORTED_DEVICES
+= zbt-wg3526 zbt-wg3526-16M
965 TARGET_DEVICES
+= zbtlink_zbt-wg3526-16m
967 define Device
/zbtlink_zbt-wg3526-32m
969 DEVICE_VENDOR
:= Zbtlink
970 DEVICE_MODEL
:= ZBT-WG3526
971 DEVICE_VARIANT
:= 32M
972 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
973 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
974 SUPPORTED_DEVICES
+= ac1200pro zbt-wg3526-32M
976 TARGET_DEVICES
+= zbtlink_zbt-wg3526-32m
978 define Device
/zio_freezio
981 DEVICE_MODEL
:= FREEZIO
982 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
983 kmod-usb-ledtrig-usbport wpad-basic
985 TARGET_DEVICES
+= zio_freezio