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 kmod-mt7615-firmware 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 kmod-mt7615-firmware 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 DEVICE_ALT0_VENDOR
:= Buffalo
200 DEVICE_ALT0_MODEL
:= WSR-2533DHP
201 IMAGE
/sysupgrade.bin
:= trx | pad-rootfs | append-metadata
202 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
204 TARGET_DEVICES
+= buffalo_wsr-2533dhpl
206 define Device
/buffalo_wsr-600dhp
208 DEVICE_VENDOR
:= Buffalo
209 DEVICE_MODEL
:= WSR-600DHP
210 DEVICE_PACKAGES
:= kmod-mt7603 kmod-rt2800-pci wpad-basic
211 SUPPORTED_DEVICES
+= wsr-600
213 TARGET_DEVICES
+= buffalo_wsr-600dhp
215 define Device
/dlink_dir-860l-b1
218 SEAMA_SIGNATURE
:= wrgac13_dlink
.2013gui_dir860lb
220 KERNEL
:= kernel-bin | append-dtb | lzma | loader-kernel | relocate-kernel | \
221 lzma
-a0 | uImage lzma
223 DEVICE_VENDOR
:= D-Link
224 DEVICE_MODEL
:= DIR-860L
226 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
227 SUPPORTED_DEVICES
+= dir-860l-b1
229 TARGET_DEVICES
+= dlink_dir-860l-b1
231 define Device
/d-team_newifi-d2
232 $(Device
/uimage-lzma-loader
)
234 DEVICE_VENDOR
:= Newifi
236 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
237 kmod-usb-ledtrig-usbport wpad-basic
239 TARGET_DEVICES
+= d-team_newifi-d2
241 define Device
/d-team_pbr-m1
243 DEVICE_VENDOR
:= PandoraBox
244 DEVICE_MODEL
:= PBR-M1
245 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
246 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
247 SUPPORTED_DEVICES
+= pbr-m1
249 TARGET_DEVICES
+= d-team_pbr-m1
251 define Device
/edimax_ra21s
253 DEVICE_VENDOR
:= Edimax
254 DEVICE_MODEL
:= RA21S
255 DEVICE_ALT0_VENDOR
:= Edimax
256 DEVICE_ALT0_MODEL
:= Gemini RA21S
257 IMAGES
+= factory.bin
258 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
259 elx-header
02020040 8844A2D168B45A2D
260 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
262 TARGET_DEVICES
+= edimax_ra21s
264 define Device
/edimax_rg21s
266 DEVICE_VENDOR
:= Edimax
267 DEVICE_MODEL
:= Gemini AC2600 RG21S
268 IMAGES
+= factory.bin
269 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
270 elx-header
02020038 8844A2D168B45A2D
271 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
273 TARGET_DEVICES
+= edimax_rg21s
275 define Device
/elecom_wrc-1167ghbk2-s
277 DEVICE_VENDOR
:= ELECOM
278 DEVICE_MODEL
:= WRC-1167GHBK2-S
279 IMAGES
+= factory.bin
280 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
281 elecom-wrc-factory WRC-1167GHBK2-S
0.00
282 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
284 TARGET_DEVICES
+= elecom_wrc-1167ghbk2-s
286 define Device
/elecom_wrc-1900gst
287 $(Device
/uimage-lzma-loader
)
289 DEVICE_VENDOR
:= ELECOM
290 DEVICE_MODEL
:= WRC-1900GST
291 IMAGES
+= factory.bin
292 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
293 elecom-gst-factory WRC-1900GST
0.00
294 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
296 TARGET_DEVICES
+= elecom_wrc-1900gst
298 define Device
/elecom_wrc-2533gst
299 $(Device
/uimage-lzma-loader
)
301 DEVICE_VENDOR
:= ELECOM
302 DEVICE_MODEL
:= WRC-2533GST
303 IMAGES
+= factory.bin
304 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
305 elecom-gst-factory WRC-2533GST
0.00
306 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
308 TARGET_DEVICES
+= elecom_wrc-2533gst
310 define Device
/elecom_wrc-2533gst2
311 $(Device
/uimage-lzma-loader
)
313 DEVICE_VENDOR
:= ELECOM
314 DEVICE_MODEL
:= WRC-2533GST2
315 IMAGES
+= factory.bin
316 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
317 elecom-gst-factory WRC-2533GST2
0.00
318 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
320 TARGET_DEVICES
+= elecom_wrc-2533gst2
322 define Device
/firefly_firewrt
324 DEVICE_VENDOR
:= Firefly
325 DEVICE_MODEL
:= FireWRT
326 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
327 SUPPORTED_DEVICES
+= firewrt
329 TARGET_DEVICES
+= firefly_firewrt
331 define Device
/gehua_ghl-r-001
333 DEVICE_VENDOR
:= GeHua
334 DEVICE_MODEL
:= GHL-R-001
335 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
336 kmod-usb-ledtrig-usbport wpad-basic
338 TARGET_DEVICES
+= gehua_ghl-r-001
340 define Device
/gnubee_gb-pc1
341 DEVICE_VENDOR
:= GnuBee
342 DEVICE_MODEL
:= Personal Cloud One
343 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
346 TARGET_DEVICES
+= gnubee_gb-pc1
348 define Device
/gnubee_gb-pc2
349 DEVICE_VENDOR
:= GnuBee
350 DEVICE_MODEL
:= Personal Cloud Two
351 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
354 TARGET_DEVICES
+= gnubee_gb-pc2
356 define Device
/hiwifi_hc5962
362 IMAGES
+= factory.bin
363 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
364 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
366 DEVICE_VENDOR
:= HiWiFi
367 DEVICE_MODEL
:= HC5962
368 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
370 TARGET_DEVICES
+= hiwifi_hc5962
372 define Device
/iodata_wn-ax1167gr
373 $(Device
/uimage-lzma-loader
)
375 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
376 iodata-factory
7864320 4 0x1055 $(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.bin
377 DEVICE_VENDOR
:= I-O DATA
378 DEVICE_MODEL
:= WN-AX1167GR
379 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
381 TARGET_DEVICES
+= iodata_wn-ax1167gr
383 define Device
/iodata_nand
384 DEVICE_VENDOR
:= I-O DATA
391 KERNEL
:= kernel-bin | append-dtb | lzma | loader-kernel | lzma | uImage lzma
392 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
395 define Device
/iodata_wn-ax1167gr2
396 $(Device
/iodata_nand
)
397 UIMAGE_MAGIC
:= 0x434f4d42
398 DEVICE_MODEL
:= WN-AX1167GR2
399 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | loader-kernel | lzma | \
400 custom-initramfs-uimage
3.10(XBC
.1)b10 | iodata-mstc-header
401 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
403 TARGET_DEVICES
+= iodata_wn-ax1167gr2
405 define Device
/iodata_wn-ax2033gr
406 $(Device
/iodata_nand
)
407 UIMAGE_MAGIC
:= 0x434f4d42
408 DEVICE_MODEL
:= WN-AX2033GR
409 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | loader-kernel | lzma | \
410 custom-initramfs-uimage
3.10(VST
.1)C10 | iodata-mstc-header
411 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
413 TARGET_DEVICES
+= iodata_wn-ax2033gr
415 define Device
/iodata_wn-dx1167r
416 $(Device
/iodata_nand
)
417 UIMAGE_MAGIC
:= 0x434f4d43
418 DEVICE_MODEL
:= WN-DX1167R
419 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | loader-kernel | lzma | \
420 custom-initramfs-uimage
3.10(XIK
.1)b10 | iodata-mstc-header
421 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
423 TARGET_DEVICES
+= iodata_wn-dx1167r
425 define Device
/iodata_wn-gx300gr
426 $(Device
/uimage-lzma-loader
)
428 DEVICE_VENDOR
:= I-O DATA
429 DEVICE_MODEL
:= WN-GX300GR
430 DEVICE_PACKAGES
:= kmod-mt7603 wpad-basic
432 TARGET_DEVICES
+= iodata_wn-gx300gr
434 define Device
/iodata_wnpr2600g
435 $(Device
/uimage-lzma-loader
)
436 DEVICE_VENDOR
:= I-O DATA
437 DEVICE_MODEL
:= WNPR2600G
439 IMAGES
+= factory.bin
440 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
441 elx-header
0104003a
8844A2D168B45A2D
442 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
444 TARGET_DEVICES
+= iodata_wnpr2600g
446 define Device
/iptime_a6ns-m
449 DEVICE_VENDOR
:= ipTIME
450 DEVICE_MODEL
:= A6ns-M
451 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
453 TARGET_DEVICES
+= iptime_a6ns-m
455 define Device
/iptime_a8004t
457 UIMAGE_NAME
:= a8004t
458 DEVICE_VENDOR
:= ipTIME
459 DEVICE_MODEL
:= A8004T
460 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware kmod-usb3 wpad-basic
462 TARGET_DEVICES
+= iptime_a8004t
464 define Device
/jcg_jhr-ac876m
466 IMAGES
+= factory.bin
467 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | jcg-header
89.1
468 JCG_MAXSIZE
:= 16064k
470 DEVICE_MODEL
:= JHR-AC876M
471 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
473 TARGET_DEVICES
+= jcg_jhr-ac876m
475 define Device
/lenovo_newifi-d1
476 $(Device
/uimage-lzma-loader
)
478 DEVICE_VENDOR
:= Newifi
480 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
481 kmod-usb-ledtrig-usbport wpad-basic
482 SUPPORTED_DEVICES
+= newifi-d1
484 TARGET_DEVICES
+= lenovo_newifi-d1
486 define Device
/linksys_ea7500-v2
487 $(Device
/uimage-lzma-loader
)
492 DEVICE_VENDOR
:= Linksys
493 DEVICE_MODEL
:= EA7500
495 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
497 IMAGES
:= sysupgrade.bin factory.bin
498 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata | check-size
499 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
500 append-ubi | check-size | linksys-image type
=EA7500v2
502 TARGET_DEVICES
+= linksys_ea7500-v2
504 define Device
/linksys_re6500
506 DEVICE_VENDOR
:= Linksys
507 DEVICE_MODEL
:= RE6500
508 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
509 SUPPORTED_DEVICES
+= re6500
511 TARGET_DEVICES
+= linksys_re6500
513 define Device
/mediatek_ap-mt7621a-v60
515 DEVICE_VENDOR
:= Mediatek
516 DEVICE_MODEL
:= AP-MT7621A-V60 EVB
517 DEVICE_PACKAGES
:= kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
519 TARGET_DEVICES
+= mediatek_ap-mt7621a-v60
521 define Device
/mediatek_mt7621-eval-board
524 DEVICE_VENDOR
:= MediaTek
525 DEVICE_MODEL
:= MT7621 EVB
526 SUPPORTED_DEVICES
+= mt7621
528 TARGET_DEVICES
+= mediatek_mt7621-eval-board
530 define Device
/MikroTik
531 DEVICE_VENDOR
:= MikroTik
534 DEVICE_PACKAGES
:= kmod-usb3
536 KERNEL
:= $(KERNEL_DTB
) | loader-kernel
537 IMAGE
/sysupgrade.bin
:= append-kernel | kernel2minor
-s
1024 | \
538 pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | append-metadata | \
542 define Device
/mikrotik_routerboard-750gr3
544 DEVICE_MODEL
:= RouterBOARD
750Gr3
545 DEVICE_PACKAGES
+= kmod-gpio-beeper
546 SUPPORTED_DEVICES
+= mikrotik
,rb750gr3
548 TARGET_DEVICES
+= mikrotik_routerboard-750gr3
550 define Device
/mikrotik_routerboard-m11g
552 DEVICE_MODEL
:= RouterBOARD M11G
553 SUPPORTED_DEVICES
+= mikrotik
,rbm11g
555 TARGET_DEVICES
+= mikrotik_routerboard-m11g
557 define Device
/mikrotik_routerboard-m33g
559 DEVICE_MODEL
:= RouterBOARD M33G
560 SUPPORTED_DEVICES
+= mikrotik
,rbm33g
562 TARGET_DEVICES
+= mikrotik_routerboard-m33g
564 define Device
/mqmaker_witi
566 DEVICE_VENDOR
:= MQmaker
568 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
569 kmod-usb-ledtrig-usbport wpad-basic
570 SUPPORTED_DEVICES
+= witi mqmaker
,witi-256m mqmaker
,witi-512m
572 TARGET_DEVICES
+= mqmaker_witi
574 define Device
/mtc_wr1201
577 DEVICE_MODEL
:= Wireless Router WR1201
578 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage WR1201_8_128
579 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
580 kmod-usb-ledtrig-usbport wpad-basic
582 TARGET_DEVICES
+= mtc_wr1201
584 define Device
/netgear_ex6150
585 DEVICE_VENDOR
:= NETGEAR
586 DEVICE_MODEL
:= EX6150
587 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
588 NETGEAR_BOARD_ID
:= U12H318T00_NETGEAR
590 IMAGES
+= factory.chk
591 IMAGE
/factory.chk
:= $$(sysupgrade_bin
) | check-size | netgear-chk
593 TARGET_DEVICES
+= netgear_ex6150
595 define Device
/netgear_sercomm_nand
596 $(Device
/uimage-lzma-loader
)
601 IMAGES
+= factory.img kernel.bin rootfs.bin
602 IMAGE
/factory.img
:= pad-extra
2048k | append-kernel | pad-to
6144k | \
603 append-ubi | pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | \
604 zip
$$$$(SERCOMM_HWNAME
).bin | sercom-seal
605 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
606 IMAGE
/kernel.bin
:= append-kernel
607 IMAGE
/rootfs.bin
:= append-ubi | check-size
608 DEVICE_VENDOR
:= NETGEAR
609 DEVICE_PACKAGES
:= kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
612 define Device
/netgear_r6220
613 $(Device
/netgear_sercomm_nand
)
614 DEVICE_MODEL
:= R6220
615 SERCOMM_HWNAME
:= R6220
617 SERCOMM_HWVER
:= A001
618 SERCOMM_SWVER
:= 0x0086
620 DEVICE_PACKAGES
+= kmod-mt76x2
621 SUPPORTED_DEVICES
+= r6220
623 TARGET_DEVICES
+= netgear_r6220
626 define Device
/netgear_r6260
627 $(Device
/netgear_sercomm_nand
)
628 DEVICE_MODEL
:= R6260
629 SERCOMM_HWNAME
:= R6260
631 SERCOMM_HWVER
:= A001
632 SERCOMM_SWVER
:= 0x0052
634 DEVICE_PACKAGES
+= kmod-mt7615e kmod-mt7615-firmware
636 TARGET_DEVICES
+= netgear_r6260
638 define Device
/netgear_r6350
639 $(Device
/netgear_sercomm_nand
)
640 DEVICE_MODEL
:= R6350
641 SERCOMM_HWNAME
:= R6350
643 SERCOMM_HWVER
:= A001
644 SERCOMM_SWVER
:= 0x0052
646 DEVICE_PACKAGES
+= kmod-mt7615e kmod-mt7615-firmware
648 TARGET_DEVICES
+= netgear_r6350
650 define Device
/netgear_r6700-v2
651 $(Device
/netgear_sercomm_nand
)
652 DEVICE_MODEL
:= R6700
654 DEVICE_ALT0_VENDOR
:= NETGEAR
655 DEVICE_ALT0_MODEL
:= Nighthawk AC2400
656 DEVICE_ALT0_VARIANT
:= v1
657 DEVICE_ALT1_VENDOR
:= NETGEAR
658 DEVICE_ALT1_MODEL
:= R7200
659 DEVICE_ALT1_VARIANT
:= v1
660 SERCOMM_HWNAME
:= R6950
662 SERCOMM_HWVER
:= A001
663 SERCOMM_SWVER
:= 0x1032
665 DEVICE_PACKAGES
+= kmod-mt7615e kmod-mt7615-firmware
667 TARGET_DEVICES
+= netgear_r6700-v2
669 define Device
/netgear_r6800
670 $(Device
/netgear_sercomm_nand
)
671 DEVICE_MODEL
:= R6800
672 SERCOMM_HWNAME
:= R6950
674 SERCOMM_HWVER
:= A001
675 SERCOMM_SWVER
:= 0x0062
677 DEVICE_PACKAGES
+= kmod-mt7615e kmod-mt7615-firmware
679 TARGET_DEVICES
+= netgear_r6800
681 define Device
/netgear_r6850
682 $(Device
/netgear_sercomm_nand
)
683 DEVICE_MODEL
:= R6850
684 SERCOMM_HWNAME
:= R6850
686 SERCOMM_HWVER
:= A001
687 SERCOMM_SWVER
:= 0x0052
689 DEVICE_PACKAGES
+= kmod-mt7615e kmod-mt7615-firmware
691 TARGET_DEVICES
+= netgear_r6850
693 define Device
/netgear_wac104
694 $(Device
/netgear_sercomm_nand
)
695 DEVICE_MODEL
:= WAC104
696 SERCOMM_HWNAME
:= WAC104
698 SERCOMM_HWVER
:= A001
699 SERCOMM_SWVER
:= 0x0006
701 DEVICE_PACKAGES
+= kmod-mt76x2
703 TARGET_DEVICES
+= netgear_wac104
705 define Device
/netgear_wndr3700-v5
706 $(Device
/uimage-lzma-loader
)
710 SERCOMM_HWVER
:= A001
711 SERCOMM_SWVER
:= 0x1054
712 IMAGES
+= factory.img
713 IMAGE
/default
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | \
715 IMAGE
/sysupgrade.bin
:= $$(IMAGE
/default
) | append-metadata | check-size
716 IMAGE
/factory.img
:= pad-extra
320k |
$$(IMAGE
/default
) | \
717 pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | zip WNDR3700v5.bin | \
719 DEVICE_VENDOR
:= NETGEAR
720 DEVICE_MODEL
:= WNDR3700
722 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
723 kmod-usb-ledtrig-usbport wpad-basic
724 SUPPORTED_DEVICES
+= wndr3700v5
726 TARGET_DEVICES
+= netgear_wndr3700-v5
728 define Device
/netis_wf2881
731 FILESYSTEMS
:= squashfs
733 IMAGE_SIZE
:= 129280k
735 UIMAGE_NAME
:= WF2881_0.0
.00
736 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | netis-tail WF2881 | uImage lzma
737 IMAGES
+= factory.bin
738 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
739 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | \
741 DEVICE_VENDOR
:= NETIS
742 DEVICE_MODEL
:= WF2881
743 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
745 TARGET_DEVICES
+= netis_wf2881
747 define Device
/phicomm_k2p
749 DEVICE_VENDOR
:= Phicomm
751 DEVICE_ALT0_VENDOR
:= Phicomm
752 DEVICE_ALT0_MODEL
:= KE
2P
753 SUPPORTED_DEVICES
+= k2p
754 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
756 TARGET_DEVICES
+= phicomm_k2p
758 define Device
/planex_vr500
759 $(Device
/uimage-lzma-loader
)
761 DEVICE_VENDOR
:= Planex
762 DEVICE_MODEL
:= VR500
763 DEVICE_PACKAGES
:= kmod-usb3
764 SUPPORTED_DEVICES
+= vr500
766 TARGET_DEVICES
+= planex_vr500
768 define Device
/samknows_whitebox-v8
770 DEVICE_VENDOR
:= SamKnows
771 DEVICE_MODEL
:= Whitebox
8
772 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
773 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
774 SUPPORTED_DEVICES
+= sk-wb8
776 TARGET_DEVICES
+= samknows_whitebox-v8
778 define Device
/storylink_sap-g3200u3
780 DEVICE_VENDOR
:= STORYLiNK
781 DEVICE_MODEL
:= SAP-G3200U3
782 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
783 SUPPORTED_DEVICES
+= sap-g3200u3
785 TARGET_DEVICES
+= storylink_sap-g3200u3
787 define Device
/telco-electronics_x1
789 DEVICE_VENDOR
:= Telco Electronics
791 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt76 wpad-basic
793 TARGET_DEVICES
+= telco-electronics_x1
795 define Device
/thunder_timecloud
796 $(Device
/uimage-lzma-loader
)
798 DEVICE_VENDOR
:= Thunder
799 DEVICE_MODEL
:= Timecloud
800 DEVICE_PACKAGES
:= kmod-usb3
801 SUPPORTED_DEVICES
+= timecloud
803 TARGET_DEVICES
+= thunder_timecloud
805 define Device
/totolink_a7000r
807 UIMAGE_NAME
:= C8340R1C-9999
808 DEVICE_VENDOR
:= TOTOLINK
809 DEVICE_MODEL
:= A7000R
810 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
812 TARGET_DEVICES
+= totolink_a7000r
814 define Device
/adslr_g7
816 DEVICE_VENDOR
:= ADSLR
818 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
820 TARGET_DEVICES
+= adslr_g7
822 define Device
/tplink_re350-v1
823 $(Device
/tplink-safeloader
)
824 DEVICE_MODEL
:= RE350
826 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
827 TPLINK_BOARD_ID
:= RE350-V1
829 SUPPORTED_DEVICES
+= re350-v1
831 TARGET_DEVICES
+= tplink_re350-v1
833 define Device
/tplink_re650-v1
834 $(Device
/tplink-safeloader
)
835 DEVICE_MODEL
:= RE650
837 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware wpad-basic
838 TPLINK_BOARD_ID
:= RE650-V1
841 TARGET_DEVICES
+= tplink_re650-v1
843 define Device
/ubnt_edgerouter_common
844 $(Device
/uimage-lzma-loader
)
845 DEVICE_VENDOR
:= Ubiquiti
846 IMAGE_SIZE
:= 256768k
847 FILESYSTEMS
:= squashfs
848 KERNEL_SIZE
:= 3145728
849 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
850 ubnt-erx-factory-image
$(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.
tar
851 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
854 define Device
/ubnt_edgerouter-x
855 $(Device
/ubnt_edgerouter_common
)
856 DEVICE_MODEL
:= EdgeRouter X
857 SUPPORTED_DEVICES
+= ubnt-erx ubiquiti
,edgerouterx
859 TARGET_DEVICES
+= ubnt_edgerouter-x
861 define Device
/ubnt_edgerouter-x-sfp
862 $(Device
/ubnt_edgerouter_common
)
863 DEVICE_MODEL
:= EdgeRouter X SFP
864 DEVICE_PACKAGES
+= kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
865 SUPPORTED_DEVICES
+= ubnt-erx-sfp ubiquiti
,edgerouterx-sfp
867 TARGET_DEVICES
+= ubnt_edgerouter-x-sfp
869 define Device
/ubnt_unifi-nanohd
870 DEVICE_VENDOR
:= Ubiquiti
871 DEVICE_MODEL
:= UniFi nanoHD
872 DEVICE_PACKAGES
+= kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
875 TARGET_DEVICES
+= ubnt_unifi-nanohd
877 define Device
/unielec_u7621-06-16m
879 DEVICE_VENDOR
:= UniElec
880 DEVICE_MODEL
:= U7621-06
881 DEVICE_VARIANT
:= 16M
882 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
883 SUPPORTED_DEVICES
+= u7621-06-256M-16M unielec
,u7621-06-256m-16m
885 TARGET_DEVICES
+= unielec_u7621-06-16m
887 define Device
/unielec_u7621-06-64m
889 DEVICE_VENDOR
:= UniElec
890 DEVICE_MODEL
:= U7621-06
891 DEVICE_VARIANT
:= 64M
892 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
893 SUPPORTED_DEVICES
+= unielec
,u7621-06-512m-64m
895 TARGET_DEVICES
+= unielec_u7621-06-64m
897 define Device
/wevo_11acnas
899 UIMAGE_NAME
:= 11AC-NAS-Router
(0.0.0)
900 DEVICE_VENDOR
:= WeVO
901 DEVICE_MODEL
:= 11AC NAS Router
902 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
903 kmod-usb-ledtrig-usbport wpad-basic
904 SUPPORTED_DEVICES
+= 11acnas
906 TARGET_DEVICES
+= wevo_11acnas
908 define Device
/wevo_w2914ns-v2
910 UIMAGE_NAME
:= W2914NS-V2
(0.0.0)
911 DEVICE_VENDOR
:= WeVO
912 DEVICE_MODEL
:= W2914NS
914 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
915 kmod-usb-ledtrig-usbport wpad-basic
916 SUPPORTED_DEVICES
+= w2914nsv2
918 TARGET_DEVICES
+= wevo_w2914ns-v2
920 define Device
/xiaomi_mir3g
921 $(Device
/uimage-lzma-loader
)
925 IMAGE_SIZE
:= 124416k
927 IMAGES
+= kernel1.bin rootfs0.bin
928 IMAGE
/kernel1.bin
:= append-kernel
929 IMAGE
/rootfs0.bin
:= append-ubi | check-size
930 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
931 DEVICE_VENDOR
:= Xiaomi
932 DEVICE_MODEL
:= Mi Router
3G
933 SUPPORTED_DEVICES
+= R3G
934 SUPPORTED_DEVICES
+= mir3g
935 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
936 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
938 TARGET_DEVICES
+= xiaomi_mir3g
940 define Device
/xiaomi_mir3g-v2
941 $(Device
/uimage-lzma-loader
)
943 DEVICE_VENDOR
:= Xiaomi
944 DEVICE_MODEL
:= Mi Router
3G
946 DEVICE_ALT0_VENDOR
:= Xiaomi
947 DEVICE_ALT0_MODEL
:= Mi Router
4A
948 DEVICE_ALT0_VARIANT
:= Gigabit Edition
949 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
951 TARGET_DEVICES
+= xiaomi_mir3g-v2
953 define Device
/xiaomi_mir3p
954 $(Device
/uimage-lzma-loader
)
959 IMAGE_SIZE
:= 255488k
960 DEVICE_VENDOR
:= Xiaomi
961 DEVICE_MODEL
:= Mi Router
3 Pro
962 IMAGES
+= factory.bin
963 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
964 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
966 DEVICE_PACKAGES
:= kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport \
967 wpad-basic uboot-envtools
969 TARGET_DEVICES
+= xiaomi_mir3p
971 define Device
/xiaomi_redmi-router-ac2100
972 $(Device
/uimage-lzma-loader
)
976 IMAGE_SIZE
:= 124416k
978 IMAGES
+= kernel1.bin rootfs0.bin
979 IMAGE
/kernel1.bin
:= append-kernel
980 IMAGE
/rootfs0.bin
:= append-ubi | check-size
981 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
982 DEVICE_VENDOR
:= Xiaomi
983 DEVICE_MODEL
:= Redmi Router AC2100
984 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
986 TARGET_DEVICES
+= xiaomi_redmi-router-ac2100
988 define Device
/xiaoyu_xy-c5
990 DEVICE_VENDOR
:= XiaoYu
991 DEVICE_MODEL
:= XY-C5
992 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3
994 TARGET_DEVICES
+= xiaoyu_xy-c5
996 define Device
/xzwifi_creativebox-v1
998 DEVICE_VENDOR
:= CreativeBox
1000 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
1003 TARGET_DEVICES
+= xzwifi_creativebox-v1
1005 define Device
/youhua_wr1200js
1006 IMAGE_SIZE
:= 16064k
1007 DEVICE_VENDOR
:= YouHua
1008 DEVICE_MODEL
:= WR1200JS
1009 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1010 kmod-usb-ledtrig-usbport wpad-basic
1012 TARGET_DEVICES
+= youhua_wr1200js
1014 define Device
/youku_yk-l2
1015 IMAGE_SIZE
:= 16064k
1016 DEVICE_VENDOR
:= Youku
1017 DEVICE_MODEL
:= YK-L2
1018 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1019 kmod-usb-ledtrig-usbport wpad-basic
1021 TARGET_DEVICES
+= youku_yk-l2
1023 define Device
/zbtlink_zbt-we1326
1024 IMAGE_SIZE
:= 16064k
1025 DEVICE_VENDOR
:= Zbtlink
1026 DEVICE_MODEL
:= ZBT-WE1326
1027 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
1029 SUPPORTED_DEVICES
+= zbt-we1326
1031 TARGET_DEVICES
+= zbtlink_zbt-we1326
1033 define Device
/zbtlink_zbt-we3526
1034 IMAGE_SIZE
:= 16064k
1035 DEVICE_VENDOR
:= Zbtlink
1036 DEVICE_MODEL
:= ZBT-WE3526
1037 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1038 kmod-usb-ledtrig-usbport wpad-basic
1040 TARGET_DEVICES
+= zbtlink_zbt-we3526
1042 define Device
/zbtlink_zbt-wg2626
1043 IMAGE_SIZE
:= 16064k
1044 DEVICE_VENDOR
:= Zbtlink
1045 DEVICE_MODEL
:= ZBT-WG2626
1046 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
1047 kmod-usb-ledtrig-usbport wpad-basic
1048 SUPPORTED_DEVICES
+= zbt-wg2626
1050 TARGET_DEVICES
+= zbtlink_zbt-wg2626
1052 define Device
/zbtlink_zbt-wg3526-16m
1053 IMAGE_SIZE
:= 16064k
1054 DEVICE_VENDOR
:= Zbtlink
1055 DEVICE_MODEL
:= ZBT-WG3526
1056 DEVICE_VARIANT
:= 16M
1057 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1058 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1059 SUPPORTED_DEVICES
+= zbt-wg3526 zbt-wg3526-16M
1061 TARGET_DEVICES
+= zbtlink_zbt-wg3526-16m
1063 define Device
/zbtlink_zbt-wg3526-32m
1064 IMAGE_SIZE
:= 32448k
1065 DEVICE_VENDOR
:= Zbtlink
1066 DEVICE_MODEL
:= ZBT-WG3526
1067 DEVICE_VARIANT
:= 32M
1068 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1069 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1070 SUPPORTED_DEVICES
+= ac1200pro zbt-wg3526-32M
1072 TARGET_DEVICES
+= zbtlink_zbt-wg3526-32m
1074 define Device
/zio_freezio
1075 IMAGE_SIZE
:= 16064k
1076 DEVICE_VENDOR
:= ZIO
1077 DEVICE_MODEL
:= FREEZIO
1078 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1079 kmod-usb-ledtrig-usbport wpad-basic
1081 TARGET_DEVICES
+= zio_freezio