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 | gzip -c | \
71 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 | gzip -c | \
78 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
/ubnt-erx-factory-image
85 if
[ -e
$(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
) -a
"$$(stat -c%s $@)" -lt
"$(KERNEL_SIZE)" ]; then \
86 echo
'21001:7' > $(1).compat
; \
87 $(TAR
) -cf
$(1) --transform
='s/^.*/compat/' $(1).compat
; \
89 $(TAR
) -rf
$(1) --transform
='s/^.*/vmlinux.tmp/' $(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
); \
90 mkhash md5
$(KDIR
)/tmp
/$(KERNEL_INITRAMFS_IMAGE
) > $(1).md5
; \
91 $(TAR
) -rf
$(1) --transform
='s/^.*/vmlinux.tmp.md5/' $(1).md5
; \
93 echo
"dummy" > $(1).rootfs
; \
94 $(TAR
) -rf
$(1) --transform
='s/^.*/squashfs.tmp/' $(1).rootfs
; \
96 mkhash md5
$(1).rootfs
> $(1).md5
; \
97 $(TAR
) -rf
$(1) --transform
='s/^.*/squashfs.tmp.md5/' $(1).md5
; \
99 echo
'$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version
; \
100 $(TAR
) -rf
$(1) --transform
='s/^.*/version.tmp/' $(1).version
; \
102 $(CP
) $(1) $(BIN_DIR
)/; \
104 echo
"WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
108 define Device
/afoundry_ew1200
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 wpad-basic
114 SUPPORTED_DEVICES
+= ew1200
116 TARGET_DEVICES
+= afoundry_ew1200
118 define Device
/alfa-network_quad-e4g
120 DEVICE_VENDOR
:= ALFA Network
121 DEVICE_MODEL
:= Quad-E4G
122 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools
124 TARGET_DEVICES
+= alfa-network_quad-e4g
126 define Device
/asiarf_ap7621-001
128 DEVICE_VENDOR
:= AsiaRF
129 DEVICE_MODEL
:= AP7621-001
130 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
132 TARGET_DEVICES
+= asiarf_ap7621-001
134 define Device
/asiarf_ap7621-nv1
136 DEVICE_VENDOR
:= AsiaRF
137 DEVICE_MODEL
:= AP7621-NV1
138 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
140 TARGET_DEVICES
+= asiarf_ap7621-nv1
142 define Device
/asus_rt-ac57u
143 DEVICE_VENDOR
:= ASUS
144 DEVICE_MODEL
:= RT-AC57U
146 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
147 kmod-usb-ledtrig-usbport wpad-basic
149 TARGET_DEVICES
+= asus_rt-ac57u
151 define Device
/asus_rt-ac65p
152 DEVICE_VENDOR
:= ASUS
153 DEVICE_MODEL
:= RT-AC65P
159 IMAGES
+= factory.bin
160 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
161 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
163 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
165 TARGET_DEVICES
+= asus_rt-ac65p
167 define Device
/asus_rt-ac85p
168 DEVICE_VENDOR
:= ASUS
169 DEVICE_MODEL
:= RT-AC85P
175 IMAGES
+= factory.bin
176 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
177 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
179 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
181 TARGET_DEVICES
+= asus_rt-ac85p
183 define Device
/buffalo_wsr-1166dhp
184 $(Device
/uimage-lzma-loader
)
185 IMAGE
/sysupgrade.bin
:= trx | pad-rootfs | append-metadata
187 DEVICE_VENDOR
:= Buffalo
188 DEVICE_MODEL
:= WSR-1166DHP
189 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
190 SUPPORTED_DEVICES
+= wsr-1166
192 TARGET_DEVICES
+= buffalo_wsr-1166dhp
194 define Device
/buffalo_wsr-2533dhpl
195 $(Device
/uimage-lzma-loader
)
197 DEVICE_VENDOR
:= Buffalo
198 DEVICE_MODEL
:= WSR-2533DHPL
199 IMAGE
/sysupgrade.bin
:= trx | pad-rootfs | append-metadata
200 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
202 TARGET_DEVICES
+= buffalo_wsr-2533dhpl
204 define Device
/buffalo_wsr-600dhp
206 DEVICE_VENDOR
:= Buffalo
207 DEVICE_MODEL
:= WSR-600DHP
208 DEVICE_PACKAGES
:= kmod-mt7603 kmod-rt2800-pci wpad-basic
209 SUPPORTED_DEVICES
+= wsr-600
211 TARGET_DEVICES
+= buffalo_wsr-600dhp
213 define Device
/dlink_dir-860l-b1
216 SEAMA_SIGNATURE
:= wrgac13_dlink
.2013gui_dir860lb
218 KERNEL
:= kernel-bin | append-dtb | lzma | loader-kernel | relocate-kernel | \
219 lzma
-a0 | uImage lzma
221 DEVICE_VENDOR
:= D-Link
222 DEVICE_MODEL
:= DIR-860L
224 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
225 SUPPORTED_DEVICES
+= dir-860l-b1
227 TARGET_DEVICES
+= dlink_dir-860l-b1
229 define Device
/d-team_newifi-d2
230 $(Device
/uimage-lzma-loader
)
232 DEVICE_VENDOR
:= Newifi
234 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
235 kmod-usb-ledtrig-usbport wpad-basic
237 TARGET_DEVICES
+= d-team_newifi-d2
239 define Device
/d-team_pbr-m1
241 DEVICE_VENDOR
:= PandoraBox
242 DEVICE_MODEL
:= PBR-M1
243 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
244 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
245 SUPPORTED_DEVICES
+= pbr-m1
247 TARGET_DEVICES
+= d-team_pbr-m1
249 define Device
/edimax_ra21s
251 DEVICE_VENDOR
:= Edimax
252 DEVICE_MODEL
:= RA21S
253 DEVICE_ALT0_VENDOR
:= Edimax
254 DEVICE_ALT0_MODEL
:= Gemini RA21S
255 IMAGES
+= factory.bin
256 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
257 elx-header
02020040 8844A2D168B45A2D
258 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
260 TARGET_DEVICES
+= edimax_ra21s
262 define Device
/edimax_rg21s
264 DEVICE_VENDOR
:= Edimax
265 DEVICE_MODEL
:= Gemini AC2600 RG21S
266 IMAGES
+= factory.bin
267 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
268 elx-header
02020038 8844A2D168B45A2D
269 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
271 TARGET_DEVICES
+= edimax_rg21s
273 define Device
/elecom_wrc-1167ghbk2-s
275 DEVICE_VENDOR
:= ELECOM
276 DEVICE_MODEL
:= WRC-1167GHBK2-S
277 IMAGES
+= factory.bin
278 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
279 elecom-wrc-factory WRC-1167GHBK2-S
0.00
280 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
282 TARGET_DEVICES
+= elecom_wrc-1167ghbk2-s
284 define Device
/elecom_wrc-1900gst
285 $(Device
/uimage-lzma-loader
)
287 DEVICE_VENDOR
:= ELECOM
288 DEVICE_MODEL
:= WRC-1900GST
289 IMAGES
+= factory.bin
290 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
291 elecom-gst-factory WRC-1900GST
0.00
293 TARGET_DEVICES
+= elecom_wrc-1900gst
295 define Device
/elecom_wrc-2533gst
296 $(Device
/uimage-lzma-loader
)
298 DEVICE_VENDOR
:= ELECOM
299 DEVICE_MODEL
:= WRC-2533GST
300 IMAGES
+= factory.bin
301 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
302 elecom-gst-factory WRC-2533GST
0.00
304 TARGET_DEVICES
+= elecom_wrc-2533gst
306 define Device
/firefly_firewrt
308 DEVICE_VENDOR
:= Firefly
309 DEVICE_MODEL
:= FireWRT
310 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
311 SUPPORTED_DEVICES
+= firewrt
313 TARGET_DEVICES
+= firefly_firewrt
315 define Device
/gehua_ghl-r-001
317 DEVICE_VENDOR
:= GeHua
318 DEVICE_MODEL
:= GHL-R-001
319 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
320 kmod-usb-ledtrig-usbport wpad-basic
322 TARGET_DEVICES
+= gehua_ghl-r-001
324 define Device
/gnubee_gb-pc1
325 DEVICE_VENDOR
:= GnuBee
326 DEVICE_MODEL
:= Personal Cloud One
327 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
330 TARGET_DEVICES
+= gnubee_gb-pc1
332 define Device
/gnubee_gb-pc2
333 DEVICE_VENDOR
:= GnuBee
334 DEVICE_MODEL
:= Personal Cloud Two
335 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
338 TARGET_DEVICES
+= gnubee_gb-pc2
340 define Device
/hiwifi_hc5962
346 IMAGES
+= factory.bin
347 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
348 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
350 DEVICE_VENDOR
:= HiWiFi
351 DEVICE_MODEL
:= HC5962
352 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
354 TARGET_DEVICES
+= hiwifi_hc5962
356 define Device
/iodata_wn-ax1167gr
357 $(Device
/uimage-lzma-loader
)
359 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
360 iodata-factory
7864320 4 0x1055 $(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.bin
361 DEVICE_VENDOR
:= I-O DATA
362 DEVICE_MODEL
:= WN-AX1167GR
363 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
365 TARGET_DEVICES
+= iodata_wn-ax1167gr
367 define Device
/iodata_nand
368 DEVICE_VENDOR
:= I-O DATA
375 KERNEL
:= kernel-bin | append-dtb | lzma | loader-kernel | lzma | uImage lzma
376 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
379 define Device
/iodata_wn-ax1167gr2
380 $(Device
/iodata_nand
)
381 UIMAGE_MAGIC
:= 0x434f4d42
382 DEVICE_MODEL
:= WN-AX1167GR2
383 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | loader-kernel | lzma | \
384 custom-initramfs-uimage
3.10(XBC
.1)b10 | iodata-mstc-header
385 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
387 TARGET_DEVICES
+= iodata_wn-ax1167gr2
389 define Device
/iodata_wn-ax2033gr
390 $(Device
/iodata_nand
)
391 UIMAGE_MAGIC
:= 0x434f4d42
392 DEVICE_MODEL
:= WN-AX2033GR
393 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | loader-kernel | lzma | \
394 custom-initramfs-uimage
3.10(VST
.1)C10 | iodata-mstc-header
395 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt7615e wpad-basic
397 TARGET_DEVICES
+= iodata_wn-ax2033gr
399 define Device
/iodata_wn-dx1167r
400 $(Device
/iodata_nand
)
401 UIMAGE_MAGIC
:= 0x434f4d43
402 DEVICE_MODEL
:= WN-DX1167R
403 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | loader-kernel | lzma | \
404 custom-initramfs-uimage
3.10(XIK
.1)b10 | iodata-mstc-header
405 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
407 TARGET_DEVICES
+= iodata_wn-dx1167r
409 define Device
/iodata_wn-gx300gr
410 $(Device
/uimage-lzma-loader
)
412 DEVICE_VENDOR
:= I-O DATA
413 DEVICE_MODEL
:= WN-GX300GR
414 DEVICE_PACKAGES
:= kmod-mt7603 wpad-basic
416 TARGET_DEVICES
+= iodata_wn-gx300gr
418 define Device
/iodata_wnpr2600g
419 $(Device
/uimage-lzma-loader
)
420 DEVICE_VENDOR
:= I-O DATA
421 DEVICE_MODEL
:= WNPR2600G
423 IMAGES
+= factory.bin
424 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
425 elx-header
0104003a
8844A2D168B45A2D
426 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
428 TARGET_DEVICES
+= iodata_wnpr2600g
430 define Device
/iptime_a6ns-m
433 DEVICE_VENDOR
:= ipTIME
434 DEVICE_MODEL
:= A6ns-M
435 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
437 TARGET_DEVICES
+= iptime_a6ns-m
439 define Device
/iptime_a8004t
441 UIMAGE_NAME
:= a8004t
442 DEVICE_VENDOR
:= ipTIME
443 DEVICE_MODEL
:= A8004T
444 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 wpad-basic
446 TARGET_DEVICES
+= iptime_a8004t
448 define Device
/jcg_jhr-ac876m
450 IMAGES
+= factory.bin
451 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | jcg-header
89.1
452 JCG_MAXSIZE
:= 16064k
454 DEVICE_MODEL
:= JHR-AC876M
455 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
457 TARGET_DEVICES
+= jcg_jhr-ac876m
459 define Device
/lenovo_newifi-d1
460 $(Device
/uimage-lzma-loader
)
462 DEVICE_VENDOR
:= Newifi
464 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
465 kmod-usb-ledtrig-usbport wpad-basic
466 SUPPORTED_DEVICES
+= newifi-d1
468 TARGET_DEVICES
+= lenovo_newifi-d1
470 define Device
/linksys_ea7500-v2
471 $(Device
/uimage-lzma-loader
)
476 DEVICE_VENDOR
:= Linksys
477 DEVICE_MODEL
:= EA7500
479 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
481 IMAGES
:= sysupgrade.bin factory.bin
482 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata | check-size
483 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
484 append-ubi | check-size | linksys-image type
=EA7500v2
486 TARGET_DEVICES
+= linksys_ea7500-v2
488 define Device
/linksys_re6500
490 DEVICE_VENDOR
:= Linksys
491 DEVICE_MODEL
:= RE6500
492 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
493 SUPPORTED_DEVICES
+= re6500
495 TARGET_DEVICES
+= linksys_re6500
497 define Device
/mediatek_ap-mt7621a-v60
499 DEVICE_VENDOR
:= Mediatek
500 DEVICE_MODEL
:= AP-MT7621A-V60 EVB
501 DEVICE_PACKAGES
:= kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
503 TARGET_DEVICES
+= mediatek_ap-mt7621a-v60
505 define Device
/mediatek_mt7621-eval-board
508 DEVICE_VENDOR
:= MediaTek
509 DEVICE_MODEL
:= MT7621 EVB
510 SUPPORTED_DEVICES
+= mt7621
512 TARGET_DEVICES
+= mediatek_mt7621-eval-board
514 define Device
/MikroTik
515 DEVICE_VENDOR
:= MikroTik
518 DEVICE_PACKAGES
:= kmod-usb3
520 KERNEL
:= $(KERNEL_DTB
) | loader-kernel
521 IMAGE
/sysupgrade.bin
:= append-kernel | kernel2minor
-s
1024 | \
522 pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | append-metadata | \
526 define Device
/mikrotik_routerboard-750gr3
528 DEVICE_MODEL
:= RouterBOARD
750Gr3
529 DEVICE_PACKAGES
+= kmod-gpio-beeper
530 SUPPORTED_DEVICES
+= mikrotik
,rb750gr3
532 TARGET_DEVICES
+= mikrotik_routerboard-750gr3
534 define Device
/mikrotik_routerboard-m11g
536 DEVICE_MODEL
:= RouterBOARD M11G
537 SUPPORTED_DEVICES
+= mikrotik
,rbm11g
539 TARGET_DEVICES
+= mikrotik_routerboard-m11g
541 define Device
/mikrotik_routerboard-m33g
543 DEVICE_MODEL
:= RouterBOARD M33G
544 SUPPORTED_DEVICES
+= mikrotik
,rbm33g
546 TARGET_DEVICES
+= mikrotik_routerboard-m33g
548 define Device
/mqmaker_witi
550 DEVICE_VENDOR
:= MQmaker
552 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
553 kmod-usb-ledtrig-usbport wpad-basic
554 SUPPORTED_DEVICES
+= witi mqmaker
,witi-256m mqmaker
,witi-512m
556 TARGET_DEVICES
+= mqmaker_witi
558 define Device
/mtc_wr1201
561 DEVICE_MODEL
:= Wireless Router WR1201
562 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage WR1201_8_128
563 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
564 kmod-usb-ledtrig-usbport wpad-basic
566 TARGET_DEVICES
+= mtc_wr1201
568 define Device
/netgear_ex6150
569 DEVICE_VENDOR
:= NETGEAR
570 DEVICE_MODEL
:= EX6150
571 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
572 NETGEAR_BOARD_ID
:= U12H318T00_NETGEAR
574 IMAGES
+= factory.chk
575 IMAGE
/factory.chk
:= $$(sysupgrade_bin
) | check-size | netgear-chk
577 TARGET_DEVICES
+= netgear_ex6150
579 define Device
/netgear_sercomm_nand
580 $(Device
/uimage-lzma-loader
)
585 IMAGES
+= factory.img kernel.bin rootfs.bin
586 IMAGE
/factory.img
:= pad-extra
2048k | append-kernel | pad-to
6144k | \
587 append-ubi | pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | \
588 zip
$$$$(SERCOMM_HWNAME
).bin | sercom-seal
589 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
590 IMAGE
/kernel.bin
:= append-kernel
591 IMAGE
/rootfs.bin
:= append-ubi | check-size
592 DEVICE_VENDOR
:= NETGEAR
593 DEVICE_PACKAGES
:= kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
596 define Device
/netgear_r6220
597 $(Device
/netgear_sercomm_nand
)
598 DEVICE_MODEL
:= R6220
599 SERCOMM_HWNAME
:= R6220
601 SERCOMM_HWVER
:= A001
602 SERCOMM_SWVER
:= 0x0086
604 DEVICE_PACKAGES
+= kmod-mt76x2
605 SUPPORTED_DEVICES
+= r6220
607 TARGET_DEVICES
+= netgear_r6220
610 define Device
/netgear_r6260
611 $(Device
/netgear_sercomm_nand
)
612 DEVICE_MODEL
:= R6260
613 SERCOMM_HWNAME
:= R6260
615 SERCOMM_HWVER
:= A001
616 SERCOMM_SWVER
:= 0x0052
618 DEVICE_PACKAGES
+= kmod-mt7615e
620 TARGET_DEVICES
+= netgear_r6260
622 define Device
/netgear_r6350
623 $(Device
/netgear_sercomm_nand
)
624 DEVICE_MODEL
:= R6350
625 SERCOMM_HWNAME
:= R6350
627 SERCOMM_HWVER
:= A001
628 SERCOMM_SWVER
:= 0x0052
630 DEVICE_PACKAGES
+= kmod-mt7615e
632 TARGET_DEVICES
+= netgear_r6350
634 define Device
/netgear_r6700-v2
635 $(Device
/netgear_sercomm_nand
)
636 DEVICE_MODEL
:= R6700
638 DEVICE_ALT0_VENDOR
:= NETGEAR
639 DEVICE_ALT0_MODEL
:= Nighthawk AC2400
640 DEVICE_ALT0_VARIANT
:= v1
641 DEVICE_ALT1_VENDOR
:= NETGEAR
642 DEVICE_ALT1_MODEL
:= R7200
643 DEVICE_ALT1_VARIANT
:= v1
644 SERCOMM_HWNAME
:= R6950
646 SERCOMM_HWVER
:= A001
647 SERCOMM_SWVER
:= 0x1032
649 DEVICE_PACKAGES
+= kmod-mt7615e
651 TARGET_DEVICES
+= netgear_r6700-v2
653 define Device
/netgear_r6800
654 $(Device
/netgear_sercomm_nand
)
655 DEVICE_MODEL
:= R6800
656 SERCOMM_HWNAME
:= R6950
658 SERCOMM_HWVER
:= A001
659 SERCOMM_SWVER
:= 0x0062
661 DEVICE_PACKAGES
+= kmod-mt7615e
663 TARGET_DEVICES
+= netgear_r6800
665 define Device
/netgear_r6850
666 $(Device
/netgear_sercomm_nand
)
667 DEVICE_MODEL
:= R6850
668 SERCOMM_HWNAME
:= R6850
670 SERCOMM_HWVER
:= A001
671 SERCOMM_SWVER
:= 0x0052
673 DEVICE_PACKAGES
+= kmod-mt7615e
675 TARGET_DEVICES
+= netgear_r6850
677 define Device
/netgear_wndr3700-v5
678 $(Device
/uimage-lzma-loader
)
682 SERCOMM_HWVER
:= A001
683 SERCOMM_SWVER
:= 0x1054
684 IMAGES
+= factory.img
685 IMAGE
/default
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | \
687 IMAGE
/sysupgrade.bin
:= $$(IMAGE
/default
) | append-metadata | check-size
688 IMAGE
/factory.img
:= pad-extra
320k |
$$(IMAGE
/default
) | \
689 pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | zip WNDR3700v5.bin | \
691 DEVICE_VENDOR
:= NETGEAR
692 DEVICE_MODEL
:= WNDR3700
694 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
695 kmod-usb-ledtrig-usbport wpad-basic
696 SUPPORTED_DEVICES
+= wndr3700v5
698 TARGET_DEVICES
+= netgear_wndr3700-v5
700 define Device
/netis_wf2881
703 FILESYSTEMS
:= squashfs
705 IMAGE_SIZE
:= 129280k
707 UIMAGE_NAME
:= WF2881_0.0
.00
708 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | netis-tail WF2881 | uImage lzma
709 IMAGES
+= factory.bin
710 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
711 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | \
713 DEVICE_VENDOR
:= NETIS
714 DEVICE_MODEL
:= WF2881
715 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
717 TARGET_DEVICES
+= netis_wf2881
719 define Device
/phicomm_k2p
721 DEVICE_VENDOR
:= Phicomm
723 DEVICE_ALT0_VENDOR
:= Phicomm
724 DEVICE_ALT0_MODEL
:= KE
2P
725 SUPPORTED_DEVICES
+= k2p
726 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
728 TARGET_DEVICES
+= phicomm_k2p
730 define Device
/planex_vr500
731 $(Device
/uimage-lzma-loader
)
733 DEVICE_VENDOR
:= Planex
734 DEVICE_MODEL
:= VR500
735 DEVICE_PACKAGES
:= kmod-usb3
736 SUPPORTED_DEVICES
+= vr500
738 TARGET_DEVICES
+= planex_vr500
740 define Device
/samknows_whitebox-v8
742 DEVICE_VENDOR
:= SamKnows
743 DEVICE_MODEL
:= Whitebox
8
744 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
745 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
746 SUPPORTED_DEVICES
+= sk-wb8
748 TARGET_DEVICES
+= samknows_whitebox-v8
750 define Device
/storylink_sap-g3200u3
752 DEVICE_VENDOR
:= STORYLiNK
753 DEVICE_MODEL
:= SAP-G3200U3
754 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
755 SUPPORTED_DEVICES
+= sap-g3200u3
757 TARGET_DEVICES
+= storylink_sap-g3200u3
759 define Device
/telco-electronics_x1
761 DEVICE_VENDOR
:= Telco Electronics
763 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt76 wpad-basic
765 TARGET_DEVICES
+= telco-electronics_x1
767 define Device
/thunder_timecloud
768 $(Device
/uimage-lzma-loader
)
770 DEVICE_VENDOR
:= Thunder
771 DEVICE_MODEL
:= Timecloud
772 DEVICE_PACKAGES
:= kmod-usb3
773 SUPPORTED_DEVICES
+= timecloud
775 TARGET_DEVICES
+= thunder_timecloud
777 define Device
/totolink_a7000r
779 UIMAGE_NAME
:= C8340R1C-9999
780 DEVICE_VENDOR
:= TOTOLINK
781 DEVICE_MODEL
:= A7000R
782 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
784 TARGET_DEVICES
+= totolink_a7000r
786 define Device
/adslr_g7
788 DEVICE_VENDOR
:= ADSLR
790 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
792 TARGET_DEVICES
+= adslr_g7
794 define Device
/tplink_re350-v1
795 $(Device
/tplink-safeloader
)
796 DEVICE_MODEL
:= RE350
798 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
799 TPLINK_BOARD_ID
:= RE350-V1
801 SUPPORTED_DEVICES
+= re350-v1
803 TARGET_DEVICES
+= tplink_re350-v1
805 define Device
/tplink_re650-v1
806 $(Device
/tplink-safeloader
)
807 DEVICE_MODEL
:= RE650
809 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
810 TPLINK_BOARD_ID
:= RE650-V1
813 TARGET_DEVICES
+= tplink_re650-v1
815 define Device
/ubnt_edgerouter_common
816 $(Device
/uimage-lzma-loader
)
817 DEVICE_VENDOR
:= Ubiquiti
818 IMAGE_SIZE
:= 256768k
819 FILESYSTEMS
:= squashfs
820 KERNEL_SIZE
:= 3145728
821 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
822 ubnt-erx-factory-image
$(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.
tar
823 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
826 define Device
/ubnt_edgerouter-x
827 $(Device
/ubnt_edgerouter_common
)
828 DEVICE_MODEL
:= EdgeRouter X
829 SUPPORTED_DEVICES
+= ubnt-erx ubiquiti
,edgerouterx
831 TARGET_DEVICES
+= ubnt_edgerouter-x
833 define Device
/ubnt_edgerouter-x-sfp
834 $(Device
/ubnt_edgerouter_common
)
835 DEVICE_MODEL
:= EdgeRouter X SFP
836 DEVICE_PACKAGES
+= kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
837 SUPPORTED_DEVICES
+= ubnt-erx-sfp ubiquiti
,edgerouterx-sfp
839 TARGET_DEVICES
+= ubnt_edgerouter-x-sfp
841 define Device
/ubnt_unifi-nanohd
842 DEVICE_VENDOR
:= Ubiquiti
843 DEVICE_MODEL
:= UniFi nanoHD
844 DEVICE_PACKAGES
+= kmod-mt7603 kmod-mt7615e wpad-basic
847 TARGET_DEVICES
+= ubnt_unifi-nanohd
849 define Device
/unielec_u7621-06-16m
851 DEVICE_VENDOR
:= UniElec
852 DEVICE_MODEL
:= U7621-06
853 DEVICE_VARIANT
:= 16M
854 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
855 SUPPORTED_DEVICES
+= u7621-06-256M-16M unielec
,u7621-06-256m-16m
857 TARGET_DEVICES
+= unielec_u7621-06-16m
859 define Device
/unielec_u7621-06-64m
861 DEVICE_VENDOR
:= UniElec
862 DEVICE_MODEL
:= U7621-06
863 DEVICE_VARIANT
:= 64M
864 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
865 SUPPORTED_DEVICES
+= unielec
,u7621-06-512m-64m
867 TARGET_DEVICES
+= unielec_u7621-06-64m
869 define Device
/wevo_11acnas
871 UIMAGE_NAME
:= 11AC-NAS-Router
(0.0.0)
872 DEVICE_VENDOR
:= WeVO
873 DEVICE_MODEL
:= 11AC NAS Router
874 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
875 kmod-usb-ledtrig-usbport wpad-basic
876 SUPPORTED_DEVICES
+= 11acnas
878 TARGET_DEVICES
+= wevo_11acnas
880 define Device
/wevo_w2914ns-v2
882 UIMAGE_NAME
:= W2914NS-V2
(0.0.0)
883 DEVICE_VENDOR
:= WeVO
884 DEVICE_MODEL
:= W2914NS
886 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
887 kmod-usb-ledtrig-usbport wpad-basic
888 SUPPORTED_DEVICES
+= w2914nsv2
890 TARGET_DEVICES
+= wevo_w2914ns-v2
892 define Device
/xiaomi_mir3g
893 $(Device
/uimage-lzma-loader
)
897 IMAGE_SIZE
:= 124416k
899 IMAGES
+= kernel1.bin rootfs0.bin
900 IMAGE
/kernel1.bin
:= append-kernel
901 IMAGE
/rootfs0.bin
:= append-ubi | check-size
902 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
903 DEVICE_VENDOR
:= Xiaomi
904 DEVICE_MODEL
:= Mi Router
3G
905 SUPPORTED_DEVICES
+= R3G
906 SUPPORTED_DEVICES
+= mir3g
907 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
908 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
910 TARGET_DEVICES
+= xiaomi_mir3g
912 define Device
/xiaomi_mir3g-v2
913 $(Device
/uimage-lzma-loader
)
915 DEVICE_VENDOR
:= Xiaomi
916 DEVICE_MODEL
:= Mi Router
3G
918 DEVICE_ALT0_VENDOR
:= Xiaomi
919 DEVICE_ALT0_MODEL
:= Mi Router
4A
920 DEVICE_ALT0_VARIANT
:= Gigabit Edition
921 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
923 TARGET_DEVICES
+= xiaomi_mir3g-v2
925 define Device
/xiaomi_mir3p
926 $(Device
/uimage-lzma-loader
)
931 IMAGE_SIZE
:= 255488k
932 DEVICE_VENDOR
:= Xiaomi
933 DEVICE_MODEL
:= Mi Router
3 Pro
934 IMAGES
+= factory.bin
935 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
936 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
938 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \
939 wpad-basic uboot-envtools
941 TARGET_DEVICES
+= xiaomi_mir3p
943 define Device
/xiaomi_redmi-router-ac2100
944 $(Device
/uimage-lzma-loader
)
948 IMAGE_SIZE
:= 124416k
950 IMAGES
+= kernel1.bin rootfs0.bin
951 IMAGE
/kernel1.bin
:= append-kernel
952 IMAGE
/rootfs0.bin
:= append-ubi | check-size
953 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
954 DEVICE_VENDOR
:= Xiaomi
955 DEVICE_MODEL
:= Redmi Router AC2100
956 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt7615e wpad-basic uboot-envtools
958 TARGET_DEVICES
+= xiaomi_redmi-router-ac2100
960 define Device
/xiaoyu_xy-c5
962 DEVICE_VENDOR
:= XiaoYu
963 DEVICE_MODEL
:= XY-C5
964 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3
966 TARGET_DEVICES
+= xiaoyu_xy-c5
968 define Device
/xzwifi_creativebox-v1
970 DEVICE_VENDOR
:= CreativeBox
972 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
975 TARGET_DEVICES
+= xzwifi_creativebox-v1
977 define Device
/youhua_wr1200js
979 DEVICE_VENDOR
:= YouHua
980 DEVICE_MODEL
:= WR1200JS
981 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
982 kmod-usb-ledtrig-usbport wpad-basic
984 TARGET_DEVICES
+= youhua_wr1200js
986 define Device
/youku_yk-l2
988 DEVICE_VENDOR
:= Youku
989 DEVICE_MODEL
:= YK-L2
990 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
991 kmod-usb-ledtrig-usbport wpad-basic
993 TARGET_DEVICES
+= youku_yk-l2
995 define Device
/zbtlink_zbt-we1326
997 DEVICE_VENDOR
:= Zbtlink
998 DEVICE_MODEL
:= ZBT-WE1326
999 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
1001 SUPPORTED_DEVICES
+= zbt-we1326
1003 TARGET_DEVICES
+= zbtlink_zbt-we1326
1005 define Device
/zbtlink_zbt-we3526
1006 IMAGE_SIZE
:= 16064k
1007 DEVICE_VENDOR
:= Zbtlink
1008 DEVICE_MODEL
:= ZBT-WE3526
1009 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1010 kmod-usb-ledtrig-usbport wpad-basic
1012 TARGET_DEVICES
+= zbtlink_zbt-we3526
1014 define Device
/zbtlink_zbt-wg2626
1015 IMAGE_SIZE
:= 16064k
1016 DEVICE_VENDOR
:= Zbtlink
1017 DEVICE_MODEL
:= ZBT-WG2626
1018 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1019 kmod-usb-ledtrig-usbport wpad-basic
1020 SUPPORTED_DEVICES
+= zbt-wg2626
1022 TARGET_DEVICES
+= zbtlink_zbt-wg2626
1024 define Device
/zbtlink_zbt-wg3526-16m
1025 IMAGE_SIZE
:= 16064k
1026 DEVICE_VENDOR
:= Zbtlink
1027 DEVICE_MODEL
:= ZBT-WG3526
1028 DEVICE_VARIANT
:= 16M
1029 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1030 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1031 SUPPORTED_DEVICES
+= zbt-wg3526 zbt-wg3526-16M
1033 TARGET_DEVICES
+= zbtlink_zbt-wg3526-16m
1035 define Device
/zbtlink_zbt-wg3526-32m
1036 IMAGE_SIZE
:= 32448k
1037 DEVICE_VENDOR
:= Zbtlink
1038 DEVICE_MODEL
:= ZBT-WG3526
1039 DEVICE_VARIANT
:= 32M
1040 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1041 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1042 SUPPORTED_DEVICES
+= ac1200pro zbt-wg3526-32M
1044 TARGET_DEVICES
+= zbtlink_zbt-wg3526-32m
1046 define Device
/zio_freezio
1047 IMAGE_SIZE
:= 16064k
1048 DEVICE_VENDOR
:= ZIO
1049 DEVICE_MODEL
:= FREEZIO
1050 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1051 kmod-usb-ledtrig-usbport wpad-basic
1053 TARGET_DEVICES
+= zio_freezio