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
/copy-file
64 define Build
/mkmylofw_32m
65 $(eval device_id
=$(word 1,$(1)))
66 $(eval revision
=$(word 2,$(1)))
69 size
="$$(stat -c%s $@)" \
70 pad
="$(subst k,* 1024,$(BLOCKSIZE))" \
71 pad
="(pad - (size % pad)) % pad" \
72 newsize
='size + pad'; \
73 $(STAGING_DIR_HOST
)/bin
/mkmylofw \
74 -B WPE72
-i
0x11f6:$(device_id
):0x11f6:$(device_id
) -r
$(revision
) \
75 -s
0x2000000 -p0x180000
:$$newsize:al
:0x80208000:"OpenWrt":$@ \
80 define Build
/wac5xx-netgear-tar
82 mv
$@
$@.tmp
/wac5xx-ubifs-root.img
83 md5sum
$@.tmp
/wac5xx-ubifs-root.img
> $@.tmp
/wac5xx-ubifs-root.md5sum
84 echo
"WAC505 WAC510" > $@.tmp
/metadata.txt
85 echo
"WAC505_V9.9.9.9" > $@.tmp
/version
86 tar -C
$@.tmp
/ -cf
$@ .
90 define Build
/qsdk-ipq-factory-nand-askey
91 $(TOPDIR
)/scripts
/mkits-qsdk-ipq-image.sh
$@.its\
92 askey_kernel
$(IMAGE_KERNEL
) \
93 askey_fs
$(IMAGE_ROOTFS
) \
95 PATH
=$(LINUX_DIR
)/scripts
/dtc
:$(PATH
) mkimage
-f
$@.its
$@.new
99 define Build
/qsdk-ipq-app-gpt
100 cp
$@
$@.tmp
2>/dev
/null || true
101 ptgen
-g
-o
$@.tmp
-a
1 -l
1024 \
102 -t
0x2e -N
0:HLOS
-r
-p
32M \
103 -t
0x83 -N rootfs
-r
-p
128M \
104 -N rootfs_data
-p
512M
110 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
111 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
112 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
118 define Build
/wrgg-image
121 -d
"$(WRGG_DEVNAME)" \
122 -s
"$(WRGG_SIGNATURE)" \
127 define Device
/8dev_habanero-dvk
128 $(call Device
/FitImageLzma
)
129 DEVICE_VENDOR
:= 8devices
130 DEVICE_MODEL
:= Habanero DVK
133 DEVICE_PACKAGES
:= ipq-wifi-8dev_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
:= nand-factory.bin nand-sysupgrade.bin
164 IMAGE
/nand-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
172 DEVICE_PACKAGES
:= ipq-wifi-aruba_ap-303
175 define Device
/aruba_ap-303
176 $(call Device
/aruba_glenmorangie
)
177 DEVICE_MODEL
:= AP-303
179 TARGET_DEVICES
+= aruba_ap-303
181 define Device
/aruba_ap-303h
182 $(call Device
/aruba_glenmorangie
)
183 DEVICE_MODEL
:= AP-303H
185 TARGET_DEVICES
+= aruba_ap-303h
187 define Device
/aruba_ap-365
188 $(call Device
/aruba_glenmorangie
)
189 DEVICE_MODEL
:= AP-365
190 DEVICE_PACKAGES
+= kmod-hwmon-ad7418
192 TARGET_DEVICES
+= aruba_ap-365
194 define Device
/asus_map-ac2200
195 $(call Device
/FitImageLzma
)
196 DEVICE_VENDOR
:= ASUS
197 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
199 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
201 TARGET_DEVICES
+= asus_map-ac2200
203 # WARNING: this is an initramfs image that gets you half of the way there
204 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
205 # to get a "trx" you can flash via web UI for ac42u/ac58u:
206 # - change call Device/FitImageLzma to Device/FitImage
207 # - add the following below UIMAGE_NAME
208 # UIMAGE_MAGIC := 0x27051956
209 # IMAGES += factory.trx
210 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
211 define Device
/asus_rt-ac42u
212 $(call Device
/FitImageLzma
)
213 DEVICE_VENDOR
:= ASUS
214 DEVICE_MODEL
:= RT-AC42U
215 DEVICE_ALT0_VENDOR
:= ASUS
216 DEVICE_ALT0_MODEL
:= RT-ACRH17
217 DEVICE_ALT1_VENDOR
:= ASUS
218 DEVICE_ALT1_MODEL
:= RT-AC2200
222 IMAGE_SIZE
:= 20439364
223 FILESYSTEMS
:= squashfs
224 # RT-AC82U is nowhere to be found online
225 # Rather, this device is a/k/a RT-AC42U
226 # But we'll go with what the vendor firmware has...
227 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC82U')
228 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct ipq-wifi-asus_rt-ac42u kmod-usb-ledtrig-usbport
230 TARGET_DEVICES
+= asus_rt-ac42u
232 define Device
/asus_rt-ac58u
233 $(call Device
/FitImageLzma
)
234 DEVICE_VENDOR
:= ASUS
235 DEVICE_MODEL
:= RT-AC58U
236 DEVICE_ALT0_VENDOR
:= ASUS
237 DEVICE_ALT0_MODEL
:= RT-ACRH13
241 IMAGE_SIZE
:= 20439364
242 FILESYSTEMS
:= squashfs
243 # Someone - in their infinite wisdom - decided to put the firmware
244 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
245 # Since u-boot works with strings we either need another fixup step
246 # to add a version... or we are very careful not to add '\0' into that
247 # string and call it a day.... Yeah, we do the latter!
248 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
249 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
250 kmod-usb-ledtrig-usbport
252 TARGET_DEVICES
+= asus_rt-ac58u
254 define Device
/avm_fritzbox-4040
255 $(call Device
/FitImageLzma
)
257 DEVICE_MODEL
:= FRITZ
!Box
4040
259 BOARD_NAME
:= fritz4040
261 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
262 UBOOT_PARTITION_SIZE
:= 524288
264 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
265 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
266 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
268 TARGET_DEVICES
+= avm_fritzbox-4040
270 define Device
/avm_fritzbox-7530
271 $(call Device
/FitImageLzma
)
273 DEVICE_MODEL
:= FRITZ
!Box
7530
274 DEVICE_ALT0_VENDOR
:= AVM
275 DEVICE_ALT0_MODEL
:= FRITZ
!Box
7520
277 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
279 TARGET_DEVICES
+= avm_fritzbox-7530
281 define Device
/avm_fritzrepeater-1200
282 $(call Device
/FitImageLzma
)
284 DEVICE_MODEL
:= FRITZ
!Repeater
1200
286 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
288 TARGET_DEVICES
+= avm_fritzrepeater-1200
290 define Device
/avm_fritzrepeater-3000
291 $(call Device
/FitImageLzma
)
293 DEVICE_MODEL
:= FRITZ
!Repeater
3000
295 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
297 TARGET_DEVICES
+= avm_fritzrepeater-3000
299 define Device
/buffalo_wtr-m2133hp
300 $(call Device
/FitImage
)
301 $(call Device
/UbiFit
)
302 DEVICE_VENDOR
:= Buffalo
303 DEVICE_MODEL
:= WTR-M2133HP
305 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct ipq-wifi-buffalo_wtr-m2133hp
309 TARGET_DEVICES
+= buffalo_wtr-m2133hp
311 define Device
/cellc_rtl30vw
312 KERNEL_SUFFIX
:= -fit-zImage.itb
313 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
314 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
315 KERNEL_NAME
:= zImage
317 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
318 IMAGE
/nand-factory.bin
:= append-rootfshdr | append-ubi | qsdk-ipq-factory-nand-askey
319 IMAGE
/nand-sysupgrade.bin
:= append-rootfshdr | sysupgrade-tar | append-metadata
320 DEVICE_VENDOR
:= Cell C
321 DEVICE_MODEL
:= RTL30VW
323 DEVICE_DTS_CONFIG
:= config@
5
329 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi ipq-wifi-cellc_rtl30vw
331 TARGET_DEVICES
+= cellc_rtl30vw
333 define Device
/cilab_meshpoint-one
334 $(call Device
/8dev_jalapeno-common
)
335 DEVICE_VENDOR
:= Crisis Innovation Lab
336 DEVICE_MODEL
:= MeshPoint.One
337 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
353 TARGET_DEVICES
+= compex_wpj419
355 define Device
/compex_wpj428
356 $(call Device
/FitImage
)
357 DEVICE_VENDOR
:= Compex
358 DEVICE_MODEL
:= WPJ428
360 DEVICE_DTS_CONFIG
:= config@
4
364 IMAGES
+= cpximg-6a04.bin
365 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
366 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
367 DEVICE_PACKAGES
:= kmod-gpio-beeper
370 TARGET_DEVICES
+= compex_wpj428
372 define Device
/devolo_magic-2-wifi-next
373 $(call Device
/FitImage
)
374 DEVICE_VENDOR
:= devolo
375 DEVICE_MODEL
:= Magic
2 WiFi next
379 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
380 # it will bootm it, just like we want for the initramfs.
381 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
64k |\
382 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
385 IMAGES
:= sysupgrade.bin
386 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
387 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
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
415 DEVICE_PACKAGES
:= ipq-wifi-dlink_dap2610
417 TARGET_DEVICES
+= dlink_dap-2610
419 define Device
/edgecore_ecw5211
420 $(call Device
/FitImage
)
421 $(call Device
/UbiFit
)
422 DEVICE_VENDOR
:= Edgecore
423 DEVICE_MODEL
:= ECW5211
427 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
428 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
430 TARGET_DEVICES
+= edgecore_ecw5211
432 define Device
/edgecore_oap100
433 $(call Device
/FitImage
)
434 $(call Device
/UbiFit
)
435 DEVICE_VENDOR
:= Edgecore
436 DEVICE_MODEL
:= OAP100
440 IMAGES
:= nand-sysupgrade.bin
441 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
442 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 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 ipq-wifi-engenius_eap2200
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
469 TARGET_DEVICES
+= engenius_eap2200
471 define Device
/engenius_emd1
472 $(call Device
/FitImage
)
473 DEVICE_VENDOR
:= EnGenius
475 DEVICE_DTS_CONFIG
:= config@
4
478 IMAGES
+= factory.bin
479 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
480 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
481 DEVICE_PACKAGES
:= ipq-wifi-engenius_emd1
483 TARGET_DEVICES
+= engenius_emd1
485 define Device
/engenius_emr3500
486 $(call Device
/FitImage
)
487 DEVICE_VENDOR
:= EnGenius
488 DEVICE_MODEL
:= EMR3500
489 DEVICE_DTS_CONFIG
:= config@
4
493 IMAGES
+= factory.bin
494 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
495 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
496 DEVICE_PACKAGES
:= ipq-wifi-engenius_emr3500
499 TARGET_DEVICES
+= engenius_emr3500
501 define Device
/engenius_ens620ext
502 $(call Device
/FitImage
)
503 DEVICE_VENDOR
:= EnGenius
504 DEVICE_MODEL
:= ENS620EXT
506 DEVICE_DTS_CONFIG
:= config@
4
509 BOARD_NAME
:= ENS620EXT
512 PRODUCT_ID_NEW
:= 0xA4
519 FILESYSTEMS
:= squashfs
520 IMAGES
+= factory_30.bin factory_35.bin
521 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
522 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
523 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
525 TARGET_DEVICES
+= engenius_ens620ext
527 define Device
/ezviz_cs-w3-wd1200g-eup
528 $(call Device
/FitImage
)
529 DEVICE_VENDOR
:= EZVIZ
530 DEVICE_MODEL
:= CS-W3-WD1200G
531 DEVICE_VARIANT
:= EUP
535 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
537 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
538 ipq-wifi-ezviz_cs-w3-wd1200g-eup
539 DEVICE_COMPAT_VERSION
:= 2.0
540 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
541 Upgrade via sysupgrade mechanism is not possible.
543 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
545 define Device/glinet_gl-ap1300
546 $(call Device/FitImage)
547 $(call Device/UbiFit)
548 DEVICE_VENDOR := GL.iNet
549 DEVICE_MODEL := GL-AP1300
551 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
554 IMAGE_SIZE := 131072k
556 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300
558 TARGET_DEVICES += glinet_gl-ap1300
560 define Device/glinet_gl-b1300
561 $(call Device/FitzImage)
562 DEVICE_VENDOR := GL.iNet
563 DEVICE_MODEL := GL-B1300
564 BOARD_NAME := gl-b1300
568 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
570 TARGET_DEVICES += glinet_gl-b1300
572 define Device/glinet_gl-b2200
573 $(call Device/FitzImage)
574 DEVICE_VENDOR := GL.iNet
575 DEVICE_MODEL := GL-B2200
577 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
578 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
579 IMAGES := emmc.img.gz sysupgrade.bin
580 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
581 pad-to 1024k | append-kernel |\
582 pad-to 33792k | append-rootfs |\
583 append-metadata | gzip
584 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
585 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-glinet_gl-b2200 \
586 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
588 TARGET_DEVICES += glinet_gl-b2200
590 define Device/glinet_gl-s1300
591 $(call Device/FitzImage)
592 DEVICE_VENDOR := GL.iNet
593 DEVICE_MODEL := GL-S1300
597 IMAGES := sysupgrade.bin
598 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
599 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
601 TARGET_DEVICES += glinet_gl-s1300
603 define Device/linksys_ea6350v3
604 # The Linksys EA6350v3 has a uboot bootloader that does not
605 # support either booting lzma kernel images nor booting UBI
606 # partitions. This uboot, however, supports raw kernel images and
609 # As for the time of writing this, the device will boot the kernel
610 # from a fixed address with a fixed length of 3MiB. Also, the
611 # device has a hard-coded kernel command line that requieres the
612 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
613 # Oh... and the kernel partition overlaps with the rootfs
614 # partition (the same for alt_kernel and alt_rootfs).
616 # If you are planing re-partitioning the device, you may want to
617 # keep those details in mind:
618 # 1. The kernel adresses you should honor are 0x00000000 and
619 # 0x02800000 respectively.
620 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
621 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
622 # 4. The kernel command line from uboot is harcoded to boot with
623 # rootfs either in mtd11 or mtd13.
624 $(call Device/FitzImage)
625 DEVICE_VENDOR := Linksys
626 DEVICE_MODEL := EA6350
634 IMAGES += factory.bin
635 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
637 TARGET_DEVICES += linksys_ea6350v3
639 define Device/linksys_ea8300
640 $(call Device/FitzImage)
641 DEVICE_VENDOR := Linksys
642 DEVICE_MODEL := EA8300
648 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
649 IMAGES += factory.bin
650 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
651 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
653 TARGET_DEVICES += linksys_ea8300
655 define Device/linksys_mr8300
656 $(call Device/FitzImage)
657 DEVICE_VENDOR := Linksys
658 DEVICE_MODEL := MR8300
664 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
665 IMAGES += factory.bin
666 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
667 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_mr8300-v0 kmod-usb-ledtrig-usbport
669 TARGET_DEVICES += linksys_mr8300
671 define Device/luma_wrtq-329acn
672 $(call Device/FitImage)
673 DEVICE_VENDOR := Luma Home
674 DEVICE_MODEL := WRTQ-329ACN
676 DEVICE_PACKAGES := ipq-wifi-luma_wrtq-329acn kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
681 TARGET_DEVICES += luma_wrtq-329acn
683 define Device/meraki_mr33
684 $(call Device/FitImage)
685 DEVICE_VENDOR := Cisco Meraki
690 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
692 TARGET_DEVICES += meraki_mr33
694 define Device/mobipromo_cm520-79f
695 $(call Device/FitzImage)
696 $(call Device/UbiFit)
697 DEVICE_VENDOR := MobiPromo
698 DEVICE_MODEL := CM520-79F
702 DEVICE_PACKAGES := ipq-wifi-mobipromo_cm520-79f kmod-usb-ledtrig-usbport
704 TARGET_DEVICES += mobipromo_cm520-79f
706 define Device/netgear_ex61x0v2
707 $(call Device/DniImage)
708 DEVICE_VENDOR := NETGEAR
709 DEVICE_DTS_CONFIG := config@4
710 NETGEAR_BOARD_ID := EX6150v2series
711 NETGEAR_HW_ID := 29765285+16+0+128+2x2
716 define Device/netgear_ex6100v2
717 $(call Device/netgear_ex61x0v2)
718 DEVICE_MODEL := EX6100
721 TARGET_DEVICES += netgear_ex6100v2
723 define Device/netgear_ex6150v2
724 $(call Device/netgear_ex61x0v2)
725 DEVICE_MODEL := EX6150
728 TARGET_DEVICES += netgear_ex6150v2
730 define Device/netgear_orbi
731 $(call Device/DniImage)
733 DEVICE_VENDOR := NETGEAR
734 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
735 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
736 append-rootfs | pad-rootfs | netgear-dni
737 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
738 sysupgrade-tar rootfs=$$$$@ | append-metadata
739 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
742 define Device/netgear_rbx50
743 $(call Device/netgear_orbi)
744 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
745 KERNEL_SIZE := 3932160
746 ROOTFS_SIZE := 32243712
747 IMAGE_SIZE := 36175872
750 define Device/netgear_rbr50
751 $(call Device/netgear_rbx50)
752 DEVICE_MODEL := RBR50
754 NETGEAR_BOARD_ID := RBR50
756 TARGET_DEVICES += netgear_rbr50
758 define Device/netgear_rbs50
759 $(call Device/netgear_rbx50)
760 DEVICE_MODEL := RBS50
762 NETGEAR_BOARD_ID := RBS50
764 TARGET_DEVICES += netgear_rbs50
766 define Device/netgear_srx60
767 $(call Device/netgear_orbi)
768 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
769 KERNEL_SIZE := 3932160
770 ROOTFS_SIZE := 32243712
771 IMAGE_SIZE := 36175872
774 define Device/netgear_srr60
775 $(call Device/netgear_srx60)
776 DEVICE_MODEL := SRR60
777 NETGEAR_BOARD_ID := SRR60
779 TARGET_DEVICES += netgear_srr60
781 define Device/netgear_srs60
782 $(call Device/netgear_srx60)
783 DEVICE_MODEL := SRS60
784 NETGEAR_BOARD_ID := SRS60
786 TARGET_DEVICES += netgear_srs60
788 define Device/netgear_wac510
789 $(call Device/FitImage)
790 $(call Device/UbiFit)
791 DEVICE_VENDOR := Netgear
792 DEVICE_MODEL := WAC510
794 DEVICE_DTS_CONFIG := config@5
797 IMAGES += nand-factory.tar
798 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
799 DEVICE_PACKAGES := uboot-envtools
801 TARGET_DEVICES += netgear_wac510
803 define Device/openmesh_a42
804 $(call Device/FitImageLzma)
805 DEVICE_VENDOR := OpenMesh
808 DEVICE_DTS_CONFIG := config@om.a42
810 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
812 IMAGES += factory.bin
813 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
814 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
816 TARGET_DEVICES += openmesh_a42
818 define Device/openmesh_a62
819 $(call Device/FitImageLzma)
820 DEVICE_VENDOR := OpenMesh
823 DEVICE_DTS_CONFIG := config@om.a62
825 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
827 IMAGES += factory.bin
828 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
829 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
830 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
832 TARGET_DEVICES += openmesh_a62
834 define Device/p2w_r619ac
835 $(call Device/FitzImage)
836 $(call Device/UbiFit)
838 DEVICE_MODEL := R619AC
840 DEVICE_DTS_CONFIG := config@10
843 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
846 define Device/p2w_r619ac-64m
847 $(call Device/p2w_r619ac)
848 DEVICE_VARIANT := 64M NAND
849 IMAGES += nand-factory.bin
850 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
852 TARGET_DEVICES += p2w_r619ac-64m
854 define Device/p2w_r619ac-128m
855 $(call Device/p2w_r619ac)
856 DEVICE_VARIANT := 128M NAND
858 TARGET_DEVICES += p2w_r619ac-128m
860 define Device/plasmacloud_pa1200
861 $(call Device/FitImageLzma)
862 DEVICE_VENDOR := Plasma Cloud
863 DEVICE_MODEL := PA1200
865 DEVICE_DTS_CONFIG := config@pc.pa1200
867 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
869 IMAGES += factory.bin
870 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
871 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
872 DEVICE_PACKAGES := ipq-wifi-plasmacloud_pa1200
874 TARGET_DEVICES += plasmacloud_pa1200
876 define Device/plasmacloud_pa2200
877 $(call Device/FitImageLzma)
878 DEVICE_VENDOR := Plasma Cloud
879 DEVICE_MODEL := PA2200
881 DEVICE_DTS_CONFIG := config@pc.pa2200
883 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
885 IMAGES += factory.bin
886 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
887 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
888 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-plasmacloud_pa2200
890 TARGET_DEVICES += plasmacloud_pa2200
892 define Device/qcom_ap-dk01.1-c1
893 DEVICE_VENDOR := Qualcomm Atheros
894 DEVICE_MODEL := AP-DK01.1
896 BOARD_NAME := ap-dk01.1-c1
898 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
902 $(call Device/FitImage)
903 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
906 TARGET_DEVICES += qcom_ap-dk01.1-c1
908 define Device/qcom_ap-dk04.1-c1
909 $(call Device/FitImage)
910 $(call Device/UbiFit)
911 DEVICE_VENDOR := Qualcomm Atheros
912 DEVICE_MODEL := AP-DK04.1
915 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
920 BOARD_NAME := ap-dk04.1-c1
923 TARGET_DEVICES += qcom_ap-dk04.1-c1
925 define Device/qxwlan_e2600ac-c1
926 $(call Device/FitImage)
927 DEVICE_VENDOR := Qxwlan
928 DEVICE_MODEL := E2600AC
930 BOARD_NAME := e2600ac-c1
934 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
935 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
938 TARGET_DEVICES += qxwlan_e2600ac-c1
940 define Device/qxwlan_e2600ac-c2
941 $(call Device/FitImage)
942 $(call Device/UbiFit)
943 DEVICE_VENDOR := Qxwlan
944 DEVICE_MODEL := E2600AC
950 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
952 TARGET_DEVICES += qxwlan_e2600ac-c2
954 define Device/teltonika_rutx10
955 $(call Device/FitImage)
956 $(call Device/UbiFit)
957 DEVICE_VENDOR := Teltonika
958 DEVICE_MODEL := RUTX10
960 DEVICE_DTS_CONFIG := config@5
964 FILESYSTEMS := squashfs
965 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
966 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
968 TARGET_DEVICES += teltonika_rutx10
970 define Device/tel_x1pro
971 $(call Device/FitImage)
972 DEVICE_VENDOR := Telco
973 DEVICE_MODEL := X1 Pro
977 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
978 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
981 TARGET_DEVICES += tel_x1pro
983 define Device/unielec_u4019-32m
984 $(call Device/FitImage)
985 DEVICE_VENDOR := Unielec
986 DEVICE_MODEL := U4019
987 DEVICE_VARIANT := 32M
988 BOARD_NAME := u4019-32m
992 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
995 TARGET_DEVICES += unielec_u4019-32m
997 define Device/zte_mf286d
998 $(call Device/FitzImage)
1000 DEVICE_MODEL := MF286D
1002 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1006 DEVICE_PACKAGES := ipq-wifi-zte_mf286d kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1008 TARGET_DEVICES += zte_mf286d
1010 define Device/zyxel_nbg6617
1011 $(call Device/FitImageLzma)
1012 DEVICE_VENDOR := ZyXEL
1013 DEVICE_MODEL := NBG6617
1015 KERNEL_SIZE := 4096k
1016 ROOTFS_SIZE := 24960k
1017 RAS_BOARD := NBG6617
1018 RAS_ROOTFS_SIZE := 19840k
1019 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1020 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1021 IMAGES += factory.bin
1022 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1023 # at least as large as the one of the initial firmware image (not the current
1024 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1025 # this minimum-size. However, the larger image can be flashed both ways.
1026 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1027 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1028 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1030 TARGET_DEVICES += zyxel_nbg6617
1032 define Device/zyxel_wre6606
1033 $(call Device/FitImage)
1034 DEVICE_VENDOR := ZyXEL
1035 DEVICE_MODEL := WRE6606
1036 DEVICE_DTS_CONFIG := config@4
1038 IMAGE_SIZE := 13184k
1039 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1040 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1042 TARGET_DEVICES += zyxel_wre6606