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
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
12 define Device
/FitImageLzma
13 KERNEL_SUFFIX
:= -fit-uImage.itb
14 KERNEL
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
18 define Device
/FitzImage
19 KERNEL_SUFFIX
:= -fit-zImage.itb
20 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(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 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
="$(subst k,* 1024,$(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
:= 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
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
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 ipq-wifi-aruba_ap-365
193 #TARGET_DEVICES += aruba_ap-365
195 define Device
/asus_map-ac2200
196 $(call Device
/FitImageLzma
)
197 DEVICE_VENDOR
:= ASUS
198 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
200 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
202 TARGET_DEVICES
+= asus_map-ac2200
204 # WARNING: this is an initramfs image that gets you half of the way there
205 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
206 # to get a "trx" you can flash via web UI for ac42u/ac58u:
207 # - change call Device/FitImageLzma to Device/FitImage
208 # - add the following below UIMAGE_NAME
209 # UIMAGE_MAGIC := 0x27051956
210 # IMAGES += factory.trx
211 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
212 define Device
/asus_rt-ac42u
213 $(call Device
/FitImageLzma
)
214 DEVICE_VENDOR
:= ASUS
215 DEVICE_MODEL
:= RT-AC42U
216 DEVICE_ALT0_VENDOR
:= ASUS
217 DEVICE_ALT0_MODEL
:= RT-ACRH17
218 DEVICE_ALT1_VENDOR
:= ASUS
219 DEVICE_ALT1_MODEL
:= RT-AC2200
223 IMAGE_SIZE
:= 20439364
224 FILESYSTEMS
:= squashfs
225 # RT-AC82U is nowhere to be found online
226 # Rather, this device is a/k/a RT-AC42U
227 # But we'll go with what the vendor firmware has...
228 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC82U')
229 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
232 #TARGET_DEVICES += asus_rt-ac42u
234 define Device
/asus_rt-ac58u
235 $(call Device
/FitImageLzma
)
236 DEVICE_VENDOR
:= ASUS
237 DEVICE_MODEL
:= RT-AC58U
238 DEVICE_ALT0_VENDOR
:= ASUS
239 DEVICE_ALT0_MODEL
:= RT-ACRH13
243 IMAGE_SIZE
:= 20439364
244 FILESYSTEMS
:= squashfs
245 # Someone - in their infinite wisdom - decided to put the firmware
246 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
247 # Since u-boot works with strings we either need another fixup step
248 # to add a version... or we are very careful not to add '\0' into that
249 # string and call it a day.... Yeah, we do the latter!
250 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
251 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
252 kmod-usb-ledtrig-usbport
254 TARGET_DEVICES
+= asus_rt-ac58u
256 define Device
/avm_fritzbox-4040
257 $(call Device
/FitImageLzma
)
259 DEVICE_MODEL
:= FRITZ
!Box
4040
261 BOARD_NAME
:= fritz4040
263 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
264 UBOOT_PARTITION_SIZE
:= 524288
266 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
267 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
268 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
270 TARGET_DEVICES
+= avm_fritzbox-4040
272 define Device
/avm_fritzbox-7530
273 $(call Device
/FitImageLzma
)
275 DEVICE_MODEL
:= FRITZ
!Box
7530
276 DEVICE_ALT0_VENDOR
:= AVM
277 DEVICE_ALT0_MODEL
:= FRITZ
!Box
7520
279 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
281 TARGET_DEVICES
+= avm_fritzbox-7530
283 define Device
/avm_fritzrepeater-1200
284 $(call Device
/FitImageLzma
)
286 DEVICE_MODEL
:= FRITZ
!Repeater
1200
288 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
290 TARGET_DEVICES
+= avm_fritzrepeater-1200
292 define Device
/avm_fritzrepeater-3000
293 $(call Device
/FitImageLzma
)
295 DEVICE_MODEL
:= FRITZ
!Repeater
3000
297 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
300 #TARGET_DEVICES += avm_fritzrepeater-3000
302 define Device
/buffalo_wtr-m2133hp
303 $(call Device
/FitImage
)
304 $(call Device
/UbiFit
)
305 DEVICE_VENDOR
:= Buffalo
306 DEVICE_MODEL
:= WTR-M2133HP
308 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
313 #TARGET_DEVICES += buffalo_wtr-m2133hp
315 define Device
/cellc_rtl30vw
316 KERNEL_SUFFIX
:= -fit-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
:= nand-factory.bin nand-sysupgrade.bin
322 IMAGE
/nand-factory.bin
:= append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
323 IMAGE
/nand-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
/FitImage
)
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
/FitImage
)
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
393 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
397 #TARGET_DEVICES += devolo_magic-2-wifi-next
399 define Device
/dlink_dap-2610
400 $(call Device
/FitImageLzma
)
401 DEVICE_VENDOR
:= D-Link
402 DEVICE_MODEL
:= DAP-2610
404 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
406 WRGG_DEVNAME
:= /dev
/mtdblock
/8
407 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
409 IMAGES
+= factory.bin
410 # Bootloader expects a special 160 byte header which is added by
412 # Factory image size must be larger than 6MB, and size in wrgg header must
413 # match actual factory image size to be flashable from D-Link http server.
414 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
415 # cannot be part of the wrgg image. This is solved in the factory image by
416 # having the rootfs at the end of the image (without pad-rootfs). And in
417 # the sysupgrade image only the kernel is included in the wrgg checksum,
418 # but this is not flashable from the D-link http server.
419 # append-rootfs must start on an erase block boundary.
420 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
421 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
424 #TARGET_DEVICES += dlink_dap-2610
426 define Device
/edgecore_ecw5211
427 $(call Device
/FitImage
)
428 $(call Device
/UbiFit
)
429 DEVICE_VENDOR
:= Edgecore
430 DEVICE_MODEL
:= ECW5211
434 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
435 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
437 TARGET_DEVICES
+= edgecore_ecw5211
439 define Device
/edgecore_oap100
440 $(call Device
/FitImage
)
441 $(call Device
/UbiFit
)
442 DEVICE_VENDOR
:= Edgecore
443 DEVICE_MODEL
:= OAP100
447 IMAGES
:= nand-sysupgrade.bin
448 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
449 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
452 #TARGET_DEVICES += edgecore_oap100
454 define Device
/engenius_eap1300
455 $(call Device
/FitImage
)
456 DEVICE_VENDOR
:= EnGenius
457 DEVICE_MODEL
:= EAP1300
458 DEVICE_DTS_CONFIG
:= config@
4
459 BOARD_NAME
:= eap1300
463 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
466 #TARGET_DEVICES += engenius_eap1300
468 define Device
/engenius_eap2200
469 $(call Device
/FitImage
)
470 $(call Device
/UbiFit
)
471 DEVICE_VENDOR
:= EnGenius
472 DEVICE_MODEL
:= EAP2200
476 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
479 #TARGET_DEVICES += engenius_eap2200
481 define Device
/engenius_emd1
482 $(call Device
/FitImage
)
483 DEVICE_VENDOR
:= EnGenius
485 DEVICE_DTS_CONFIG
:= config@
4
488 IMAGES
+= factory.bin
489 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
490 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
493 #TARGET_DEVICES += engenius_emd1
495 define Device
/engenius_emr3500
496 $(call Device
/FitImage
)
497 DEVICE_VENDOR
:= EnGenius
498 DEVICE_MODEL
:= EMR3500
499 DEVICE_DTS_CONFIG
:= config@
4
503 IMAGES
+= factory.bin
504 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
505 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
509 #TARGET_DEVICES += engenius_emr3500
511 define Device
/engenius_ens620ext
512 $(call Device
/FitImage
)
513 DEVICE_VENDOR
:= EnGenius
514 DEVICE_MODEL
:= ENS620EXT
516 DEVICE_DTS_CONFIG
:= config@
4
519 BOARD_NAME
:= ENS620EXT
522 PRODUCT_ID_NEW
:= 0xA4
529 FILESYSTEMS
:= squashfs
530 IMAGES
+= factory_30.bin factory_35.bin
531 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
532 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
533 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
536 #TARGET_DEVICES += engenius_ens620ext
538 define Device
/extreme-networks_ws-ap3915i
539 $(call Device
/FitImage
)
540 DEVICE_VENDOR
:= Extreme Networks
541 DEVICE_MODEL
:= WS-AP3915i
545 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
546 DEVICE_PACKAGES
:= ipq-wifi-extreme-networks_ws-ap3915i
549 #TARGET_DEVICES += extreme-networks_ws-ap3915i
551 define Device
/ezviz_cs-w3-wd1200g-eup
552 $(call Device
/FitImage
)
553 DEVICE_VENDOR
:= EZVIZ
554 DEVICE_MODEL
:= CS-W3-WD1200G
555 DEVICE_VARIANT
:= EUP
559 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
561 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
562 DEVICE_COMPAT_VERSION
:= 2.0
563 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
564 Upgrade via sysupgrade mechanism is not possible.
567 #TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
569 define Device/glinet_gl-ap1300
570 $(call Device/FitImage)
571 $(call Device/UbiFit)
572 DEVICE_VENDOR := GL.iNet
573 DEVICE_MODEL := GL-AP1300
575 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
578 IMAGE_SIZE := 131072k
580 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
583 #TARGET_DEVICES += glinet_gl-ap1300
585 define Device/glinet_gl-b1300
586 $(call Device/FitzImage)
587 DEVICE_VENDOR := GL.iNet
588 DEVICE_MODEL := GL-B1300
589 BOARD_NAME := gl-b1300
593 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
595 TARGET_DEVICES += glinet_gl-b1300
597 define Device/glinet_gl-b2200
598 $(call Device/FitzImage)
599 DEVICE_VENDOR := GL.iNet
600 DEVICE_MODEL := GL-B2200
602 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
603 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
604 IMAGES := emmc.img.gz sysupgrade.bin
605 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
606 pad-to 1024k | append-kernel |\
607 pad-to 33792k | append-rootfs |\
608 append-metadata | gzip
609 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
610 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
611 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
613 TARGET_DEVICES += glinet_gl-b2200
615 define Device/glinet_gl-s1300
616 $(call Device/FitzImage)
617 DEVICE_VENDOR := GL.iNet
618 DEVICE_MODEL := GL-S1300
622 IMAGES := sysupgrade.bin
623 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
624 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
627 #TARGET_DEVICES += glinet_gl-s1300
629 define Device/linksys_ea6350v3
630 # The Linksys EA6350v3 has a uboot bootloader that does not
631 # support either booting lzma kernel images nor booting UBI
632 # partitions. This uboot, however, supports raw kernel images and
635 # As for the time of writing this, the device will boot the kernel
636 # from a fixed address with a fixed length of 3MiB. Also, the
637 # device has a hard-coded kernel command line that requieres the
638 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
639 # Oh... and the kernel partition overlaps with the rootfs
640 # partition (the same for alt_kernel and alt_rootfs).
642 # If you are planing re-partitioning the device, you may want to
643 # keep those details in mind:
644 # 1. The kernel adresses you should honor are 0x00000000 and
645 # 0x02800000 respectively.
646 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
647 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
648 # 4. The kernel command line from uboot is harcoded to boot with
649 # rootfs either in mtd11 or mtd13.
650 $(call Device/FitzImage)
651 DEVICE_VENDOR := Linksys
652 DEVICE_MODEL := EA6350
660 IMAGES += factory.bin
661 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
664 TARGET_DEVICES += linksys_ea6350v3
666 define Device/linksys_ea8300
667 $(call Device/FitzImage)
668 DEVICE_VENDOR := Linksys
669 DEVICE_MODEL := EA8300
675 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
676 IMAGES += factory.bin
677 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
678 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
681 TARGET_DEVICES += linksys_ea8300
683 define Device/linksys_mr8300
684 $(call Device/FitzImage)
685 DEVICE_VENDOR := Linksys
686 DEVICE_MODEL := MR8300
692 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
693 IMAGES += factory.bin
694 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
695 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
698 TARGET_DEVICES += linksys_mr8300
700 define Device/linksys_whw01-v1
701 $(call Device/FitzImage)
702 DEVICE_VENDOR := Linksys
703 DEVICE_MODEL := WHW01
706 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
710 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
711 IMAGES += factory.bin
712 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
713 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
715 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
718 #TARGET_DEVICES += linksys_whw01-v1
720 define Device/luma_wrtq-329acn
721 $(call Device/FitImage)
722 DEVICE_VENDOR := Luma Home
723 DEVICE_MODEL := WRTQ-329ACN
725 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
731 #TARGET_DEVICES += luma_wrtq-329acn
733 define Device/meraki_mr33
734 $(call Device/FitImage)
735 DEVICE_VENDOR := Cisco Meraki
740 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
742 TARGET_DEVICES += meraki_mr33
744 define Device/meraki_mr74
745 $(call Device/FitImage)
746 DEVICE_VENDOR := Cisco Meraki
751 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
752 DEVICE_DTS_CONFIG := config@3
754 TARGET_DEVICES += meraki_mr74
756 define Device/mobipromo_cm520-79f
757 $(call Device/FitzImage)
758 $(call Device/UbiFit)
759 DEVICE_VENDOR := MobiPromo
760 DEVICE_MODEL := CM520-79F
764 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
767 #TARGET_DEVICES += mobipromo_cm520-79f
769 define Device/netgear_ex61x0v2
770 $(call Device/DniImage)
771 DEVICE_VENDOR := NETGEAR
772 DEVICE_DTS_CONFIG := config@4
773 NETGEAR_BOARD_ID := EX6150v2series
774 NETGEAR_HW_ID := 29765285+16+0+128+2x2
779 define Device/netgear_ex6100v2
780 $(call Device/netgear_ex61x0v2)
781 DEVICE_MODEL := EX6100
785 #TARGET_DEVICES += netgear_ex6100v2
787 define Device/netgear_ex6150v2
788 $(call Device/netgear_ex61x0v2)
789 DEVICE_MODEL := EX6150
793 #TARGET_DEVICES += netgear_ex6150v2
795 define Device/netgear_orbi
796 $(call Device/DniImage)
798 DEVICE_VENDOR := NETGEAR
799 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
800 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
801 append-rootfs | pad-rootfs | netgear-dni
802 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
803 sysupgrade-tar rootfs=$$$$@ | append-metadata
804 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
807 define Device/netgear_rbx50
808 $(call Device/netgear_orbi)
809 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
810 KERNEL_SIZE := 3932160
811 ROOTFS_SIZE := 32243712
812 IMAGE_SIZE := 36175872
815 define Device/netgear_rbr50
816 $(call Device/netgear_rbx50)
817 DEVICE_MODEL := RBR50
819 NETGEAR_BOARD_ID := RBR50
822 #TARGET_DEVICES += netgear_rbr50
824 define Device/netgear_rbs50
825 $(call Device/netgear_rbx50)
826 DEVICE_MODEL := RBS50
828 NETGEAR_BOARD_ID := RBS50
831 #TARGET_DEVICES += netgear_rbs50
833 define Device/netgear_srx60
834 $(call Device/netgear_orbi)
835 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
836 KERNEL_SIZE := 3932160
837 ROOTFS_SIZE := 32243712
838 IMAGE_SIZE := 36175872
841 define Device/netgear_srr60
842 $(call Device/netgear_srx60)
843 DEVICE_MODEL := SRR60
844 NETGEAR_BOARD_ID := SRR60
847 #TARGET_DEVICES += netgear_srr60
849 define Device/netgear_srs60
850 $(call Device/netgear_srx60)
851 DEVICE_MODEL := SRS60
852 NETGEAR_BOARD_ID := SRS60
855 #TARGET_DEVICES += netgear_srs60
857 define Device/netgear_wac510
858 $(call Device/FitImage)
859 $(call Device/UbiFit)
860 DEVICE_VENDOR := Netgear
861 DEVICE_MODEL := WAC510
863 DEVICE_DTS_CONFIG := config@5
866 IMAGES += nand-factory.tar
867 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
868 DEVICE_PACKAGES := uboot-envtools
870 TARGET_DEVICES += netgear_wac510
872 define Device/openmesh_a42
873 $(call Device/FitImageLzma)
874 DEVICE_VENDOR := OpenMesh
877 DEVICE_DTS_CONFIG := config@om.a42
879 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
881 IMAGES += factory.bin
882 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
883 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
886 #TARGET_DEVICES += openmesh_a42
888 define Device/openmesh_a62
889 $(call Device/FitImageLzma)
890 DEVICE_VENDOR := OpenMesh
893 DEVICE_DTS_CONFIG := config@om.a62
895 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
897 IMAGES += factory.bin
898 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
899 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
900 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
903 #TARGET_DEVICES += openmesh_a62
905 define Device/p2w_r619ac
906 $(call Device/FitzImage)
907 $(call Device/UbiFit)
909 DEVICE_MODEL := R619AC
911 DEVICE_DTS_CONFIG := config@10
914 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
917 define Device/p2w_r619ac-64m
918 $(call Device/p2w_r619ac)
919 DEVICE_VARIANT := 64M NAND
920 IMAGES += nand-factory.bin
921 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
923 TARGET_DEVICES += p2w_r619ac-64m
925 define Device/p2w_r619ac-128m
926 $(call Device/p2w_r619ac)
927 DEVICE_VARIANT := 128M NAND
929 TARGET_DEVICES += p2w_r619ac-128m
931 define Device/pakedge_wr-1
932 $(call Device/FitImageLzma)
933 DEVICE_VENDOR := Pakedge
935 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
936 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
940 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
943 #TARGET_DEVICES += pakedge_wr-1
945 define Device/plasmacloud_pa1200
946 $(call Device/FitImageLzma)
947 DEVICE_VENDOR := Plasma Cloud
948 DEVICE_MODEL := PA1200
950 DEVICE_DTS_CONFIG := config@pc.pa1200
952 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
954 IMAGES += factory.bin
955 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
956 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
959 #TARGET_DEVICES += plasmacloud_pa1200
961 define Device/plasmacloud_pa2200
962 $(call Device/FitImageLzma)
963 DEVICE_VENDOR := Plasma Cloud
964 DEVICE_MODEL := PA2200
966 DEVICE_DTS_CONFIG := config@pc.pa2200
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=PA2200
972 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
973 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
976 #TARGET_DEVICES += plasmacloud_pa2200
978 define Device/qcom_ap-dk01.1-c1
979 DEVICE_VENDOR := Qualcomm Atheros
980 DEVICE_MODEL := AP-DK01.1
982 BOARD_NAME := ap-dk01.1-c1
984 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
988 $(call Device/FitImage)
989 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
992 TARGET_DEVICES += qcom_ap-dk01.1-c1
994 define Device/qcom_ap-dk04.1-c1
995 $(call Device/FitImage)
996 $(call Device/UbiFit)
997 DEVICE_VENDOR := Qualcomm Atheros
998 DEVICE_MODEL := AP-DK04.1
1001 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
1003 KERNEL_SIZE := 4048k
1006 BOARD_NAME := ap-dk04.1-c1
1009 TARGET_DEVICES += qcom_ap-dk04.1-c1
1011 define Device/qxwlan_e2600ac-c1
1012 $(call Device/FitImage)
1013 DEVICE_VENDOR := Qxwlan
1014 DEVICE_MODEL := E2600AC
1015 DEVICE_VARIANT := C1
1016 BOARD_NAME := e2600ac-c1
1018 KERNEL_SIZE := 4096k
1019 IMAGE_SIZE := 31232k
1020 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1021 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
1025 #TARGET_DEVICES += qxwlan_e2600ac-c1
1027 define Device/qxwlan_e2600ac-c2
1028 $(call Device/FitImage)
1029 $(call Device/UbiFit)
1030 DEVICE_VENDOR := Qxwlan
1031 DEVICE_MODEL := E2600AC
1032 DEVICE_VARIANT := C2
1037 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1040 #TARGET_DEVICES += qxwlan_e2600ac-c2
1042 define Device/sony_ncp-hg100-cellular
1043 $(call Device/FitImage)
1044 DEVICE_VENDOR := Sony
1045 DEVICE_MODEL := NCP-HG100/Cellular
1046 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1048 KERNEL_SIZE := 8192k
1050 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1054 #TARGET_DEVICES += sony_ncp-hg100-cellular
1056 define Device/teltonika_rutx10
1057 $(call Device/FitImage)
1058 $(call Device/UbiFit)
1059 DEVICE_VENDOR := Teltonika
1060 DEVICE_MODEL := RUTX10
1062 DEVICE_DTS_CONFIG := config@5
1066 FILESYSTEMS := squashfs
1067 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1068 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1071 #TARGET_DEVICES += teltonika_rutx10
1073 define Device/tel_x1pro
1074 $(call Device/FitImage)
1075 DEVICE_VENDOR := Telco
1076 DEVICE_MODEL := X1 Pro
1078 KERNEL_SIZE := 4096k
1079 IMAGE_SIZE := 31232k
1080 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1081 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1085 #TARGET_DEVICES += tel_x1pro
1087 define Device/unielec_u4019-32m
1088 $(call Device/FitImage)
1089 DEVICE_VENDOR := Unielec
1090 DEVICE_MODEL := U4019
1091 DEVICE_VARIANT := 32M
1092 BOARD_NAME := u4019-32m
1094 KERNEL_SIZE := 4096k
1095 IMAGE_SIZE := 31232k
1096 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1100 #TARGET_DEVICES += unielec_u4019-32m
1102 define Device/zte_mf28x_common
1103 $(call Device/FitzImage)
1104 DEVICE_VENDOR := ZTE
1106 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1110 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1113 define Device/zte_mf286d
1114 $(call Device/zte_mf28x_common)
1115 DEVICE_MODEL := MF286D
1117 TARGET_DEVICES += zte_mf286d
1119 define Device/zte_mf289f
1120 $(call Device/zte_mf28x_common)
1121 DEVICE_MODEL := MF289F
1122 DEVICE_PACKAGES += ipq-wifi-zte_mf289f ath10k-firmware-qca9984-ct
1125 #TARGET_DEVICES += zte_mf289f
1127 define Device/zyxel_nbg6617
1128 $(call Device/FitImageLzma)
1129 DEVICE_VENDOR := ZyXEL
1130 DEVICE_MODEL := NBG6617
1132 KERNEL_SIZE := 4096k
1133 ROOTFS_SIZE := 24960k
1134 RAS_BOARD := NBG6617
1135 RAS_ROOTFS_SIZE := 19840k
1136 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1137 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1138 IMAGES += factory.bin
1139 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1140 # at least as large as the one of the initial firmware image (not the current
1141 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1142 # this minimum-size. However, the larger image can be flashed both ways.
1143 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1144 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1145 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1147 TARGET_DEVICES += zyxel_nbg6617
1149 define Device/zyxel_wre6606
1150 $(call Device/FitImage)
1151 DEVICE_VENDOR := ZyXEL
1152 DEVICE_MODEL := WRE6606
1153 DEVICE_DTS_CONFIG := config@4
1155 IMAGE_SIZE := 13184k
1156 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1157 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1160 #TARGET_DEVICES += zyxel_wre6606