2 DEVICE_VARS
+= NETGEAR_BOARD_ID NETGEAR_HW_ID
3 DEVICE_VARS
+= RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
4 DEVICE_VARS
+= WRGG_DEVNAME WRGG_SIGNATURE
7 KERNEL_SUFFIX
:= -fit-uImage.itb
8 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
12 define Device
/FitImageLzma
13 KERNEL_SUFFIX
:= -fit-uImage.itb
14 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
18 define Device
/FitzImage
19 KERNEL_SUFFIX
:= -fit-zImage.itb
20 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
26 IMAGES
:= nand-factory.ubi nand-sysupgrade.bin
27 IMAGE
/nand-factory.ubi
:= append-ubi
28 IMAGE
/nand-sysupgrade.bin
:= sysupgrade-tar | append-metadata
31 define Device
/DniImage
32 $(call Device
/FitzImage
)
36 IMAGE
/factory.img
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
37 IMAGE
/sysupgrade.bin
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | \
38 append-rootfs | pad-rootfs | check-size | append-metadata
41 define Build
/append-rootfshdr
42 mkimage
-A
$(LINUX_KARCH
) \
43 -O linux
-T filesystem \
44 -C lzma
-a
$(KERNEL_LOADADDR
) -e
$(if
$(KERNEL_ENTRY
),$(KERNEL_ENTRY
),$(KERNEL_LOADADDR
)) \
45 -n root.squashfs
-d
$(IMAGE_ROOTFS
) $@.new
46 dd if
=$@.new bs
=64 count
=1 >> $(IMAGE_KERNEL
)
49 define Build
/append-rutx-metadata
52 "device_code": [".*"], \
56 "supported_devices":["teltonika,rutx"] \
60 define Build
/copy-file
64 define Build
/mkmylofw_32m
65 $(eval device_id
=$(word 1,$(1)))
66 $(eval revision
=$(word 2,$(1)))
69 size
="$$(stat -c%s $@)" \
70 pad
="$(subst k,* 1024,$(BLOCKSIZE))" \
71 pad
="(pad - (size % pad)) % pad" \
72 newsize
='size + pad'; \
73 $(STAGING_DIR_HOST
)/bin
/mkmylofw \
74 -B WPE72
-i
0x11f6:$(device_id
):0x11f6:$(device_id
) -r
$(revision
) \
75 -s
0x2000000 -p0x180000
:$$newsize:al
:0x80208000:"OpenWrt":$@ \
80 define Build
/wac5xx-netgear-tar
82 mv
$@
$@.tmp
/wac5xx-ubifs-root.img
83 md5sum
$@.tmp
/wac5xx-ubifs-root.img
> $@.tmp
/wac5xx-ubifs-root.md5sum
84 echo
"WAC505 WAC510" > $@.tmp
/metadata.txt
85 echo
"WAC505_V9.9.9.9" > $@.tmp
/version
86 tar -C
$@.tmp
/ -cf
$@ .
90 define Build
/qsdk-ipq-factory-nand-askey
91 $(TOPDIR
)/scripts
/mkits-qsdk-ipq-image.sh
$@.its\
92 askey_kernel
$(IMAGE_KERNEL
) \
93 askey_fs
$(IMAGE_ROOTFS
) \
95 PATH
=$(LINUX_DIR
)/scripts
/dtc
:$(PATH
) mkimage
-f
$@.its
$@.new
99 define Build
/qsdk-ipq-app-gpt
100 cp
$@
$@.tmp
2>/dev
/null || true
101 ptgen
-g
-o
$@.tmp
-a
1 -l
1024 \
102 -t
0x2e -N
0:HLOS
-r
-p
32M \
103 -t
0x83 -N rootfs
-r
-p
128M \
104 -N rootfs_data
-p
512M
110 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
111 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
112 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
118 define Build
/wrgg-image
121 -d
"$(WRGG_DEVNAME)" \
122 -s
"$(WRGG_SIGNATURE)" \
127 define Device
/8dev_habanero-dvk
128 $(call Device
/FitImageLzma
)
129 DEVICE_VENDOR
:= 8devices
130 DEVICE_MODEL
:= Habanero DVK
133 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
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
:= 20439300
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 ARTIFACTS
:= install.trx
248 ARTIFACT
/install.trx
:= copy-file
$(KDIR
)/tmp
/$$(KERNEL_INITRAMFS_IMAGE
) \
249 | pad-to
$$$$(IMAGE_SIZE
) | uImage none
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
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
310 TARGET_DEVICES
+= buffalo_wtr-m2133hp
312 define Device
/cellc_rtl30vw
313 KERNEL_SUFFIX
:= -fit-zImage.itb
314 KERNEL_INITRAMFS
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
315 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | uImage lzma | pad-to
2048
316 KERNEL_NAME
:= zImage
318 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
319 IMAGE
/nand-factory.bin
:= append-rootfshdr | append-ubi | qsdk-ipq-factory-nand-askey
320 IMAGE
/nand-sysupgrade.bin
:= append-rootfshdr | sysupgrade-tar | append-metadata
321 DEVICE_VENDOR
:= Cell C
322 DEVICE_MODEL
:= RTL30VW
324 DEVICE_DTS_CONFIG
:= config@
5
330 DEVICE_PACKAGES
:= kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
332 TARGET_DEVICES
+= cellc_rtl30vw
334 define Device
/cilab_meshpoint-one
335 $(call Device
/8dev_jalapeno-common
)
336 DEVICE_VENDOR
:= Crisis Innovation Lab
337 DEVICE_MODEL
:= MeshPoint.One
338 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
340 TARGET_DEVICES
+= cilab_meshpoint-one
342 define Device
/compex_wpj419
343 $(call Device
/FitImage
)
344 $(call Device
/UbiFit
)
345 DEVICE_VENDOR
:= Compex
346 DEVICE_MODEL
:= WPJ419
348 DEVICE_DTS_CONFIG
:= config@
12
352 FILESYSTEMS
:= squashfs
354 TARGET_DEVICES
+= compex_wpj419
356 define Device
/compex_wpj428
357 $(call Device
/FitImage
)
358 DEVICE_VENDOR
:= Compex
359 DEVICE_MODEL
:= WPJ428
361 DEVICE_DTS_CONFIG
:= config@
4
365 IMAGES
+= cpximg-6a04.bin
366 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
367 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
368 DEVICE_PACKAGES
:= kmod-gpio-beeper
371 TARGET_DEVICES
+= compex_wpj428
373 define Device
/devolo_magic-2-wifi-next
374 $(call Device
/FitImage
)
375 DEVICE_VENDOR
:= devolo
376 DEVICE_MODEL
:= Magic
2 WiFi next
380 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
381 # it will bootm it, just like we want for the initramfs.
382 KERNEL_INITRAMFS
:= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
64k |\
383 append-string
-e
'\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
386 IMAGES
:= sysupgrade.bin
387 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
388 DEVICE_PACKAGES
:= ipq-wifi-devolo_magic-2-wifi-next
391 TARGET_DEVICES
+= devolo_magic-2-wifi-next
393 define Device
/dlink_dap-2610
394 $(call Device
/FitImageLzma
)
395 DEVICE_VENDOR
:= D-Link
396 DEVICE_MODEL
:= DAP-2610
398 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
400 WRGG_DEVNAME
:= /dev
/mtdblock
/8
401 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
403 IMAGES
+= factory.bin
404 # Bootloader expects a special 160 byte header which is added by
406 # Factory image size must be larger than 6MB, and size in wrgg header must
407 # match actual factory image size to be flashable from D-Link http server.
408 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
409 # cannot be part of the wrgg image. This is solved in the factory image by
410 # having the rootfs at the end of the image (without pad-rootfs). And in
411 # the sysupgrade image only the kernel is included in the wrgg checksum,
412 # but this is not flashable from the D-link http server.
413 # append-rootfs must start on an erase block boundary.
414 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
415 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
417 TARGET_DEVICES
+= dlink_dap-2610
419 define Device
/edgecore_ecw5211
420 $(call Device
/FitImage
)
421 $(call Device
/UbiFit
)
422 DEVICE_VENDOR
:= Edgecore
423 DEVICE_MODEL
:= ECW5211
427 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c2
428 DEVICE_PACKAGES
:= kmod-tpm-i2c-atmel kmod-usb-acm
430 TARGET_DEVICES
+= edgecore_ecw5211
432 define Device
/edgecore_oap100
433 $(call Device
/FitImage
)
434 $(call Device
/UbiFit
)
435 DEVICE_VENDOR
:= Edgecore
436 DEVICE_MODEL
:= OAP100
440 IMAGES
:= nand-sysupgrade.bin
441 DEVICE_DTS_CONFIG
:= config@ap.dk07.1
-c1
442 DEVICE_PACKAGES
:= ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
444 TARGET_DEVICES
+= edgecore_oap100
446 define Device
/engenius_eap1300
447 $(call Device
/FitImage
)
448 DEVICE_VENDOR
:= EnGenius
449 DEVICE_MODEL
:= EAP1300
450 DEVICE_DTS_CONFIG
:= config@
4
451 BOARD_NAME
:= eap1300
455 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
457 TARGET_DEVICES
+= engenius_eap1300
459 define Device
/engenius_eap2200
460 $(call Device
/FitImage
)
461 $(call Device
/UbiFit
)
462 DEVICE_VENDOR
:= EnGenius
463 DEVICE_MODEL
:= EAP2200
467 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
469 TARGET_DEVICES
+= engenius_eap2200
471 define Device
/engenius_emd1
472 $(call Device
/FitImage
)
473 DEVICE_VENDOR
:= EnGenius
475 DEVICE_DTS_CONFIG
:= config@
4
478 IMAGES
+= factory.bin
479 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
480 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
482 TARGET_DEVICES
+= engenius_emd1
484 define Device
/engenius_emr3500
485 $(call Device
/FitImage
)
486 DEVICE_VENDOR
:= EnGenius
487 DEVICE_MODEL
:= EMR3500
488 DEVICE_DTS_CONFIG
:= config@
4
492 IMAGES
+= factory.bin
493 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
494 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
497 TARGET_DEVICES
+= engenius_emr3500
499 define Device
/engenius_ens620ext
500 $(call Device
/FitImage
)
501 DEVICE_VENDOR
:= EnGenius
502 DEVICE_MODEL
:= ENS620EXT
504 DEVICE_DTS_CONFIG
:= config@
4
507 BOARD_NAME
:= ENS620EXT
510 PRODUCT_ID_NEW
:= 0xA4
517 FILESYSTEMS
:= squashfs
518 IMAGES
+= factory_30.bin factory_35.bin
519 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
520 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
521 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
523 TARGET_DEVICES
+= engenius_ens620ext
525 define Device
/ezviz_cs-w3-wd1200g-eup
526 $(call Device
/FitImage
)
527 DEVICE_VENDOR
:= EZVIZ
528 DEVICE_MODEL
:= CS-W3-WD1200G
529 DEVICE_VARIANT
:= EUP
533 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
535 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
536 DEVICE_COMPAT_VERSION
:= 2.0
537 DEVICE_COMPAT_MESSAGE
:= uboot
's bootcmd has to be updated (see wiki). \
538 Upgrade via sysupgrade mechanism is not possible.
540 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
542 define Device/glinet_gl-ap1300
543 $(call Device/FitImage)
544 $(call Device/UbiFit)
545 DEVICE_VENDOR := GL.iNet
546 DEVICE_MODEL := GL-AP1300
548 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
551 IMAGE_SIZE := 131072k
553 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300
555 TARGET_DEVICES += glinet_gl-ap1300
557 define Device/glinet_gl-b1300
558 $(call Device/FitzImage)
559 DEVICE_VENDOR := GL.iNet
560 DEVICE_MODEL := GL-B1300
561 BOARD_NAME := gl-b1300
565 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
567 TARGET_DEVICES += glinet_gl-b1300
569 define Device/glinet_gl-b2200
570 $(call Device/FitzImage)
571 DEVICE_VENDOR := GL.iNet
572 DEVICE_MODEL := GL-B2200
574 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
575 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
576 IMAGES := emmc.img.gz sysupgrade.bin
577 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
578 pad-to 1024k | append-kernel |\
579 pad-to 33792k | append-rootfs |\
580 append-metadata | gzip
581 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
582 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-glinet_gl-b2200 \
583 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
585 TARGET_DEVICES += glinet_gl-b2200
587 define Device/glinet_gl-s1300
588 $(call Device/FitzImage)
589 DEVICE_VENDOR := GL.iNet
590 DEVICE_MODEL := GL-S1300
594 IMAGES := sysupgrade.bin
595 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
596 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
598 TARGET_DEVICES += glinet_gl-s1300
600 define Device/linksys_ea6350v3
601 # The Linksys EA6350v3 has a uboot bootloader that does not
602 # support either booting lzma kernel images nor booting UBI
603 # partitions. This uboot, however, supports raw kernel images and
606 # As for the time of writing this, the device will boot the kernel
607 # from a fixed address with a fixed length of 3MiB. Also, the
608 # device has a hard-coded kernel command line that requieres the
609 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
610 # Oh... and the kernel partition overlaps with the rootfs
611 # partition (the same for alt_kernel and alt_rootfs).
613 # If you are planing re-partitioning the device, you may want to
614 # keep those details in mind:
615 # 1. The kernel adresses you should honor are 0x00000000 and
616 # 0x02800000 respectively.
617 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
618 # 3. You can use 'zImage
', but not a raw 'Image
' packed with lzma.
619 # 4. The kernel command line from uboot is harcoded to boot with
620 # rootfs either in mtd11 or mtd13.
621 $(call Device/FitzImage)
622 DEVICE_VENDOR := Linksys
623 DEVICE_MODEL := EA6350
631 IMAGES += factory.bin
632 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
634 TARGET_DEVICES += linksys_ea6350v3
636 define Device/linksys_ea8300
637 $(call Device/FitzImage)
638 DEVICE_VENDOR := Linksys
639 DEVICE_MODEL := EA8300
645 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
646 IMAGES += factory.bin
647 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
648 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
650 TARGET_DEVICES += linksys_ea8300
652 define Device/linksys_mr8300
653 $(call Device/FitzImage)
654 DEVICE_VENDOR := Linksys
655 DEVICE_MODEL := MR8300
661 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
662 IMAGES += factory.bin
663 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
664 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
666 TARGET_DEVICES += linksys_mr8300
668 define Device/linksys_whw01-v1
669 $(call Device/FitzImage)
670 DEVICE_VENDOR := Linksys
671 DEVICE_MODEL := WHW01
674 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
678 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
679 IMAGES += factory.bin
680 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
681 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
683 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
685 TARGET_DEVICES += linksys_whw01-v1
687 define Device/luma_wrtq-329acn
688 $(call Device/FitImage)
689 DEVICE_VENDOR := Luma Home
690 DEVICE_MODEL := WRTQ-329ACN
692 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
697 TARGET_DEVICES += luma_wrtq-329acn
699 define Device/meraki_mr33
700 $(call Device/FitImage)
701 DEVICE_VENDOR := Cisco Meraki
706 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
708 TARGET_DEVICES += meraki_mr33
710 define Device/mobipromo_cm520-79f
711 $(call Device/FitzImage)
712 $(call Device/UbiFit)
713 DEVICE_VENDOR := MobiPromo
714 DEVICE_MODEL := CM520-79F
718 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
720 TARGET_DEVICES += mobipromo_cm520-79f
722 define Device/netgear_ex61x0v2
723 $(call Device/DniImage)
724 DEVICE_VENDOR := NETGEAR
725 DEVICE_DTS_CONFIG := config@4
726 NETGEAR_BOARD_ID := EX6150v2series
727 NETGEAR_HW_ID := 29765285+16+0+128+2x2
732 define Device/netgear_ex6100v2
733 $(call Device/netgear_ex61x0v2)
734 DEVICE_MODEL := EX6100
737 TARGET_DEVICES += netgear_ex6100v2
739 define Device/netgear_ex6150v2
740 $(call Device/netgear_ex61x0v2)
741 DEVICE_MODEL := EX6150
744 TARGET_DEVICES += netgear_ex6150v2
746 define Device/netgear_orbi
747 $(call Device/DniImage)
749 DEVICE_VENDOR := NETGEAR
750 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
751 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
752 append-rootfs | pad-rootfs | netgear-dni
753 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
754 sysupgrade-tar rootfs=$$$$@ | append-metadata
755 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
758 define Device/netgear_rbx50
759 $(call Device/netgear_orbi)
760 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
761 KERNEL_SIZE := 3932160
762 ROOTFS_SIZE := 32243712
763 IMAGE_SIZE := 36175872
766 define Device/netgear_rbr50
767 $(call Device/netgear_rbx50)
768 DEVICE_MODEL := RBR50
770 NETGEAR_BOARD_ID := RBR50
772 TARGET_DEVICES += netgear_rbr50
774 define Device/netgear_rbs50
775 $(call Device/netgear_rbx50)
776 DEVICE_MODEL := RBS50
778 NETGEAR_BOARD_ID := RBS50
780 TARGET_DEVICES += netgear_rbs50
782 define Device/netgear_srx60
783 $(call Device/netgear_orbi)
784 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
785 KERNEL_SIZE := 3932160
786 ROOTFS_SIZE := 32243712
787 IMAGE_SIZE := 36175872
790 define Device/netgear_srr60
791 $(call Device/netgear_srx60)
792 DEVICE_MODEL := SRR60
793 NETGEAR_BOARD_ID := SRR60
795 TARGET_DEVICES += netgear_srr60
797 define Device/netgear_srs60
798 $(call Device/netgear_srx60)
799 DEVICE_MODEL := SRS60
800 NETGEAR_BOARD_ID := SRS60
802 TARGET_DEVICES += netgear_srs60
804 define Device/netgear_wac510
805 $(call Device/FitImage)
806 $(call Device/UbiFit)
807 DEVICE_VENDOR := Netgear
808 DEVICE_MODEL := WAC510
810 DEVICE_DTS_CONFIG := config@5
813 IMAGES += nand-factory.tar
814 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
815 DEVICE_PACKAGES := uboot-envtools
817 TARGET_DEVICES += netgear_wac510
819 define Device/openmesh_a42
820 $(call Device/FitImageLzma)
821 DEVICE_VENDOR := OpenMesh
824 DEVICE_DTS_CONFIG := config@om.a42
826 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
828 IMAGES += factory.bin
829 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
830 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
832 TARGET_DEVICES += openmesh_a42
834 define Device/openmesh_a62
835 $(call Device/FitImageLzma)
836 DEVICE_VENDOR := OpenMesh
839 DEVICE_DTS_CONFIG := config@om.a62
841 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
843 IMAGES += factory.bin
844 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
845 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
846 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
848 TARGET_DEVICES += openmesh_a62
850 define Device/p2w_r619ac
851 $(call Device/FitzImage)
852 $(call Device/UbiFit)
854 DEVICE_MODEL := R619AC
856 DEVICE_DTS_CONFIG := config@10
859 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
862 define Device/p2w_r619ac-64m
863 $(call Device/p2w_r619ac)
864 DEVICE_VARIANT := 64M NAND
865 IMAGES += nand-factory.bin
866 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
868 TARGET_DEVICES += p2w_r619ac-64m
870 define Device/p2w_r619ac-128m
871 $(call Device/p2w_r619ac)
872 DEVICE_VARIANT := 128M NAND
874 TARGET_DEVICES += p2w_r619ac-128m
876 define Device/plasmacloud_pa1200
877 $(call Device/FitImageLzma)
878 DEVICE_VENDOR := Plasma Cloud
879 DEVICE_MODEL := PA1200
881 DEVICE_DTS_CONFIG := config@pc.pa1200
883 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
885 IMAGES += factory.bin
886 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
887 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
889 TARGET_DEVICES += plasmacloud_pa1200
891 define Device/plasmacloud_pa2200
892 $(call Device/FitImageLzma)
893 DEVICE_VENDOR := Plasma Cloud
894 DEVICE_MODEL := PA2200
896 DEVICE_DTS_CONFIG := config@pc.pa2200
898 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
900 IMAGES += factory.bin
901 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
902 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
903 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
905 TARGET_DEVICES += plasmacloud_pa2200
907 define Device/qcom_ap-dk01.1-c1
908 DEVICE_VENDOR := Qualcomm Atheros
909 DEVICE_MODEL := AP-DK01.1
911 BOARD_NAME := ap-dk01.1-c1
913 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
917 $(call Device/FitImage)
918 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
921 TARGET_DEVICES += qcom_ap-dk01.1-c1
923 define Device/qcom_ap-dk04.1-c1
924 $(call Device/FitImage)
925 $(call Device/UbiFit)
926 DEVICE_VENDOR := Qualcomm Atheros
927 DEVICE_MODEL := AP-DK04.1
930 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
935 BOARD_NAME := ap-dk04.1-c1
938 TARGET_DEVICES += qcom_ap-dk04.1-c1
940 define Device/qxwlan_e2600ac-c1
941 $(call Device/FitImage)
942 DEVICE_VENDOR := Qxwlan
943 DEVICE_MODEL := E2600AC
945 BOARD_NAME := e2600ac-c1
949 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
950 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
953 TARGET_DEVICES += qxwlan_e2600ac-c1
955 define Device/qxwlan_e2600ac-c2
956 $(call Device/FitImage)
957 $(call Device/UbiFit)
958 DEVICE_VENDOR := Qxwlan
959 DEVICE_MODEL := E2600AC
965 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
967 TARGET_DEVICES += qxwlan_e2600ac-c2
969 define Device/teltonika_rutx10
970 $(call Device/FitImage)
971 $(call Device/UbiFit)
972 DEVICE_VENDOR := Teltonika
973 DEVICE_MODEL := RUTX10
975 DEVICE_DTS_CONFIG := config@5
979 FILESYSTEMS := squashfs
980 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
981 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
983 TARGET_DEVICES += teltonika_rutx10
985 define Device/tel_x1pro
986 $(call Device/FitImage)
987 DEVICE_VENDOR := Telco
988 DEVICE_MODEL := X1 Pro
992 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
993 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
996 TARGET_DEVICES += tel_x1pro
998 define Device/unielec_u4019-32m
999 $(call Device/FitImage)
1000 DEVICE_VENDOR := Unielec
1001 DEVICE_MODEL := U4019
1002 DEVICE_VARIANT := 32M
1003 BOARD_NAME := u4019-32m
1005 KERNEL_SIZE := 4096k
1006 IMAGE_SIZE := 31232k
1007 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1010 TARGET_DEVICES += unielec_u4019-32m
1012 define Device/zte_mf286d
1013 $(call Device/FitzImage)
1014 DEVICE_VENDOR := ZTE
1015 DEVICE_MODEL := MF286D
1017 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1021 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1023 TARGET_DEVICES += zte_mf286d
1025 define Device/zyxel_nbg6617
1026 $(call Device/FitImageLzma)
1027 DEVICE_VENDOR := ZyXEL
1028 DEVICE_MODEL := NBG6617
1030 KERNEL_SIZE := 4096k
1031 ROOTFS_SIZE := 24960k
1032 RAS_BOARD := NBG6617
1033 RAS_ROOTFS_SIZE := 19840k
1034 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1035 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1036 IMAGES += factory.bin
1037 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1038 # at least as large as the one of the initial firmware image (not the current
1039 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1040 # this minimum-size. However, the larger image can be flashed both ways.
1041 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1042 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1043 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1045 TARGET_DEVICES += zyxel_nbg6617
1047 define Device/zyxel_wre6606
1048 $(call Device/FitImage)
1049 DEVICE_VENDOR := ZyXEL
1050 DEVICE_MODEL := WRE6606
1051 DEVICE_DTS_CONFIG := config@4
1053 IMAGE_SIZE := 13184k
1054 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1055 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1057 TARGET_DEVICES += zyxel_wre6606