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 | \
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 | \
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-2533dhpl
201 DEVICE_VENDOR
:= Buffalo
202 DEVICE_MODEL
:= WSR-2533DHPL
203 IMAGE
/sysupgrade.bin
:= trx | pad-rootfs | append-metadata
204 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
206 TARGET_DEVICES
+= buffalo_wsr-2533dhpl
208 define Device
/buffalo_wsr-600dhp
210 DEVICE_VENDOR
:= Buffalo
211 DEVICE_MODEL
:= WSR-600DHP
212 DEVICE_PACKAGES
:= kmod-mt7603 kmod-rt2800-pci wpad-basic
213 SUPPORTED_DEVICES
+= wsr-600
215 TARGET_DEVICES
+= buffalo_wsr-600dhp
217 define Device
/dlink_dir-860l-b1
220 SEAMA_SIGNATURE
:= wrgac13_dlink
.2013gui_dir860lb
221 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | 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 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 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 wpad-basic
284 TARGET_DEVICES
+= elecom_wrc-1167ghbk2-s
286 define Device
/elecom_wrc-1900gst
288 DEVICE_VENDOR
:= ELECOM
289 DEVICE_MODEL
:= WRC-1900GST
290 IMAGES
+= factory.bin
291 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
292 elecom-gst-factory WRC-1900GST
0.00
294 TARGET_DEVICES
+= elecom_wrc-1900gst
296 define Device
/elecom_wrc-2533gst
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
358 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
359 iodata-factory
7864320 4 0x1055 $(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.bin
360 DEVICE_VENDOR
:= I-O DATA
361 DEVICE_MODEL
:= WN-AX1167GR
362 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
364 TARGET_DEVICES
+= iodata_wn-ax1167gr
366 define Device
/iodata_wn-ax1167gr2
370 UIMAGE_MAGIC
:= 0x434f4d42
373 DEVICE_VENDOR
:= I-O DATA
374 DEVICE_MODEL
:= WN-AX1167GR2
375 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage
3.10(XBC
.1)b10 | \
377 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
378 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
380 TARGET_DEVICES
+= iodata_wn-ax1167gr2
382 define Device
/iodata_wn-ax2033gr
386 UIMAGE_MAGIC
:= 0x434f4d42
389 DEVICE_VENDOR
:= I-O DATA
390 DEVICE_MODEL
:= WN-AX2033GR
391 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage
3.10(VST
.1)C10 | \
393 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
394 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt7615e wpad-basic
396 TARGET_DEVICES
+= iodata_wn-ax2033gr
398 define Device
/iodata_wn-dx1167r
402 UIMAGE_MAGIC
:= 0x434f4d43
405 DEVICE_VENDOR
:= I-O DATA
406 DEVICE_MODEL
:= WN-DX1167R
407 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage
3.10(XIK
.1)b10 | \
409 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
410 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
412 TARGET_DEVICES
+= iodata_wn-dx1167r
414 define Device
/iodata_wn-gx300gr
416 DEVICE_VENDOR
:= I-O DATA
417 DEVICE_MODEL
:= WN-GX300GR
418 DEVICE_PACKAGES
:= kmod-mt7603 wpad-basic
420 TARGET_DEVICES
+= iodata_wn-gx300gr
422 define Device
/iodata_wnpr2600g
423 DEVICE_VENDOR
:= I-O DATA
424 DEVICE_MODEL
:= WNPR2600G
426 IMAGES
+= factory.bin
427 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
428 elx-header
0104003a
8844A2D168B45A2D
429 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
431 TARGET_DEVICES
+= iodata_wnpr2600g
433 define Device
/iptime_a6ns-m
436 DEVICE_VENDOR
:= ipTIME
437 DEVICE_MODEL
:= A6ns-M
438 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
440 TARGET_DEVICES
+= iptime_a6ns-m
442 define Device
/iptime_a8004t
444 UIMAGE_NAME
:= a8004t
445 DEVICE_VENDOR
:= ipTIME
446 DEVICE_MODEL
:= A8004T
447 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 wpad-basic
449 TARGET_DEVICES
+= iptime_a8004t
451 define Device
/jcg_jhr-ac876m
453 IMAGES
+= factory.bin
454 IMAGE
/factory.bin
:= $$(sysupgrade_bin
) | check-size | \
456 JCG_MAXSIZE
:= 16064k
458 DEVICE_MODEL
:= JHR-AC876M
459 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
461 TARGET_DEVICES
+= jcg_jhr-ac876m
463 define Device
/lenovo_newifi-d1
464 $(Device
/uimage-lzma-loader
)
466 DEVICE_VENDOR
:= Newifi
468 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
469 kmod-usb-ledtrig-usbport wpad-basic
470 SUPPORTED_DEVICES
+= newifi-d1
472 TARGET_DEVICES
+= lenovo_newifi-d1
474 define Device
/linksys_re6500
476 DEVICE_VENDOR
:= Linksys
477 DEVICE_MODEL
:= RE6500
478 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
479 SUPPORTED_DEVICES
+= re6500
481 TARGET_DEVICES
+= linksys_re6500
483 define Device
/mediatek_ap-mt7621a-v60
485 DEVICE_VENDOR
:= Mediatek
486 DEVICE_MODEL
:= AP-MT7621A-V60 EVB
487 DEVICE_PACKAGES
:= kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
489 TARGET_DEVICES
+= mediatek_ap-mt7621a-v60
491 define Device
/mediatek_mt7621-eval-board
494 DEVICE_VENDOR
:= MediaTek
495 DEVICE_MODEL
:= MT7621 EVB
496 SUPPORTED_DEVICES
+= mt7621
498 TARGET_DEVICES
+= mediatek_mt7621-eval-board
500 define Device
/MikroTik
501 DEVICE_VENDOR
:= MikroTik
504 DEVICE_PACKAGES
:= kmod-usb3
506 KERNEL
:= $(KERNEL_DTB
) | loader-kernel
507 IMAGE
/sysupgrade.bin
:= append-kernel | kernel2minor
-s
1024 | \
508 pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | append-metadata | \
512 define Device
/mikrotik_routerboard-750gr3
514 DEVICE_MODEL
:= RouterBOARD
750Gr3
515 DEVICE_PACKAGES
+= kmod-gpio-beeper
516 SUPPORTED_DEVICES
+= mikrotik
,rb750gr3
518 TARGET_DEVICES
+= mikrotik_routerboard-750gr3
520 define Device
/mikrotik_routerboard-m11g
522 DEVICE_MODEL
:= RouterBOARD M11G
523 SUPPORTED_DEVICES
+= mikrotik
,rbm11g
525 TARGET_DEVICES
+= mikrotik_routerboard-m11g
527 define Device
/mikrotik_routerboard-m33g
529 DEVICE_MODEL
:= RouterBOARD M33G
530 SUPPORTED_DEVICES
+= mikrotik
,rbm33g
532 TARGET_DEVICES
+= mikrotik_routerboard-m33g
534 define Device
/mqmaker_witi
536 DEVICE_VENDOR
:= MQmaker
538 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
539 kmod-usb-ledtrig-usbport wpad-basic
540 SUPPORTED_DEVICES
+= witi mqmaker
,witi-256m mqmaker
,witi-512m
542 TARGET_DEVICES
+= mqmaker_witi
544 define Device
/mtc_wr1201
547 DEVICE_MODEL
:= Wireless Router WR1201
548 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | custom-initramfs-uimage WR1201_8_128
549 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
550 kmod-usb-ledtrig-usbport wpad-basic
552 TARGET_DEVICES
+= mtc_wr1201
554 define Device
/netgear_ex6150
555 DEVICE_VENDOR
:= NETGEAR
556 DEVICE_MODEL
:= EX6150
557 DEVICE_PACKAGES
:= kmod-mt76x2 wpad-basic
558 NETGEAR_BOARD_ID
:= U12H318T00_NETGEAR
560 IMAGES
+= factory.chk
561 IMAGE
/factory.chk
:= $$(sysupgrade_bin
) | check-size | \
564 TARGET_DEVICES
+= netgear_ex6150
566 define Device
/netgear_sercomm_nand
567 $(Device
/uimage-lzma-loader
)
572 IMAGES
+= factory.img kernel.bin rootfs.bin
573 IMAGE
/factory.img
:= pad-extra
2048k | append-kernel | pad-to
6144k | \
574 append-ubi | pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | \
575 zip
$$$$(SERCOMM_HWNAME
).bin | sercom-seal
576 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
577 IMAGE
/kernel.bin
:= append-kernel
578 IMAGE
/rootfs.bin
:= append-ubi | check-size
579 DEVICE_VENDOR
:= NETGEAR
580 DEVICE_PACKAGES
:= kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
583 define Device
/netgear_r6220
584 $(Device
/netgear_sercomm_nand
)
585 DEVICE_MODEL
:= R6220
586 SERCOMM_HWNAME
:= R6220
588 SERCOMM_HWVER
:= A001
589 SERCOMM_SWVER
:= 0x0086
591 DEVICE_PACKAGES
+= kmod-mt76x2
592 SUPPORTED_DEVICES
+= r6220
594 TARGET_DEVICES
+= netgear_r6220
597 define Device
/netgear_r6260
598 $(Device
/netgear_sercomm_nand
)
599 DEVICE_MODEL
:= R6260
600 SERCOMM_HWNAME
:= R6260
602 SERCOMM_HWVER
:= A001
603 SERCOMM_SWVER
:= 0x0052
605 DEVICE_PACKAGES
+= kmod-mt7615e
607 TARGET_DEVICES
+= netgear_r6260
609 define Device
/netgear_r6350
610 $(Device
/netgear_sercomm_nand
)
611 DEVICE_MODEL
:= R6350
612 SERCOMM_HWNAME
:= R6350
614 SERCOMM_HWVER
:= A001
615 SERCOMM_SWVER
:= 0x0052
617 DEVICE_PACKAGES
+= kmod-mt7615e
619 TARGET_DEVICES
+= netgear_r6350
621 define Device
/netgear_r6700-v2
622 $(Device
/netgear_sercomm_nand
)
623 DEVICE_MODEL
:= R6700
625 DEVICE_ALT0_VENDOR
:= NETGEAR
626 DEVICE_ALT0_MODEL
:= Nighthawk AC2400
627 DEVICE_ALT0_VARIANT
:= v1
628 DEVICE_ALT1_VENDOR
:= NETGEAR
629 DEVICE_ALT1_MODEL
:= R7200
630 DEVICE_ALT1_VARIANT
:= v1
631 SERCOMM_HWNAME
:= R6950
633 SERCOMM_HWVER
:= A001
634 SERCOMM_SWVER
:= 0x1032
636 DEVICE_PACKAGES
+= kmod-mt7615e
638 TARGET_DEVICES
+= netgear_r6700-v2
640 define Device
/netgear_r6800
641 $(Device
/netgear_sercomm_nand
)
642 DEVICE_MODEL
:= R6800
643 SERCOMM_HWNAME
:= R6950
645 SERCOMM_HWVER
:= A001
646 SERCOMM_SWVER
:= 0x0062
648 DEVICE_PACKAGES
+= kmod-mt7615e
650 TARGET_DEVICES
+= netgear_r6800
652 define Device
/netgear_r6850
653 $(Device
/netgear_sercomm_nand
)
654 DEVICE_MODEL
:= R6850
655 SERCOMM_HWNAME
:= R6850
657 SERCOMM_HWVER
:= A001
658 SERCOMM_SWVER
:= 0x0052
660 DEVICE_PACKAGES
+= kmod-mt7615e
662 TARGET_DEVICES
+= netgear_r6850
664 define Device
/netgear_wndr3700-v5
665 $(Device
/uimage-lzma-loader
)
669 SERCOMM_HWVER
:= A001
670 SERCOMM_SWVER
:= 0x1054
671 IMAGES
+= factory.img
672 IMAGE
/default
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | \
674 IMAGE
/sysupgrade.bin
:= $$(IMAGE
/default
) | append-metadata | \
676 IMAGE
/factory.img
:= pad-extra
320k |
$$(IMAGE
/default
) | \
677 pad-to
$$$$(BLOCKSIZE
) | sercom-footer | pad-to
128 | \
678 zip WNDR3700v5.bin | sercom-seal
679 DEVICE_VENDOR
:= NETGEAR
680 DEVICE_MODEL
:= WNDR3700
682 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
683 kmod-usb-ledtrig-usbport wpad-basic
684 SUPPORTED_DEVICES
+= wndr3700v5
686 TARGET_DEVICES
+= netgear_wndr3700-v5
688 define Device
/netis_wf2881
691 FILESYSTEMS
:= squashfs
693 IMAGE_SIZE
:= 129280k
695 UIMAGE_NAME
:= WF2881_0.0
.00
696 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | netis-tail WF2881 | uImage lzma
697 IMAGES
+= factory.bin
698 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
699 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | \
701 DEVICE_VENDOR
:= NETIS
702 DEVICE_MODEL
:= WF2881
703 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
705 TARGET_DEVICES
+= netis_wf2881
707 define Device
/phicomm_k2p
709 DEVICE_VENDOR
:= Phicomm
711 DEVICE_ALT0_VENDOR
:= Phicomm
712 DEVICE_ALT0_MODEL
:= KE
2P
713 SUPPORTED_DEVICES
+= k2p
714 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
716 TARGET_DEVICES
+= phicomm_k2p
718 define Device
/planex_vr500
720 DEVICE_VENDOR
:= Planex
721 DEVICE_MODEL
:= VR500
722 DEVICE_PACKAGES
:= kmod-usb3
723 SUPPORTED_DEVICES
+= vr500
725 TARGET_DEVICES
+= planex_vr500
727 define Device
/samknows_whitebox-v8
729 DEVICE_VENDOR
:= SamKnows
730 DEVICE_MODEL
:= Whitebox
8
731 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
732 kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
733 SUPPORTED_DEVICES
+= sk-wb8
735 TARGET_DEVICES
+= samknows_whitebox-v8
737 define Device
/storylink_sap-g3200u3
739 DEVICE_VENDOR
:= STORYLiNK
740 DEVICE_MODEL
:= SAP-G3200U3
741 DEVICE_PACKAGES
:= kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
742 SUPPORTED_DEVICES
+= sap-g3200u3
744 TARGET_DEVICES
+= storylink_sap-g3200u3
746 define Device
/telco-electronics_x1
748 DEVICE_VENDOR
:= Telco Electronics
750 DEVICE_PACKAGES
:= kmod-usb3 kmod-mt76 wpad-basic
752 TARGET_DEVICES
+= telco-electronics_x1
754 define Device
/thunder_timecloud
755 $(Device
/uimage-lzma-loader
)
757 DEVICE_VENDOR
:= Thunder
758 DEVICE_MODEL
:= Timecloud
759 DEVICE_PACKAGES
:= kmod-usb3
760 SUPPORTED_DEVICES
+= timecloud
762 TARGET_DEVICES
+= thunder_timecloud
764 define Device
/totolink_a7000r
766 UIMAGE_NAME
:= C8340R1C-9999
767 DEVICE_VENDOR
:= TOTOLINK
768 DEVICE_MODEL
:= A7000R
769 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
771 TARGET_DEVICES
+= totolink_a7000r
773 define Device
/adslr_g7
775 DEVICE_VENDOR
:= ADSLR
777 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
779 TARGET_DEVICES
+= adslr_g7
781 define Device
/tplink_re350-v1
782 $(Device
/tplink-safeloader
)
783 DEVICE_MODEL
:= RE350
785 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
786 TPLINK_BOARD_ID
:= RE350-V1
788 SUPPORTED_DEVICES
+= re350-v1
790 TARGET_DEVICES
+= tplink_re350-v1
792 define Device
/tplink_re650-v1
793 $(Device
/tplink-safeloader
)
794 DEVICE_MODEL
:= RE650
796 DEVICE_PACKAGES
:= kmod-mt7615e wpad-basic
797 TPLINK_BOARD_ID
:= RE650-V1
800 TARGET_DEVICES
+= tplink_re650-v1
802 define Device
/ubnt_edgerouter_common
803 $(Device
/uimage-lzma-loader
)
804 DEVICE_VENDOR
:= Ubiquiti
805 IMAGE_SIZE
:= 256768k
806 FILESYSTEMS
:= squashfs
807 KERNEL_SIZE
:= 3145728
808 KERNEL_INITRAMFS
:= $$(KERNEL
) | \
809 ubnt-erx-factory-image
$(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_PREFIX
)-factory.
tar
810 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
813 define Device
/ubnt_edgerouter-x
814 $(Device
/ubnt_edgerouter_common
)
815 DEVICE_MODEL
:= EdgeRouter X
816 SUPPORTED_DEVICES
+= ubnt-erx ubiquiti
,edgerouterx
818 TARGET_DEVICES
+= ubnt_edgerouter-x
820 define Device
/ubnt_edgerouter-x-sfp
821 $(Device
/ubnt_edgerouter_common
)
822 DEVICE_MODEL
:= EdgeRouter X SFP
823 DEVICE_PACKAGES
+= kmod-i2c-algo-pca kmod-gpio-pca953x kmod-sfp
824 SUPPORTED_DEVICES
+= ubnt-erx-sfp ubiquiti
,edgerouterx-sfp
826 TARGET_DEVICES
+= ubnt_edgerouter-x-sfp
828 define Device
/ubnt_unifi-nanohd
829 DEVICE_VENDOR
:= Ubiquiti
830 DEVICE_MODEL
:= UniFi nanoHD
831 DEVICE_PACKAGES
+= kmod-mt7603 kmod-mt7615e wpad-basic
834 TARGET_DEVICES
+= ubnt_unifi-nanohd
836 define Device
/unielec_u7621-06-16m
838 DEVICE_VENDOR
:= UniElec
839 DEVICE_MODEL
:= U7621-06
840 DEVICE_VARIANT
:= 16M
841 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
842 SUPPORTED_DEVICES
+= u7621-06-256M-16M unielec
,u7621-06-256m-16m
844 TARGET_DEVICES
+= unielec_u7621-06-16m
846 define Device
/unielec_u7621-06-64m
848 DEVICE_VENDOR
:= UniElec
849 DEVICE_MODEL
:= U7621-06
850 DEVICE_VARIANT
:= 64M
851 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
852 SUPPORTED_DEVICES
+= unielec
,u7621-06-512m-64m
854 TARGET_DEVICES
+= unielec_u7621-06-64m
856 define Device
/wevo_11acnas
858 UIMAGE_NAME
:= 11AC-NAS-Router
(0.0.0)
859 DEVICE_VENDOR
:= WeVO
860 DEVICE_MODEL
:= 11AC NAS Router
861 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
862 kmod-usb-ledtrig-usbport wpad-basic
863 SUPPORTED_DEVICES
+= 11acnas
865 TARGET_DEVICES
+= wevo_11acnas
867 define Device
/wevo_w2914ns-v2
869 UIMAGE_NAME
:= W2914NS-V2
(0.0.0)
870 DEVICE_VENDOR
:= WeVO
871 DEVICE_MODEL
:= W2914NS
873 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
874 kmod-usb-ledtrig-usbport wpad-basic
875 SUPPORTED_DEVICES
+= w2914nsv2
877 TARGET_DEVICES
+= wevo_w2914ns-v2
879 define Device
/xiaomi_mir3g
880 $(Device
/uimage-lzma-loader
)
884 IMAGE_SIZE
:= 124416k
886 IMAGES
+= kernel1.bin rootfs0.bin
887 IMAGE
/kernel1.bin
:= append-kernel
888 IMAGE
/rootfs0.bin
:= append-ubi | check-size
889 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
890 DEVICE_VENDOR
:= Xiaomi
891 DEVICE_MODEL
:= Mi Router
3G
892 SUPPORTED_DEVICES
+= R3G
893 SUPPORTED_DEVICES
+= mir3g
894 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
895 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
897 TARGET_DEVICES
+= xiaomi_mir3g
899 define Device
/xiaomi_mir3g-v2
900 $(Device
/uimage-lzma-loader
)
902 DEVICE_VENDOR
:= Xiaomi
903 DEVICE_MODEL
:= Mi Router
3G
905 DEVICE_ALT0_VENDOR
:= Xiaomi
906 DEVICE_ALT0_MODEL
:= Mi Router
4A
907 DEVICE_ALT0_VARIANT
:= Gigabit Edition
908 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 wpad-basic
910 TARGET_DEVICES
+= xiaomi_mir3g-v2
912 define Device
/xiaomi_mir3p
913 $(Device
/uimage-lzma-loader
)
918 IMAGE_SIZE
:= 255488k
919 DEVICE_VENDOR
:= Xiaomi
920 DEVICE_MODEL
:= Mi Router
3 Pro
921 IMAGES
+= factory.bin
922 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
923 IMAGE
/factory.bin
:= append-kernel | pad-to
$$(KERNEL_SIZE
) | append-ubi | \
925 DEVICE_PACKAGES
:= kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \
926 wpad-basic uboot-envtools
928 TARGET_DEVICES
+= xiaomi_mir3p
930 define Device
/xiaoyu_xy-c5
932 DEVICE_VENDOR
:= XiaoYu
933 DEVICE_MODEL
:= XY-C5
934 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-usb3
936 TARGET_DEVICES
+= xiaoyu_xy-c5
938 define Device
/xzwifi_creativebox-v1
940 DEVICE_VENDOR
:= CreativeBox
942 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
945 TARGET_DEVICES
+= xzwifi_creativebox-v1
947 define Device
/youhua_wr1200js
949 DEVICE_VENDOR
:= YouHua
950 DEVICE_MODEL
:= WR1200JS
951 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
952 kmod-usb-ledtrig-usbport wpad-basic
954 TARGET_DEVICES
+= youhua_wr1200js
956 define Device
/youku_yk-l2
958 DEVICE_VENDOR
:= Youku
959 DEVICE_MODEL
:= YK-L2
960 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
961 kmod-usb-ledtrig-usbport wpad-basic
963 TARGET_DEVICES
+= youku_yk-l2
965 define Device
/zbtlink_zbt-we1326
967 DEVICE_VENDOR
:= Zbtlink
968 DEVICE_MODEL
:= ZBT-WE1326
969 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
971 SUPPORTED_DEVICES
+= zbt-we1326
973 TARGET_DEVICES
+= zbtlink_zbt-we1326
975 define Device
/zbtlink_zbt-we3526
977 DEVICE_VENDOR
:= Zbtlink
978 DEVICE_MODEL
:= ZBT-WE3526
979 DEVICE_PACKAGES
:= kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
980 kmod-usb-ledtrig-usbport wpad-basic
982 TARGET_DEVICES
+= zbtlink_zbt-we3526
984 define Device
/zbtlink_zbt-wg2626
986 DEVICE_VENDOR
:= Zbtlink
987 DEVICE_MODEL
:= ZBT-WG2626
988 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
989 kmod-usb-ledtrig-usbport wpad-basic
990 SUPPORTED_DEVICES
+= zbt-wg2626
992 TARGET_DEVICES
+= zbtlink_zbt-wg2626
994 define Device
/zbtlink_zbt-wg3526-16m
996 DEVICE_VENDOR
:= Zbtlink
997 DEVICE_MODEL
:= ZBT-WG3526
998 DEVICE_VARIANT
:= 16M
999 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1000 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1001 SUPPORTED_DEVICES
+= zbt-wg3526 zbt-wg3526-16M
1003 TARGET_DEVICES
+= zbtlink_zbt-wg3526-16m
1005 define Device
/zbtlink_zbt-wg3526-32m
1006 IMAGE_SIZE
:= 32448k
1007 DEVICE_VENDOR
:= Zbtlink
1008 DEVICE_MODEL
:= ZBT-WG3526
1009 DEVICE_VARIANT
:= 32M
1010 DEVICE_PACKAGES
:= kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
1011 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
1012 SUPPORTED_DEVICES
+= ac1200pro zbt-wg3526-32M
1014 TARGET_DEVICES
+= zbtlink_zbt-wg3526-32m
1016 define Device
/zio_freezio
1017 IMAGE_SIZE
:= 16064k
1018 DEVICE_VENDOR
:= ZIO
1019 DEVICE_MODEL
:= FREEZIO
1020 DEVICE_PACKAGES
:= kmod-mt7603 kmod-mt76x2 kmod-usb3 \
1021 kmod-usb-ledtrig-usbport wpad-basic
1023 TARGET_DEVICES
+= zio_freezio