ipq40xx: add RT-AC2200 alternative name to RT-AC42U/RT-ACRH17
[openwrt/openwrt.git] / target / linux / ipq40xx / image / generic.mk
1
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
5
6 define Device/FitImage
7 KERNEL_SUFFIX := -fit-uImage.itb
8 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
9 KERNEL_NAME := Image
10 endef
11
12 define Device/FitImageLzma
13 KERNEL_SUFFIX := -fit-uImage.itb
14 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
15 KERNEL_NAME := Image
16 endef
17
18 define Device/FitzImage
19 KERNEL_SUFFIX := -fit-zImage.itb
20 KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
21 KERNEL_NAME := zImage
22 endef
23
24 define Device/UbiFit
25 KERNEL_IN_UBI := 1
26 IMAGES := nand-factory.ubi nand-sysupgrade.bin
27 IMAGE/nand-factory.ubi := append-ubi
28 IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
29 endef
30
31 define Device/DniImage
32 $(call Device/FitzImage)
33 NETGEAR_BOARD_ID :=
34 NETGEAR_HW_ID :=
35 IMAGES += factory.img
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
39 endef
40
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)
47 endef
48
49 define Build/append-rutx-metadata
50 echo \
51 '{ \
52 "device_code": [".*"], \
53 "hwver": [".*"], \
54 "batch": [".*"], \
55 "serial": [".*"], \
56 "supported_devices":["teltonika,rutx"] \
57 }' | fwtool -I - $@
58 endef
59
60 define Build/copy-file
61 cat "$(1)" > "$@"
62 endef
63
64 define Build/mkmylofw_32m
65 $(eval device_id=$(word 1,$(1)))
66 $(eval revision=$(word 2,$(1)))
67
68 let \
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":$@ \
76 $@.new
77 @mv $@.new $@
78 endef
79
80 define Build/wac5xx-netgear-tar
81 mkdir $@.tmp
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 $@ .
87 rm -rf $@.tmp
88 endef
89
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) \
94 ubifs $@
95 PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
96 @mv $@.new $@
97 endef
98
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
105 cat $@.tmp >> $@
106 rm $@.tmp
107 endef
108
109 define Build/SenaoFW
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 \
113 -e $@ \
114 -o $@.new
115 @cp $@.new $@
116 endef
117
118 define Build/wrgg-image
119 mkwrggimg -i $@ \
120 -o $@.new \
121 -d "$(WRGG_DEVNAME)" \
122 -s "$(WRGG_SIGNATURE)" \
123 -v "" -m "" -B ""
124 mv $@.new $@
125 endef
126
127 define Device/8dev_habanero-dvk
128 $(call Device/FitImageLzma)
129 DEVICE_VENDOR := 8devices
130 DEVICE_MODEL := Habanero DVK
131 IMAGE_SIZE := 30976k
132 SOC := qcom-ipq4019
133 DEVICE_PACKAGES := ipq-wifi-8dev_habanero-dvk
134 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | check-size | append-metadata
135 endef
136 TARGET_DEVICES += 8dev_habanero-dvk
137
138 define Device/8dev_jalapeno-common
139 $(call Device/FitImage)
140 $(call Device/UbiFit)
141 BLOCKSIZE := 128k
142 PAGESIZE := 2048
143 SOC := qcom-ipq4018
144 endef
145
146 define Device/8dev_jalapeno
147 $(call Device/8dev_jalapeno-common)
148 DEVICE_VENDOR := 8devices
149 DEVICE_MODEL := Jalapeno
150 endef
151 TARGET_DEVICES += 8dev_jalapeno
152
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
158 SOC := qcom-ipq4018
159 DEVICE_PACKAGES := kmod-usb-acm kmod-tpm-i2c-atmel
160 BLOCKSIZE := 128k
161 PAGESIZE := 2048
162 IMAGE_SIZE := 65536k
163 IMAGES := nand-factory.bin nand-sysupgrade.bin
164 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
165 endef
166 TARGET_DEVICES += alfa-network_ap120c-ac
167
168 define Device/aruba_glenmorangie
169 $(call Device/FitImageLzma)
170 DEVICE_VENDOR := Aruba
171 SOC := qcom-ipq4029
172 DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
173 endef
174
175 define Device/aruba_ap-303
176 $(call Device/aruba_glenmorangie)
177 DEVICE_MODEL := AP-303
178 endef
179 TARGET_DEVICES += aruba_ap-303
180
181 define Device/aruba_ap-303h
182 $(call Device/aruba_glenmorangie)
183 DEVICE_MODEL := AP-303H
184 endef
185 TARGET_DEVICES += aruba_ap-303h
186
187 define Device/aruba_ap-365
188 $(call Device/aruba_glenmorangie)
189 DEVICE_MODEL := AP-365
190 DEVICE_PACKAGES += kmod-hwmon-ad7418
191 endef
192 TARGET_DEVICES += aruba_ap-365
193
194 define Device/asus_map-ac2200
195 $(call Device/FitImageLzma)
196 DEVICE_VENDOR := ASUS
197 DEVICE_MODEL := Lyra (MAP-AC2200)
198 SOC := qcom-ipq4019
199 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
200 endef
201 TARGET_DEVICES += asus_map-ac2200
202
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
219 SOC := qcom-ipq4019
220 BLOCKSIZE := 128k
221 PAGESIZE := 2048
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 ipq-wifi-asus_rt-ac42u kmod-usb-ledtrig-usbport
229 endef
230 TARGET_DEVICES += asus_rt-ac42u
231
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
238 SOC := qcom-ipq4018
239 BLOCKSIZE := 128k
240 PAGESIZE := 2048
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
251 endef
252 TARGET_DEVICES += asus_rt-ac58u
253
254 define Device/avm_fritzbox-4040
255 $(call Device/FitImageLzma)
256 DEVICE_VENDOR := AVM
257 DEVICE_MODEL := FRITZ!Box 4040
258 SOC := qcom-ipq4018
259 BOARD_NAME := fritz4040
260 IMAGE_SIZE := 29056k
261 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
262 UBOOT_PARTITION_SIZE := 524288
263 IMAGES += eva.bin
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
267 endef
268 TARGET_DEVICES += avm_fritzbox-4040
269
270 define Device/avm_fritzbox-7530
271 $(call Device/FitImageLzma)
272 DEVICE_VENDOR := AVM
273 DEVICE_MODEL := FRITZ!Box 7530
274 DEVICE_ALT0_VENDOR := AVM
275 DEVICE_ALT0_MODEL := FRITZ!Box 7520
276 SOC := qcom-ipq4019
277 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
278 endef
279 TARGET_DEVICES += avm_fritzbox-7530
280
281 define Device/avm_fritzrepeater-1200
282 $(call Device/FitImageLzma)
283 DEVICE_VENDOR := AVM
284 DEVICE_MODEL := FRITZ!Repeater 1200
285 SOC := qcom-ipq4019
286 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
287 endef
288 TARGET_DEVICES += avm_fritzrepeater-1200
289
290 define Device/avm_fritzrepeater-3000
291 $(call Device/FitImageLzma)
292 DEVICE_VENDOR := AVM
293 DEVICE_MODEL := FRITZ!Repeater 3000
294 SOC := qcom-ipq4019
295 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
296 endef
297 TARGET_DEVICES += avm_fritzrepeater-3000
298
299 define Device/buffalo_wtr-m2133hp
300 $(call Device/FitImage)
301 $(call Device/UbiFit)
302 DEVICE_VENDOR := Buffalo
303 DEVICE_MODEL := WTR-M2133HP
304 SOC := qcom-ipq4019
305 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct ipq-wifi-buffalo_wtr-m2133hp
306 BLOCKSIZE := 128k
307 PAGESIZE := 2048
308 endef
309 TARGET_DEVICES += buffalo_wtr-m2133hp
310
311 define Device/cellc_rtl30vw
312 KERNEL_SUFFIX := -fit-zImage.itb
313 KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
314 KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | uImage lzma | pad-to 2048
315 KERNEL_NAME := zImage
316 KERNEL_IN_UBI :=
317 IMAGES := nand-factory.bin nand-sysupgrade.bin
318 IMAGE/nand-factory.bin := append-rootfshdr | append-ubi | qsdk-ipq-factory-nand-askey
319 IMAGE/nand-sysupgrade.bin := append-rootfshdr | sysupgrade-tar | append-metadata
320 DEVICE_VENDOR := Cell C
321 DEVICE_MODEL := RTL30VW
322 SOC := qcom-ipq4019
323 DEVICE_DTS_CONFIG := config@5
324 KERNEL_INSTALL := 1
325 KERNEL_SIZE := 4096k
326 IMAGE_SIZE := 57344k
327 BLOCKSIZE := 128k
328 PAGESIZE := 2048
329 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi ipq-wifi-cellc_rtl30vw
330 endef
331 TARGET_DEVICES += cellc_rtl30vw
332
333 define Device/cilab_meshpoint-one
334 $(call Device/8dev_jalapeno-common)
335 DEVICE_VENDOR := Crisis Innovation Lab
336 DEVICE_MODEL := MeshPoint.One
337 DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
338 endef
339 TARGET_DEVICES += cilab_meshpoint-one
340
341 define Device/compex_wpj419
342 $(call Device/FitImage)
343 $(call Device/UbiFit)
344 DEVICE_VENDOR := Compex
345 DEVICE_MODEL := WPJ419
346 SOC := qcom-ipq4019
347 DEVICE_DTS_CONFIG := config@12
348 KERNEL_INSTALL := 1
349 BLOCKSIZE := 128k
350 PAGESIZE := 2048
351 FILESYSTEMS := squashfs
352 endef
353 TARGET_DEVICES += compex_wpj419
354
355 define Device/compex_wpj428
356 $(call Device/FitImage)
357 DEVICE_VENDOR := Compex
358 DEVICE_MODEL := WPJ428
359 SOC := qcom-ipq4028
360 DEVICE_DTS_CONFIG := config@4
361 BLOCKSIZE := 64k
362 IMAGE_SIZE := 31232k
363 KERNEL_SIZE := 4096k
364 IMAGES += cpximg-6a04.bin
365 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
366 IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
367 DEVICE_PACKAGES := kmod-gpio-beeper
368 DEFAULT := n
369 endef
370 TARGET_DEVICES += compex_wpj428
371
372 define Device/devolo_magic-2-wifi-next
373 $(call Device/FitImage)
374 DEVICE_VENDOR := devolo
375 DEVICE_MODEL := Magic 2 WiFi next
376 SOC := qcom-ipq4018
377 KERNEL_SIZE := 4096k
378
379 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
380 # it will bootm it, just like we want for the initramfs.
381 KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to 64k |\
382 append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
383
384 IMAGE_SIZE := 26624k
385 IMAGES := sysupgrade.bin
386 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
387 DEVICE_PACKAGES := ipq-wifi-devolo_magic-2-wifi-next
388 DEFAULT := n
389 endef
390 TARGET_DEVICES += devolo_magic-2-wifi-next
391
392 define Device/dlink_dap-2610
393 $(call Device/FitImageLzma)
394 DEVICE_VENDOR := D-Link
395 DEVICE_MODEL := DAP-2610
396 SOC := qcom-ipq4018
397 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
398 BLOCKSIZE := 64k
399 WRGG_DEVNAME := /dev/mtdblock/8
400 WRGG_SIGNATURE := wapac30_dkbs_dap2610
401 IMAGE_SIZE := 14080k
402 IMAGES += factory.bin
403 # Bootloader expects a special 160 byte header which is added by
404 # wrgg-image.
405 # Factory image size must be larger than 6MB, and size in wrgg header must
406 # match actual factory image size to be flashable from D-Link http server.
407 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
408 # cannot be part of the wrgg image. This is solved in the factory image by
409 # having the rootfs at the end of the image (without pad-rootfs). And in
410 # the sysupgrade image only the kernel is included in the wrgg checksum,
411 # but this is not flashable from the D-link http server.
412 # append-rootfs must start on an erase block boundary.
413 IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
414 IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
415 DEVICE_PACKAGES := ipq-wifi-dlink_dap2610
416 endef
417 TARGET_DEVICES += dlink_dap-2610
418
419 define Device/edgecore_ecw5211
420 $(call Device/FitImage)
421 $(call Device/UbiFit)
422 DEVICE_VENDOR := Edgecore
423 DEVICE_MODEL := ECW5211
424 SOC := qcom-ipq4018
425 BLOCKSIZE := 128k
426 PAGESIZE := 2048
427 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
428 DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
429 endef
430 TARGET_DEVICES += edgecore_ecw5211
431
432 define Device/edgecore_oap100
433 $(call Device/FitImage)
434 $(call Device/UbiFit)
435 DEVICE_VENDOR := Edgecore
436 DEVICE_MODEL := OAP100
437 SOC := qcom-ipq4019
438 BLOCKSIZE := 128k
439 PAGESIZE := 2048
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
443 endef
444 TARGET_DEVICES += edgecore_oap100
445
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
452 SOC := qcom-ipq4018
453 KERNEL_SIZE := 5120k
454 IMAGE_SIZE := 25344k
455 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
456 endef
457 TARGET_DEVICES += engenius_eap1300
458
459 define Device/engenius_eap2200
460 $(call Device/FitImage)
461 $(call Device/UbiFit)
462 DEVICE_VENDOR := EnGenius
463 DEVICE_MODEL := EAP2200
464 SOC := qcom-ipq4019
465 BLOCKSIZE := 128k
466 PAGESIZE := 2048
467 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-engenius_eap2200 -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
468 endef
469 TARGET_DEVICES += engenius_eap2200
470
471 define Device/engenius_emd1
472 $(call Device/FitImage)
473 DEVICE_VENDOR := EnGenius
474 DEVICE_MODEL := EMD1
475 DEVICE_DTS_CONFIG := config@4
476 SOC := qcom-ipq4018
477 IMAGE_SIZE := 30720k
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
481 DEVICE_PACKAGES := ipq-wifi-engenius_emd1
482 endef
483 TARGET_DEVICES += engenius_emd1
484
485 define Device/engenius_emr3500
486 $(call Device/FitImage)
487 DEVICE_VENDOR := EnGenius
488 DEVICE_MODEL := EMR3500
489 DEVICE_DTS_CONFIG := config@4
490 SOC := qcom-ipq4018
491 KERNEL_SIZE := 4096k
492 IMAGE_SIZE := 30720k
493 IMAGES += factory.bin
494 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
495 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
496 DEVICE_PACKAGES := ipq-wifi-engenius_emr3500
497 DEFAULT := n
498 endef
499 TARGET_DEVICES += engenius_emr3500
500
501 define Device/engenius_ens620ext
502 $(call Device/FitImage)
503 DEVICE_VENDOR := EnGenius
504 DEVICE_MODEL := ENS620EXT
505 SOC := qcom-ipq4018
506 DEVICE_DTS_CONFIG := config@4
507 BLOCKSIZE := 64k
508 PAGESIZE := 256
509 BOARD_NAME := ENS620EXT
510 VENDOR_ID := 0x0101
511 PRODUCT_ID := 0x79
512 PRODUCT_ID_NEW := 0xA4
513 DATECODE := 190507
514 FW_VER := 3.1.2
515 FW_VER_NEW := 3.5.6
516 CW_VER := 1.8.99
517 IMAGE_SIZE := 21312k
518 KERNEL_SIZE := 5120k
519 FILESYSTEMS := squashfs
520 IMAGES += factory_30.bin factory_35.bin
521 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
522 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
523 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
524 endef
525 TARGET_DEVICES += engenius_ens620ext
526
527 define Device/ezviz_cs-w3-wd1200g-eup
528 $(call Device/FitImage)
529 DEVICE_VENDOR := EZVIZ
530 DEVICE_MODEL := CS-W3-WD1200G
531 DEVICE_VARIANT := EUP
532 IMAGE_SIZE := 14848k
533 KERNEL_SIZE = 6m
534 SOC := qcom-ipq4018
535 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
536 append-metadata
537 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
538 ipq-wifi-ezviz_cs-w3-wd1200g-eup
539 DEVICE_COMPAT_VERSION := 2.0
540 DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
541 Upgrade via sysupgrade mechanism is not possible.
542 endef
543 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
544
545 define Device/glinet_gl-ap1300
546 $(call Device/FitImage)
547 $(call Device/UbiFit)
548 DEVICE_VENDOR := GL.iNet
549 DEVICE_MODEL := GL-AP1300
550 SOC := qcom-ipq4018
551 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
552 BLOCKSIZE := 128k
553 PAGESIZE := 2048
554 IMAGE_SIZE := 131072k
555 KERNEL_INSTALL := 1
556 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300
557 endef
558 TARGET_DEVICES += glinet_gl-ap1300
559
560 define Device/glinet_gl-b1300
561 $(call Device/FitzImage)
562 DEVICE_VENDOR := GL.iNet
563 DEVICE_MODEL := GL-B1300
564 BOARD_NAME := gl-b1300
565 SOC := qcom-ipq4029
566 KERNEL_SIZE := 4096k
567 IMAGE_SIZE := 26624k
568 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
569 endef
570 TARGET_DEVICES += glinet_gl-b1300
571
572 define Device/glinet_gl-b2200
573 $(call Device/FitzImage)
574 DEVICE_VENDOR := GL.iNet
575 DEVICE_MODEL := GL-B2200
576 SOC := qcom-ipq4019
577 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
578 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
579 IMAGES := emmc.img.gz sysupgrade.bin
580 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
581 pad-to 1024k | append-kernel |\
582 pad-to 33792k | append-rootfs |\
583 append-metadata | gzip
584 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
585 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-glinet_gl-b2200 \
586 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
587 endef
588 TARGET_DEVICES += glinet_gl-b2200
589
590 define Device/glinet_gl-s1300
591 $(call Device/FitzImage)
592 DEVICE_VENDOR := GL.iNet
593 DEVICE_MODEL := GL-S1300
594 SOC := qcom-ipq4029
595 KERNEL_SIZE := 4096k
596 IMAGE_SIZE := 26624k
597 IMAGES := sysupgrade.bin
598 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
599 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
600 endef
601 TARGET_DEVICES += glinet_gl-s1300
602
603 define Device/linksys_ea6350v3
604 # The Linksys EA6350v3 has a uboot bootloader that does not
605 # support either booting lzma kernel images nor booting UBI
606 # partitions. This uboot, however, supports raw kernel images and
607 # gzipped images.
608 #
609 # As for the time of writing this, the device will boot the kernel
610 # from a fixed address with a fixed length of 3MiB. Also, the
611 # device has a hard-coded kernel command line that requieres the
612 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
613 # Oh... and the kernel partition overlaps with the rootfs
614 # partition (the same for alt_kernel and alt_rootfs).
615 #
616 # If you are planing re-partitioning the device, you may want to
617 # keep those details in mind:
618 # 1. The kernel adresses you should honor are 0x00000000 and
619 # 0x02800000 respectively.
620 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
621 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
622 # 4. The kernel command line from uboot is harcoded to boot with
623 # rootfs either in mtd11 or mtd13.
624 $(call Device/FitzImage)
625 DEVICE_VENDOR := Linksys
626 DEVICE_MODEL := EA6350
627 DEVICE_VARIANT := v3
628 SOC := qcom-ipq4018
629 BLOCKSIZE := 128k
630 PAGESIZE := 2048
631 KERNEL_SIZE := 3072k
632 IMAGE_SIZE := 37888k
633 UBINIZE_OPTS := -E 5
634 IMAGES += factory.bin
635 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
636 endef
637 TARGET_DEVICES += linksys_ea6350v3
638
639 define Device/linksys_ea8300
640 $(call Device/FitzImage)
641 DEVICE_VENDOR := Linksys
642 DEVICE_MODEL := EA8300
643 SOC := qcom-ipq4019
644 KERNEL_SIZE := 3072k
645 IMAGE_SIZE := 87040k
646 BLOCKSIZE := 128k
647 PAGESIZE := 2048
648 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
649 IMAGES += factory.bin
650 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
651 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
652 endef
653 TARGET_DEVICES += linksys_ea8300
654
655 define Device/linksys_mr8300
656 $(call Device/FitzImage)
657 DEVICE_VENDOR := Linksys
658 DEVICE_MODEL := MR8300
659 SOC := qcom-ipq4019
660 KERNEL_SIZE := 3072k
661 IMAGE_SIZE := 87040k
662 BLOCKSIZE := 128k
663 PAGESIZE := 2048
664 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
665 IMAGES += factory.bin
666 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
667 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_mr8300-v0 kmod-usb-ledtrig-usbport
668 endef
669 TARGET_DEVICES += linksys_mr8300
670
671 define Device/luma_wrtq-329acn
672 $(call Device/FitImage)
673 DEVICE_VENDOR := Luma Home
674 DEVICE_MODEL := WRTQ-329ACN
675 SOC := qcom-ipq4018
676 DEVICE_PACKAGES := ipq-wifi-luma_wrtq-329acn kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
677 IMAGE_SIZE := 76632k
678 BLOCKSIZE := 128k
679 PAGESIZE := 2048
680 endef
681 TARGET_DEVICES += luma_wrtq-329acn
682
683 define Device/meraki_mr33
684 $(call Device/FitImage)
685 DEVICE_VENDOR := Cisco Meraki
686 DEVICE_MODEL := MR33
687 SOC := qcom-ipq4029
688 BLOCKSIZE := 128k
689 PAGESIZE := 2048
690 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
691 endef
692 TARGET_DEVICES += meraki_mr33
693
694 define Device/mobipromo_cm520-79f
695 $(call Device/FitzImage)
696 $(call Device/UbiFit)
697 DEVICE_VENDOR := MobiPromo
698 DEVICE_MODEL := CM520-79F
699 SOC := qcom-ipq4019
700 BLOCKSIZE := 128k
701 PAGESIZE := 2048
702 DEVICE_PACKAGES := ipq-wifi-mobipromo_cm520-79f kmod-usb-ledtrig-usbport
703 endef
704 TARGET_DEVICES += mobipromo_cm520-79f
705
706 define Device/netgear_ex61x0v2
707 $(call Device/DniImage)
708 DEVICE_VENDOR := NETGEAR
709 DEVICE_DTS_CONFIG := config@4
710 NETGEAR_BOARD_ID := EX6150v2series
711 NETGEAR_HW_ID := 29765285+16+0+128+2x2
712 IMAGE_SIZE := 14400k
713 SOC := qcom-ipq4018
714 endef
715
716 define Device/netgear_ex6100v2
717 $(call Device/netgear_ex61x0v2)
718 DEVICE_MODEL := EX6100
719 DEVICE_VARIANT := v2
720 endef
721 TARGET_DEVICES += netgear_ex6100v2
722
723 define Device/netgear_ex6150v2
724 $(call Device/netgear_ex61x0v2)
725 DEVICE_MODEL := EX6150
726 DEVICE_VARIANT := v2
727 endef
728 TARGET_DEVICES += netgear_ex6150v2
729
730 define Device/netgear_orbi
731 $(call Device/DniImage)
732 SOC := qcom-ipq4019
733 DEVICE_VENDOR := NETGEAR
734 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
735 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
736 append-rootfs | pad-rootfs | netgear-dni
737 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
738 sysupgrade-tar rootfs=$$$$@ | append-metadata
739 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
740 endef
741
742 define Device/netgear_rbx50
743 $(call Device/netgear_orbi)
744 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
745 KERNEL_SIZE := 3932160
746 ROOTFS_SIZE := 32243712
747 IMAGE_SIZE := 36175872
748 endef
749
750 define Device/netgear_rbr50
751 $(call Device/netgear_rbx50)
752 DEVICE_MODEL := RBR50
753 DEVICE_VARIANT := v1
754 NETGEAR_BOARD_ID := RBR50
755 endef
756 TARGET_DEVICES += netgear_rbr50
757
758 define Device/netgear_rbs50
759 $(call Device/netgear_rbx50)
760 DEVICE_MODEL := RBS50
761 DEVICE_VARIANT := v1
762 NETGEAR_BOARD_ID := RBS50
763 endef
764 TARGET_DEVICES += netgear_rbs50
765
766 define Device/netgear_srx60
767 $(call Device/netgear_orbi)
768 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
769 KERNEL_SIZE := 3932160
770 ROOTFS_SIZE := 32243712
771 IMAGE_SIZE := 36175872
772 endef
773
774 define Device/netgear_srr60
775 $(call Device/netgear_srx60)
776 DEVICE_MODEL := SRR60
777 NETGEAR_BOARD_ID := SRR60
778 endef
779 TARGET_DEVICES += netgear_srr60
780
781 define Device/netgear_srs60
782 $(call Device/netgear_srx60)
783 DEVICE_MODEL := SRS60
784 NETGEAR_BOARD_ID := SRS60
785 endef
786 TARGET_DEVICES += netgear_srs60
787
788 define Device/netgear_wac510
789 $(call Device/FitImage)
790 $(call Device/UbiFit)
791 DEVICE_VENDOR := Netgear
792 DEVICE_MODEL := WAC510
793 SOC := qcom-ipq4018
794 DEVICE_DTS_CONFIG := config@5
795 BLOCKSIZE := 128k
796 PAGESIZE := 2048
797 IMAGES += nand-factory.tar
798 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
799 DEVICE_PACKAGES := uboot-envtools
800 endef
801 TARGET_DEVICES += netgear_wac510
802
803 define Device/openmesh_a42
804 $(call Device/FitImageLzma)
805 DEVICE_VENDOR := OpenMesh
806 DEVICE_MODEL := A42
807 SOC := qcom-ipq4018
808 DEVICE_DTS_CONFIG := config@om.a42
809 BLOCKSIZE := 64k
810 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
811 IMAGE_SIZE := 15616k
812 IMAGES += factory.bin
813 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
814 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
815 endef
816 TARGET_DEVICES += openmesh_a42
817
818 define Device/openmesh_a62
819 $(call Device/FitImageLzma)
820 DEVICE_VENDOR := OpenMesh
821 DEVICE_MODEL := A62
822 SOC := qcom-ipq4019
823 DEVICE_DTS_CONFIG := config@om.a62
824 BLOCKSIZE := 64k
825 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
826 IMAGE_SIZE := 15552k
827 IMAGES += factory.bin
828 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
829 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
830 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
831 endef
832 TARGET_DEVICES += openmesh_a62
833
834 define Device/p2w_r619ac
835 $(call Device/FitzImage)
836 $(call Device/UbiFit)
837 DEVICE_VENDOR := P&W
838 DEVICE_MODEL := R619AC
839 SOC := qcom-ipq4019
840 DEVICE_DTS_CONFIG := config@10
841 BLOCKSIZE := 128k
842 PAGESIZE := 2048
843 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
844 endef
845
846 define Device/p2w_r619ac-64m
847 $(call Device/p2w_r619ac)
848 DEVICE_VARIANT := 64M NAND
849 IMAGES += nand-factory.bin
850 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
851 endef
852 TARGET_DEVICES += p2w_r619ac-64m
853
854 define Device/p2w_r619ac-128m
855 $(call Device/p2w_r619ac)
856 DEVICE_VARIANT := 128M NAND
857 endef
858 TARGET_DEVICES += p2w_r619ac-128m
859
860 define Device/plasmacloud_pa1200
861 $(call Device/FitImageLzma)
862 DEVICE_VENDOR := Plasma Cloud
863 DEVICE_MODEL := PA1200
864 SOC := qcom-ipq4018
865 DEVICE_DTS_CONFIG := config@pc.pa1200
866 BLOCKSIZE := 64k
867 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
868 IMAGE_SIZE := 15616k
869 IMAGES += factory.bin
870 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
871 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
872 DEVICE_PACKAGES := ipq-wifi-plasmacloud_pa1200
873 endef
874 TARGET_DEVICES += plasmacloud_pa1200
875
876 define Device/plasmacloud_pa2200
877 $(call Device/FitImageLzma)
878 DEVICE_VENDOR := Plasma Cloud
879 DEVICE_MODEL := PA2200
880 SOC := qcom-ipq4019
881 DEVICE_DTS_CONFIG := config@pc.pa2200
882 BLOCKSIZE := 64k
883 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
884 IMAGE_SIZE := 15552k
885 IMAGES += factory.bin
886 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
887 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
888 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-plasmacloud_pa2200
889 endef
890 TARGET_DEVICES += plasmacloud_pa2200
891
892 define Device/qcom_ap-dk01.1-c1
893 DEVICE_VENDOR := Qualcomm Atheros
894 DEVICE_MODEL := AP-DK01.1
895 DEVICE_VARIANT := C1
896 BOARD_NAME := ap-dk01.1-c1
897 SOC := qcom-ipq4019
898 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
899 KERNEL_INSTALL := 1
900 KERNEL_SIZE := 4096k
901 IMAGE_SIZE := 26624k
902 $(call Device/FitImage)
903 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
904 DEFAULT := n
905 endef
906 TARGET_DEVICES += qcom_ap-dk01.1-c1
907
908 define Device/qcom_ap-dk04.1-c1
909 $(call Device/FitImage)
910 $(call Device/UbiFit)
911 DEVICE_VENDOR := Qualcomm Atheros
912 DEVICE_MODEL := AP-DK04.1
913 DEVICE_VARIANT := C1
914 SOC := qcom-ipq4019
915 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
916 KERNEL_INSTALL := 1
917 KERNEL_SIZE := 4048k
918 BLOCKSIZE := 128k
919 PAGESIZE := 2048
920 BOARD_NAME := ap-dk04.1-c1
921 DEFAULT := n
922 endef
923 TARGET_DEVICES += qcom_ap-dk04.1-c1
924
925 define Device/qxwlan_e2600ac-c1
926 $(call Device/FitImage)
927 DEVICE_VENDOR := Qxwlan
928 DEVICE_MODEL := E2600AC
929 DEVICE_VARIANT := C1
930 BOARD_NAME := e2600ac-c1
931 SOC := qcom-ipq4019
932 KERNEL_SIZE := 4096k
933 IMAGE_SIZE := 31232k
934 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
935 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
936 DEFAULT := n
937 endef
938 TARGET_DEVICES += qxwlan_e2600ac-c1
939
940 define Device/qxwlan_e2600ac-c2
941 $(call Device/FitImage)
942 $(call Device/UbiFit)
943 DEVICE_VENDOR := Qxwlan
944 DEVICE_MODEL := E2600AC
945 DEVICE_VARIANT := C2
946 SOC := qcom-ipq4019
947 KERNEL_INSTALL := 1
948 BLOCKSIZE := 128k
949 PAGESIZE := 2048
950 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
951 endef
952 TARGET_DEVICES += qxwlan_e2600ac-c2
953
954 define Device/teltonika_rutx10
955 $(call Device/FitImage)
956 $(call Device/UbiFit)
957 DEVICE_VENDOR := Teltonika
958 DEVICE_MODEL := RUTX10
959 SOC := qcom-ipq4018
960 DEVICE_DTS_CONFIG := config@5
961 KERNEL_INSTALL := 1
962 BLOCKSIZE := 128k
963 PAGESIZE := 2048
964 FILESYSTEMS := squashfs
965 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
966 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
967 endef
968 TARGET_DEVICES += teltonika_rutx10
969
970 define Device/tel_x1pro
971 $(call Device/FitImage)
972 DEVICE_VENDOR := Telco
973 DEVICE_MODEL := X1 Pro
974 SOC := qcom-ipq4019
975 KERNEL_SIZE := 4096k
976 IMAGE_SIZE := 31232k
977 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
978 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
979 DEFAULT := n
980 endef
981 TARGET_DEVICES += tel_x1pro
982
983 define Device/unielec_u4019-32m
984 $(call Device/FitImage)
985 DEVICE_VENDOR := Unielec
986 DEVICE_MODEL := U4019
987 DEVICE_VARIANT := 32M
988 BOARD_NAME := u4019-32m
989 SOC := qcom-ipq4019
990 KERNEL_SIZE := 4096k
991 IMAGE_SIZE := 31232k
992 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
993 DEFAULT := n
994 endef
995 TARGET_DEVICES += unielec_u4019-32m
996
997 define Device/zte_mf286d
998 $(call Device/FitzImage)
999 DEVICE_VENDOR := ZTE
1000 DEVICE_MODEL := MF286D
1001 SOC := qcom-ipq4019
1002 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1003 BLOCKSIZE := 128k
1004 PAGESIZE := 2048
1005 KERNEL_IN_UBI := 1
1006 DEVICE_PACKAGES := ipq-wifi-zte_mf286d kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1007 endef
1008 TARGET_DEVICES += zte_mf286d
1009
1010 define Device/zyxel_nbg6617
1011 $(call Device/FitImageLzma)
1012 DEVICE_VENDOR := ZyXEL
1013 DEVICE_MODEL := NBG6617
1014 SOC := qcom-ipq4018
1015 KERNEL_SIZE := 4096k
1016 ROOTFS_SIZE := 24960k
1017 RAS_BOARD := NBG6617
1018 RAS_ROOTFS_SIZE := 19840k
1019 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1020 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1021 IMAGES += factory.bin
1022 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1023 # at least as large as the one of the initial firmware image (not the current
1024 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1025 # this minimum-size. However, the larger image can be flashed both ways.
1026 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1027 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1028 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1029 endef
1030 TARGET_DEVICES += zyxel_nbg6617
1031
1032 define Device/zyxel_wre6606
1033 $(call Device/FitImage)
1034 DEVICE_VENDOR := ZyXEL
1035 DEVICE_MODEL := WRE6606
1036 DEVICE_DTS_CONFIG := config@4
1037 SOC := qcom-ipq4018
1038 IMAGE_SIZE := 13184k
1039 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1040 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1041 endef
1042 TARGET_DEVICES += zyxel_wre6606