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
231 TARGET_DEVICES
+= asus_rt-ac42u
233 define Device
/asus_rt-ac58u
234 $(call Device
/FitImageLzma
)
235 DEVICE_VENDOR
:= ASUS
236 DEVICE_MODEL
:= RT-AC58U
237 DEVICE_ALT0_VENDOR
:= ASUS
238 DEVICE_ALT0_MODEL
:= RT-ACRH13
242 IMAGE_SIZE
:= 20439364
243 FILESYSTEMS
:= squashfs
244 # Someone - in their infinite wisdom - decided to put the firmware
245 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
246 # Since u-boot works with strings we either need another fixup step
247 # to add a version... or we are very careful not to add '\0' into that
248 # string and call it a day.... Yeah, we do the latter!
249 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
250 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
251 kmod-usb-ledtrig-usbport
253 TARGET_DEVICES
+= asus_rt-ac58u
255 define Device
/avm_fritzbox-4040
256 $(call Device
/FitImageLzma
)
258 DEVICE_MODEL
:= FRITZ
!Box
4040
260 BOARD_NAME
:= fritz4040
262 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
263 UBOOT_PARTITION_SIZE
:= 524288
265 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
266 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
267 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
269 TARGET_DEVICES
+= avm_fritzbox-4040
271 define Device
/avm_fritzbox-7530
272 $(call Device
/FitImageLzma
)
274 DEVICE_MODEL
:= FRITZ
!Box
7530
275 DEVICE_ALT0_VENDOR
:= AVM
276 DEVICE_ALT0_MODEL
:= FRITZ
!Box
7520
278 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
280 TARGET_DEVICES
+= avm_fritzbox-7530
282 define Device
/avm_fritzrepeater-1200
283 $(call Device
/FitImageLzma
)
285 DEVICE_MODEL
:= FRITZ
!Repeater
1200
287 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
289 TARGET_DEVICES
+= avm_fritzrepeater-1200
291 define Device
/avm_fritzrepeater-3000
292 $(call Device
/FitImageLzma
)
294 DEVICE_MODEL
:= FRITZ
!Repeater
3000
296 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
299 #TARGET_DEVICES += avm_fritzrepeater-3000
301 define Device
/buffalo_wtr-m2133hp
302 $(call Device
/FitImage
)
303 $(call Device
/UbiFit
)
304 DEVICE_VENDOR
:= Buffalo
305 DEVICE_MODEL
:= WTR-M2133HP
307 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
312 #TARGET_DEVICES += buffalo_wtr-m2133hp
314 define Device
/cellc_rtl30vw
315 KERNEL_SUFFIX
:= -fit-zImage.itb
316 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
317 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
318 KERNEL_NAME
:= zImage
320 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
321 IMAGE
/nand-factory.bin
:= append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
322 IMAGE
/nand-sysupgrade.bin
:= append-rootfshdr kernel | sysupgrade-tar kernel
=$$$$@.kernel | append-metadata
323 DEVICE_VENDOR
:= Cell C
324 DEVICE_MODEL
:= RTL30VW
326 DEVICE_DTS_CONFIG
:= config@
5
332 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
334 TARGET_DEVICES
+= cellc_rtl30vw
336 define Device
/cilab_meshpoint-one
337 $(call Device
/8dev_jalapeno-common
)
338 DEVICE_VENDOR
:= Crisis Innovation Lab
339 DEVICE_MODEL
:= MeshPoint.One
340 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
343 #TARGET_DEVICES += cilab_meshpoint-one
345 define Device
/compex_wpj419
346 $(call Device
/FitImage
)
347 $(call Device
/UbiFit
)
348 DEVICE_VENDOR
:= Compex
349 DEVICE_MODEL
:= WPJ419
351 DEVICE_DTS_CONFIG
:= config@
12
355 FILESYSTEMS
:= squashfs
358 #TARGET_DEVICES += compex_wpj419
360 define Device
/compex_wpj428
361 $(call Device
/FitImage
)
362 DEVICE_VENDOR
:= Compex
363 DEVICE_MODEL
:= WPJ428
365 DEVICE_DTS_CONFIG
:= config@
4
369 IMAGES
+= cpximg-6a04.bin
370 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
371 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
372 DEVICE_PACKAGES
:= kmod-gpio-beeper
375 TARGET_DEVICES
+= compex_wpj428
377 define Device
/devolo_magic-2-wifi-next
378 $(call Device
/FitImage
)
379 DEVICE_VENDOR
:= devolo
380 DEVICE_MODEL
:= Magic
2 WiFi next
384 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
385 # it will bootm it, just like we want for the initramfs.
386 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | pad-to
64k |\
387 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
390 IMAGES
:= sysupgrade.bin
391 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
392 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
396 #TARGET_DEVICES += devolo_magic-2-wifi-next
398 define Device
/dlink_dap-2610
399 $(call Device
/FitImageLzma
)
400 DEVICE_VENDOR
:= D-Link
401 DEVICE_MODEL
:= DAP-2610
403 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
405 WRGG_DEVNAME
:= /dev
/mtdblock
/8
406 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
408 IMAGES
+= factory.bin
409 # Bootloader expects a special 160 byte header which is added by
411 # Factory image size must be larger than 6MB, and size in wrgg header must
412 # match actual factory image size to be flashable from D-Link http server.
413 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
414 # cannot be part of the wrgg image. This is solved in the factory image by
415 # having the rootfs at the end of the image (without pad-rootfs). And in
416 # the sysupgrade image only the kernel is included in the wrgg checksum,
417 # but this is not flashable from the D-link http server.
418 # append-rootfs must start on an erase block boundary.
419 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
420 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
423 #TARGET_DEVICES += dlink_dap-2610
425 define Device
/edgecore_ecw5211
426 $(call Device
/FitImage
)
427 $(call Device
/UbiFit
)
428 DEVICE_VENDOR
:= Edgecore
429 DEVICE_MODEL
:= ECW5211
433 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
434 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
436 TARGET_DEVICES
+= edgecore_ecw5211
438 define Device
/edgecore_oap100
439 $(call Device
/FitImage
)
440 $(call Device
/UbiFit
)
441 DEVICE_VENDOR
:= Edgecore
442 DEVICE_MODEL
:= OAP100
446 IMAGES
:= nand-sysupgrade.bin
447 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
448 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
451 #TARGET_DEVICES += edgecore_oap100
453 define Device
/engenius_eap1300
454 $(call Device
/FitImage
)
455 DEVICE_VENDOR
:= EnGenius
456 DEVICE_MODEL
:= EAP1300
457 DEVICE_DTS_CONFIG
:= config@
4
458 BOARD_NAME
:= eap1300
462 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
465 #TARGET_DEVICES += engenius_eap1300
467 define Device
/engenius_eap2200
468 $(call Device
/FitImage
)
469 $(call Device
/UbiFit
)
470 DEVICE_VENDOR
:= EnGenius
471 DEVICE_MODEL
:= EAP2200
475 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
478 #TARGET_DEVICES += engenius_eap2200
480 define Device
/engenius_emd1
481 $(call Device
/FitImage
)
482 DEVICE_VENDOR
:= EnGenius
484 DEVICE_DTS_CONFIG
:= config@
4
487 IMAGES
+= factory.bin
488 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
489 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
492 #TARGET_DEVICES += engenius_emd1
494 define Device
/engenius_emr3500
495 $(call Device
/FitImage
)
496 DEVICE_VENDOR
:= EnGenius
497 DEVICE_MODEL
:= EMR3500
498 DEVICE_DTS_CONFIG
:= config@
4
502 IMAGES
+= factory.bin
503 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
504 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
508 #TARGET_DEVICES += engenius_emr3500
510 define Device
/engenius_ens620ext
511 $(call Device
/FitImage
)
512 DEVICE_VENDOR
:= EnGenius
513 DEVICE_MODEL
:= ENS620EXT
515 DEVICE_DTS_CONFIG
:= config@
4
518 BOARD_NAME
:= ENS620EXT
521 PRODUCT_ID_NEW
:= 0xA4
528 FILESYSTEMS
:= squashfs
529 IMAGES
+= factory_30.bin factory_35.bin
530 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
531 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
532 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
535 #TARGET_DEVICES += engenius_ens620ext
537 define Device
/extreme-networks_ws-ap3915i
538 $(call Device
/FitImage
)
539 DEVICE_VENDOR
:= Extreme Networks
540 DEVICE_MODEL
:= WS-AP3915i
544 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
545 DEVICE_PACKAGES
:= ipq-wifi-extreme-networks_ws-ap3915i
548 #TARGET_DEVICES += extreme-networks_ws-ap3915i
550 define Device
/ezviz_cs-w3-wd1200g-eup
551 $(call Device
/FitImage
)
552 DEVICE_VENDOR
:= EZVIZ
553 DEVICE_MODEL
:= CS-W3-WD1200G
554 DEVICE_VARIANT
:= EUP
558 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
560 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
561 DEVICE_COMPAT_VERSION
:= 2.0
562 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
563 Upgrade via sysupgrade mechanism is not possible.
566 #TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
568 define Device/glinet_gl-ap1300
569 $(call Device/FitImage)
570 $(call Device/UbiFit)
571 DEVICE_VENDOR := GL.iNet
572 DEVICE_MODEL := GL-AP1300
574 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
577 IMAGE_SIZE := 131072k
579 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
582 #TARGET_DEVICES += glinet_gl-ap1300
584 define Device/glinet_gl-b1300
585 $(call Device/FitzImage)
586 DEVICE_VENDOR := GL.iNet
587 DEVICE_MODEL := GL-B1300
588 BOARD_NAME := gl-b1300
592 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
594 TARGET_DEVICES += glinet_gl-b1300
596 define Device/glinet_gl-b2200
597 $(call Device/FitzImage)
598 DEVICE_VENDOR := GL.iNet
599 DEVICE_MODEL := GL-B2200
601 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
602 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
603 IMAGES := emmc.img.gz sysupgrade.bin
604 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
605 pad-to 1024k | append-kernel |\
606 pad-to 33792k | append-rootfs |\
607 append-metadata | gzip
608 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
609 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
610 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
612 TARGET_DEVICES += glinet_gl-b2200
614 define Device/glinet_gl-s1300
615 $(call Device/FitzImage)
616 DEVICE_VENDOR := GL.iNet
617 DEVICE_MODEL := GL-S1300
621 IMAGES := sysupgrade.bin
622 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
623 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
626 #TARGET_DEVICES += glinet_gl-s1300
628 define Device/linksys_ea6350v3
629 # The Linksys EA6350v3 has a uboot bootloader that does not
630 # support either booting lzma kernel images nor booting UBI
631 # partitions. This uboot, however, supports raw kernel images and
634 # As for the time of writing this, the device will boot the kernel
635 # from a fixed address with a fixed length of 3MiB. Also, the
636 # device has a hard-coded kernel command line that requieres the
637 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
638 # Oh... and the kernel partition overlaps with the rootfs
639 # partition (the same for alt_kernel and alt_rootfs).
641 # If you are planing re-partitioning the device, you may want to
642 # keep those details in mind:
643 # 1. The kernel adresses you should honor are 0x00000000 and
644 # 0x02800000 respectively.
645 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
646 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
647 # 4. The kernel command line from uboot is harcoded to boot with
648 # rootfs either in mtd11 or mtd13.
649 $(call Device/FitzImage)
650 DEVICE_VENDOR := Linksys
651 DEVICE_MODEL := EA6350
659 IMAGES += factory.bin
660 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
663 TARGET_DEVICES += linksys_ea6350v3
665 define Device/linksys_ea8300
666 $(call Device/FitzImage)
667 DEVICE_VENDOR := Linksys
668 DEVICE_MODEL := EA8300
674 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
675 IMAGES += factory.bin
676 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
677 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
680 TARGET_DEVICES += linksys_ea8300
682 define Device/linksys_mr8300
683 $(call Device/FitzImage)
684 DEVICE_VENDOR := Linksys
685 DEVICE_MODEL := MR8300
691 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
692 IMAGES += factory.bin
693 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
694 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
697 TARGET_DEVICES += linksys_mr8300
699 define Device/linksys_whw01-v1
700 $(call Device/FitzImage)
701 DEVICE_VENDOR := Linksys
702 DEVICE_MODEL := WHW01
705 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
709 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
710 IMAGES += factory.bin
711 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
712 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
714 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
717 #TARGET_DEVICES += linksys_whw01-v1
719 define Device/luma_wrtq-329acn
720 $(call Device/FitImage)
721 DEVICE_VENDOR := Luma Home
722 DEVICE_MODEL := WRTQ-329ACN
724 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
729 TARGET_DEVICES += luma_wrtq-329acn
731 define Device/meraki_mr33
732 $(call Device/FitImage)
733 DEVICE_VENDOR := Cisco Meraki
738 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
740 TARGET_DEVICES += meraki_mr33
742 define Device/meraki_mr74
743 $(call Device/FitImage)
744 DEVICE_VENDOR := Cisco Meraki
749 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
750 DEVICE_DTS_CONFIG := config@3
752 TARGET_DEVICES += meraki_mr74
754 define Device/mobipromo_cm520-79f
755 $(call Device/FitzImage)
756 $(call Device/UbiFit)
757 DEVICE_VENDOR := MobiPromo
758 DEVICE_MODEL := CM520-79F
762 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
764 TARGET_DEVICES += mobipromo_cm520-79f
766 define Device/netgear_ex61x0v2
767 $(call Device/DniImage)
768 DEVICE_VENDOR := NETGEAR
769 DEVICE_DTS_CONFIG := config@4
770 NETGEAR_BOARD_ID := EX6150v2series
771 NETGEAR_HW_ID := 29765285+16+0+128+2x2
776 define Device/netgear_ex6100v2
777 $(call Device/netgear_ex61x0v2)
778 DEVICE_MODEL := EX6100
782 #TARGET_DEVICES += netgear_ex6100v2
784 define Device/netgear_ex6150v2
785 $(call Device/netgear_ex61x0v2)
786 DEVICE_MODEL := EX6150
790 #TARGET_DEVICES += netgear_ex6150v2
792 define Device/netgear_orbi
793 $(call Device/DniImage)
795 DEVICE_VENDOR := NETGEAR
796 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
797 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
798 append-rootfs | pad-rootfs | netgear-dni
799 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
800 sysupgrade-tar rootfs=$$$$@ | append-metadata
801 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
804 define Device/netgear_rbx50
805 $(call Device/netgear_orbi)
806 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
807 KERNEL_SIZE := 3932160
808 ROOTFS_SIZE := 32243712
809 IMAGE_SIZE := 36175872
812 define Device/netgear_rbr50
813 $(call Device/netgear_rbx50)
814 DEVICE_MODEL := RBR50
816 NETGEAR_BOARD_ID := RBR50
818 TARGET_DEVICES += netgear_rbr50
820 define Device/netgear_rbs50
821 $(call Device/netgear_rbx50)
822 DEVICE_MODEL := RBS50
824 NETGEAR_BOARD_ID := RBS50
826 TARGET_DEVICES += netgear_rbs50
828 define Device/netgear_srx60
829 $(call Device/netgear_orbi)
830 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
831 KERNEL_SIZE := 3932160
832 ROOTFS_SIZE := 32243712
833 IMAGE_SIZE := 36175872
836 define Device/netgear_srr60
837 $(call Device/netgear_srx60)
838 DEVICE_MODEL := SRR60
839 NETGEAR_BOARD_ID := SRR60
841 TARGET_DEVICES += netgear_srr60
843 define Device/netgear_srs60
844 $(call Device/netgear_srx60)
845 DEVICE_MODEL := SRS60
846 NETGEAR_BOARD_ID := SRS60
848 TARGET_DEVICES += netgear_srs60
850 define Device/netgear_wac510
851 $(call Device/FitImage)
852 $(call Device/UbiFit)
853 DEVICE_VENDOR := Netgear
854 DEVICE_MODEL := WAC510
856 DEVICE_DTS_CONFIG := config@5
859 IMAGES += nand-factory.tar
860 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
861 DEVICE_PACKAGES := uboot-envtools
863 TARGET_DEVICES += netgear_wac510
865 define Device/openmesh_a42
866 $(call Device/FitImageLzma)
867 DEVICE_VENDOR := OpenMesh
870 DEVICE_DTS_CONFIG := config@om.a42
872 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
874 IMAGES += factory.bin
875 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
876 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
879 #TARGET_DEVICES += openmesh_a42
881 define Device/openmesh_a62
882 $(call Device/FitImageLzma)
883 DEVICE_VENDOR := OpenMesh
886 DEVICE_DTS_CONFIG := config@om.a62
888 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
890 IMAGES += factory.bin
891 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
892 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
893 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
896 #TARGET_DEVICES += openmesh_a62
898 define Device/p2w_r619ac
899 $(call Device/FitzImage)
900 $(call Device/UbiFit)
902 DEVICE_MODEL := R619AC
904 DEVICE_DTS_CONFIG := config@10
907 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
910 define Device/p2w_r619ac-64m
911 $(call Device/p2w_r619ac)
912 DEVICE_VARIANT := 64M NAND
913 IMAGES += nand-factory.bin
914 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
916 TARGET_DEVICES += p2w_r619ac-64m
918 define Device/p2w_r619ac-128m
919 $(call Device/p2w_r619ac)
920 DEVICE_VARIANT := 128M NAND
922 TARGET_DEVICES += p2w_r619ac-128m
924 define Device/pakedge_wr-1
925 $(call Device/FitImageLzma)
926 DEVICE_VENDOR := Pakedge
928 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
929 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
933 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
935 TARGET_DEVICES += pakedge_wr-1
937 define Device/plasmacloud_pa1200
938 $(call Device/FitImageLzma)
939 DEVICE_VENDOR := Plasma Cloud
940 DEVICE_MODEL := PA1200
942 DEVICE_DTS_CONFIG := config@pc.pa1200
944 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
946 IMAGES += factory.bin
947 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
948 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
951 #TARGET_DEVICES += plasmacloud_pa1200
953 define Device/plasmacloud_pa2200
954 $(call Device/FitImageLzma)
955 DEVICE_VENDOR := Plasma Cloud
956 DEVICE_MODEL := PA2200
958 DEVICE_DTS_CONFIG := config@pc.pa2200
960 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
962 IMAGES += factory.bin
963 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
964 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
965 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
968 #TARGET_DEVICES += plasmacloud_pa2200
970 define Device/qcom_ap-dk01.1-c1
971 DEVICE_VENDOR := Qualcomm Atheros
972 DEVICE_MODEL := AP-DK01.1
974 BOARD_NAME := ap-dk01.1-c1
976 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
980 $(call Device/FitImage)
981 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
984 TARGET_DEVICES += qcom_ap-dk01.1-c1
986 define Device/qcom_ap-dk04.1-c1
987 $(call Device/FitImage)
988 $(call Device/UbiFit)
989 DEVICE_VENDOR := Qualcomm Atheros
990 DEVICE_MODEL := AP-DK04.1
993 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
998 BOARD_NAME := ap-dk04.1-c1
1001 TARGET_DEVICES += qcom_ap-dk04.1-c1
1003 define Device/qxwlan_e2600ac-c1
1004 $(call Device/FitImage)
1005 DEVICE_VENDOR := Qxwlan
1006 DEVICE_MODEL := E2600AC
1007 DEVICE_VARIANT := C1
1008 BOARD_NAME := e2600ac-c1
1010 KERNEL_SIZE := 4096k
1011 IMAGE_SIZE := 31232k
1012 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1013 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
1017 #TARGET_DEVICES += qxwlan_e2600ac-c1
1019 define Device/qxwlan_e2600ac-c2
1020 $(call Device/FitImage)
1021 $(call Device/UbiFit)
1022 DEVICE_VENDOR := Qxwlan
1023 DEVICE_MODEL := E2600AC
1024 DEVICE_VARIANT := C2
1029 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1032 #TARGET_DEVICES += qxwlan_e2600ac-c2
1034 define Device/sony_ncp-hg100-cellular
1035 $(call Device/FitImage)
1036 DEVICE_VENDOR := Sony
1037 DEVICE_MODEL := NCP-HG100/Cellular
1038 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1040 KERNEL_SIZE := 8192k
1042 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1045 TARGET_DEVICES += sony_ncp-hg100-cellular
1047 define Device/teltonika_rutx10
1048 $(call Device/FitImage)
1049 $(call Device/UbiFit)
1050 DEVICE_VENDOR := Teltonika
1051 DEVICE_MODEL := RUTX10
1053 DEVICE_DTS_CONFIG := config@5
1057 FILESYSTEMS := squashfs
1058 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1059 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1062 #TARGET_DEVICES += teltonika_rutx10
1064 define Device/tel_x1pro
1065 $(call Device/FitImage)
1066 DEVICE_VENDOR := Telco
1067 DEVICE_MODEL := X1 Pro
1069 KERNEL_SIZE := 4096k
1070 IMAGE_SIZE := 31232k
1071 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1072 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1076 #TARGET_DEVICES += tel_x1pro
1078 define Device/unielec_u4019-32m
1079 $(call Device/FitImage)
1080 DEVICE_VENDOR := Unielec
1081 DEVICE_MODEL := U4019
1082 DEVICE_VARIANT := 32M
1083 BOARD_NAME := u4019-32m
1085 KERNEL_SIZE := 4096k
1086 IMAGE_SIZE := 31232k
1087 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1091 #TARGET_DEVICES += unielec_u4019-32m
1093 define Device/zte_mf28x_common
1094 $(call Device/FitzImage)
1095 DEVICE_VENDOR := ZTE
1097 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1101 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1104 define Device/zte_mf286d
1105 $(call Device/zte_mf28x_common)
1106 DEVICE_MODEL := MF286D
1108 TARGET_DEVICES += zte_mf286d
1110 define Device/zte_mf289f
1111 $(call Device/zte_mf28x_common)
1112 DEVICE_MODEL := MF289F
1113 DEVICE_PACKAGES += ipq-wifi-zte_mf289f ath10k-firmware-qca9984-ct
1115 TARGET_DEVICES += zte_mf289f
1117 define Device/zyxel_nbg6617
1118 $(call Device/FitImageLzma)
1119 DEVICE_VENDOR := ZyXEL
1120 DEVICE_MODEL := NBG6617
1122 KERNEL_SIZE := 4096k
1123 ROOTFS_SIZE := 24960k
1124 RAS_BOARD := NBG6617
1125 RAS_ROOTFS_SIZE := 19840k
1126 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1127 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1128 IMAGES += factory.bin
1129 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1130 # at least as large as the one of the initial firmware image (not the current
1131 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1132 # this minimum-size. However, the larger image can be flashed both ways.
1133 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1134 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1135 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1137 TARGET_DEVICES += zyxel_nbg6617
1139 define Device/zyxel_wre6606
1140 $(call Device/FitImage)
1141 DEVICE_VENDOR := ZyXEL
1142 DEVICE_MODEL := WRE6606
1143 DEVICE_DTS_CONFIG := config@4
1145 IMAGE_SIZE := 13184k
1146 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1147 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1150 #TARGET_DEVICES += zyxel_wre6606