2 DEVICE_VARS
+= NETGEAR_BOARD_ID NETGEAR_HW_ID
3 DEVICE_VARS
+= RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
4 DEVICE_VARS
+= WRGG_DEVNAME WRGG_SIGNATURE
6 define Build
/netgear-fit-padding
7 .
/netgear-fit-padding.py
$@
$@.new
11 define Device
/FitImage
12 KERNEL_SUFFIX
:= -uImage.itb
13 KERNEL
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
17 define Device
/FitImageLzma
18 KERNEL_SUFFIX
:= -uImage.itb
19 KERNEL
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
23 define Device
/FitzImage
24 KERNEL_SUFFIX
:= -zImage.itb
25 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
31 IMAGES
:= factory.ubi sysupgrade.bin
32 IMAGE
/factory.ubi
:= append-ubi
33 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
36 define Device
/DniImage
37 $(call Device
/FitzImage
)
41 IMAGE
/factory.img
:= append-kernel | netgear-fit-padding | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
42 IMAGE
/sysupgrade.bin
:= append-kernel | netgear-fit-padding | append-uImage-fakehdr filesystem | \
43 append-rootfs | pad-rootfs | check-size | append-metadata
46 define Build
/append-rootfshdr
47 mkimage
-A
$(LINUX_KARCH
) \
48 -O linux
-T filesystem \
49 -C lzma
-a
$(KERNEL_LOADADDR
) -e
$(if
$(KERNEL_ENTRY
),$(KERNEL_ENTRY
),$(KERNEL_LOADADDR
)) \
50 -n root.squashfs
-d
$(IMAGE_ROOTFS
) $@.new
51 cat
$(IMAGE_KERNEL
) > $@.
$1
52 dd if
=$@.new bs
=64 count
=1 >> $@.
$1
55 define Build
/append-rutx-metadata
58 "device_code": [".*"], \
62 "supported_devices":["teltonika,rutx"] \
66 define Build
/copy-file
70 define Build
/mkmylofw_32m
71 $(eval device_id
=$(word 1,$(1)))
72 $(eval revision
=$(word 2,$(1)))
75 size
="$$(stat -c%s $@)" \
76 pad
="$(call exp_units,$(BLOCKSIZE))" \
77 pad
="(pad - (size % pad)) % pad" \
78 newsize
='size + pad'; \
79 $(STAGING_DIR_HOST
)/bin
/mkmylofw \
80 -B WPE72
-i
0x11f6:$(device_id
):0x11f6:$(device_id
) -r
$(revision
) \
81 -s
0x2000000 -p0x180000
:$$newsize:al
:0x80208000:"OpenWrt":$@ \
86 define Build
/wac5xx-netgear-tar
88 mv
$@
$@.tmp
/wac5xx-ubifs-root.img
89 md5sum
$@.tmp
/wac5xx-ubifs-root.img
> $@.tmp
/wac5xx-ubifs-root.md5sum
90 echo
"WAC505 WAC510" > $@.tmp
/metadata.txt
91 echo
"WAC505_V9.9.9.9" > $@.tmp
/version
92 tar -C
$@.tmp
/ -cf
$@ .
96 define Build
/qsdk-ipq-factory-nand-askey
97 $(TOPDIR
)/scripts
/mkits-qsdk-ipq-image.sh
$@.its\
99 askey_fs
$(IMAGE_ROOTFS
) \
101 PATH
=$(LINUX_DIR
)/scripts
/dtc
:$(PATH
) mkimage
-f
$@.its
$@.new
105 define Build
/qsdk-ipq-app-gpt
106 cp
$@
$@.tmp
2>/dev
/null || true
107 ptgen
-g
-o
$@.tmp
-a
1 -l
1024 \
108 -t
0x2e -N
0:HLOS
-r
-p
32M \
109 -t
0x83 -N rootfs
-r
-p
128M \
110 -N rootfs_data
-p
512M
116 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
117 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
118 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
124 define Build
/wrgg-image
127 -d
"$(WRGG_DEVNAME)" \
128 -s
"$(WRGG_SIGNATURE)" \
133 define Device
/8dev_habanero-dvk
134 $(call Device
/FitImageLzma
)
135 DEVICE_VENDOR
:= 8devices
136 DEVICE_MODEL
:= Habanero DVK
139 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
64k | append-rootfs | pad-rootfs | check-size | append-metadata
141 TARGET_DEVICES
+= 8dev_habanero-dvk
143 define Device
/8dev_jalapeno-common
144 $(call Device
/FitImage
)
145 $(call Device
/UbiFit
)
151 define Device
/8dev_jalapeno
152 $(call Device
/8dev_jalapeno-common
)
153 DEVICE_VENDOR
:= 8devices
154 DEVICE_MODEL
:= Jalapeno
156 TARGET_DEVICES
+= 8dev_jalapeno
158 define Device
/alfa-network_ap120c-ac
159 $(call Device
/FitImage
)
160 $(call Device
/UbiFit
)
161 DEVICE_VENDOR
:= ALFA Network
162 DEVICE_MODEL
:= AP120C-AC
164 DEVICE_PACKAGES
:= kmod-usb-acm kmod-tpm-i2c-atmel
168 IMAGES
:= factory.bin sysupgrade.bin
169 IMAGE
/factory.bin
:= append-ubi | qsdk-ipq-factory-nand
171 TARGET_DEVICES
+= alfa-network_ap120c-ac
173 define Device
/aruba_glenmorangie
174 $(call Device
/FitImageLzma
)
175 DEVICE_VENDOR
:= Aruba
179 define Device
/aruba_ap-303
180 $(call Device
/aruba_glenmorangie
)
181 DEVICE_MODEL
:= AP-303
183 TARGET_DEVICES
+= aruba_ap-303
185 define Device
/aruba_ap-303h
186 $(call Device
/aruba_glenmorangie
)
187 DEVICE_MODEL
:= AP-303H
189 TARGET_DEVICES
+= aruba_ap-303h
191 define Device
/aruba_ap-365
192 $(call Device
/aruba_glenmorangie
)
193 DEVICE_MODEL
:= AP-365
194 DEVICE_PACKAGES
:= kmod-hwmon-ad7418
196 TARGET_DEVICES
+= aruba_ap-365
198 define Device
/asus_map-ac2200
199 $(call Device
/FitImageLzma
)
200 DEVICE_VENDOR
:= ASUS
201 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
203 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
205 TARGET_DEVICES
+= asus_map-ac2200
207 # WARNING: this is an initramfs image that gets you half of the way there
208 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
209 # to get a "trx" you can flash via web UI for ac42u/ac58u:
210 # - change call Device/FitImageLzma to Device/FitImage
211 # - add the following below UIMAGE_NAME
212 # UIMAGE_MAGIC := 0x27051956
213 # IMAGES += factory.trx
214 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
215 define Device
/asus_rt-ac42u
216 $(call Device
/FitImageLzma
)
217 DEVICE_VENDOR
:= ASUS
218 DEVICE_MODEL
:= RT-AC42U
219 DEVICE_ALT0_VENDOR
:= ASUS
220 DEVICE_ALT0_MODEL
:= RT-ACRH17
221 DEVICE_ALT1_VENDOR
:= ASUS
222 DEVICE_ALT1_MODEL
:= RT-AC2200
226 IMAGE_SIZE
:= 20439364
227 FILESYSTEMS
:= squashfs
228 # RT-AC82U is nowhere to be found online
229 # Rather, this device is a/k/a RT-AC42U
230 # But we'll go with what the vendor firmware has...
231 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC82U')
232 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
234 TARGET_DEVICES
+= asus_rt-ac42u
236 define Device
/asus_rt-ac58u
237 $(call Device
/FitImageLzma
)
238 DEVICE_VENDOR
:= ASUS
239 DEVICE_MODEL
:= RT-AC58U
240 DEVICE_ALT0_VENDOR
:= ASUS
241 DEVICE_ALT0_MODEL
:= RT-ACRH13
245 IMAGE_SIZE
:= 20439364
246 FILESYSTEMS
:= squashfs
247 # Someone - in their infinite wisdom - decided to put the firmware
248 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
249 # Since u-boot works with strings we either need another fixup step
250 # to add a version... or we are very careful not to add '\0' into that
251 # string and call it a day.... Yeah, we do the latter!
252 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
253 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
254 kmod-usb-ledtrig-usbport
256 TARGET_DEVICES
+= asus_rt-ac58u
258 define Device
/avm_fritzbox-4040
259 $(call Device
/FitImageLzma
)
261 DEVICE_MODEL
:= FRITZ
!Box
4040
263 BOARD_NAME
:= fritz4040
265 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
266 UBOOT_PARTITION_SIZE
:= 524288
268 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
269 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
270 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
272 TARGET_DEVICES
+= avm_fritzbox-4040
274 define Device
/avm_fritzbox-7530
275 $(call Device
/FitImageLzma
)
277 DEVICE_MODEL
:= FRITZ
!Box
7530
278 DEVICE_ALT0_VENDOR
:= AVM
279 DEVICE_ALT0_MODEL
:= FRITZ
!Box
7520
281 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ltq-vdsl-vr11-app
283 TARGET_DEVICES
+= avm_fritzbox-7530
285 define Device
/avm_fritzrepeater-1200
286 $(call Device
/FitImageLzma
)
288 DEVICE_MODEL
:= FRITZ
!Repeater
1200
290 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
292 TARGET_DEVICES
+= avm_fritzrepeater-1200
294 define Device
/avm_fritzrepeater-3000
295 $(call Device
/FitImageLzma
)
297 DEVICE_MODEL
:= FRITZ
!Repeater
3000
299 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
301 TARGET_DEVICES
+= avm_fritzrepeater-3000
303 define Device
/buffalo_wtr-m2133hp
304 $(call Device
/FitImage
)
305 $(call Device
/UbiFit
)
306 DEVICE_VENDOR
:= Buffalo
307 DEVICE_MODEL
:= WTR-M2133HP
309 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
313 TARGET_DEVICES
+= buffalo_wtr-m2133hp
315 define Device
/cellc_rtl30vw
316 KERNEL_SUFFIX
:= -zImage.itb
317 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
318 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
319 KERNEL_NAME
:= zImage
321 IMAGES
:= factory.bin sysupgrade.bin
322 IMAGE
/factory.bin
:= append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
323 IMAGE
/sysupgrade.bin
:= append-rootfshdr kernel | sysupgrade-tar kernel
=$$$$@.kernel | append-metadata
324 DEVICE_VENDOR
:= Cell C
325 DEVICE_MODEL
:= RTL30VW
327 DEVICE_DTS_CONFIG
:= config@
5
333 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
335 TARGET_DEVICES
+= cellc_rtl30vw
337 define Device
/cilab_meshpoint-one
338 $(call Device
/8dev_jalapeno-common
)
339 DEVICE_VENDOR
:= Crisis Innovation Lab
340 DEVICE_MODEL
:= MeshPoint.One
341 DEVICE_PACKAGES
+= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
344 #TARGET_DEVICES += cilab_meshpoint-one
346 define Device
/compex_wpj419
347 $(call Device
/FitImage
)
348 $(call Device
/UbiFit
)
349 DEVICE_VENDOR
:= Compex
350 DEVICE_MODEL
:= WPJ419
352 DEVICE_DTS_CONFIG
:= config@
12
356 FILESYSTEMS
:= squashfs
359 #TARGET_DEVICES += compex_wpj419
361 define Device
/compex_wpj428
362 $(call Device
/FitzImage
)
363 DEVICE_VENDOR
:= Compex
364 DEVICE_MODEL
:= WPJ428
366 DEVICE_DTS_CONFIG
:= config@
4
370 IMAGES
+= cpximg-6a04.bin
371 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
372 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
373 DEVICE_PACKAGES
:= kmod-gpio-beeper
376 TARGET_DEVICES
+= compex_wpj428
378 define Device
/devolo_magic-2-wifi-next
379 $(call Device
/FitzImage
)
380 DEVICE_VENDOR
:= devolo
381 DEVICE_MODEL
:= Magic
2 WiFi next
385 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
386 # it will bootm it, just like we want for the initramfs.
387 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | pad-to
64k |\
388 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
391 IMAGES
:= sysupgrade.bin
392 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
395 TARGET_DEVICES
+= devolo_magic-2-wifi-next
397 define Device
/dlink_dap-2610
398 $(call Device
/FitImageLzma
)
399 DEVICE_VENDOR
:= D-Link
400 DEVICE_MODEL
:= DAP-2610
402 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
404 WRGG_DEVNAME
:= /dev
/mtdblock
/8
405 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
407 IMAGES
+= factory.bin
408 # Bootloader expects a special 160 byte header which is added by
410 # Factory image size must be larger than 6MB, and size in wrgg header must
411 # match actual factory image size to be flashable from D-Link http server.
412 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
413 # cannot be part of the wrgg image. This is solved in the factory image by
414 # having the rootfs at the end of the image (without pad-rootfs). And in
415 # the sysupgrade image only the kernel is included in the wrgg checksum,
416 # but this is not flashable from the D-link http server.
417 # append-rootfs must start on an erase block boundary.
418 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
419 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
421 TARGET_DEVICES
+= dlink_dap-2610
423 define Device
/edgecore_ecw5211
424 $(call Device
/FitImage
)
425 $(call Device
/UbiFit
)
426 DEVICE_VENDOR
:= Edgecore
427 DEVICE_MODEL
:= ECW5211
431 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
432 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
434 TARGET_DEVICES
+= edgecore_ecw5211
436 define Device
/edgecore_oap100
437 $(call Device
/FitImage
)
438 $(call Device
/UbiFit
)
439 DEVICE_VENDOR
:= Edgecore
440 DEVICE_MODEL
:= OAP100
444 IMAGES
:= sysupgrade.bin
445 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
446 DEVICE_PACKAGES
:= kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
449 #TARGET_DEVICES += edgecore_oap100
451 define Device
/engenius_eap1300
452 $(call Device
/FitImage
)
453 DEVICE_VENDOR
:= EnGenius
454 DEVICE_MODEL
:= EAP1300
455 DEVICE_ALT0_VENDOR
:= EnGenius
456 DEVICE_ALT0_MODEL
:= EAP1300EXT
457 DEVICE_DTS_CONFIG
:= config@
4
458 BOARD_NAME
:= eap1300
462 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
464 TARGET_DEVICES
+= engenius_eap1300
466 define Device
/engenius_eap2200
467 $(call Device
/FitImage
)
468 $(call Device
/UbiFit
)
469 DEVICE_VENDOR
:= EnGenius
470 DEVICE_MODEL
:= EAP2200
474 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
477 #TARGET_DEVICES += engenius_eap2200
479 define Device
/engenius_emd1
480 $(call Device
/FitImage
)
481 DEVICE_VENDOR
:= EnGenius
483 DEVICE_DTS_CONFIG
:= config@
4
486 IMAGES
+= factory.bin
487 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
488 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
491 #TARGET_DEVICES += engenius_emd1
493 define Device
/engenius_emr3500
494 $(call Device
/FitImage
)
495 DEVICE_VENDOR
:= EnGenius
496 DEVICE_MODEL
:= EMR3500
497 DEVICE_DTS_CONFIG
:= config@
4
501 IMAGES
+= factory.bin
502 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
503 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
507 #TARGET_DEVICES += engenius_emr3500
509 define Device
/engenius_ens620ext
510 $(call Device
/FitImage
)
511 DEVICE_VENDOR
:= EnGenius
512 DEVICE_MODEL
:= ENS620EXT
514 DEVICE_DTS_CONFIG
:= config@
4
517 BOARD_NAME
:= ENS620EXT
520 PRODUCT_ID_NEW
:= 0xA4
527 FILESYSTEMS
:= squashfs
528 IMAGES
+= factory_30.bin factory_35.bin
529 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
530 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
531 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
534 #TARGET_DEVICES += engenius_ens620ext
536 define Device
/extreme-networks_ws-ap3915i
537 $(call Device
/FitImage
)
538 DEVICE_VENDOR
:= Extreme Networks
539 DEVICE_MODEL
:= WS-AP3915i
543 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
545 TARGET_DEVICES
+= extreme-networks_ws-ap3915i
547 define Device
/extreme-networks_ws-ap391x
548 $(call Device
/FitImage
)
549 DEVICE_VENDOR
:= Extreme Networks
550 DEVICE_MODEL
:= WS-AP391x
553 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
555 TARGET_DEVICES
+= extreme-networks_ws-ap391x
557 define Device
/ezviz_cs-w3-wd1200g-eup
558 $(call Device
/FitImage
)
559 DEVICE_VENDOR
:= EZVIZ
560 DEVICE_MODEL
:= CS-W3-WD1200G
561 DEVICE_VARIANT
:= EUP
565 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
567 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
568 DEVICE_COMPAT_VERSION
:= 2.0
569 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
570 Upgrade via sysupgrade mechanism is not possible.
572 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
574 define Device/glinet_gl-a1300
575 $(call Device/FitImage)
576 $(call Device/UbiFit)
577 DEVICE_VENDOR := GL.iNet
578 DEVICE_MODEL := GL-A1300
580 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
583 IMAGE_SIZE := 131072k
585 TARGET_DEVICES += glinet_gl-a1300
587 define Device/glinet_gl-ap1300
588 $(call Device/FitImage)
589 $(call Device/UbiFit)
590 DEVICE_VENDOR := GL.iNet
591 DEVICE_MODEL := GL-AP1300
593 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
596 IMAGE_SIZE := 131072k
598 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
600 TARGET_DEVICES += glinet_gl-ap1300
602 define Device/glinet_gl-b1300
603 $(call Device/FitzImage)
604 DEVICE_VENDOR := GL.iNet
605 DEVICE_MODEL := GL-B1300
606 BOARD_NAME := gl-b1300
610 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
612 TARGET_DEVICES += glinet_gl-b1300
614 define Device/glinet_gl-b2200
615 $(call Device/FitzImage)
616 DEVICE_VENDOR := GL.iNet
617 DEVICE_MODEL := GL-B2200
619 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
620 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
621 IMAGES := emmc.img.gz sysupgrade.bin
622 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
623 pad-to 1024k | append-kernel |\
624 pad-to 33792k | append-rootfs |\
625 append-metadata | gzip
626 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
627 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
628 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
630 TARGET_DEVICES += glinet_gl-b2200
632 define Device/glinet_gl-s1300
633 $(call Device/FitzImage)
634 DEVICE_VENDOR := GL.iNet
635 DEVICE_MODEL := GL-S1300
639 IMAGES := sysupgrade.bin
640 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
641 DEVICE_PACKAGES := kmod-fs-ext4 kmod-mmc kmod-spi-dev
644 #TARGET_DEVICES += glinet_gl-s1300
646 define Device/kernel-size-6350-8300
647 DEVICE_COMPAT_VERSION := 2.0
648 DEVICE_COMPAT_MESSAGE := Kernel partition size must be increased for \
649 this OpenWrt version. Before continuing, you MUST issue either the \
650 command "fw_setenv kernsize 500000" from the OpenWrt command line, \
651 or "setenv kernsize 500000 ; saveenv" from the U-Boot serial console. \
652 Instead of the sysupgrade image, you must then install the OpenWrt \
653 factory image, setting the force flag and wiping the configuration. \
654 (e.g. "sysupgrade -n -F openwrt-squashfs-factory.bin" on command line)
657 define Device/linksys_ea6350v3
658 # The Linksys EA6350v3 has a uboot bootloader that does not
659 # support either booting lzma kernel images nor booting UBI
660 # partitions. This uboot, however, supports raw kernel images and
663 # As configured by the OEM factory, the device will boot the kernel
664 # from a fixed address with a fixed length of 3 MiB. Also, the
665 # device has a hard-coded kernel command line that requires the
666 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
667 # Oh... and the kernel partition overlaps with the rootfs
668 # partition (the same for alt_kernel and alt_rootfs).
670 # If you are planing re-partitioning the device, you may want to
671 # keep these details in mind:
672 # 1. The kernel addresses you should honor are 0x00000000 and
673 # 0x02800000 respectively.
674 # 2. The kernel size (plus the dtb) cannot exceed 3 MiB in size
675 # unless the uboot environment variable "kernsize" is increased.
676 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
677 # 4. The kernel command line from uboot is harcoded to boot with
678 # rootfs either in mtd11 or mtd13.
679 $(call Device/FitzImage)
680 $(call Device/kernel-size-6350-8300)
681 DEVICE_VENDOR := Linksys
682 DEVICE_MODEL := EA6350
691 IMAGES += factory.bin
692 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
694 TARGET_DEVICES += linksys_ea6350v3
696 define Device/linksys_ea8300
697 $(call Device/FitzImage)
698 $(call Device/kernel-size-6350-8300)
699 DEVICE_VENDOR := Linksys
700 DEVICE_MODEL := EA8300
707 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
708 IMAGES += factory.bin
709 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
710 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
712 TARGET_DEVICES += linksys_ea8300
714 define Device/linksys_mr8300
715 $(call Device/FitzImage)
716 $(call Device/kernel-size-6350-8300)
717 DEVICE_VENDOR := Linksys
718 DEVICE_MODEL := MR8300
725 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
726 IMAGES += factory.bin
727 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
728 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
730 TARGET_DEVICES += linksys_mr8300
732 define Device/linksys_whw03
733 $(call Device/FitzImage)
734 DEVICE_VENDOR := Linksys
735 DEVICE_MODEL := WHW03
738 IMAGE_SIZE := 131072k
739 IMAGES += factory.bin
740 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | linksys-image type=WHW03
741 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-bluetooth \
742 kmod-fs-ext4 e2fsprogs kmod-fs-f2fs mkf2fs losetup
744 TARGET_DEVICES += linksys_whw03
746 define Device/linksys_whw03v2
747 $(call Device/FitzImage)
748 DEVICE_VENDOR := Linksys
749 DEVICE_MODEL := WHW03
753 IMAGE_SIZE := 158720k
757 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
758 IMAGES += factory.bin
759 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW03v2
760 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-bluetooth
762 TARGET_DEVICES += linksys_whw03v2
764 define Device/linksys_whw01
765 $(call Device/FitzImage)
766 DEVICE_VENDOR := Linksys
767 DEVICE_MODEL := WHW01
774 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
775 IMAGES += factory.bin
776 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW01
777 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
779 TARGET_DEVICES += linksys_whw01
781 define Device/luma_wrtq-329acn
782 $(call Device/FitImage)
783 DEVICE_VENDOR := Luma Home
784 DEVICE_MODEL := WRTQ-329ACN
786 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
791 TARGET_DEVICES += luma_wrtq-329acn
793 define Device/meraki_common
794 $(call Device/FitImage)
795 DEVICE_VENDOR := Cisco Meraki
799 DEVICE_DTS_LOADADDR := 0x89000000
800 DEVICE_PACKAGES := ath10k-firmware-qca9887-ct
803 define Device/meraki_mr33
804 $(call Device/meraki_common)
807 TARGET_DEVICES += meraki_mr33
809 define Device/meraki_mr74
810 $(call Device/meraki_common)
812 DEVICE_DTS_CONFIG := config@3
814 TARGET_DEVICES += meraki_mr74
816 define Device/mobipromo_cm520-79f
817 $(call Device/FitzImage)
818 $(call Device/UbiFit)
819 DEVICE_VENDOR := MobiPromo
820 DEVICE_MODEL := CM520-79F
824 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
826 TARGET_DEVICES += mobipromo_cm520-79f
828 define Device/netgear_ex61x0v2
829 $(call Device/DniImage)
830 DEVICE_VENDOR := NETGEAR
831 DEVICE_DTS_CONFIG := config@4
832 NETGEAR_BOARD_ID := EX6150v2series
833 NETGEAR_HW_ID := 29765285+16+0+128+2x2
838 define Device/netgear_ex6100v2
839 $(call Device/netgear_ex61x0v2)
840 DEVICE_MODEL := EX6100
843 TARGET_DEVICES += netgear_ex6100v2
845 define Device/netgear_ex6150v2
846 $(call Device/netgear_ex61x0v2)
847 DEVICE_MODEL := EX6150
850 TARGET_DEVICES += netgear_ex6150v2
852 define Device/netgear_orbi
853 $(call Device/DniImage)
855 DEVICE_VENDOR := NETGEAR
856 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
857 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
858 append-rootfs | pad-rootfs | netgear-dni
859 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
860 sysupgrade-tar rootfs=$$$$@ | append-metadata
861 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
864 define Device/netgear_lbr20
865 $(call Device/netgear_orbi)
866 DEVICE_MODEL := LBR20
867 NETGEAR_BOARD_ID := LBR20
868 NETGEAR_HW_ID := 29766182+0+256+512+2x2+2x2+2x2+1
869 KERNEL_SIZE := 7340032
873 IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
874 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
875 append-ubi | netgear-dni
876 IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
877 append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
879 DEVICE_PACKAGES := ipq-wifi-netgear_lbr20 ath10k-firmware-qca9888-ct kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
881 TARGET_DEVICES += netgear_lbr20
883 define Device/netgear_rbx40
884 $(call Device/netgear_orbi)
885 NETGEAR_HW_ID := 29765515+0+4096+512+2x2+2x2+2x2
886 KERNEL_SIZE := 3932160
887 ROOTFS_SIZE := 32243712
888 IMAGE_SIZE := 36175872
891 define Device/netgear_rbr40
892 $(call Device/netgear_rbx40)
893 DEVICE_MODEL := RBR40
895 NETGEAR_BOARD_ID := RBR40
897 TARGET_DEVICES += netgear_rbr40
899 define Device/netgear_rbs40
900 $(call Device/netgear_rbx40)
901 DEVICE_MODEL := RBS40
903 NETGEAR_BOARD_ID := RBS40
905 TARGET_DEVICES += netgear_rbs40
907 define Device/netgear_rbx50
908 $(call Device/netgear_orbi)
909 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
910 KERNEL_SIZE := 3932160
911 ROOTFS_SIZE := 32243712
912 IMAGE_SIZE := 36175872
915 define Device/netgear_rbr50
916 $(call Device/netgear_rbx50)
917 DEVICE_MODEL := RBR50
919 NETGEAR_BOARD_ID := RBR50
921 TARGET_DEVICES += netgear_rbr50
923 define Device/netgear_rbs50
924 $(call Device/netgear_rbx50)
925 DEVICE_MODEL := RBS50
927 NETGEAR_BOARD_ID := RBS50
929 TARGET_DEVICES += netgear_rbs50
931 define Device/netgear_srx60
932 $(call Device/netgear_orbi)
933 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
934 KERNEL_SIZE := 3932160
935 ROOTFS_SIZE := 32243712
936 IMAGE_SIZE := 36175872
939 define Device/netgear_srr60
940 $(call Device/netgear_srx60)
941 DEVICE_MODEL := SRR60
942 NETGEAR_BOARD_ID := SRR60
944 TARGET_DEVICES += netgear_srr60
946 define Device/netgear_srs60
947 $(call Device/netgear_srx60)
948 DEVICE_MODEL := SRS60
949 NETGEAR_BOARD_ID := SRS60
951 TARGET_DEVICES += netgear_srs60
953 define Device/netgear_wac510
954 $(call Device/FitImage)
955 $(call Device/UbiFit)
956 DEVICE_VENDOR := Netgear
957 DEVICE_MODEL := WAC510
959 DEVICE_DTS_CONFIG := config@5
962 IMAGES += factory.tar
963 IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
964 DEVICE_PACKAGES := uboot-envtools
966 TARGET_DEVICES += netgear_wac510
968 define Device/openmesh_a42
969 $(call Device/FitImageLzma)
970 DEVICE_VENDOR := OpenMesh
973 DEVICE_DTS_CONFIG := config@om.a42
975 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
977 IMAGES += factory.bin
978 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
979 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
981 TARGET_DEVICES += openmesh_a42
983 define Device/openmesh_a62
984 $(call Device/FitImageLzma)
985 DEVICE_VENDOR := OpenMesh
988 DEVICE_DTS_CONFIG := config@om.a62
990 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
992 IMAGES += factory.bin
993 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
994 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
995 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
997 TARGET_DEVICES += openmesh_a62
999 define Device/p2w_r619ac
1000 $(call Device/FitzImage)
1001 $(call Device/UbiFit)
1002 DEVICE_VENDOR := P&W
1003 DEVICE_MODEL := R619AC
1005 DEVICE_DTS_CONFIG := config@10
1010 define Device/p2w_r619ac-64m
1011 $(call Device/p2w_r619ac)
1012 DEVICE_VARIANT := 64M NAND
1013 IMAGES += factory.bin
1014 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
1016 TARGET_DEVICES += p2w_r619ac-64m
1018 define Device/p2w_r619ac-128m
1019 $(call Device/p2w_r619ac)
1020 DEVICE_VARIANT := 128M NAND
1022 TARGET_DEVICES += p2w_r619ac-128m
1024 define Device/pakedge_wr-1
1025 $(call Device/FitImageLzma)
1026 DEVICE_VENDOR := Pakedge
1027 DEVICE_MODEL := WR-1
1028 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
1031 IMAGE_SIZE := 31232k
1032 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
1034 TARGET_DEVICES += pakedge_wr-1
1036 define Device/plasmacloud_pa1200
1037 $(call Device/FitImageLzma)
1038 DEVICE_VENDOR := Plasma Cloud
1039 DEVICE_MODEL := PA1200
1041 DEVICE_DTS_CONFIG := config@pc.pa1200
1043 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
1044 IMAGE_SIZE := 15616k
1045 IMAGES += factory.bin
1046 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
1047 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
1049 TARGET_DEVICES += plasmacloud_pa1200
1051 define Device/plasmacloud_pa2200
1052 $(call Device/FitImageLzma)
1053 DEVICE_VENDOR := Plasma Cloud
1054 DEVICE_MODEL := PA2200
1056 DEVICE_DTS_CONFIG := config@pc.pa2200
1058 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
1059 IMAGE_SIZE := 15552k
1060 IMAGES += factory.bin
1061 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
1062 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
1063 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
1065 TARGET_DEVICES += plasmacloud_pa2200
1067 define Device/qxwlan_e2600ac-c1
1068 $(call Device/FitImage)
1069 DEVICE_VENDOR := Qxwlan
1070 DEVICE_MODEL := E2600AC
1071 DEVICE_VARIANT := C1
1072 BOARD_NAME := e2600ac-c1
1074 IMAGE_SIZE := 31232k
1075 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1077 TARGET_DEVICES += qxwlan_e2600ac-c1
1079 define Device/qxwlan_e2600ac-c2
1080 $(call Device/FitImage)
1081 $(call Device/UbiFit)
1082 DEVICE_VENDOR := Qxwlan
1083 DEVICE_MODEL := E2600AC
1084 DEVICE_VARIANT := C2
1090 TARGET_DEVICES += qxwlan_e2600ac-c2
1092 define Device/sony_ncp-hg100-cellular
1093 $(call Device/FitImage)
1094 DEVICE_VENDOR := Sony
1095 DEVICE_MODEL := NCP-HG100/Cellular
1096 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1098 KERNEL_SIZE := 8192k
1100 DEVICE_PACKAGES := e2fsprogs kmod-fs-ext4 uqmi
1102 TARGET_DEVICES += sony_ncp-hg100-cellular
1104 define Device/teltonika_rutx10
1105 $(call Device/FitImage)
1106 $(call Device/UbiFit)
1107 DEVICE_VENDOR := Teltonika
1108 DEVICE_MODEL := RUTX10
1110 DEVICE_DTS_CONFIG := config@5
1114 FILESYSTEMS := squashfs
1115 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1116 DEVICE_PACKAGES := kmod-bluetooth
1119 #TARGET_DEVICES += teltonika_rutx10
1121 define Device/teltonika_rutx50
1122 $(call Device/FitImage)
1123 $(call Device/UbiFit)
1124 DEVICE_VENDOR := Teltonika
1125 DEVICE_MODEL := RUTX50
1127 DEVICE_DTS_CONFIG := config@5
1131 FILESYSTEMS := squashfs
1132 IMAGE/factory.ubi := append-ubi
1133 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1135 TARGET_DEVICES += teltonika_rutx50
1137 define Device/tel_x1pro
1138 $(call Device/FitImage)
1139 DEVICE_VENDOR := Telco
1140 DEVICE_MODEL := X1 Pro
1142 KERNEL_SIZE := 4096k
1143 IMAGE_SIZE := 31232k
1144 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1145 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1149 #TARGET_DEVICES += tel_x1pro
1151 define Device/unielec_u4019-32m
1152 $(call Device/FitImage)
1153 DEVICE_VENDOR := Unielec
1154 DEVICE_MODEL := U4019
1155 DEVICE_VARIANT := 32M
1156 BOARD_NAME := u4019-32m
1158 KERNEL_SIZE := 4096k
1159 IMAGE_SIZE := 31232k
1160 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1164 #TARGET_DEVICES += unielec_u4019-32m
1166 define Device/wallys_dr40x9
1167 $(call Device/FitImage)
1168 $(call Device/UbiFit)
1169 DEVICE_VENDOR := Wallys
1170 DEVICE_MODEL := DR40X9
1172 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
1175 DEVICE_PACKAGES := ipq-wifi-wallys_dr40x9
1177 TARGET_DEVICES += wallys_dr40x9
1179 define Device/yyets_le1
1180 $(call Device/FitzImage)
1181 DEVICE_VENDOR := YYeTs
1184 KERNEL_SIZE := 4096k
1185 IMAGE_SIZE := 31232k
1186 IMAGES += factory.bin
1187 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
1188 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1189 DEVICE_PACKAGES := ipq-wifi-yyets_le1 kmod-usb-ledtrig-usbport
1191 TARGET_DEVICES += yyets_le1
1193 define Device/zte_mf18a
1194 $(call Device/FitImage)
1195 DEVICE_VENDOR := ZTE
1196 DEVICE_MODEL := MF18A
1198 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1202 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
1204 TARGET_DEVICES += zte_mf18a
1206 define Device/zte_mf28x_common
1207 $(call Device/FitzImage)
1208 DEVICE_VENDOR := ZTE
1210 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1214 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1217 define Device/zte_mf282plus
1218 $(call Device/zte_mf28x_common)
1219 DEVICE_MODEL := MF282Plus
1220 # The recovery image is used to return back to stock (an initramfs-based image
1221 # that can be flashed to the device via sysupgrade
1222 # The factory image is used to install from the stock firmware by using an
1223 # exploit for the web interface
1224 IMAGES += factory.bin recovery.bin
1225 IMAGE/factory.bin := append-ubi
1226 IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
1227 DEVICE_PACKAGES := kmod-usb-acm kmod-usb-net-rndis
1229 TARGET_DEVICES += zte_mf282plus
1231 define Device/zte_mf286d
1232 $(call Device/zte_mf28x_common)
1233 DEVICE_MODEL := MF286D
1235 TARGET_DEVICES += zte_mf286d
1237 define Device/zte_mf287_common
1238 $(call Device/zte_mf28x_common)
1240 # The recovery image is used to return back to stock (an initramfs-based image
1241 # that can be flashed to the device via sysupgrade
1242 # The factory image is used to install from the stock firmware by using an
1243 # exploit for the web interface
1244 IMAGES += factory.bin recovery.bin
1245 IMAGE/factory.bin := append-ubi
1246 IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
1249 define Device/zte_mf287plus
1250 $(call Device/zte_mf287_common)
1251 DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
1252 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
1253 DEVICE_MODEL := MF287Plus
1255 TARGET_DEVICES += zte_mf287plus
1257 define Device/zte_mf287
1258 $(call Device/zte_mf287_common)
1259 DEVICE_PACKAGES += ipq-wifi-zte_mf287
1260 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
1261 DEVICE_MODEL := MF287
1263 TARGET_DEVICES += zte_mf287
1265 define Device/zte_mf287pro
1266 $(call Device/zte_mf287_common)
1267 DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
1268 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1269 DEVICE_MODEL := MF287Pro
1271 TARGET_DEVICES += zte_mf287pro
1273 define Device/zte_mf289f
1274 $(call Device/zte_mf28x_common)
1275 DEVICE_MODEL := MF289F
1276 DEVICE_PACKAGES += ath10k-firmware-qca9984-ct
1278 TARGET_DEVICES += zte_mf289f
1280 define Device/zyxel_nbg6617
1281 $(call Device/FitImageLzma)
1282 DEVICE_VENDOR := ZyXEL
1283 DEVICE_MODEL := NBG6617
1285 KERNEL_SIZE := 4096k
1286 ROOTFS_SIZE := 24960k
1287 RAS_BOARD := NBG6617
1288 RAS_ROOTFS_SIZE := 19840k
1289 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1290 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1291 IMAGES += factory.bin
1292 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1293 # at least as large as the one of the initial firmware image (not the current
1294 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1295 # this minimum-size. However, the larger image can be flashed both ways.
1296 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1297 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1298 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1300 TARGET_DEVICES += zyxel_nbg6617
1302 define Device/zyxel_wre6606
1303 $(call Device/FitImage)
1304 DEVICE_VENDOR := ZyXEL
1305 DEVICE_MODEL := WRE6606
1306 DEVICE_DTS_CONFIG := config@4
1308 IMAGE_SIZE := 13184k
1309 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1310 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1313 #TARGET_DEVICES += zyxel_wre6606