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
7 KERNEL_SUFFIX
:= -uImage.itb
8 KERNEL
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
12 define Device
/FitImageLzma
13 KERNEL_SUFFIX
:= -uImage.itb
14 KERNEL
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
18 define Device
/FitzImage
19 KERNEL_SUFFIX
:= -zImage.itb
20 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
26 IMAGES
:= factory.ubi sysupgrade.bin
27 IMAGE
/factory.ubi
:= append-ubi
28 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
31 define Device
/DniImage
32 $(call Device
/FitzImage
)
36 IMAGE
/factory.img
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
37 IMAGE
/sysupgrade.bin
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | \
38 append-rootfs | pad-rootfs | check-size | append-metadata
41 define Build
/append-rootfshdr
42 mkimage
-A
$(LINUX_KARCH
) \
43 -O linux
-T filesystem \
44 -C lzma
-a
$(KERNEL_LOADADDR
) -e
$(if
$(KERNEL_ENTRY
),$(KERNEL_ENTRY
),$(KERNEL_LOADADDR
)) \
45 -n root.squashfs
-d
$(IMAGE_ROOTFS
) $@.new
46 cat
$(IMAGE_KERNEL
) > $@.
$1
47 dd if
=$@.new bs
=64 count
=1 >> $@.
$1
50 define Build
/append-rutx-metadata
53 "device_code": [".*"], \
57 "supported_devices":["teltonika,rutx"] \
61 define Build
/copy-file
65 define Build
/mkmylofw_32m
66 $(eval device_id
=$(word 1,$(1)))
67 $(eval revision
=$(word 2,$(1)))
70 size
="$$(stat -c%s $@)" \
71 pad
="$(call exp_units,$(BLOCKSIZE))" \
72 pad
="(pad - (size % pad)) % pad" \
73 newsize
='size + pad'; \
74 $(STAGING_DIR_HOST
)/bin
/mkmylofw \
75 -B WPE72
-i
0x11f6:$(device_id
):0x11f6:$(device_id
) -r
$(revision
) \
76 -s
0x2000000 -p0x180000
:$$newsize:al
:0x80208000:"OpenWrt":$@ \
81 define Build
/wac5xx-netgear-tar
83 mv
$@
$@.tmp
/wac5xx-ubifs-root.img
84 md5sum
$@.tmp
/wac5xx-ubifs-root.img
> $@.tmp
/wac5xx-ubifs-root.md5sum
85 echo
"WAC505 WAC510" > $@.tmp
/metadata.txt
86 echo
"WAC505_V9.9.9.9" > $@.tmp
/version
87 tar -C
$@.tmp
/ -cf
$@ .
91 define Build
/qsdk-ipq-factory-nand-askey
92 $(TOPDIR
)/scripts
/mkits-qsdk-ipq-image.sh
$@.its\
94 askey_fs
$(IMAGE_ROOTFS
) \
96 PATH
=$(LINUX_DIR
)/scripts
/dtc
:$(PATH
) mkimage
-f
$@.its
$@.new
100 define Build
/qsdk-ipq-app-gpt
101 cp
$@
$@.tmp
2>/dev
/null || true
102 ptgen
-g
-o
$@.tmp
-a
1 -l
1024 \
103 -t
0x2e -N
0:HLOS
-r
-p
32M \
104 -t
0x83 -N rootfs
-r
-p
128M \
105 -N rootfs_data
-p
512M
111 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
112 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
113 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
119 define Build
/wrgg-image
122 -d
"$(WRGG_DEVNAME)" \
123 -s
"$(WRGG_SIGNATURE)" \
128 define Device
/8dev_habanero-dvk
129 $(call Device
/FitImageLzma
)
130 DEVICE_VENDOR
:= 8devices
131 DEVICE_MODEL
:= Habanero DVK
134 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
64k | append-rootfs | pad-rootfs | check-size | append-metadata
136 TARGET_DEVICES
+= 8dev_habanero-dvk
138 define Device
/8dev_jalapeno-common
139 $(call Device
/FitImage
)
140 $(call Device
/UbiFit
)
146 define Device
/8dev_jalapeno
147 $(call Device
/8dev_jalapeno-common
)
148 DEVICE_VENDOR
:= 8devices
149 DEVICE_MODEL
:= Jalapeno
151 TARGET_DEVICES
+= 8dev_jalapeno
153 define Device
/alfa-network_ap120c-ac
154 $(call Device
/FitImage
)
155 $(call Device
/UbiFit
)
156 DEVICE_VENDOR
:= ALFA Network
157 DEVICE_MODEL
:= AP120C-AC
159 DEVICE_PACKAGES
:= kmod-usb-acm kmod-tpm-i2c-atmel
163 IMAGES
:= factory.bin sysupgrade.bin
164 IMAGE
/factory.bin
:= append-ubi | qsdk-ipq-factory-nand
166 TARGET_DEVICES
+= alfa-network_ap120c-ac
168 define Device
/aruba_glenmorangie
169 $(call Device
/FitImageLzma
)
170 DEVICE_VENDOR
:= Aruba
174 define Device
/aruba_ap-303
175 $(call Device
/aruba_glenmorangie
)
176 DEVICE_MODEL
:= AP-303
178 TARGET_DEVICES
+= aruba_ap-303
180 define Device
/aruba_ap-303h
181 $(call Device
/aruba_glenmorangie
)
182 DEVICE_MODEL
:= AP-303H
184 TARGET_DEVICES
+= aruba_ap-303h
186 define Device
/aruba_ap-365
187 $(call Device
/aruba_glenmorangie
)
188 DEVICE_MODEL
:= AP-365
189 DEVICE_PACKAGES
:= kmod-hwmon-ad7418
191 TARGET_DEVICES
+= aruba_ap-365
193 define Device
/asus_map-ac2200
194 $(call Device
/FitImageLzma
)
195 DEVICE_VENDOR
:= ASUS
196 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
198 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
200 TARGET_DEVICES
+= asus_map-ac2200
202 # WARNING: this is an initramfs image that gets you half of the way there
203 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
204 # to get a "trx" you can flash via web UI for ac42u/ac58u:
205 # - change call Device/FitImageLzma to Device/FitImage
206 # - add the following below UIMAGE_NAME
207 # UIMAGE_MAGIC := 0x27051956
208 # IMAGES += factory.trx
209 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
210 define Device
/asus_rt-ac42u
211 $(call Device
/FitImageLzma
)
212 DEVICE_VENDOR
:= ASUS
213 DEVICE_MODEL
:= RT-AC42U
214 DEVICE_ALT0_VENDOR
:= ASUS
215 DEVICE_ALT0_MODEL
:= RT-ACRH17
216 DEVICE_ALT1_VENDOR
:= ASUS
217 DEVICE_ALT1_MODEL
:= RT-AC2200
221 IMAGE_SIZE
:= 20439364
222 FILESYSTEMS
:= squashfs
223 # RT-AC82U is nowhere to be found online
224 # Rather, this device is a/k/a RT-AC42U
225 # But we'll go with what the vendor firmware has...
226 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC82U')
227 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
229 TARGET_DEVICES
+= asus_rt-ac42u
231 define Device
/asus_rt-ac58u
232 $(call Device
/FitImageLzma
)
233 DEVICE_VENDOR
:= ASUS
234 DEVICE_MODEL
:= RT-AC58U
235 DEVICE_ALT0_VENDOR
:= ASUS
236 DEVICE_ALT0_MODEL
:= RT-ACRH13
240 IMAGE_SIZE
:= 20439364
241 FILESYSTEMS
:= squashfs
242 # Someone - in their infinite wisdom - decided to put the firmware
243 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
244 # Since u-boot works with strings we either need another fixup step
245 # to add a version... or we are very careful not to add '\0' into that
246 # string and call it a day.... Yeah, we do the latter!
247 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
248 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
249 kmod-usb-ledtrig-usbport
251 TARGET_DEVICES
+= asus_rt-ac58u
253 define Device
/avm_fritzbox-4040
254 $(call Device
/FitImageLzma
)
256 DEVICE_MODEL
:= FRITZ
!Box
4040
258 BOARD_NAME
:= fritz4040
260 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
261 UBOOT_PARTITION_SIZE
:= 524288
263 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
264 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
265 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
267 TARGET_DEVICES
+= avm_fritzbox-4040
269 define Device
/avm_fritzbox-7530
270 $(call Device
/FitImageLzma
)
272 DEVICE_MODEL
:= FRITZ
!Box
7530
273 DEVICE_ALT0_VENDOR
:= AVM
274 DEVICE_ALT0_MODEL
:= FRITZ
!Box
7520
276 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ltq-vdsl-vr11-app
278 TARGET_DEVICES
+= avm_fritzbox-7530
280 define Device
/avm_fritzrepeater-1200
281 $(call Device
/FitImageLzma
)
283 DEVICE_MODEL
:= FRITZ
!Repeater
1200
285 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
287 TARGET_DEVICES
+= avm_fritzrepeater-1200
289 define Device
/avm_fritzrepeater-3000
290 $(call Device
/FitImageLzma
)
292 DEVICE_MODEL
:= FRITZ
!Repeater
3000
294 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
296 TARGET_DEVICES
+= avm_fritzrepeater-3000
298 define Device
/buffalo_wtr-m2133hp
299 $(call Device
/FitImage
)
300 $(call Device
/UbiFit
)
301 DEVICE_VENDOR
:= Buffalo
302 DEVICE_MODEL
:= WTR-M2133HP
304 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
308 TARGET_DEVICES
+= buffalo_wtr-m2133hp
310 define Device
/cellc_rtl30vw
311 KERNEL_SUFFIX
:= -zImage.itb
312 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
313 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
314 KERNEL_NAME
:= zImage
316 IMAGES
:= factory.bin sysupgrade.bin
317 IMAGE
/factory.bin
:= append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
318 IMAGE
/sysupgrade.bin
:= append-rootfshdr kernel | sysupgrade-tar kernel
=$$$$@.kernel | append-metadata
319 DEVICE_VENDOR
:= Cell C
320 DEVICE_MODEL
:= RTL30VW
322 DEVICE_DTS_CONFIG
:= config@
5
328 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
330 TARGET_DEVICES
+= cellc_rtl30vw
332 define Device
/cilab_meshpoint-one
333 $(call Device
/8dev_jalapeno-common
)
334 DEVICE_VENDOR
:= Crisis Innovation Lab
335 DEVICE_MODEL
:= MeshPoint.One
336 DEVICE_PACKAGES
+= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
339 #TARGET_DEVICES += cilab_meshpoint-one
341 define Device
/compex_wpj419
342 $(call Device
/FitImage
)
343 $(call Device
/UbiFit
)
344 DEVICE_VENDOR
:= Compex
345 DEVICE_MODEL
:= WPJ419
347 DEVICE_DTS_CONFIG
:= config@
12
351 FILESYSTEMS
:= squashfs
354 #TARGET_DEVICES += compex_wpj419
356 define Device
/compex_wpj428
357 $(call Device
/FitzImage
)
358 DEVICE_VENDOR
:= Compex
359 DEVICE_MODEL
:= WPJ428
361 DEVICE_DTS_CONFIG
:= config@
4
365 IMAGES
+= cpximg-6a04.bin
366 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
367 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
368 DEVICE_PACKAGES
:= kmod-gpio-beeper
371 TARGET_DEVICES
+= compex_wpj428
373 define Device
/devolo_magic-2-wifi-next
374 $(call Device
/FitzImage
)
375 DEVICE_VENDOR
:= devolo
376 DEVICE_MODEL
:= Magic
2 WiFi next
380 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
381 # it will bootm it, just like we want for the initramfs.
382 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | pad-to
64k |\
383 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
386 IMAGES
:= sysupgrade.bin
387 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
390 TARGET_DEVICES
+= devolo_magic-2-wifi-next
392 define Device
/dlink_dap-2610
393 $(call Device
/FitImageLzma
)
394 DEVICE_VENDOR
:= D-Link
395 DEVICE_MODEL
:= DAP-2610
397 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
399 WRGG_DEVNAME
:= /dev
/mtdblock
/8
400 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
402 IMAGES
+= factory.bin
403 # Bootloader expects a special 160 byte header which is added by
405 # Factory image size must be larger than 6MB, and size in wrgg header must
406 # match actual factory image size to be flashable from D-Link http server.
407 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
408 # cannot be part of the wrgg image. This is solved in the factory image by
409 # having the rootfs at the end of the image (without pad-rootfs). And in
410 # the sysupgrade image only the kernel is included in the wrgg checksum,
411 # but this is not flashable from the D-link http server.
412 # append-rootfs must start on an erase block boundary.
413 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
414 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
416 TARGET_DEVICES
+= dlink_dap-2610
418 define Device
/edgecore_ecw5211
419 $(call Device
/FitImage
)
420 $(call Device
/UbiFit
)
421 DEVICE_VENDOR
:= Edgecore
422 DEVICE_MODEL
:= ECW5211
426 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
427 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
429 TARGET_DEVICES
+= edgecore_ecw5211
431 define Device
/edgecore_oap100
432 $(call Device
/FitImage
)
433 $(call Device
/UbiFit
)
434 DEVICE_VENDOR
:= Edgecore
435 DEVICE_MODEL
:= OAP100
439 IMAGES
:= sysupgrade.bin
440 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
441 DEVICE_PACKAGES
:= kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
444 #TARGET_DEVICES += edgecore_oap100
446 define Device
/engenius_eap1300
447 $(call Device
/FitImage
)
448 DEVICE_VENDOR
:= EnGenius
449 DEVICE_MODEL
:= EAP1300
450 DEVICE_DTS_CONFIG
:= config@
4
451 BOARD_NAME
:= eap1300
455 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
457 TARGET_DEVICES
+= engenius_eap1300
459 define Device
/engenius_eap2200
460 $(call Device
/FitImage
)
461 $(call Device
/UbiFit
)
462 DEVICE_VENDOR
:= EnGenius
463 DEVICE_MODEL
:= EAP2200
467 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
470 #TARGET_DEVICES += engenius_eap2200
472 define Device
/engenius_emd1
473 $(call Device
/FitImage
)
474 DEVICE_VENDOR
:= EnGenius
476 DEVICE_DTS_CONFIG
:= config@
4
479 IMAGES
+= factory.bin
480 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
481 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
484 #TARGET_DEVICES += engenius_emd1
486 define Device
/engenius_emr3500
487 $(call Device
/FitImage
)
488 DEVICE_VENDOR
:= EnGenius
489 DEVICE_MODEL
:= EMR3500
490 DEVICE_DTS_CONFIG
:= config@
4
494 IMAGES
+= factory.bin
495 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
496 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
500 #TARGET_DEVICES += engenius_emr3500
502 define Device
/engenius_ens620ext
503 $(call Device
/FitImage
)
504 DEVICE_VENDOR
:= EnGenius
505 DEVICE_MODEL
:= ENS620EXT
507 DEVICE_DTS_CONFIG
:= config@
4
510 BOARD_NAME
:= ENS620EXT
513 PRODUCT_ID_NEW
:= 0xA4
520 FILESYSTEMS
:= squashfs
521 IMAGES
+= factory_30.bin factory_35.bin
522 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
523 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
524 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
527 #TARGET_DEVICES += engenius_ens620ext
529 define Device
/extreme-networks_ws-ap3915i
530 $(call Device
/FitImage
)
531 DEVICE_VENDOR
:= Extreme Networks
532 DEVICE_MODEL
:= WS-AP3915i
536 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
538 TARGET_DEVICES
+= extreme-networks_ws-ap3915i
540 define Device
/extreme-networks_ws-ap391x
541 $(call Device
/FitImage
)
542 DEVICE_VENDOR
:= Extreme Networks
543 DEVICE_MODEL
:= WS-AP391x
546 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
548 TARGET_DEVICES
+= extreme-networks_ws-ap391x
550 define Device
/ezviz_cs-w3-wd1200g-eup
551 $(call Device
/FitImage
)
552 DEVICE_VENDOR
:= EZVIZ
553 DEVICE_MODEL
:= CS-W3-WD1200G
554 DEVICE_VARIANT
:= EUP
558 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
560 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
561 DEVICE_COMPAT_VERSION
:= 2.0
562 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
563 Upgrade via sysupgrade mechanism is not possible.
565 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
567 define Device/glinet_gl-a1300
568 $(call Device/FitImage)
569 $(call Device/UbiFit)
570 DEVICE_VENDOR := GL.iNet
571 DEVICE_MODEL := GL-A1300
573 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
576 IMAGE_SIZE := 131072k
578 TARGET_DEVICES += glinet_gl-a1300
580 define Device/glinet_gl-ap1300
581 $(call Device/FitImage)
582 $(call Device/UbiFit)
583 DEVICE_VENDOR := GL.iNet
584 DEVICE_MODEL := GL-AP1300
586 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
589 IMAGE_SIZE := 131072k
591 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
593 TARGET_DEVICES += glinet_gl-ap1300
595 define Device/glinet_gl-b1300
596 $(call Device/FitzImage)
597 DEVICE_VENDOR := GL.iNet
598 DEVICE_MODEL := GL-B1300
599 BOARD_NAME := gl-b1300
603 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
605 TARGET_DEVICES += glinet_gl-b1300
607 define Device/glinet_gl-b2200
608 $(call Device/FitzImage)
609 DEVICE_VENDOR := GL.iNet
610 DEVICE_MODEL := GL-B2200
612 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
613 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
614 IMAGES := emmc.img.gz sysupgrade.bin
615 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
616 pad-to 1024k | append-kernel |\
617 pad-to 33792k | append-rootfs |\
618 append-metadata | gzip
619 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
620 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
621 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
623 TARGET_DEVICES += glinet_gl-b2200
625 define Device/glinet_gl-s1300
626 $(call Device/FitzImage)
627 DEVICE_VENDOR := GL.iNet
628 DEVICE_MODEL := GL-S1300
632 IMAGES := sysupgrade.bin
633 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
634 DEVICE_PACKAGES := kmod-fs-ext4 kmod-mmc kmod-spi-dev
637 #TARGET_DEVICES += glinet_gl-s1300
639 define Device/kernel-size-6350-8300
640 DEVICE_COMPAT_VERSION := 2.0
641 DEVICE_COMPAT_MESSAGE := Kernel partition size must be increased for \
642 this OpenWrt version. Before continuing, you MUST issue either the \
643 command "fw_setenv kernsize 500000" from the OpenWrt command line, \
644 or "setenv kernsize 500000 ; saveenv" from the U-Boot serial console. \
645 Instead of the sysupgrade image, you must then install the OpenWrt \
646 factory image, setting the force flag and wiping the configuration. \
647 (e.g. "sysupgrade -n -F openwrt-squashfs-factory.bin" on command line)
650 define Device/linksys_ea6350v3
651 # The Linksys EA6350v3 has a uboot bootloader that does not
652 # support either booting lzma kernel images nor booting UBI
653 # partitions. This uboot, however, supports raw kernel images and
656 # As configured by the OEM factory, the device will boot the kernel
657 # from a fixed address with a fixed length of 3 MiB. Also, the
658 # device has a hard-coded kernel command line that requires the
659 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
660 # Oh... and the kernel partition overlaps with the rootfs
661 # partition (the same for alt_kernel and alt_rootfs).
663 # If you are planing re-partitioning the device, you may want to
664 # keep these details in mind:
665 # 1. The kernel addresses you should honor are 0x00000000 and
666 # 0x02800000 respectively.
667 # 2. The kernel size (plus the dtb) cannot exceed 3 MiB in size
668 # unless the uboot environment variable "kernsize" is increased.
669 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
670 # 4. The kernel command line from uboot is harcoded to boot with
671 # rootfs either in mtd11 or mtd13.
672 $(call Device/FitzImage)
673 $(call Device/kernel-size-6350-8300)
674 DEVICE_VENDOR := Linksys
675 DEVICE_MODEL := EA6350
684 IMAGES += factory.bin
685 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
687 TARGET_DEVICES += linksys_ea6350v3
689 define Device/linksys_ea8300
690 $(call Device/FitzImage)
691 $(call Device/kernel-size-6350-8300)
692 DEVICE_VENDOR := Linksys
693 DEVICE_MODEL := EA8300
700 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
701 IMAGES += factory.bin
702 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
703 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
705 TARGET_DEVICES += linksys_ea8300
707 define Device/linksys_mr8300
708 $(call Device/FitzImage)
709 $(call Device/kernel-size-6350-8300)
710 DEVICE_VENDOR := Linksys
711 DEVICE_MODEL := MR8300
718 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
719 IMAGES += factory.bin
720 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
721 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
723 TARGET_DEVICES += linksys_mr8300
725 define Device/linksys_whw03
726 $(call Device/FitzImage)
727 DEVICE_VENDOR := Linksys
728 DEVICE_MODEL := WHW03
731 IMAGE_SIZE := 131072k
732 IMAGES += factory.bin
733 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | linksys-image type=WHW03
734 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-bluetooth \
735 kmod-fs-ext4 e2fsprogs kmod-fs-f2fs mkf2fs losetup
737 TARGET_DEVICES += linksys_whw03
739 define Device/linksys_whw03v2
740 $(call Device/FitzImage)
741 DEVICE_VENDOR := Linksys
742 DEVICE_MODEL := WHW03
746 IMAGE_SIZE := 158720k
750 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
751 IMAGES += factory.bin
752 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW03v2
753 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-bluetooth
755 TARGET_DEVICES += linksys_whw03v2
757 define Device/linksys_whw01
758 $(call Device/FitzImage)
759 DEVICE_VENDOR := Linksys
760 DEVICE_MODEL := WHW01
767 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
768 IMAGES += factory.bin
769 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW01
770 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
772 TARGET_DEVICES += linksys_whw01
774 define Device/luma_wrtq-329acn
775 $(call Device/FitImage)
776 DEVICE_VENDOR := Luma Home
777 DEVICE_MODEL := WRTQ-329ACN
779 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
784 TARGET_DEVICES += luma_wrtq-329acn
786 define Device/meraki_common
787 $(call Device/FitImage)
788 DEVICE_VENDOR := Cisco Meraki
792 DEVICE_DTS_LOADADDR := 0x89000000
793 DEVICE_PACKAGES := ath10k-firmware-qca9887-ct
796 define Device/meraki_mr33
797 $(call Device/meraki_common)
800 TARGET_DEVICES += meraki_mr33
802 define Device/meraki_mr74
803 $(call Device/meraki_common)
805 DEVICE_DTS_CONFIG := config@3
807 TARGET_DEVICES += meraki_mr74
809 define Device/mobipromo_cm520-79f
810 $(call Device/FitzImage)
811 $(call Device/UbiFit)
812 DEVICE_VENDOR := MobiPromo
813 DEVICE_MODEL := CM520-79F
817 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
819 TARGET_DEVICES += mobipromo_cm520-79f
821 define Device/netgear_ex61x0v2
822 $(call Device/DniImage)
823 DEVICE_VENDOR := NETGEAR
824 DEVICE_DTS_CONFIG := config@4
825 NETGEAR_BOARD_ID := EX6150v2series
826 NETGEAR_HW_ID := 29765285+16+0+128+2x2
831 define Device/netgear_ex6100v2
832 $(call Device/netgear_ex61x0v2)
833 DEVICE_MODEL := EX6100
836 TARGET_DEVICES += netgear_ex6100v2
838 define Device/netgear_ex6150v2
839 $(call Device/netgear_ex61x0v2)
840 DEVICE_MODEL := EX6150
843 TARGET_DEVICES += netgear_ex6150v2
845 define Device/netgear_orbi
846 $(call Device/DniImage)
848 DEVICE_VENDOR := NETGEAR
849 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
850 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
851 append-rootfs | pad-rootfs | netgear-dni
852 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
853 sysupgrade-tar rootfs=$$$$@ | append-metadata
854 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
857 define Device/netgear_lbr20
858 $(call Device/netgear_orbi)
859 DEVICE_MODEL := LBR20
860 NETGEAR_BOARD_ID := LBR20
861 NETGEAR_HW_ID := 29766182+0+256+512+2x2+2x2+2x2+1
862 KERNEL_SIZE := 7340032
866 IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
867 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
868 append-ubi | netgear-dni
869 IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
870 append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
872 DEVICE_PACKAGES := ipq-wifi-netgear_lbr20 ath10k-firmware-qca9888-ct kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
874 TARGET_DEVICES += netgear_lbr20
876 define Device/netgear_rbx40
877 $(call Device/netgear_orbi)
878 NETGEAR_HW_ID := 29765515+0+4096+512+2x2+2x2+2x2
879 KERNEL_SIZE := 3932160
880 ROOTFS_SIZE := 32243712
881 IMAGE_SIZE := 36175872
884 define Device/netgear_rbr40
885 $(call Device/netgear_rbx40)
886 DEVICE_MODEL := RBR40
888 NETGEAR_BOARD_ID := RBR40
890 TARGET_DEVICES += netgear_rbr40
892 define Device/netgear_rbs40
893 $(call Device/netgear_rbx40)
894 DEVICE_MODEL := RBS40
896 NETGEAR_BOARD_ID := RBS40
898 TARGET_DEVICES += netgear_rbs40
900 define Device/netgear_rbx50
901 $(call Device/netgear_orbi)
902 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
903 KERNEL_SIZE := 3932160
904 ROOTFS_SIZE := 32243712
905 IMAGE_SIZE := 36175872
908 define Device/netgear_rbr50
909 $(call Device/netgear_rbx50)
910 DEVICE_MODEL := RBR50
912 NETGEAR_BOARD_ID := RBR50
914 TARGET_DEVICES += netgear_rbr50
916 define Device/netgear_rbs50
917 $(call Device/netgear_rbx50)
918 DEVICE_MODEL := RBS50
920 NETGEAR_BOARD_ID := RBS50
922 TARGET_DEVICES += netgear_rbs50
924 define Device/netgear_srx60
925 $(call Device/netgear_orbi)
926 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
927 KERNEL_SIZE := 3932160
928 ROOTFS_SIZE := 32243712
929 IMAGE_SIZE := 36175872
932 define Device/netgear_srr60
933 $(call Device/netgear_srx60)
934 DEVICE_MODEL := SRR60
935 NETGEAR_BOARD_ID := SRR60
937 TARGET_DEVICES += netgear_srr60
939 define Device/netgear_srs60
940 $(call Device/netgear_srx60)
941 DEVICE_MODEL := SRS60
942 NETGEAR_BOARD_ID := SRS60
944 TARGET_DEVICES += netgear_srs60
946 define Device/netgear_wac510
947 $(call Device/FitImage)
948 $(call Device/UbiFit)
949 DEVICE_VENDOR := Netgear
950 DEVICE_MODEL := WAC510
952 DEVICE_DTS_CONFIG := config@5
955 IMAGES += factory.tar
956 IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
957 DEVICE_PACKAGES := uboot-envtools
959 TARGET_DEVICES += netgear_wac510
961 define Device/openmesh_a42
962 $(call Device/FitImageLzma)
963 DEVICE_VENDOR := OpenMesh
966 DEVICE_DTS_CONFIG := config@om.a42
968 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
970 IMAGES += factory.bin
971 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
972 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
974 TARGET_DEVICES += openmesh_a42
976 define Device/openmesh_a62
977 $(call Device/FitImageLzma)
978 DEVICE_VENDOR := OpenMesh
981 DEVICE_DTS_CONFIG := config@om.a62
983 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
985 IMAGES += factory.bin
986 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
987 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
988 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
990 TARGET_DEVICES += openmesh_a62
992 define Device/p2w_r619ac
993 $(call Device/FitzImage)
994 $(call Device/UbiFit)
996 DEVICE_MODEL := R619AC
998 DEVICE_DTS_CONFIG := config@10
1003 define Device/p2w_r619ac-64m
1004 $(call Device/p2w_r619ac)
1005 DEVICE_VARIANT := 64M NAND
1006 IMAGES += factory.bin
1007 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
1009 TARGET_DEVICES += p2w_r619ac-64m
1011 define Device/p2w_r619ac-128m
1012 $(call Device/p2w_r619ac)
1013 DEVICE_VARIANT := 128M NAND
1015 TARGET_DEVICES += p2w_r619ac-128m
1017 define Device/pakedge_wr-1
1018 $(call Device/FitImageLzma)
1019 DEVICE_VENDOR := Pakedge
1020 DEVICE_MODEL := WR-1
1021 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
1024 IMAGE_SIZE := 31232k
1025 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
1027 TARGET_DEVICES += pakedge_wr-1
1029 define Device/plasmacloud_pa1200
1030 $(call Device/FitImageLzma)
1031 DEVICE_VENDOR := Plasma Cloud
1032 DEVICE_MODEL := PA1200
1034 DEVICE_DTS_CONFIG := config@pc.pa1200
1036 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
1037 IMAGE_SIZE := 15616k
1038 IMAGES += factory.bin
1039 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
1040 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
1042 TARGET_DEVICES += plasmacloud_pa1200
1044 define Device/plasmacloud_pa2200
1045 $(call Device/FitImageLzma)
1046 DEVICE_VENDOR := Plasma Cloud
1047 DEVICE_MODEL := PA2200
1049 DEVICE_DTS_CONFIG := config@pc.pa2200
1051 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
1052 IMAGE_SIZE := 15552k
1053 IMAGES += factory.bin
1054 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
1055 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
1056 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
1058 TARGET_DEVICES += plasmacloud_pa2200
1060 define Device/qxwlan_e2600ac-c1
1061 $(call Device/FitImage)
1062 DEVICE_VENDOR := Qxwlan
1063 DEVICE_MODEL := E2600AC
1064 DEVICE_VARIANT := C1
1065 BOARD_NAME := e2600ac-c1
1067 IMAGE_SIZE := 31232k
1068 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1070 TARGET_DEVICES += qxwlan_e2600ac-c1
1072 define Device/qxwlan_e2600ac-c2
1073 $(call Device/FitImage)
1074 $(call Device/UbiFit)
1075 DEVICE_VENDOR := Qxwlan
1076 DEVICE_MODEL := E2600AC
1077 DEVICE_VARIANT := C2
1083 TARGET_DEVICES += qxwlan_e2600ac-c2
1085 define Device/sony_ncp-hg100-cellular
1086 $(call Device/FitImage)
1087 DEVICE_VENDOR := Sony
1088 DEVICE_MODEL := NCP-HG100/Cellular
1089 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1091 KERNEL_SIZE := 8192k
1093 DEVICE_PACKAGES := e2fsprogs kmod-fs-ext4 uqmi
1095 TARGET_DEVICES += sony_ncp-hg100-cellular
1097 define Device/teltonika_rutx10
1098 $(call Device/FitImage)
1099 $(call Device/UbiFit)
1100 DEVICE_VENDOR := Teltonika
1101 DEVICE_MODEL := RUTX10
1103 DEVICE_DTS_CONFIG := config@5
1107 FILESYSTEMS := squashfs
1108 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1109 DEVICE_PACKAGES := kmod-bluetooth
1112 #TARGET_DEVICES += teltonika_rutx10
1114 define Device/teltonika_rutx50
1115 $(call Device/FitImage)
1116 $(call Device/UbiFit)
1117 DEVICE_VENDOR := Teltonika
1118 DEVICE_MODEL := RUTX50
1120 DEVICE_DTS_CONFIG := config@5
1124 FILESYSTEMS := squashfs
1125 IMAGE/factory.ubi := append-ubi
1126 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1128 TARGET_DEVICES += teltonika_rutx50
1130 define Device/tel_x1pro
1131 $(call Device/FitImage)
1132 DEVICE_VENDOR := Telco
1133 DEVICE_MODEL := X1 Pro
1135 KERNEL_SIZE := 4096k
1136 IMAGE_SIZE := 31232k
1137 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1138 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1142 #TARGET_DEVICES += tel_x1pro
1144 define Device/unielec_u4019-32m
1145 $(call Device/FitImage)
1146 DEVICE_VENDOR := Unielec
1147 DEVICE_MODEL := U4019
1148 DEVICE_VARIANT := 32M
1149 BOARD_NAME := u4019-32m
1151 KERNEL_SIZE := 4096k
1152 IMAGE_SIZE := 31232k
1153 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1157 #TARGET_DEVICES += unielec_u4019-32m
1159 define Device/wallys_dr40x9
1160 $(call Device/FitImage)
1161 $(call Device/UbiFit)
1162 DEVICE_VENDOR := Wallys
1163 DEVICE_MODEL := DR40X9
1165 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
1168 DEVICE_PACKAGES := ipq-wifi-wallys_dr40x9
1170 TARGET_DEVICES += wallys_dr40x9
1172 define Device/yyets_le1
1173 $(call Device/FitzImage)
1174 DEVICE_VENDOR := YYeTs
1177 KERNEL_SIZE := 4096k
1178 IMAGE_SIZE := 31232k
1179 IMAGES += factory.bin
1180 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
1181 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1182 DEVICE_PACKAGES := ipq-wifi-yyets_le1 kmod-usb-ledtrig-usbport
1184 TARGET_DEVICES += yyets_le1
1186 define Device/zte_mf18a
1187 $(call Device/FitImage)
1188 DEVICE_VENDOR := ZTE
1189 DEVICE_MODEL := MF18A
1191 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1195 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
1197 TARGET_DEVICES += zte_mf18a
1199 define Device/zte_mf28x_common
1200 $(call Device/FitzImage)
1201 DEVICE_VENDOR := ZTE
1203 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1207 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1210 define Device/zte_mf282plus
1211 $(call Device/zte_mf28x_common)
1212 DEVICE_MODEL := MF282Plus
1213 # The recovery image is used to return back to stock (an initramfs-based image
1214 # that can be flashed to the device via sysupgrade
1215 # The factory image is used to install from the stock firmware by using an
1216 # exploit for the web interface
1217 IMAGES += factory.bin recovery.bin
1218 IMAGE/factory.bin := append-ubi
1219 IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
1220 DEVICE_PACKAGES := kmod-usb-acm kmod-usb-net-rndis
1222 TARGET_DEVICES += zte_mf282plus
1224 define Device/zte_mf286d
1225 $(call Device/zte_mf28x_common)
1226 DEVICE_MODEL := MF286D
1228 TARGET_DEVICES += zte_mf286d
1230 define Device/zte_mf287_common
1231 $(call Device/zte_mf28x_common)
1233 # The recovery image is used to return back to stock (an initramfs-based image
1234 # that can be flashed to the device via sysupgrade
1235 # The factory image is used to install from the stock firmware by using an
1236 # exploit for the web interface
1237 IMAGES += factory.bin recovery.bin
1238 IMAGE/factory.bin := append-ubi
1239 IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
1242 define Device/zte_mf287plus
1243 $(call Device/zte_mf287_common)
1244 DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
1245 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
1246 DEVICE_MODEL := MF287Plus
1248 TARGET_DEVICES += zte_mf287plus
1250 define Device/zte_mf287
1251 $(call Device/zte_mf287_common)
1252 DEVICE_PACKAGES += ipq-wifi-zte_mf287
1253 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
1254 DEVICE_MODEL := MF287
1256 TARGET_DEVICES += zte_mf287
1258 define Device/zte_mf287pro
1259 $(call Device/zte_mf287_common)
1260 DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
1261 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1262 DEVICE_MODEL := MF287Pro
1264 TARGET_DEVICES += zte_mf287pro
1266 define Device/zte_mf289f
1267 $(call Device/zte_mf28x_common)
1268 DEVICE_MODEL := MF289F
1269 DEVICE_PACKAGES += ath10k-firmware-qca9984-ct
1271 TARGET_DEVICES += zte_mf289f
1273 define Device/zyxel_nbg6617
1274 $(call Device/FitImageLzma)
1275 DEVICE_VENDOR := ZyXEL
1276 DEVICE_MODEL := NBG6617
1278 KERNEL_SIZE := 4096k
1279 ROOTFS_SIZE := 24960k
1280 RAS_BOARD := NBG6617
1281 RAS_ROOTFS_SIZE := 19840k
1282 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1283 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1284 IMAGES += factory.bin
1285 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1286 # at least as large as the one of the initial firmware image (not the current
1287 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1288 # this minimum-size. However, the larger image can be flashed both ways.
1289 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1290 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1291 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1293 TARGET_DEVICES += zyxel_nbg6617
1295 define Device/zyxel_wre6606
1296 $(call Device/FitImage)
1297 DEVICE_VENDOR := ZyXEL
1298 DEVICE_MODEL := WRE6606
1299 DEVICE_DTS_CONFIG := config@4
1301 IMAGE_SIZE := 13184k
1302 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1303 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1306 #TARGET_DEVICES += zyxel_wre6606