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
:= -fit-uImage.itb
8 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
12 define Device
/FitImageLzma
13 KERNEL_SUFFIX
:= -fit-uImage.itb
14 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
18 define Device
/FitzImage
19 KERNEL_SUFFIX
:= -fit-zImage.itb
20 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
26 IMAGES
:= nand-factory.ubi nand-sysupgrade.bin
27 IMAGE
/nand-factory.ubi
:= append-ubi
28 IMAGE
/nand-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 dd if
=$@.new bs
=64 count
=1 >> $(IMAGE_KERNEL
)
49 define Build
/append-rutx-metadata
52 "device_code": [".*"], \
56 "supported_devices":["teltonika,rutx"] \
60 define Build
/mkmylofw_32m
61 $(eval device_id
=$(word 1,$(1)))
62 $(eval revision
=$(word 2,$(1)))
65 size
="$$(stat -c%s $@)" \
66 pad
="$(subst k,* 1024,$(BLOCKSIZE))" \
67 pad
="(pad - (size % pad)) % pad" \
68 newsize
='size + pad'; \
69 $(STAGING_DIR_HOST
)/bin
/mkmylofw \
70 -B WPE72
-i
0x11f6:$(device_id
):0x11f6:$(device_id
) -r
$(revision
) \
71 -s
0x2000000 -p0x180000
:$$newsize:al
:0x80208000:"OpenWrt":$@ \
76 define Build
/wac5xx-netgear-tar
78 mv
$@
$@.tmp
/wac5xx-ubifs-root.img
79 md5sum
$@.tmp
/wac5xx-ubifs-root.img
> $@.tmp
/wac5xx-ubifs-root.md5sum
80 echo
"WAC505 WAC510" > $@.tmp
/metadata.txt
81 echo
"WAC505_V9.9.9.9" > $@.tmp
/version
82 tar -C
$@.tmp
/ -cf
$@ .
86 define Build
/qsdk-ipq-factory-nand-askey
87 $(TOPDIR
)/scripts
/mkits-qsdk-ipq-image.sh
$@.its\
88 askey_kernel
$(IMAGE_KERNEL
) \
89 askey_fs
$(IMAGE_ROOTFS
) \
91 PATH
=$(LINUX_DIR
)/scripts
/dtc
:$(PATH
) mkimage
-f
$@.its
$@.new
95 define Build
/qsdk-ipq-app-gpt
96 cp
$@
$@.tmp
2>/dev
/null || true
97 ptgen
-g
-o
$@.tmp
-a
1 -l
1024 \
98 -t
0x2e -N
0:HLOS
-r
-p
32M \
99 -t
0x83 -N rootfs
-r
-p
128M \
100 -N rootfs_data
-p
512M
106 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
107 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
108 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
114 define Build
/wrgg-image
117 -d
"$(WRGG_DEVNAME)" \
118 -s
"$(WRGG_SIGNATURE)" \
123 define Device
/8dev_habanero-dvk
124 $(call Device
/FitImageLzma
)
125 DEVICE_VENDOR
:= 8devices
126 DEVICE_MODEL
:= Habanero DVK
129 DEVICE_PACKAGES
:= ipq-wifi-8dev_habanero-dvk
130 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
64k | append-rootfs | pad-rootfs | check-size | append-metadata
132 TARGET_DEVICES
+= 8dev_habanero-dvk
134 define Device
/8dev_jalapeno-common
135 $(call Device
/FitImage
)
136 $(call Device
/UbiFit
)
142 define Device
/8dev_jalapeno
143 $(call Device
/8dev_jalapeno-common
)
144 DEVICE_VENDOR
:= 8devices
145 DEVICE_MODEL
:= Jalapeno
147 TARGET_DEVICES
+= 8dev_jalapeno
149 define Device
/alfa-network_ap120c-ac
150 $(call Device
/FitImage
)
151 $(call Device
/UbiFit
)
152 DEVICE_VENDOR
:= ALFA Network
153 DEVICE_MODEL
:= AP120C-AC
155 DEVICE_PACKAGES
:= kmod-usb-acm kmod-tpm-i2c-atmel
159 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
160 IMAGE
/nand-factory.bin
:= append-ubi | qsdk-ipq-factory-nand
162 TARGET_DEVICES
+= alfa-network_ap120c-ac
164 define Device
/aruba_glenmorangie
165 $(call Device
/FitImageLzma
)
166 DEVICE_VENDOR
:= Aruba
168 DEVICE_PACKAGES
:= ipq-wifi-aruba_ap-303
171 define Device
/aruba_ap-303
172 $(call Device
/aruba_glenmorangie
)
173 DEVICE_MODEL
:= AP-303
175 TARGET_DEVICES
+= aruba_ap-303
177 define Device
/aruba_ap-303h
178 $(call Device
/aruba_glenmorangie
)
179 DEVICE_MODEL
:= AP-303H
181 TARGET_DEVICES
+= aruba_ap-303h
183 define Device
/aruba_ap-365
184 $(call Device
/aruba_glenmorangie
)
185 DEVICE_MODEL
:= AP-365
186 DEVICE_PACKAGES
+= kmod-hwmon-ad7418
188 TARGET_DEVICES
+= aruba_ap-365
190 define Device
/asus_map-ac2200
191 $(call Device
/FitImageLzma
)
192 DEVICE_VENDOR
:= ASUS
193 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
195 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
197 TARGET_DEVICES
+= asus_map-ac2200
199 define Device
/asus_rt-ac58u
200 $(call Device
/FitImageLzma
)
201 DEVICE_VENDOR
:= ASUS
202 DEVICE_MODEL
:= RT-AC58U
207 IMAGE_SIZE
:= 20439364
208 FILESYSTEMS
:= squashfs
209 # Someone - in their infinite wisdom - decided to put the firmware
210 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
211 # Since u-boot works with strings we either need another fixup step
212 # to add a version... or we are very careful not to add '\0' into that
213 # string and call it a day.... Yeah, we do the latter!
214 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
215 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
216 kmod-usb-ledtrig-usbport
218 TARGET_DEVICES
+= asus_rt-ac58u
220 define Device
/avm_fritzbox-4040
221 $(call Device
/FitImageLzma
)
223 DEVICE_MODEL
:= FRITZ
!Box
4040
225 BOARD_NAME
:= fritz4040
227 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
228 UBOOT_PARTITION_SIZE
:= 524288
230 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
231 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
232 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
234 TARGET_DEVICES
+= avm_fritzbox-4040
236 define Device
/avm_fritzbox-7530
237 $(call Device
/FitImageLzma
)
239 DEVICE_MODEL
:= FRITZ
!Box
7530
241 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
243 TARGET_DEVICES
+= avm_fritzbox-7530
245 define Device
/avm_fritzrepeater-1200
246 $(call Device
/FitImageLzma
)
248 DEVICE_MODEL
:= FRITZ
!Repeater
1200
250 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
252 TARGET_DEVICES
+= avm_fritzrepeater-1200
254 define Device
/avm_fritzrepeater-3000
255 $(call Device
/FitImageLzma
)
257 DEVICE_MODEL
:= FRITZ
!Repeater
3000
259 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
261 TARGET_DEVICES
+= avm_fritzrepeater-3000
263 define Device
/buffalo_wtr-m2133hp
264 $(call Device
/FitImage
)
265 $(call Device
/UbiFit
)
266 DEVICE_VENDOR
:= Buffalo
267 DEVICE_MODEL
:= WTR-M2133HP
269 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct ipq-wifi-buffalo_wtr-m2133hp
273 TARGET_DEVICES
+= buffalo_wtr-m2133hp
275 define Device
/cellc_rtl30vw
276 KERNEL_SUFFIX
:= -fit-zImage.itb
277 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
278 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
279 KERNEL_NAME
:= zImage
281 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
282 IMAGE
/nand-factory.bin
:= append-rootfshdr | append-ubi | qsdk-ipq-factory-nand-askey
283 IMAGE
/nand-sysupgrade.bin
:= append-rootfshdr | sysupgrade-tar | append-metadata
284 DEVICE_VENDOR
:= Cell C
285 DEVICE_MODEL
:= RTL30VW
287 DEVICE_DTS_CONFIG
:= config@
5
293 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi ipq-wifi-cellc_rtl30vw
295 TARGET_DEVICES
+= cellc_rtl30vw
297 define Device
/cilab_meshpoint-one
298 $(call Device
/8dev_jalapeno-common
)
299 DEVICE_VENDOR
:= Crisis Innovation Lab
300 DEVICE_MODEL
:= MeshPoint.One
301 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
303 TARGET_DEVICES
+= cilab_meshpoint-one
305 define Device
/compex_wpj419
306 $(call Device
/FitImage
)
307 $(call Device
/UbiFit
)
308 DEVICE_VENDOR
:= Compex
309 DEVICE_MODEL
:= WPJ419
311 DEVICE_DTS_CONFIG
:= config@
12
315 FILESYSTEMS
:= squashfs
317 TARGET_DEVICES
+= compex_wpj419
319 define Device
/compex_wpj428
320 $(call Device
/FitImage
)
321 DEVICE_VENDOR
:= Compex
322 DEVICE_MODEL
:= WPJ428
324 DEVICE_DTS_CONFIG
:= config@
4
328 IMAGES
+= cpximg-6a04.bin
329 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
330 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
331 DEVICE_PACKAGES
:= kmod-gpio-beeper
334 TARGET_DEVICES
+= compex_wpj428
336 define Device
/devolo_magic-2-wifi-next
337 $(call Device
/FitImage
)
338 DEVICE_VENDOR
:= devolo
339 DEVICE_MODEL
:= Magic
2 WiFi next
343 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
344 # it will bootm it, just like we want for the initramfs.
345 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
64k |\
346 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
349 IMAGES
:= sysupgrade.bin
350 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
351 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
354 TARGET_DEVICES
+= devolo_magic-2-wifi-next
356 define Device
/dlink_dap-2610
357 $(call Device
/FitImageLzma
)
358 DEVICE_VENDOR
:= D-Link
359 DEVICE_MODEL
:= DAP-2610
361 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
363 WRGG_DEVNAME
:= /dev
/mtdblock
/8
364 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
366 IMAGES
+= factory.bin
367 # Bootloader expects a special 160 byte header which is added by
369 # Factory image size must be larger than 6MB, and size in wrgg header must
370 # match actual factory image size to be flashable from D-Link http server.
371 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
372 # cannot be part of the wrgg image. This is solved in the factory image by
373 # having the rootfs at the end of the image (without pad-rootfs). And in
374 # the sysupgrade image only the kernel is included in the wrgg checksum,
375 # but this is not flashable from the D-link http server.
376 # append-rootfs must start on an erase block boundary.
377 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
378 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
379 DEVICE_PACKAGES
:= ipq-wifi-dlink_dap2610
381 TARGET_DEVICES
+= dlink_dap-2610
383 define Device
/edgecore_ecw5211
384 $(call Device
/FitImage
)
385 $(call Device
/UbiFit
)
386 DEVICE_VENDOR
:= Edgecore
387 DEVICE_MODEL
:= ECW5211
391 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
392 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
394 TARGET_DEVICES
+= edgecore_ecw5211
396 define Device
/edgecore_oap100
397 $(call Device
/FitImage
)
398 $(call Device
/UbiFit
)
399 DEVICE_VENDOR
:= Edgecore
400 DEVICE_MODEL
:= OAP100
404 IMAGES
:= nand-sysupgrade.bin
405 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
406 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
408 TARGET_DEVICES
+= edgecore_oap100
410 define Device
/engenius_eap1300
411 $(call Device
/FitImage
)
412 DEVICE_VENDOR
:= EnGenius
413 DEVICE_MODEL
:= EAP1300
414 DEVICE_DTS_CONFIG
:= config@
4
415 BOARD_NAME
:= eap1300
419 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
421 TARGET_DEVICES
+= engenius_eap1300
423 define Device
/engenius_eap2200
424 $(call Device
/FitImage
)
425 $(call Device
/UbiFit
)
426 DEVICE_VENDOR
:= EnGenius
427 DEVICE_MODEL
:= EAP2200
431 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct ipq-wifi-engenius_eap2200
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
433 TARGET_DEVICES
+= engenius_eap2200
435 define Device
/engenius_emd1
436 $(call Device
/FitImage
)
437 DEVICE_VENDOR
:= EnGenius
439 DEVICE_DTS_CONFIG
:= config@
4
442 IMAGES
+= factory.bin
443 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
444 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
445 DEVICE_PACKAGES
:= ipq-wifi-engenius_emd1
447 TARGET_DEVICES
+= engenius_emd1
449 define Device
/engenius_emr3500
450 $(call Device
/FitImage
)
451 DEVICE_VENDOR
:= EnGenius
452 DEVICE_MODEL
:= EMR3500
453 DEVICE_DTS_CONFIG
:= config@
4
457 IMAGES
+= factory.bin
458 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
459 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
460 DEVICE_PACKAGES
:= ipq-wifi-engenius_emr3500
463 TARGET_DEVICES
+= engenius_emr3500
465 define Device
/engenius_ens620ext
466 $(call Device
/FitImage
)
467 DEVICE_VENDOR
:= EnGenius
468 DEVICE_MODEL
:= ENS620EXT
470 DEVICE_DTS_CONFIG
:= config@
4
473 BOARD_NAME
:= ENS620EXT
476 PRODUCT_ID_NEW
:= 0xA4
483 FILESYSTEMS
:= squashfs
484 IMAGES
+= factory_30.bin factory_35.bin
485 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
486 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
487 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
489 TARGET_DEVICES
+= engenius_ens620ext
491 define Device
/ezviz_cs-w3-wd1200g-eup
492 $(call Device
/FitImage
)
493 DEVICE_VENDOR
:= EZVIZ
494 DEVICE_MODEL
:= CS-W3-WD1200G
495 DEVICE_VARIANT
:= EUP
499 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
501 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
502 ipq-wifi-ezviz_cs-w3-wd1200g-eup
503 DEVICE_COMPAT_VERSION
:= 2.0
504 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
505 Upgrade via sysupgrade mechanism is not possible.
507 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
509 define Device/glinet_gl-ap1300
510 $(call Device/FitImage)
511 $(call Device/UbiFit)
512 DEVICE_VENDOR := GL.iNet
513 DEVICE_MODEL := GL-AP1300
515 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
518 IMAGE_SIZE := 131072k
520 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300
522 TARGET_DEVICES += glinet_gl-ap1300
524 define Device/glinet_gl-b1300
525 $(call Device/FitzImage)
526 DEVICE_VENDOR := GL.iNet
527 DEVICE_MODEL := GL-B1300
528 BOARD_NAME := gl-b1300
532 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
534 TARGET_DEVICES += glinet_gl-b1300
536 define Device/glinet_gl-b2200
537 $(call Device/FitzImage)
538 DEVICE_VENDOR := GL.iNet
539 DEVICE_MODEL := GL-B2200
541 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
542 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
543 IMAGES := emmc.img.gz sysupgrade.bin
544 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
545 pad-to 1024k | append-kernel |\
546 pad-to 33792k | append-rootfs |\
547 append-metadata | gzip
548 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
549 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-glinet_gl-b2200 \
550 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
552 TARGET_DEVICES += glinet_gl-b2200
554 define Device/glinet_gl-s1300
555 $(call Device/FitzImage)
556 DEVICE_VENDOR := GL.iNet
557 DEVICE_MODEL := GL-S1300
561 IMAGES := sysupgrade.bin
562 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
563 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
565 TARGET_DEVICES += glinet_gl-s1300
567 define Device/linksys_ea6350v3
568 # The Linksys EA6350v3 has a uboot bootloader that does not
569 # support either booting lzma kernel images nor booting UBI
570 # partitions. This uboot, however, supports raw kernel images and
573 # As for the time of writing this, the device will boot the kernel
574 # from a fixed address with a fixed length of 3MiB. Also, the
575 # device has a hard-coded kernel command line that requieres the
576 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
577 # Oh... and the kernel partition overlaps with the rootfs
578 # partition (the same for alt_kernel and alt_rootfs).
580 # If you are planing re-partitioning the device, you may want to
581 # keep those details in mind:
582 # 1. The kernel adresses you should honor are 0x00000000 and
583 # 0x02800000 respectively.
584 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
585 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
586 # 4. The kernel command line from uboot is harcoded to boot with
587 # rootfs either in mtd11 or mtd13.
588 $(call Device/FitzImage)
589 DEVICE_VENDOR := Linksys
590 DEVICE_MODEL := EA6350
598 IMAGES += factory.bin
599 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
601 TARGET_DEVICES += linksys_ea6350v3
603 define Device/linksys_ea8300
604 $(call Device/FitzImage)
605 DEVICE_VENDOR := Linksys
606 DEVICE_MODEL := EA8300
612 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
613 IMAGES += factory.bin
614 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
615 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
617 TARGET_DEVICES += linksys_ea8300
619 define Device/linksys_mr8300
620 $(call Device/FitzImage)
621 DEVICE_VENDOR := Linksys
622 DEVICE_MODEL := MR8300
628 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
629 IMAGES += factory.bin
630 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
631 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_mr8300-v0 kmod-usb-ledtrig-usbport
633 TARGET_DEVICES += linksys_mr8300
635 define Device/luma_wrtq-329acn
636 $(call Device/FitImage)
637 DEVICE_VENDOR := Luma Home
638 DEVICE_MODEL := WRTQ-329ACN
640 DEVICE_PACKAGES := ipq-wifi-luma_wrtq-329acn kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
645 TARGET_DEVICES += luma_wrtq-329acn
647 define Device/meraki_mr33
648 $(call Device/FitImage)
649 DEVICE_VENDOR := Cisco Meraki
654 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
656 TARGET_DEVICES += meraki_mr33
658 define Device/mobipromo_cm520-79f
659 $(call Device/FitzImage)
660 $(call Device/UbiFit)
661 DEVICE_VENDOR := MobiPromo
662 DEVICE_MODEL := CM520-79F
666 DEVICE_PACKAGES := ipq-wifi-mobipromo_cm520-79f kmod-usb-ledtrig-usbport
668 TARGET_DEVICES += mobipromo_cm520-79f
670 define Device/netgear_ex61x0v2
671 $(call Device/DniImage)
672 DEVICE_VENDOR := NETGEAR
673 DEVICE_DTS_CONFIG := config@4
674 NETGEAR_BOARD_ID := EX6150v2series
675 NETGEAR_HW_ID := 29765285+16+0+128+2x2
680 define Device/netgear_ex6100v2
681 $(call Device/netgear_ex61x0v2)
682 DEVICE_MODEL := EX6100
685 TARGET_DEVICES += netgear_ex6100v2
687 define Device/netgear_ex6150v2
688 $(call Device/netgear_ex61x0v2)
689 DEVICE_MODEL := EX6150
692 TARGET_DEVICES += netgear_ex6150v2
694 define Device/netgear_orbi
695 $(call Device/DniImage)
697 DEVICE_VENDOR := NETGEAR
698 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
699 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
700 append-rootfs | pad-rootfs | netgear-dni
701 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
702 sysupgrade-tar rootfs=$$$$@ | append-metadata
703 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
706 define Device/netgear_rbx50
707 $(call Device/netgear_orbi)
708 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
709 KERNEL_SIZE := 3932160
710 ROOTFS_SIZE := 32243712
711 IMAGE_SIZE := 36175872
714 define Device/netgear_rbr50
715 $(call Device/netgear_rbx50)
716 DEVICE_MODEL := RBR50
718 NETGEAR_BOARD_ID := RBR50
720 TARGET_DEVICES += netgear_rbr50
722 define Device/netgear_rbs50
723 $(call Device/netgear_rbx50)
724 DEVICE_MODEL := RBS50
726 NETGEAR_BOARD_ID := RBS50
728 TARGET_DEVICES += netgear_rbs50
730 define Device/netgear_srx60
731 $(call Device/netgear_orbi)
732 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
733 KERNEL_SIZE := 3932160
734 ROOTFS_SIZE := 32243712
735 IMAGE_SIZE := 36175872
738 define Device/netgear_srr60
739 $(call Device/netgear_srx60)
740 DEVICE_MODEL := SRR60
741 NETGEAR_BOARD_ID := SRR60
743 TARGET_DEVICES += netgear_srr60
745 define Device/netgear_srs60
746 $(call Device/netgear_srx60)
747 DEVICE_MODEL := SRS60
748 NETGEAR_BOARD_ID := SRS60
750 TARGET_DEVICES += netgear_srs60
752 define Device/netgear_wac510
753 $(call Device/FitImage)
754 $(call Device/UbiFit)
755 DEVICE_VENDOR := Netgear
756 DEVICE_MODEL := WAC510
758 DEVICE_DTS_CONFIG := config@5
761 IMAGES += nand-factory.tar
762 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
763 DEVICE_PACKAGES := uboot-envtools
765 TARGET_DEVICES += netgear_wac510
767 define Device/openmesh_a42
768 $(call Device/FitImageLzma)
769 DEVICE_VENDOR := OpenMesh
772 DEVICE_DTS_CONFIG := config@om.a42
774 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
776 IMAGES += factory.bin
777 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
778 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
780 TARGET_DEVICES += openmesh_a42
782 define Device/openmesh_a62
783 $(call Device/FitImageLzma)
784 DEVICE_VENDOR := OpenMesh
787 DEVICE_DTS_CONFIG := config@om.a62
789 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
791 IMAGES += factory.bin
792 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
793 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
794 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
796 TARGET_DEVICES += openmesh_a62
798 define Device/p2w_r619ac
799 $(call Device/FitzImage)
800 $(call Device/UbiFit)
802 DEVICE_MODEL := R619AC
804 DEVICE_DTS_CONFIG := config@10
807 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
810 define Device/p2w_r619ac-64m
811 $(call Device/p2w_r619ac)
812 DEVICE_VARIANT := 64M NAND
813 IMAGES += nand-factory.bin
814 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
816 TARGET_DEVICES += p2w_r619ac-64m
818 define Device/p2w_r619ac-128m
819 $(call Device/p2w_r619ac)
820 DEVICE_VARIANT := 128M NAND
822 TARGET_DEVICES += p2w_r619ac-128m
824 define Device/plasmacloud_pa1200
825 $(call Device/FitImageLzma)
826 DEVICE_VENDOR := Plasma Cloud
827 DEVICE_MODEL := PA1200
829 DEVICE_DTS_CONFIG := config@pc.pa1200
831 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
833 IMAGES += factory.bin
834 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
835 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
836 DEVICE_PACKAGES := ipq-wifi-plasmacloud_pa1200
838 TARGET_DEVICES += plasmacloud_pa1200
840 define Device/plasmacloud_pa2200
841 $(call Device/FitImageLzma)
842 DEVICE_VENDOR := Plasma Cloud
843 DEVICE_MODEL := PA2200
845 DEVICE_DTS_CONFIG := config@pc.pa2200
847 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
849 IMAGES += factory.bin
850 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
851 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
852 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-plasmacloud_pa2200
854 TARGET_DEVICES += plasmacloud_pa2200
856 define Device/qcom_ap-dk01.1-c1
857 DEVICE_VENDOR := Qualcomm Atheros
858 DEVICE_MODEL := AP-DK01.1
860 BOARD_NAME := ap-dk01.1-c1
862 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
866 $(call Device/FitImage)
867 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
870 TARGET_DEVICES += qcom_ap-dk01.1-c1
872 define Device/qcom_ap-dk04.1-c1
873 $(call Device/FitImage)
874 $(call Device/UbiFit)
875 DEVICE_VENDOR := Qualcomm Atheros
876 DEVICE_MODEL := AP-DK04.1
879 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
884 BOARD_NAME := ap-dk04.1-c1
887 TARGET_DEVICES += qcom_ap-dk04.1-c1
889 define Device/qxwlan_e2600ac-c1
890 $(call Device/FitImage)
891 DEVICE_VENDOR := Qxwlan
892 DEVICE_MODEL := E2600AC
894 BOARD_NAME := e2600ac-c1
898 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
899 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
902 TARGET_DEVICES += qxwlan_e2600ac-c1
904 define Device/qxwlan_e2600ac-c2
905 $(call Device/FitImage)
906 $(call Device/UbiFit)
907 DEVICE_VENDOR := Qxwlan
908 DEVICE_MODEL := E2600AC
914 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
916 TARGET_DEVICES += qxwlan_e2600ac-c2
918 define Device/teltonika_rutx10
919 $(call Device/FitImage)
920 $(call Device/UbiFit)
921 DEVICE_VENDOR := Teltonika
922 DEVICE_MODEL := RUTX10
924 DEVICE_DTS_CONFIG := config@5
928 FILESYSTEMS := squashfs
929 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
930 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
932 TARGET_DEVICES += teltonika_rutx10
934 define Device/unielec_u4019-32m
935 $(call Device/FitImage)
936 DEVICE_VENDOR := Unielec
937 DEVICE_MODEL := U4019
938 DEVICE_VARIANT := 32M
939 BOARD_NAME := u4019-32m
943 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
946 TARGET_DEVICES += unielec_u4019-32m
948 define Device/zyxel_nbg6617
949 $(call Device/FitImageLzma)
950 DEVICE_VENDOR := ZyXEL
951 DEVICE_MODEL := NBG6617
954 ROOTFS_SIZE := 24960k
956 RAS_ROOTFS_SIZE := 19840k
957 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
958 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
959 IMAGES += factory.bin
960 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
961 # at least as large as the one of the initial firmware image (not the current
962 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
963 # this minimum-size. However, the larger image can be flashed both ways.
964 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
965 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
966 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
968 TARGET_DEVICES += zyxel_nbg6617
970 define Device/zyxel_wre6606
971 $(call Device/FitImage)
972 DEVICE_VENDOR := ZyXEL
973 DEVICE_MODEL := WRE6606
974 DEVICE_DTS_CONFIG := config@4
977 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
978 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
980 TARGET_DEVICES += zyxel_wre6606