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 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 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
64k | append-rootfs | pad-rootfs | check-size | append-metadata
135 TARGET_DEVICES
+= 8dev_habanero-dvk
137 define Device
/8dev_jalapeno-common
138 $(call Device
/FitImage
)
139 $(call Device
/UbiFit
)
145 define Device
/8dev_jalapeno
146 $(call Device
/8dev_jalapeno-common
)
147 DEVICE_VENDOR
:= 8devices
148 DEVICE_MODEL
:= Jalapeno
150 TARGET_DEVICES
+= 8dev_jalapeno
152 define Device
/alfa-network_ap120c-ac
153 $(call Device
/FitImage
)
154 $(call Device
/UbiFit
)
155 DEVICE_VENDOR
:= ALFA Network
156 DEVICE_MODEL
:= AP120C-AC
158 DEVICE_PACKAGES
:= kmod-usb-acm kmod-tpm-i2c-atmel
162 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
163 IMAGE
/nand-factory.bin
:= append-ubi | qsdk-ipq-factory-nand
165 TARGET_DEVICES
+= alfa-network_ap120c-ac
167 define Device
/aruba_glenmorangie
168 $(call Device
/FitImageLzma
)
169 DEVICE_VENDOR
:= Aruba
173 define Device
/aruba_ap-303
174 $(call Device
/aruba_glenmorangie
)
175 DEVICE_MODEL
:= AP-303
177 TARGET_DEVICES
+= aruba_ap-303
179 define Device
/aruba_ap-303h
180 $(call Device
/aruba_glenmorangie
)
181 DEVICE_MODEL
:= AP-303H
183 TARGET_DEVICES
+= aruba_ap-303h
185 define Device
/aruba_ap-365
186 $(call Device
/aruba_glenmorangie
)
187 DEVICE_MODEL
:= AP-365
188 DEVICE_PACKAGES
:= kmod-hwmon-ad7418 ipq-wifi-aruba_ap-365
190 TARGET_DEVICES
+= aruba_ap-365
192 define Device
/asus_map-ac2200
193 $(call Device
/FitImageLzma
)
194 DEVICE_VENDOR
:= ASUS
195 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
197 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
199 TARGET_DEVICES
+= asus_map-ac2200
201 # WARNING: this is an initramfs image that gets you half of the way there
202 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
203 # to get a "trx" you can flash via web UI for ac42u/ac58u:
204 # - change call Device/FitImageLzma to Device/FitImage
205 # - add the following below UIMAGE_NAME
206 # UIMAGE_MAGIC := 0x27051956
207 # IMAGES += factory.trx
208 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
209 define Device
/asus_rt-ac42u
210 $(call Device
/FitImageLzma
)
211 DEVICE_VENDOR
:= ASUS
212 DEVICE_MODEL
:= RT-AC42U
213 DEVICE_ALT0_VENDOR
:= ASUS
214 DEVICE_ALT0_MODEL
:= RT-ACRH17
215 DEVICE_ALT1_VENDOR
:= ASUS
216 DEVICE_ALT1_MODEL
:= RT-AC2200
220 IMAGE_SIZE
:= 20439364
221 FILESYSTEMS
:= squashfs
222 # RT-AC82U is nowhere to be found online
223 # Rather, this device is a/k/a RT-AC42U
224 # But we'll go with what the vendor firmware has...
225 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC82U')
226 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
228 TARGET_DEVICES
+= asus_rt-ac42u
230 define Device
/asus_rt-ac58u
231 $(call Device
/FitImageLzma
)
232 DEVICE_VENDOR
:= ASUS
233 DEVICE_MODEL
:= RT-AC58U
234 DEVICE_ALT0_VENDOR
:= ASUS
235 DEVICE_ALT0_MODEL
:= RT-ACRH13
239 IMAGE_SIZE
:= 20439364
240 FILESYSTEMS
:= squashfs
241 # Someone - in their infinite wisdom - decided to put the firmware
242 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
243 # Since u-boot works with strings we either need another fixup step
244 # to add a version... or we are very careful not to add '\0' into that
245 # string and call it a day.... Yeah, we do the latter!
246 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
247 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
248 kmod-usb-ledtrig-usbport
250 TARGET_DEVICES
+= asus_rt-ac58u
252 define Device
/avm_fritzbox-4040
253 $(call Device
/FitImageLzma
)
255 DEVICE_MODEL
:= FRITZ
!Box
4040
257 BOARD_NAME
:= fritz4040
259 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
260 UBOOT_PARTITION_SIZE
:= 524288
262 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
263 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
264 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
266 TARGET_DEVICES
+= avm_fritzbox-4040
268 define Device
/avm_fritzbox-7530
269 $(call Device
/FitImageLzma
)
271 DEVICE_MODEL
:= FRITZ
!Box
7530
272 DEVICE_ALT0_VENDOR
:= AVM
273 DEVICE_ALT0_MODEL
:= FRITZ
!Box
7520
275 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
277 TARGET_DEVICES
+= avm_fritzbox-7530
279 define Device
/avm_fritzrepeater-1200
280 $(call Device
/FitImageLzma
)
282 DEVICE_MODEL
:= FRITZ
!Repeater
1200
284 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
286 TARGET_DEVICES
+= avm_fritzrepeater-1200
288 define Device
/avm_fritzrepeater-3000
289 $(call Device
/FitImageLzma
)
291 DEVICE_MODEL
:= FRITZ
!Repeater
3000
293 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
295 TARGET_DEVICES
+= avm_fritzrepeater-3000
297 define Device
/buffalo_wtr-m2133hp
298 $(call Device
/FitImage
)
299 $(call Device
/UbiFit
)
300 DEVICE_VENDOR
:= Buffalo
301 DEVICE_MODEL
:= WTR-M2133HP
303 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
307 TARGET_DEVICES
+= buffalo_wtr-m2133hp
309 define Device
/cellc_rtl30vw
310 KERNEL_SUFFIX
:= -fit-zImage.itb
311 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
312 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
313 KERNEL_NAME
:= zImage
315 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
316 IMAGE
/nand-factory.bin
:= append-rootfshdr | append-ubi | qsdk-ipq-factory-nand-askey
317 IMAGE
/nand-sysupgrade.bin
:= append-rootfshdr | sysupgrade-tar | append-metadata
318 DEVICE_VENDOR
:= Cell C
319 DEVICE_MODEL
:= RTL30VW
321 DEVICE_DTS_CONFIG
:= config@
5
327 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
329 TARGET_DEVICES
+= cellc_rtl30vw
331 define Device
/cilab_meshpoint-one
332 $(call Device
/8dev_jalapeno-common
)
333 DEVICE_VENDOR
:= Crisis Innovation Lab
334 DEVICE_MODEL
:= MeshPoint.One
335 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
337 TARGET_DEVICES
+= cilab_meshpoint-one
339 define Device
/compex_wpj419
340 $(call Device
/FitImage
)
341 $(call Device
/UbiFit
)
342 DEVICE_VENDOR
:= Compex
343 DEVICE_MODEL
:= WPJ419
345 DEVICE_DTS_CONFIG
:= config@
12
349 FILESYSTEMS
:= squashfs
351 TARGET_DEVICES
+= compex_wpj419
353 define Device
/compex_wpj428
354 $(call Device
/FitImage
)
355 DEVICE_VENDOR
:= Compex
356 DEVICE_MODEL
:= WPJ428
358 DEVICE_DTS_CONFIG
:= config@
4
362 IMAGES
+= cpximg-6a04.bin
363 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
364 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
365 DEVICE_PACKAGES
:= kmod-gpio-beeper
368 TARGET_DEVICES
+= compex_wpj428
370 define Device
/devolo_magic-2-wifi-next
371 $(call Device
/FitImage
)
372 DEVICE_VENDOR
:= devolo
373 DEVICE_MODEL
:= Magic
2 WiFi next
377 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
378 # it will bootm it, just like we want for the initramfs.
379 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | pad-to
64k |\
380 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
383 IMAGES
:= sysupgrade.bin
384 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
385 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
388 TARGET_DEVICES
+= devolo_magic-2-wifi-next
390 define Device
/dlink_dap-2610
391 $(call Device
/FitImageLzma
)
392 DEVICE_VENDOR
:= D-Link
393 DEVICE_MODEL
:= DAP-2610
395 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
397 WRGG_DEVNAME
:= /dev
/mtdblock
/8
398 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
400 IMAGES
+= factory.bin
401 # Bootloader expects a special 160 byte header which is added by
403 # Factory image size must be larger than 6MB, and size in wrgg header must
404 # match actual factory image size to be flashable from D-Link http server.
405 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
406 # cannot be part of the wrgg image. This is solved in the factory image by
407 # having the rootfs at the end of the image (without pad-rootfs). And in
408 # the sysupgrade image only the kernel is included in the wrgg checksum,
409 # but this is not flashable from the D-link http server.
410 # append-rootfs must start on an erase block boundary.
411 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
412 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
414 TARGET_DEVICES
+= dlink_dap-2610
416 define Device
/edgecore_ecw5211
417 $(call Device
/FitImage
)
418 $(call Device
/UbiFit
)
419 DEVICE_VENDOR
:= Edgecore
420 DEVICE_MODEL
:= ECW5211
424 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
425 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
427 TARGET_DEVICES
+= edgecore_ecw5211
429 define Device
/edgecore_oap100
430 $(call Device
/FitImage
)
431 $(call Device
/UbiFit
)
432 DEVICE_VENDOR
:= Edgecore
433 DEVICE_MODEL
:= OAP100
437 IMAGES
:= nand-sysupgrade.bin
438 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
439 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
441 TARGET_DEVICES
+= edgecore_oap100
443 define Device
/engenius_eap1300
444 $(call Device
/FitImage
)
445 DEVICE_VENDOR
:= EnGenius
446 DEVICE_MODEL
:= EAP1300
447 DEVICE_DTS_CONFIG
:= config@
4
448 BOARD_NAME
:= eap1300
452 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
454 TARGET_DEVICES
+= engenius_eap1300
456 define Device
/engenius_eap2200
457 $(call Device
/FitImage
)
458 $(call Device
/UbiFit
)
459 DEVICE_VENDOR
:= EnGenius
460 DEVICE_MODEL
:= EAP2200
464 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
466 TARGET_DEVICES
+= engenius_eap2200
468 define Device
/engenius_emd1
469 $(call Device
/FitImage
)
470 DEVICE_VENDOR
:= EnGenius
472 DEVICE_DTS_CONFIG
:= config@
4
475 IMAGES
+= factory.bin
476 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
477 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
479 TARGET_DEVICES
+= engenius_emd1
481 define Device
/engenius_emr3500
482 $(call Device
/FitImage
)
483 DEVICE_VENDOR
:= EnGenius
484 DEVICE_MODEL
:= EMR3500
485 DEVICE_DTS_CONFIG
:= config@
4
489 IMAGES
+= factory.bin
490 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
491 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
494 TARGET_DEVICES
+= engenius_emr3500
496 define Device
/engenius_ens620ext
497 $(call Device
/FitImage
)
498 DEVICE_VENDOR
:= EnGenius
499 DEVICE_MODEL
:= ENS620EXT
501 DEVICE_DTS_CONFIG
:= config@
4
504 BOARD_NAME
:= ENS620EXT
507 PRODUCT_ID_NEW
:= 0xA4
514 FILESYSTEMS
:= squashfs
515 IMAGES
+= factory_30.bin factory_35.bin
516 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
517 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
518 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
520 TARGET_DEVICES
+= engenius_ens620ext
522 define Device
/extreme-networks_ws-ap3915i
523 $(call Device
/FitImage
)
524 DEVICE_VENDOR
:= Extreme Networks
525 DEVICE_MODEL
:= WS-AP3915i
529 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
530 DEVICE_PACKAGES
:= ipq-wifi-extreme-networks_ws-ap3915i
532 TARGET_DEVICES
+= extreme-networks_ws-ap3915i
534 define Device
/ezviz_cs-w3-wd1200g-eup
535 $(call Device
/FitImage
)
536 DEVICE_VENDOR
:= EZVIZ
537 DEVICE_MODEL
:= CS-W3-WD1200G
538 DEVICE_VARIANT
:= EUP
542 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
544 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
545 DEVICE_COMPAT_VERSION
:= 2.0
546 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
547 Upgrade via sysupgrade mechanism is not possible.
549 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
551 define Device/glinet_gl-ap1300
552 $(call Device/FitImage)
553 $(call Device/UbiFit)
554 DEVICE_VENDOR := GL.iNet
555 DEVICE_MODEL := GL-AP1300
557 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
560 IMAGE_SIZE := 131072k
562 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300
564 TARGET_DEVICES += glinet_gl-ap1300
566 define Device/glinet_gl-b1300
567 $(call Device/FitzImage)
568 DEVICE_VENDOR := GL.iNet
569 DEVICE_MODEL := GL-B1300
570 BOARD_NAME := gl-b1300
574 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
576 TARGET_DEVICES += glinet_gl-b1300
578 define Device/glinet_gl-b2200
579 $(call Device/FitzImage)
580 DEVICE_VENDOR := GL.iNet
581 DEVICE_MODEL := GL-B2200
583 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
584 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
585 IMAGES := emmc.img.gz sysupgrade.bin
586 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
587 pad-to 1024k | append-kernel |\
588 pad-to 33792k | append-rootfs |\
589 append-metadata | gzip
590 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
591 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
592 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
594 TARGET_DEVICES += glinet_gl-b2200
596 define Device/glinet_gl-s1300
597 $(call Device/FitzImage)
598 DEVICE_VENDOR := GL.iNet
599 DEVICE_MODEL := GL-S1300
603 IMAGES := sysupgrade.bin
604 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
605 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
607 TARGET_DEVICES += glinet_gl-s1300
609 define Device/linksys_ea6350v3
610 # The Linksys EA6350v3 has a uboot bootloader that does not
611 # support either booting lzma kernel images nor booting UBI
612 # partitions. This uboot, however, supports raw kernel images and
615 # As for the time of writing this, the device will boot the kernel
616 # from a fixed address with a fixed length of 3MiB. Also, the
617 # device has a hard-coded kernel command line that requieres the
618 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
619 # Oh... and the kernel partition overlaps with the rootfs
620 # partition (the same for alt_kernel and alt_rootfs).
622 # If you are planing re-partitioning the device, you may want to
623 # keep those details in mind:
624 # 1. The kernel adresses you should honor are 0x00000000 and
625 # 0x02800000 respectively.
626 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
627 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
628 # 4. The kernel command line from uboot is harcoded to boot with
629 # rootfs either in mtd11 or mtd13.
630 $(call Device/FitzImage)
631 DEVICE_VENDOR := Linksys
632 DEVICE_MODEL := EA6350
640 IMAGES += factory.bin
641 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
643 TARGET_DEVICES += linksys_ea6350v3
645 define Device/linksys_ea8300
646 $(call Device/FitzImage)
647 DEVICE_VENDOR := Linksys
648 DEVICE_MODEL := EA8300
654 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
655 IMAGES += factory.bin
656 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
657 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
659 TARGET_DEVICES += linksys_ea8300
661 define Device/linksys_mr8300
662 $(call Device/FitzImage)
663 DEVICE_VENDOR := Linksys
664 DEVICE_MODEL := MR8300
670 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
671 IMAGES += factory.bin
672 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
673 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
675 TARGET_DEVICES += linksys_mr8300
677 define Device/linksys_whw01-v1
678 $(call Device/FitzImage)
679 DEVICE_VENDOR := Linksys
680 DEVICE_MODEL := WHW01
683 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
687 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
688 IMAGES += factory.bin
689 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
690 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
692 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
694 TARGET_DEVICES += linksys_whw01-v1
696 define Device/luma_wrtq-329acn
697 $(call Device/FitImage)
698 DEVICE_VENDOR := Luma Home
699 DEVICE_MODEL := WRTQ-329ACN
701 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
706 TARGET_DEVICES += luma_wrtq-329acn
708 define Device/meraki_mr33
709 $(call Device/FitImage)
710 DEVICE_VENDOR := Cisco Meraki
715 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
717 TARGET_DEVICES += meraki_mr33
719 define Device/meraki_mr74
720 $(call Device/FitImage)
721 DEVICE_VENDOR := Cisco Meraki
726 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
727 DEVICE_DTS_CONFIG := config@3
729 TARGET_DEVICES += meraki_mr74
731 define Device/mobipromo_cm520-79f
732 $(call Device/FitzImage)
733 $(call Device/UbiFit)
734 DEVICE_VENDOR := MobiPromo
735 DEVICE_MODEL := CM520-79F
739 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
741 TARGET_DEVICES += mobipromo_cm520-79f
743 define Device/netgear_ex61x0v2
744 $(call Device/DniImage)
745 DEVICE_VENDOR := NETGEAR
746 DEVICE_DTS_CONFIG := config@4
747 NETGEAR_BOARD_ID := EX6150v2series
748 NETGEAR_HW_ID := 29765285+16+0+128+2x2
753 define Device/netgear_ex6100v2
754 $(call Device/netgear_ex61x0v2)
755 DEVICE_MODEL := EX6100
758 TARGET_DEVICES += netgear_ex6100v2
760 define Device/netgear_ex6150v2
761 $(call Device/netgear_ex61x0v2)
762 DEVICE_MODEL := EX6150
765 TARGET_DEVICES += netgear_ex6150v2
767 define Device/netgear_orbi
768 $(call Device/DniImage)
770 DEVICE_VENDOR := NETGEAR
771 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
772 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
773 append-rootfs | pad-rootfs | netgear-dni
774 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
775 sysupgrade-tar rootfs=$$$$@ | append-metadata
776 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
779 define Device/netgear_rbx50
780 $(call Device/netgear_orbi)
781 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
782 KERNEL_SIZE := 3932160
783 ROOTFS_SIZE := 32243712
784 IMAGE_SIZE := 36175872
787 define Device/netgear_rbr50
788 $(call Device/netgear_rbx50)
789 DEVICE_MODEL := RBR50
791 NETGEAR_BOARD_ID := RBR50
793 TARGET_DEVICES += netgear_rbr50
795 define Device/netgear_rbs50
796 $(call Device/netgear_rbx50)
797 DEVICE_MODEL := RBS50
799 NETGEAR_BOARD_ID := RBS50
801 TARGET_DEVICES += netgear_rbs50
803 define Device/netgear_srx60
804 $(call Device/netgear_orbi)
805 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
806 KERNEL_SIZE := 3932160
807 ROOTFS_SIZE := 32243712
808 IMAGE_SIZE := 36175872
811 define Device/netgear_srr60
812 $(call Device/netgear_srx60)
813 DEVICE_MODEL := SRR60
814 NETGEAR_BOARD_ID := SRR60
816 TARGET_DEVICES += netgear_srr60
818 define Device/netgear_srs60
819 $(call Device/netgear_srx60)
820 DEVICE_MODEL := SRS60
821 NETGEAR_BOARD_ID := SRS60
823 TARGET_DEVICES += netgear_srs60
825 define Device/netgear_wac510
826 $(call Device/FitImage)
827 $(call Device/UbiFit)
828 DEVICE_VENDOR := Netgear
829 DEVICE_MODEL := WAC510
831 DEVICE_DTS_CONFIG := config@5
834 IMAGES += nand-factory.tar
835 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
836 DEVICE_PACKAGES := uboot-envtools
838 TARGET_DEVICES += netgear_wac510
840 define Device/openmesh_a42
841 $(call Device/FitImageLzma)
842 DEVICE_VENDOR := OpenMesh
845 DEVICE_DTS_CONFIG := config@om.a42
847 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
849 IMAGES += factory.bin
850 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
851 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
853 TARGET_DEVICES += openmesh_a42
855 define Device/openmesh_a62
856 $(call Device/FitImageLzma)
857 DEVICE_VENDOR := OpenMesh
860 DEVICE_DTS_CONFIG := config@om.a62
862 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
864 IMAGES += factory.bin
865 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
866 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
867 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
869 TARGET_DEVICES += openmesh_a62
871 define Device/p2w_r619ac
872 $(call Device/FitzImage)
873 $(call Device/UbiFit)
875 DEVICE_MODEL := R619AC
877 DEVICE_DTS_CONFIG := config@10
880 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
883 define Device/p2w_r619ac-64m
884 $(call Device/p2w_r619ac)
885 DEVICE_VARIANT := 64M NAND
886 IMAGES += nand-factory.bin
887 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
889 TARGET_DEVICES += p2w_r619ac-64m
891 define Device/p2w_r619ac-128m
892 $(call Device/p2w_r619ac)
893 DEVICE_VARIANT := 128M NAND
895 TARGET_DEVICES += p2w_r619ac-128m
897 define Device/pakedge_wr-1
898 $(call Device/FitImageLzma)
899 DEVICE_VENDOR := Pakedge
901 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
905 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
907 TARGET_DEVICES += pakedge_wr-1
909 define Device/plasmacloud_pa1200
910 $(call Device/FitImageLzma)
911 DEVICE_VENDOR := Plasma Cloud
912 DEVICE_MODEL := PA1200
914 DEVICE_DTS_CONFIG := config@pc.pa1200
916 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
918 IMAGES += factory.bin
919 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
920 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
922 TARGET_DEVICES += plasmacloud_pa1200
924 define Device/plasmacloud_pa2200
925 $(call Device/FitImageLzma)
926 DEVICE_VENDOR := Plasma Cloud
927 DEVICE_MODEL := PA2200
929 DEVICE_DTS_CONFIG := config@pc.pa2200
931 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
933 IMAGES += factory.bin
934 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
935 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
936 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
938 TARGET_DEVICES += plasmacloud_pa2200
940 define Device/qcom_ap-dk01.1-c1
941 DEVICE_VENDOR := Qualcomm Atheros
942 DEVICE_MODEL := AP-DK01.1
944 BOARD_NAME := ap-dk01.1-c1
946 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
950 $(call Device/FitImage)
951 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
954 TARGET_DEVICES += qcom_ap-dk01.1-c1
956 define Device/qcom_ap-dk04.1-c1
957 $(call Device/FitImage)
958 $(call Device/UbiFit)
959 DEVICE_VENDOR := Qualcomm Atheros
960 DEVICE_MODEL := AP-DK04.1
963 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
968 BOARD_NAME := ap-dk04.1-c1
971 TARGET_DEVICES += qcom_ap-dk04.1-c1
973 define Device/qxwlan_e2600ac-c1
974 $(call Device/FitImage)
975 DEVICE_VENDOR := Qxwlan
976 DEVICE_MODEL := E2600AC
978 BOARD_NAME := e2600ac-c1
982 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
983 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
986 TARGET_DEVICES += qxwlan_e2600ac-c1
988 define Device/qxwlan_e2600ac-c2
989 $(call Device/FitImage)
990 $(call Device/UbiFit)
991 DEVICE_VENDOR := Qxwlan
992 DEVICE_MODEL := E2600AC
998 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1000 TARGET_DEVICES += qxwlan_e2600ac-c2
1002 define Device/teltonika_rutx10
1003 $(call Device/FitImage)
1004 $(call Device/UbiFit)
1005 DEVICE_VENDOR := Teltonika
1006 DEVICE_MODEL := RUTX10
1008 DEVICE_DTS_CONFIG := config@5
1012 FILESYSTEMS := squashfs
1013 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1014 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1016 TARGET_DEVICES += teltonika_rutx10
1018 define Device/tel_x1pro
1019 $(call Device/FitImage)
1020 DEVICE_VENDOR := Telco
1021 DEVICE_MODEL := X1 Pro
1023 KERNEL_SIZE := 4096k
1024 IMAGE_SIZE := 31232k
1025 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1026 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1029 TARGET_DEVICES += tel_x1pro
1031 define Device/unielec_u4019-32m
1032 $(call Device/FitImage)
1033 DEVICE_VENDOR := Unielec
1034 DEVICE_MODEL := U4019
1035 DEVICE_VARIANT := 32M
1036 BOARD_NAME := u4019-32m
1038 KERNEL_SIZE := 4096k
1039 IMAGE_SIZE := 31232k
1040 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1043 TARGET_DEVICES += unielec_u4019-32m
1045 define Device/zte_mf286d
1046 $(call Device/FitzImage)
1047 DEVICE_VENDOR := ZTE
1048 DEVICE_MODEL := MF286D
1050 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1054 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1056 TARGET_DEVICES += zte_mf286d
1058 define Device/zyxel_nbg6617
1059 $(call Device/FitImageLzma)
1060 DEVICE_VENDOR := ZyXEL
1061 DEVICE_MODEL := NBG6617
1063 KERNEL_SIZE := 4096k
1064 ROOTFS_SIZE := 24960k
1065 RAS_BOARD := NBG6617
1066 RAS_ROOTFS_SIZE := 19840k
1067 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1068 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1069 IMAGES += factory.bin
1070 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1071 # at least as large as the one of the initial firmware image (not the current
1072 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1073 # this minimum-size. However, the larger image can be flashed both ways.
1074 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1075 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1076 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1078 TARGET_DEVICES += zyxel_nbg6617
1080 define Device/zyxel_wre6606
1081 $(call Device/FitImage)
1082 DEVICE_VENDOR := ZyXEL
1083 DEVICE_MODEL := WRE6606
1084 DEVICE_DTS_CONFIG := config@4
1086 IMAGE_SIZE := 13184k
1087 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1088 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1090 TARGET_DEVICES += zyxel_wre6606