2 DEVICE_VARS
+= NETGEAR_BOARD_ID NETGEAR_HW_ID
3 DEVICE_VARS
+= RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
4 DEVICE_VARS
+= WRGG_DEVNAME WRGG_SIGNATURE
7 KERNEL_SUFFIX
:= -uImage.itb
8 KERNEL
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
12 define Device
/FitImageLzma
13 KERNEL_SUFFIX
:= -uImage.itb
14 KERNEL
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
18 define Device
/FitzImage
19 KERNEL_SUFFIX
:= -zImage.itb
20 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
26 IMAGES
:= factory.ubi sysupgrade.bin
27 IMAGE
/factory.ubi
:= append-ubi
28 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
31 define Device
/DniImage
32 $(call Device
/FitzImage
)
36 IMAGE
/factory.img
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
37 IMAGE
/sysupgrade.bin
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | \
38 append-rootfs | pad-rootfs | check-size | append-metadata
41 define Build
/append-rootfshdr
42 mkimage
-A
$(LINUX_KARCH
) \
43 -O linux
-T filesystem \
44 -C lzma
-a
$(KERNEL_LOADADDR
) -e
$(if
$(KERNEL_ENTRY
),$(KERNEL_ENTRY
),$(KERNEL_LOADADDR
)) \
45 -n root.squashfs
-d
$(IMAGE_ROOTFS
) $@.new
46 cat
$(IMAGE_KERNEL
) > $@.
$1
47 dd if
=$@.new bs
=64 count
=1 >> $@.
$1
50 define Build
/append-rutx-metadata
53 "device_code": [".*"], \
57 "supported_devices":["teltonika,rutx"] \
61 define Build
/copy-file
65 define Build
/mkmylofw_32m
66 $(eval device_id
=$(word 1,$(1)))
67 $(eval revision
=$(word 2,$(1)))
70 size
="$$(stat -c%s $@)" \
71 pad
="$(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
:= factory.bin sysupgrade.bin
164 IMAGE
/factory.bin
:= append-ubi | qsdk-ipq-factory-nand
166 TARGET_DEVICES
+= alfa-network_ap120c-ac
168 define Device
/aruba_glenmorangie
169 $(call Device
/FitImageLzma
)
170 DEVICE_VENDOR
:= Aruba
174 define Device
/aruba_ap-303
175 $(call Device
/aruba_glenmorangie
)
176 DEVICE_MODEL
:= AP-303
178 TARGET_DEVICES
+= aruba_ap-303
180 define Device
/aruba_ap-303h
181 $(call Device
/aruba_glenmorangie
)
182 DEVICE_MODEL
:= AP-303H
184 TARGET_DEVICES
+= aruba_ap-303h
186 define Device
/aruba_ap-365
187 $(call Device
/aruba_glenmorangie
)
188 DEVICE_MODEL
:= AP-365
189 DEVICE_PACKAGES
:= kmod-hwmon-ad7418 ipq-wifi-aruba_ap-365
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 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 ltq-vdsl-vr11-app
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
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
298 #TARGET_DEVICES += avm_fritzrepeater-3000
300 define Device
/buffalo_wtr-m2133hp
301 $(call Device
/FitImage
)
302 $(call Device
/UbiFit
)
303 DEVICE_VENDOR
:= Buffalo
304 DEVICE_MODEL
:= WTR-M2133HP
306 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
311 #TARGET_DEVICES += buffalo_wtr-m2133hp
313 define Device
/cellc_rtl30vw
314 KERNEL_SUFFIX
:= -zImage.itb
315 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
316 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
317 KERNEL_NAME
:= zImage
319 IMAGES
:= factory.bin sysupgrade.bin
320 IMAGE
/factory.bin
:= append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
321 IMAGE
/sysupgrade.bin
:= append-rootfshdr kernel | sysupgrade-tar kernel
=$$$$@.kernel | append-metadata
322 DEVICE_VENDOR
:= Cell C
323 DEVICE_MODEL
:= RTL30VW
325 DEVICE_DTS_CONFIG
:= config@
5
331 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
333 TARGET_DEVICES
+= cellc_rtl30vw
335 define Device
/cilab_meshpoint-one
336 $(call Device
/8dev_jalapeno-common
)
337 DEVICE_VENDOR
:= Crisis Innovation Lab
338 DEVICE_MODEL
:= MeshPoint.One
339 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
342 #TARGET_DEVICES += cilab_meshpoint-one
344 define Device
/compex_wpj419
345 $(call Device
/FitImage
)
346 $(call Device
/UbiFit
)
347 DEVICE_VENDOR
:= Compex
348 DEVICE_MODEL
:= WPJ419
350 DEVICE_DTS_CONFIG
:= config@
12
354 FILESYSTEMS
:= squashfs
357 #TARGET_DEVICES += compex_wpj419
359 define Device
/compex_wpj428
360 $(call Device
/FitImage
)
361 DEVICE_VENDOR
:= Compex
362 DEVICE_MODEL
:= WPJ428
364 DEVICE_DTS_CONFIG
:= config@
4
368 IMAGES
+= cpximg-6a04.bin
369 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
370 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
371 DEVICE_PACKAGES
:= kmod-gpio-beeper
374 TARGET_DEVICES
+= compex_wpj428
376 define Device
/devolo_magic-2-wifi-next
377 $(call Device
/FitImage
)
378 DEVICE_VENDOR
:= devolo
379 DEVICE_MODEL
:= Magic
2 WiFi next
383 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
384 # it will bootm it, just like we want for the initramfs.
385 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | pad-to
64k |\
386 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
389 IMAGES
:= sysupgrade.bin
390 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
391 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
395 #TARGET_DEVICES += devolo_magic-2-wifi-next
397 define Device
/dlink_dap-2610
398 $(call Device
/FitImageLzma
)
399 DEVICE_VENDOR
:= D-Link
400 DEVICE_MODEL
:= DAP-2610
402 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
404 WRGG_DEVNAME
:= /dev
/mtdblock
/8
405 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
407 IMAGES
+= factory.bin
408 # Bootloader expects a special 160 byte header which is added by
410 # Factory image size must be larger than 6MB, and size in wrgg header must
411 # match actual factory image size to be flashable from D-Link http server.
412 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
413 # cannot be part of the wrgg image. This is solved in the factory image by
414 # having the rootfs at the end of the image (without pad-rootfs). And in
415 # the sysupgrade image only the kernel is included in the wrgg checksum,
416 # but this is not flashable from the D-link http server.
417 # append-rootfs must start on an erase block boundary.
418 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
419 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
421 TARGET_DEVICES
+= dlink_dap-2610
423 define Device
/edgecore_ecw5211
424 $(call Device
/FitImage
)
425 $(call Device
/UbiFit
)
426 DEVICE_VENDOR
:= Edgecore
427 DEVICE_MODEL
:= ECW5211
431 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
432 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
434 TARGET_DEVICES
+= edgecore_ecw5211
436 define Device
/edgecore_oap100
437 $(call Device
/FitImage
)
438 $(call Device
/UbiFit
)
439 DEVICE_VENDOR
:= Edgecore
440 DEVICE_MODEL
:= OAP100
444 IMAGES
:= sysupgrade.bin
445 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
446 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
449 #TARGET_DEVICES += edgecore_oap100
451 define Device
/engenius_eap1300
452 $(call Device
/FitImage
)
453 DEVICE_VENDOR
:= EnGenius
454 DEVICE_MODEL
:= EAP1300
455 DEVICE_DTS_CONFIG
:= config@
4
456 BOARD_NAME
:= eap1300
460 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
463 #TARGET_DEVICES += engenius_eap1300
465 define Device
/engenius_eap2200
466 $(call Device
/FitImage
)
467 $(call Device
/UbiFit
)
468 DEVICE_VENDOR
:= EnGenius
469 DEVICE_MODEL
:= EAP2200
473 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
476 #TARGET_DEVICES += engenius_eap2200
478 define Device
/engenius_emd1
479 $(call Device
/FitImage
)
480 DEVICE_VENDOR
:= EnGenius
482 DEVICE_DTS_CONFIG
:= config@
4
485 IMAGES
+= factory.bin
486 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
487 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
490 #TARGET_DEVICES += engenius_emd1
492 define Device
/engenius_emr3500
493 $(call Device
/FitImage
)
494 DEVICE_VENDOR
:= EnGenius
495 DEVICE_MODEL
:= EMR3500
496 DEVICE_DTS_CONFIG
:= config@
4
500 IMAGES
+= factory.bin
501 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
502 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
506 #TARGET_DEVICES += engenius_emr3500
508 define Device
/engenius_ens620ext
509 $(call Device
/FitImage
)
510 DEVICE_VENDOR
:= EnGenius
511 DEVICE_MODEL
:= ENS620EXT
513 DEVICE_DTS_CONFIG
:= config@
4
516 BOARD_NAME
:= ENS620EXT
519 PRODUCT_ID_NEW
:= 0xA4
526 FILESYSTEMS
:= squashfs
527 IMAGES
+= factory_30.bin factory_35.bin
528 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
529 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
530 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
533 #TARGET_DEVICES += engenius_ens620ext
535 define Device
/extreme-networks_ws-ap3915i
536 $(call Device
/FitImage
)
537 DEVICE_VENDOR
:= Extreme Networks
538 DEVICE_MODEL
:= WS-AP3915i
542 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
543 DEVICE_PACKAGES
:= ipq-wifi-extreme-networks_ws-ap3915i
545 TARGET_DEVICES
+= extreme-networks_ws-ap3915i
547 define Device
/ezviz_cs-w3-wd1200g-eup
548 $(call Device
/FitImage
)
549 DEVICE_VENDOR
:= EZVIZ
550 DEVICE_MODEL
:= CS-W3-WD1200G
551 DEVICE_VARIANT
:= EUP
555 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
557 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
558 DEVICE_COMPAT_VERSION
:= 2.0
559 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
560 Upgrade via sysupgrade mechanism is not possible.
563 #TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
565 define Device/glinet_gl-a1300
566 $(call Device/FitImage)
567 $(call Device/UbiFit)
568 DEVICE_VENDOR := GL.iNet
569 DEVICE_MODEL := GL-A1300
571 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
574 IMAGE_SIZE := 131072k
575 DEVICE_PACKAGE := ipq-wifi-glinet_gl-a1300
577 TARGET_DEVICES += glinet_gl-a1300
579 define Device/glinet_gl-ap1300
580 $(call Device/FitImage)
581 $(call Device/UbiFit)
582 DEVICE_VENDOR := GL.iNet
583 DEVICE_MODEL := GL-AP1300
585 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
588 IMAGE_SIZE := 131072k
590 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
593 #TARGET_DEVICES += glinet_gl-ap1300
595 define Device/glinet_gl-b1300
596 $(call Device/FitzImage)
597 DEVICE_VENDOR := GL.iNet
598 DEVICE_MODEL := GL-B1300
599 BOARD_NAME := gl-b1300
603 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
605 TARGET_DEVICES += glinet_gl-b1300
607 define Device/glinet_gl-b2200
608 $(call Device/FitzImage)
609 DEVICE_VENDOR := GL.iNet
610 DEVICE_MODEL := GL-B2200
612 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
613 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
614 IMAGES := emmc.img.gz sysupgrade.bin
615 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
616 pad-to 1024k | append-kernel |\
617 pad-to 33792k | append-rootfs |\
618 append-metadata | gzip
619 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
620 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
621 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
623 TARGET_DEVICES += glinet_gl-b2200
625 define Device/glinet_gl-s1300
626 $(call Device/FitzImage)
627 DEVICE_VENDOR := GL.iNet
628 DEVICE_MODEL := GL-S1300
632 IMAGES := sysupgrade.bin
633 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
634 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
637 #TARGET_DEVICES += glinet_gl-s1300
639 define Device/kernel-size-6350-8300
640 DEVICE_COMPAT_VERSION := 2.0
641 DEVICE_COMPAT_MESSAGE := Kernel partition size must be increased for \
642 this OpenWrt version. Before continuing, you MUST issue either the \
643 command "fw_setenv kernsize 500000" from the OpenWrt command line, \
644 or "setenv kernsize 500000 ; saveenv" from the U-Boot serial console. \
645 Instead of the sysupgrade image, you must then install the OpenWrt \
646 factory image, setting the force flag and wiping the configuration. \
647 (e.g. "sysupgrade -n -F openwrt-squashfs-factory.bin" on command line)
650 define Device/linksys_ea6350v3
651 # The Linksys EA6350v3 has a uboot bootloader that does not
652 # support either booting lzma kernel images nor booting UBI
653 # partitions. This uboot, however, supports raw kernel images and
656 # As configured by the OEM factory, the device will boot the kernel
657 # from a fixed address with a fixed length of 3 MiB. Also, the
658 # device has a hard-coded kernel command line that requires the
659 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
660 # Oh... and the kernel partition overlaps with the rootfs
661 # partition (the same for alt_kernel and alt_rootfs).
663 # If you are planing re-partitioning the device, you may want to
664 # keep these details in mind:
665 # 1. The kernel addresses you should honor are 0x00000000 and
666 # 0x02800000 respectively.
667 # 2. The kernel size (plus the dtb) cannot exceed 3 MiB in size
668 # unless the uboot environment variable "kernsize" is increased.
669 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
670 # 4. The kernel command line from uboot is harcoded to boot with
671 # rootfs either in mtd11 or mtd13.
672 $(call Device/FitzImage)
673 $(call Device/kernel-size-6350-8300)
674 DEVICE_VENDOR := Linksys
675 DEVICE_MODEL := EA6350
683 IMAGES += factory.bin
684 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
686 TARGET_DEVICES += linksys_ea6350v3
688 define Device/linksys_ea8300
689 $(call Device/FitzImage)
690 $(call Device/kernel-size-6350-8300)
691 DEVICE_VENDOR := Linksys
692 DEVICE_MODEL := EA8300
698 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
699 IMAGES += factory.bin
700 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
701 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
703 TARGET_DEVICES += linksys_ea8300
705 define Device/linksys_mr8300
706 $(call Device/FitzImage)
707 $(call Device/kernel-size-6350-8300)
708 DEVICE_VENDOR := Linksys
709 DEVICE_MODEL := MR8300
715 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
716 IMAGES += factory.bin
717 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
718 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
720 TARGET_DEVICES += linksys_mr8300
722 define Device/linksys_whw03v2
723 $(call Device/FitzImage)
724 DEVICE_VENDOR := Linksys
725 DEVICE_MODEL := WHW03
729 IMAGE_SIZE := 158720k
732 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
733 IMAGES += factory.bin
734 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW03v2
735 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_whw03v2 kmod-leds-pca963x kmod-spi-dev kmod-bluetooth
737 TARGET_DEVICES += linksys_whw03v2
739 define Device/linksys_whw01
740 $(call Device/FitzImage)
741 DEVICE_VENDOR := Linksys
742 DEVICE_MODEL := WHW01
748 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
749 IMAGES += factory.bin
750 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW01
751 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
753 TARGET_DEVICES += linksys_whw01
755 define Device/luma_wrtq-329acn
756 $(call Device/FitImage)
757 DEVICE_VENDOR := Luma Home
758 DEVICE_MODEL := WRTQ-329ACN
760 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
765 TARGET_DEVICES += luma_wrtq-329acn
767 define Device/meraki_mr33
768 $(call Device/FitImage)
769 DEVICE_VENDOR := Cisco Meraki
774 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
776 TARGET_DEVICES += meraki_mr33
778 define Device/meraki_mr74
779 $(call Device/FitImage)
780 DEVICE_VENDOR := Cisco Meraki
785 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
786 DEVICE_DTS_CONFIG := config@3
788 TARGET_DEVICES += meraki_mr74
790 define Device/mobipromo_cm520-79f
791 $(call Device/FitzImage)
792 $(call Device/UbiFit)
793 DEVICE_VENDOR := MobiPromo
794 DEVICE_MODEL := CM520-79F
798 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
800 TARGET_DEVICES += mobipromo_cm520-79f
802 define Device/netgear_ex61x0v2
803 $(call Device/DniImage)
804 DEVICE_VENDOR := NETGEAR
805 DEVICE_DTS_CONFIG := config@4
806 NETGEAR_BOARD_ID := EX6150v2series
807 NETGEAR_HW_ID := 29765285+16+0+128+2x2
812 define Device/netgear_ex6100v2
813 $(call Device/netgear_ex61x0v2)
814 DEVICE_MODEL := EX6100
817 TARGET_DEVICES += netgear_ex6100v2
819 define Device/netgear_ex6150v2
820 $(call Device/netgear_ex61x0v2)
821 DEVICE_MODEL := EX6150
824 TARGET_DEVICES += netgear_ex6150v2
826 define Device/netgear_orbi
827 $(call Device/DniImage)
829 DEVICE_VENDOR := NETGEAR
830 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
831 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
832 append-rootfs | pad-rootfs | netgear-dni
833 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
834 sysupgrade-tar rootfs=$$$$@ | append-metadata
835 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
838 define Device/netgear_rbx50
839 $(call Device/netgear_orbi)
840 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
841 KERNEL_SIZE := 3932160
842 ROOTFS_SIZE := 32243712
843 IMAGE_SIZE := 36175872
846 define Device/netgear_rbr50
847 $(call Device/netgear_rbx50)
848 DEVICE_MODEL := RBR50
850 NETGEAR_BOARD_ID := RBR50
852 TARGET_DEVICES += netgear_rbr50
854 define Device/netgear_rbs50
855 $(call Device/netgear_rbx50)
856 DEVICE_MODEL := RBS50
858 NETGEAR_BOARD_ID := RBS50
860 TARGET_DEVICES += netgear_rbs50
862 define Device/netgear_srx60
863 $(call Device/netgear_orbi)
864 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
865 KERNEL_SIZE := 3932160
866 ROOTFS_SIZE := 32243712
867 IMAGE_SIZE := 36175872
870 define Device/netgear_srr60
871 $(call Device/netgear_srx60)
872 DEVICE_MODEL := SRR60
873 NETGEAR_BOARD_ID := SRR60
875 TARGET_DEVICES += netgear_srr60
877 define Device/netgear_srs60
878 $(call Device/netgear_srx60)
879 DEVICE_MODEL := SRS60
880 NETGEAR_BOARD_ID := SRS60
882 TARGET_DEVICES += netgear_srs60
884 define Device/netgear_wac510
885 $(call Device/FitImage)
886 $(call Device/UbiFit)
887 DEVICE_VENDOR := Netgear
888 DEVICE_MODEL := WAC510
890 DEVICE_DTS_CONFIG := config@5
893 IMAGES += factory.tar
894 IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
895 DEVICE_PACKAGES := uboot-envtools
897 TARGET_DEVICES += netgear_wac510
899 define Device/openmesh_a42
900 $(call Device/FitImageLzma)
901 DEVICE_VENDOR := OpenMesh
904 DEVICE_DTS_CONFIG := config@om.a42
906 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
908 IMAGES += factory.bin
909 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
910 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
912 TARGET_DEVICES += openmesh_a42
914 define Device/openmesh_a62
915 $(call Device/FitImageLzma)
916 DEVICE_VENDOR := OpenMesh
919 DEVICE_DTS_CONFIG := config@om.a62
921 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
923 IMAGES += factory.bin
924 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
925 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
926 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
928 TARGET_DEVICES += openmesh_a62
930 define Device/p2w_r619ac
931 $(call Device/FitzImage)
932 $(call Device/UbiFit)
934 DEVICE_MODEL := R619AC
936 DEVICE_DTS_CONFIG := config@10
939 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
942 define Device/p2w_r619ac-64m
943 $(call Device/p2w_r619ac)
944 DEVICE_VARIANT := 64M NAND
945 IMAGES += factory.bin
946 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
948 TARGET_DEVICES += p2w_r619ac-64m
950 define Device/p2w_r619ac-128m
951 $(call Device/p2w_r619ac)
952 DEVICE_VARIANT := 128M NAND
954 TARGET_DEVICES += p2w_r619ac-128m
956 define Device/pakedge_wr-1
957 $(call Device/FitImageLzma)
958 DEVICE_VENDOR := Pakedge
960 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
961 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
965 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
967 TARGET_DEVICES += pakedge_wr-1
969 define Device/plasmacloud_pa1200
970 $(call Device/FitImageLzma)
971 DEVICE_VENDOR := Plasma Cloud
972 DEVICE_MODEL := PA1200
974 DEVICE_DTS_CONFIG := config@pc.pa1200
976 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
978 IMAGES += factory.bin
979 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
980 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
982 TARGET_DEVICES += plasmacloud_pa1200
984 define Device/plasmacloud_pa2200
985 $(call Device/FitImageLzma)
986 DEVICE_VENDOR := Plasma Cloud
987 DEVICE_MODEL := PA2200
989 DEVICE_DTS_CONFIG := config@pc.pa2200
991 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
993 IMAGES += factory.bin
994 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
995 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
996 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
998 TARGET_DEVICES += plasmacloud_pa2200
1000 define Device/qcom_ap-dk01.1-c1
1001 DEVICE_VENDOR := Qualcomm Atheros
1002 DEVICE_MODEL := AP-DK01.1
1003 DEVICE_VARIANT := C1
1004 BOARD_NAME := ap-dk01.1-c1
1006 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
1008 KERNEL_SIZE := 4096k
1009 IMAGE_SIZE := 26624k
1010 $(call Device/FitImage)
1011 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
1014 TARGET_DEVICES += qcom_ap-dk01.1-c1
1016 define Device/qcom_ap-dk04.1-c1
1017 $(call Device/FitImage)
1018 $(call Device/UbiFit)
1019 DEVICE_VENDOR := Qualcomm Atheros
1020 DEVICE_MODEL := AP-DK04.1
1021 DEVICE_VARIANT := C1
1023 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
1025 KERNEL_SIZE := 4048k
1028 BOARD_NAME := ap-dk04.1-c1
1031 TARGET_DEVICES += qcom_ap-dk04.1-c1
1033 define Device/qxwlan_e2600ac-c1
1034 $(call Device/FitImage)
1035 DEVICE_VENDOR := Qxwlan
1036 DEVICE_MODEL := E2600AC
1037 DEVICE_VARIANT := C1
1038 BOARD_NAME := e2600ac-c1
1040 KERNEL_SIZE := 4096k
1041 IMAGE_SIZE := 31232k
1042 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1043 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
1047 #TARGET_DEVICES += qxwlan_e2600ac-c1
1049 define Device/qxwlan_e2600ac-c2
1050 $(call Device/FitImage)
1051 $(call Device/UbiFit)
1052 DEVICE_VENDOR := Qxwlan
1053 DEVICE_MODEL := E2600AC
1054 DEVICE_VARIANT := C2
1059 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1062 #TARGET_DEVICES += qxwlan_e2600ac-c2
1064 define Device/sony_ncp-hg100-cellular
1065 $(call Device/FitImage)
1066 DEVICE_VENDOR := Sony
1067 DEVICE_MODEL := NCP-HG100/Cellular
1068 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1070 KERNEL_SIZE := 8192k
1072 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1075 TARGET_DEVICES += sony_ncp-hg100-cellular
1077 define Device/teltonika_rutx10
1078 $(call Device/FitImage)
1079 $(call Device/UbiFit)
1080 DEVICE_VENDOR := Teltonika
1081 DEVICE_MODEL := RUTX10
1083 DEVICE_DTS_CONFIG := config@5
1087 FILESYSTEMS := squashfs
1088 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1089 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1092 #TARGET_DEVICES += teltonika_rutx10
1094 define Device/tel_x1pro
1095 $(call Device/FitImage)
1096 DEVICE_VENDOR := Telco
1097 DEVICE_MODEL := X1 Pro
1099 KERNEL_SIZE := 4096k
1100 IMAGE_SIZE := 31232k
1101 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1102 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1106 #TARGET_DEVICES += tel_x1pro
1108 define Device/unielec_u4019-32m
1109 $(call Device/FitImage)
1110 DEVICE_VENDOR := Unielec
1111 DEVICE_MODEL := U4019
1112 DEVICE_VARIANT := 32M
1113 BOARD_NAME := u4019-32m
1115 KERNEL_SIZE := 4096k
1116 IMAGE_SIZE := 31232k
1117 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1121 #TARGET_DEVICES += unielec_u4019-32m
1123 define Device/zte_mf18a
1124 $(call Device/FitImage)
1125 DEVICE_VENDOR := ZTE
1126 DEVICE_MODEL := MF18A
1128 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1132 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct ipq-wifi-zte_mf18a
1134 TARGET_DEVICES += zte_mf18a
1136 define Device/zte_mf28x_common
1137 $(call Device/FitzImage)
1138 DEVICE_VENDOR := ZTE
1140 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1144 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1147 define Device/zte_mf286d
1148 $(call Device/zte_mf28x_common)
1149 DEVICE_MODEL := MF286D
1151 TARGET_DEVICES += zte_mf286d
1153 define Device/zte_mf289f
1154 $(call Device/zte_mf28x_common)
1155 DEVICE_MODEL := MF289F
1156 DEVICE_PACKAGES += ipq-wifi-zte_mf289f ath10k-firmware-qca9984-ct
1158 TARGET_DEVICES += zte_mf289f
1160 define Device/zyxel_nbg6617
1161 $(call Device/FitImageLzma)
1162 DEVICE_VENDOR := ZyXEL
1163 DEVICE_MODEL := NBG6617
1165 KERNEL_SIZE := 4096k
1166 ROOTFS_SIZE := 24960k
1167 RAS_BOARD := NBG6617
1168 RAS_ROOTFS_SIZE := 19840k
1169 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1170 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1171 IMAGES += factory.bin
1172 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1173 # at least as large as the one of the initial firmware image (not the current
1174 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1175 # this minimum-size. However, the larger image can be flashed both ways.
1176 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1177 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1178 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1180 TARGET_DEVICES += zyxel_nbg6617
1182 define Device/zyxel_wre6606
1183 $(call Device/FitImage)
1184 DEVICE_VENDOR := ZyXEL
1185 DEVICE_MODEL := WRE6606
1186 DEVICE_DTS_CONFIG := config@4
1188 IMAGE_SIZE := 13184k
1189 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1190 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1193 #TARGET_DEVICES += zyxel_wre6606