tools/quilt: update to 0.68
[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 Build/netgear-fit-padding
7 ./netgear-fit-padding.py $@ $@.new
8 mv $@.new $@
9 endef
10
11 define Device/FitImage
12 KERNEL_SUFFIX := -uImage.itb
13 KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
14 KERNEL_NAME := Image
15 endef
16
17 define Device/FitImageLzma
18 KERNEL_SUFFIX := -uImage.itb
19 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
20 KERNEL_NAME := Image
21 endef
22
23 define Device/FitzImage
24 KERNEL_SUFFIX := -zImage.itb
25 KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb
26 KERNEL_NAME := zImage
27 endef
28
29 define Device/UbiFit
30 KERNEL_IN_UBI := 1
31 IMAGES := factory.ubi sysupgrade.bin
32 IMAGE/factory.ubi := append-ubi
33 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
34 endef
35
36 define Device/DniImage
37 $(call Device/FitzImage)
38 NETGEAR_BOARD_ID :=
39 NETGEAR_HW_ID :=
40 IMAGES += factory.img
41 IMAGE/factory.img := append-kernel | netgear-fit-padding | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
42 IMAGE/sysupgrade.bin := append-kernel | netgear-fit-padding | append-uImage-fakehdr filesystem | \
43 append-rootfs | pad-rootfs | check-size | append-metadata
44 endef
45
46 define Build/append-rootfshdr
47 mkimage -A $(LINUX_KARCH) \
48 -O linux -T filesystem \
49 -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
50 -n root.squashfs -d $(IMAGE_ROOTFS) $@.new
51 cat $(IMAGE_KERNEL) > $@.$1
52 dd if=$@.new bs=64 count=1 >> $@.$1
53 endef
54
55 define Build/append-rutx-metadata
56 echo \
57 '{ \
58 "device_code": [".*"], \
59 "hwver": [".*"], \
60 "batch": [".*"], \
61 "serial": [".*"], \
62 "supported_devices":["teltonika,rutx"] \
63 }' | fwtool -I - $@
64 endef
65
66 define Build/copy-file
67 cat "$(1)" > "$@"
68 endef
69
70 define Build/mkmylofw_32m
71 $(eval device_id=$(word 1,$(1)))
72 $(eval revision=$(word 2,$(1)))
73
74 let \
75 size="$$(stat -c%s $@)" \
76 pad="$(call exp_units,$(BLOCKSIZE))" \
77 pad="(pad - (size % pad)) % pad" \
78 newsize='size + pad'; \
79 $(STAGING_DIR_HOST)/bin/mkmylofw \
80 -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
81 -s 0x2000000 -p0x180000:$$newsize:al:0x80208000:"OpenWrt":$@ \
82 $@.new
83 @mv $@.new $@
84 endef
85
86 define Build/wac5xx-netgear-tar
87 mkdir $@.tmp
88 mv $@ $@.tmp/wac5xx-ubifs-root.img
89 md5sum $@.tmp/wac5xx-ubifs-root.img > $@.tmp/wac5xx-ubifs-root.md5sum
90 echo "WAC505 WAC510" > $@.tmp/metadata.txt
91 echo "WAC505_V9.9.9.9" > $@.tmp/version
92 tar -C $@.tmp/ -cf $@ .
93 rm -rf $@.tmp
94 endef
95
96 define Build/qsdk-ipq-factory-nand-askey
97 $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh $@.its\
98 askey_kernel $@.$1 \
99 askey_fs $(IMAGE_ROOTFS) \
100 ubifs $@
101 PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
102 @mv $@.new $@
103 endef
104
105 define Build/qsdk-ipq-app-gpt
106 cp $@ $@.tmp 2>/dev/null || true
107 ptgen -g -o $@.tmp -a 1 -l 1024 \
108 -t 0x2e -N 0:HLOS -r -p 32M \
109 -t 0x83 -N rootfs -r -p 128M \
110 -N rootfs_data -p 512M
111 cat $@.tmp >> $@
112 rm $@.tmp
113 endef
114
115 define Build/SenaoFW
116 -$(STAGING_DIR_HOST)/bin/mksenaofw \
117 -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
118 -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
119 -e $@ \
120 -o $@.new
121 @cp $@.new $@
122 endef
123
124 define Build/wrgg-image
125 mkwrggimg -i $@ \
126 -o $@.new \
127 -d "$(WRGG_DEVNAME)" \
128 -s "$(WRGG_SIGNATURE)" \
129 -v "" -m "" -B ""
130 mv $@.new $@
131 endef
132
133 define Device/8dev_habanero-dvk
134 $(call Device/FitImageLzma)
135 DEVICE_VENDOR := 8devices
136 DEVICE_MODEL := Habanero DVK
137 IMAGE_SIZE := 30976k
138 SOC := qcom-ipq4019
139 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | check-size | append-metadata
140 endef
141 TARGET_DEVICES += 8dev_habanero-dvk
142
143 define Device/8dev_jalapeno-common
144 $(call Device/FitImage)
145 $(call Device/UbiFit)
146 BLOCKSIZE := 128k
147 PAGESIZE := 2048
148 SOC := qcom-ipq4018
149 endef
150
151 define Device/8dev_jalapeno
152 $(call Device/8dev_jalapeno-common)
153 DEVICE_VENDOR := 8devices
154 DEVICE_MODEL := Jalapeno
155 endef
156 TARGET_DEVICES += 8dev_jalapeno
157
158 define Device/alfa-network_ap120c-ac
159 $(call Device/FitImage)
160 $(call Device/UbiFit)
161 DEVICE_VENDOR := ALFA Network
162 DEVICE_MODEL := AP120C-AC
163 SOC := qcom-ipq4018
164 DEVICE_PACKAGES := kmod-usb-acm kmod-tpm-i2c-atmel
165 BLOCKSIZE := 128k
166 PAGESIZE := 2048
167 IMAGE_SIZE := 65536k
168 IMAGES := factory.bin sysupgrade.bin
169 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
170 endef
171 TARGET_DEVICES += alfa-network_ap120c-ac
172
173 define Device/aruba_glenmorangie
174 $(call Device/FitImageLzma)
175 DEVICE_VENDOR := Aruba
176 SOC := qcom-ipq4029
177 endef
178
179 define Device/aruba_ap-303
180 $(call Device/aruba_glenmorangie)
181 DEVICE_MODEL := AP-303
182 endef
183 TARGET_DEVICES += aruba_ap-303
184
185 define Device/aruba_ap-303h
186 $(call Device/aruba_glenmorangie)
187 DEVICE_MODEL := AP-303H
188 endef
189 TARGET_DEVICES += aruba_ap-303h
190
191 define Device/aruba_ap-365
192 $(call Device/aruba_glenmorangie)
193 DEVICE_MODEL := AP-365
194 DEVICE_PACKAGES := kmod-hwmon-ad7418
195 endef
196 TARGET_DEVICES += aruba_ap-365
197
198 define Device/asus_map-ac2200
199 $(call Device/FitImageLzma)
200 DEVICE_VENDOR := ASUS
201 DEVICE_MODEL := Lyra (MAP-AC2200)
202 SOC := qcom-ipq4019
203 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
204 endef
205 TARGET_DEVICES += asus_map-ac2200
206
207 # WARNING: this is an initramfs image that gets you half of the way there
208 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
209 # to get a "trx" you can flash via web UI for ac42u/ac58u:
210 # - change call Device/FitImageLzma to Device/FitImage
211 # - add the following below UIMAGE_NAME
212 # UIMAGE_MAGIC := 0x27051956
213 # IMAGES += factory.trx
214 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
215 define Device/asus_rt-ac42u
216 $(call Device/FitImageLzma)
217 DEVICE_VENDOR := ASUS
218 DEVICE_MODEL := RT-AC42U
219 DEVICE_ALT0_VENDOR := ASUS
220 DEVICE_ALT0_MODEL := RT-ACRH17
221 DEVICE_ALT1_VENDOR := ASUS
222 DEVICE_ALT1_MODEL := RT-AC2200
223 SOC := qcom-ipq4019
224 BLOCKSIZE := 128k
225 PAGESIZE := 2048
226 IMAGE_SIZE := 20439364
227 FILESYSTEMS := squashfs
228 # RT-AC82U is nowhere to be found online
229 # Rather, this device is a/k/a RT-AC42U
230 # But we'll go with what the vendor firmware has...
231 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC82U')
232 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
233 endef
234 TARGET_DEVICES += asus_rt-ac42u
235
236 define Device/asus_rt-ac58u
237 $(call Device/FitImageLzma)
238 DEVICE_VENDOR := ASUS
239 DEVICE_MODEL := RT-AC58U
240 DEVICE_ALT0_VENDOR := ASUS
241 DEVICE_ALT0_MODEL := RT-ACRH13
242 SOC := qcom-ipq4018
243 BLOCKSIZE := 128k
244 PAGESIZE := 2048
245 IMAGE_SIZE := 20439364
246 FILESYSTEMS := squashfs
247 # Someone - in their infinite wisdom - decided to put the firmware
248 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
249 # Since u-boot works with strings we either need another fixup step
250 # to add a version... or we are very careful not to add '\0' into that
251 # string and call it a day.... Yeah, we do the latter!
252 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
253 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
254 kmod-usb-ledtrig-usbport
255 endef
256 TARGET_DEVICES += asus_rt-ac58u
257
258 define Device/avm_fritzbox-4040
259 $(call Device/FitImageLzma)
260 DEVICE_VENDOR := AVM
261 DEVICE_MODEL := FRITZ!Box 4040
262 SOC := qcom-ipq4018
263 BOARD_NAME := fritz4040
264 IMAGE_SIZE := 29056k
265 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
266 UBOOT_PARTITION_SIZE := 524288
267 IMAGES += eva.bin
268 IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
269 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
270 DEVICE_PACKAGES := fritz-tffs fritz-caldata
271 endef
272 TARGET_DEVICES += avm_fritzbox-4040
273
274 define Device/avm_fritzbox-7530
275 $(call Device/FitImageLzma)
276 DEVICE_VENDOR := AVM
277 DEVICE_MODEL := FRITZ!Box 7530
278 DEVICE_ALT0_VENDOR := AVM
279 DEVICE_ALT0_MODEL := FRITZ!Box 7520
280 SOC := qcom-ipq4019
281 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ltq-vdsl-vr11-app
282 endef
283 TARGET_DEVICES += avm_fritzbox-7530
284
285 define Device/avm_fritzrepeater-1200
286 $(call Device/FitImageLzma)
287 DEVICE_VENDOR := AVM
288 DEVICE_MODEL := FRITZ!Repeater 1200
289 SOC := qcom-ipq4019
290 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
291 endef
292 TARGET_DEVICES += avm_fritzrepeater-1200
293
294 define Device/avm_fritzrepeater-3000
295 $(call Device/FitImageLzma)
296 DEVICE_VENDOR := AVM
297 DEVICE_MODEL := FRITZ!Repeater 3000
298 SOC := qcom-ipq4019
299 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
300 endef
301 TARGET_DEVICES += avm_fritzrepeater-3000
302
303 define Device/buffalo_wtr-m2133hp
304 $(call Device/FitImage)
305 $(call Device/UbiFit)
306 DEVICE_VENDOR := Buffalo
307 DEVICE_MODEL := WTR-M2133HP
308 SOC := qcom-ipq4019
309 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
310 BLOCKSIZE := 128k
311 PAGESIZE := 2048
312 endef
313 TARGET_DEVICES += buffalo_wtr-m2133hp
314
315 define Device/cellc_rtl30vw
316 KERNEL_SUFFIX := -zImage.itb
317 KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
318 KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb | uImage lzma | pad-to 2048
319 KERNEL_NAME := zImage
320 KERNEL_IN_UBI :=
321 IMAGES := factory.bin sysupgrade.bin
322 IMAGE/factory.bin := append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
323 IMAGE/sysupgrade.bin := append-rootfshdr kernel | sysupgrade-tar kernel=$$$$@.kernel | append-metadata
324 DEVICE_VENDOR := Cell C
325 DEVICE_MODEL := RTL30VW
326 SOC := qcom-ipq4019
327 DEVICE_DTS_CONFIG := config@5
328 KERNEL_INSTALL := 1
329 KERNEL_SIZE := 4096k
330 IMAGE_SIZE := 57344k
331 BLOCKSIZE := 128k
332 PAGESIZE := 2048
333 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
334 endef
335 TARGET_DEVICES += cellc_rtl30vw
336
337 define Device/cilab_meshpoint-one
338 $(call Device/8dev_jalapeno-common)
339 DEVICE_VENDOR := Crisis Innovation Lab
340 DEVICE_MODEL := MeshPoint.One
341 DEVICE_PACKAGES += kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
342 endef
343 # Missing DSA Setup
344 #TARGET_DEVICES += cilab_meshpoint-one
345
346 define Device/compex_wpj419
347 $(call Device/FitImage)
348 $(call Device/UbiFit)
349 DEVICE_VENDOR := Compex
350 DEVICE_MODEL := WPJ419
351 SOC := qcom-ipq4019
352 DEVICE_DTS_CONFIG := config@12
353 KERNEL_INSTALL := 1
354 BLOCKSIZE := 128k
355 PAGESIZE := 2048
356 FILESYSTEMS := squashfs
357 endef
358 # Missing DSA Setup
359 #TARGET_DEVICES += compex_wpj419
360
361 define Device/compex_wpj428
362 $(call Device/FitzImage)
363 DEVICE_VENDOR := Compex
364 DEVICE_MODEL := WPJ428
365 SOC := qcom-ipq4028
366 DEVICE_DTS_CONFIG := config@4
367 BLOCKSIZE := 64k
368 IMAGE_SIZE := 31232k
369 KERNEL_SIZE := 4096k
370 IMAGES += cpximg-6a04.bin
371 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
372 IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
373 DEVICE_PACKAGES := kmod-gpio-beeper
374 DEFAULT := n
375 endef
376 TARGET_DEVICES += compex_wpj428
377
378 define Device/devolo_magic-2-wifi-next
379 $(call Device/FitzImage)
380 DEVICE_VENDOR := devolo
381 DEVICE_MODEL := Magic 2 WiFi next
382 SOC := qcom-ipq4018
383 KERNEL_SIZE := 4096k
384
385 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
386 # it will bootm it, just like we want for the initramfs.
387 KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to 64k |\
388 append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
389
390 IMAGE_SIZE := 26624k
391 IMAGES := sysupgrade.bin
392 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
393 DEFAULT := n
394 endef
395 TARGET_DEVICES += devolo_magic-2-wifi-next
396
397 define Device/dlink_dap-2610
398 $(call Device/FitImageLzma)
399 DEVICE_VENDOR := D-Link
400 DEVICE_MODEL := DAP-2610
401 SOC := qcom-ipq4018
402 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
403 BLOCKSIZE := 64k
404 WRGG_DEVNAME := /dev/mtdblock/8
405 WRGG_SIGNATURE := wapac30_dkbs_dap2610
406 IMAGE_SIZE := 14080k
407 IMAGES += factory.bin
408 # Bootloader expects a special 160 byte header which is added by
409 # wrgg-image.
410 # Factory image size must be larger than 6MB, and size in wrgg header must
411 # match actual factory image size to be flashable from D-Link http server.
412 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
413 # cannot be part of the wrgg image. This is solved in the factory image by
414 # having the rootfs at the end of the image (without pad-rootfs). And in
415 # the sysupgrade image only the kernel is included in the wrgg checksum,
416 # but this is not flashable from the D-link http server.
417 # append-rootfs must start on an erase block boundary.
418 IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
419 IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
420 endef
421 TARGET_DEVICES += dlink_dap-2610
422
423 define Device/edgecore_ecw5211
424 $(call Device/FitImage)
425 $(call Device/UbiFit)
426 DEVICE_VENDOR := Edgecore
427 DEVICE_MODEL := ECW5211
428 SOC := qcom-ipq4018
429 BLOCKSIZE := 128k
430 PAGESIZE := 2048
431 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
432 DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
433 endef
434 TARGET_DEVICES += edgecore_ecw5211
435
436 define Device/edgecore_oap100
437 $(call Device/FitImage)
438 $(call Device/UbiFit)
439 DEVICE_VENDOR := Edgecore
440 DEVICE_MODEL := OAP100
441 SOC := qcom-ipq4019
442 BLOCKSIZE := 128k
443 PAGESIZE := 2048
444 IMAGES := sysupgrade.bin
445 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
446 DEVICE_PACKAGES := kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
447 endef
448 # Missing DSA Setup
449 #TARGET_DEVICES += edgecore_oap100
450
451 define Device/engenius_eap1300
452 $(call Device/FitImage)
453 DEVICE_VENDOR := EnGenius
454 DEVICE_MODEL := EAP1300
455 DEVICE_ALT0_VENDOR := EnGenius
456 DEVICE_ALT0_MODEL := EAP1300EXT
457 DEVICE_DTS_CONFIG := config@4
458 BOARD_NAME := eap1300
459 SOC := qcom-ipq4018
460 KERNEL_SIZE := 5120k
461 IMAGE_SIZE := 25344k
462 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
463 endef
464 TARGET_DEVICES += engenius_eap1300
465
466 define Device/engenius_eap2200
467 $(call Device/FitImage)
468 $(call Device/UbiFit)
469 DEVICE_VENDOR := EnGenius
470 DEVICE_MODEL := EAP2200
471 SOC := qcom-ipq4019
472 BLOCKSIZE := 128k
473 PAGESIZE := 2048
474 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
475 endef
476 # Missing DSA Setup
477 #TARGET_DEVICES += engenius_eap2200
478
479 define Device/engenius_emd1
480 $(call Device/FitImage)
481 DEVICE_VENDOR := EnGenius
482 DEVICE_MODEL := EMD1
483 DEVICE_DTS_CONFIG := config@4
484 SOC := qcom-ipq4018
485 IMAGE_SIZE := 30720k
486 IMAGES += factory.bin
487 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
488 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
489 endef
490 # Missing DSA Setup
491 #TARGET_DEVICES += engenius_emd1
492
493 define Device/engenius_emr3500
494 $(call Device/FitImage)
495 DEVICE_VENDOR := EnGenius
496 DEVICE_MODEL := EMR3500
497 DEVICE_DTS_CONFIG := config@4
498 SOC := qcom-ipq4018
499 KERNEL_SIZE := 4096k
500 IMAGE_SIZE := 30720k
501 IMAGES += factory.bin
502 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
503 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
504 DEFAULT := n
505 endef
506 # Missing DSA Setup
507 #TARGET_DEVICES += engenius_emr3500
508
509 define Device/engenius_ens620ext
510 $(call Device/FitImage)
511 DEVICE_VENDOR := EnGenius
512 DEVICE_MODEL := ENS620EXT
513 SOC := qcom-ipq4018
514 DEVICE_DTS_CONFIG := config@4
515 BLOCKSIZE := 64k
516 PAGESIZE := 256
517 BOARD_NAME := ENS620EXT
518 VENDOR_ID := 0x0101
519 PRODUCT_ID := 0x79
520 PRODUCT_ID_NEW := 0xA4
521 DATECODE := 190507
522 FW_VER := 3.1.2
523 FW_VER_NEW := 3.5.6
524 CW_VER := 1.8.99
525 IMAGE_SIZE := 21312k
526 KERNEL_SIZE := 5120k
527 FILESYSTEMS := squashfs
528 IMAGES += factory_30.bin factory_35.bin
529 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
530 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
531 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
532 endef
533 # Missing DSA Setup
534 #TARGET_DEVICES += engenius_ens620ext
535
536 define Device/extreme-networks_ws-ap3915i
537 $(call Device/FitImage)
538 DEVICE_VENDOR := Extreme Networks
539 DEVICE_MODEL := WS-AP3915i
540 IMAGE_SIZE := 30080k
541 SOC := qcom-ipq4029
542 BLOCKSIZE := 128k
543 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
544 endef
545 TARGET_DEVICES += extreme-networks_ws-ap3915i
546
547 define Device/extreme-networks_ws-ap391x
548 $(call Device/FitImage)
549 DEVICE_VENDOR := Extreme Networks
550 DEVICE_MODEL := WS-AP391x
551 IMAGE_SIZE := 15040k
552 SOC := qcom-ipq4029
553 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
554 endef
555 TARGET_DEVICES += extreme-networks_ws-ap391x
556
557 define Device/ezviz_cs-w3-wd1200g-eup
558 $(call Device/FitImage)
559 DEVICE_VENDOR := EZVIZ
560 DEVICE_MODEL := CS-W3-WD1200G
561 DEVICE_VARIANT := EUP
562 IMAGE_SIZE := 14848k
563 KERNEL_SIZE = 6m
564 SOC := qcom-ipq4018
565 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
566 append-metadata
567 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
568 DEVICE_COMPAT_VERSION := 2.0
569 DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
570 Upgrade via sysupgrade mechanism is not possible.
571 endef
572 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
573
574 define Device/glinet_gl-a1300
575 $(call Device/FitImage)
576 $(call Device/UbiFit)
577 DEVICE_VENDOR := GL.iNet
578 DEVICE_MODEL := GL-A1300
579 SOC := qcom-ipq4018
580 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
581 BLOCKSIZE := 128k
582 PAGESIZE := 2048
583 IMAGE_SIZE := 131072k
584 endef
585 TARGET_DEVICES += glinet_gl-a1300
586
587 define Device/glinet_gl-ap1300
588 $(call Device/FitImage)
589 $(call Device/UbiFit)
590 DEVICE_VENDOR := GL.iNet
591 DEVICE_MODEL := GL-AP1300
592 SOC := qcom-ipq4018
593 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
594 BLOCKSIZE := 128k
595 PAGESIZE := 2048
596 IMAGE_SIZE := 131072k
597 KERNEL_INSTALL := 1
598 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
599 endef
600 TARGET_DEVICES += glinet_gl-ap1300
601
602 define Device/glinet_gl-b1300
603 $(call Device/FitzImage)
604 DEVICE_VENDOR := GL.iNet
605 DEVICE_MODEL := GL-B1300
606 BOARD_NAME := gl-b1300
607 SOC := qcom-ipq4029
608 KERNEL_SIZE := 4096k
609 IMAGE_SIZE := 26624k
610 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
611 endef
612 TARGET_DEVICES += glinet_gl-b1300
613
614 define Device/glinet_gl-b2200
615 $(call Device/FitzImage)
616 DEVICE_VENDOR := GL.iNet
617 DEVICE_MODEL := GL-B2200
618 SOC := qcom-ipq4019
619 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
620 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
621 IMAGES := emmc.img.gz sysupgrade.bin
622 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
623 pad-to 1024k | append-kernel |\
624 pad-to 33792k | append-rootfs |\
625 append-metadata | gzip
626 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
627 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
628 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
629 endef
630 TARGET_DEVICES += glinet_gl-b2200
631
632 define Device/glinet_gl-s1300
633 $(call Device/FitzImage)
634 DEVICE_VENDOR := GL.iNet
635 DEVICE_MODEL := GL-S1300
636 SOC := qcom-ipq4029
637 KERNEL_SIZE := 4096k
638 IMAGE_SIZE := 26624k
639 IMAGES := sysupgrade.bin
640 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
641 DEVICE_PACKAGES := kmod-fs-ext4 kmod-mmc kmod-spi-dev
642 endef
643 # Missing DSA Setup
644 #TARGET_DEVICES += glinet_gl-s1300
645
646 define Device/kernel-size-6350-8300
647 DEVICE_COMPAT_VERSION := 2.0
648 DEVICE_COMPAT_MESSAGE := Kernel partition size must be increased for \
649 this OpenWrt version. Before continuing, you MUST issue either the \
650 command "fw_setenv kernsize 500000" from the OpenWrt command line, \
651 or "setenv kernsize 500000 ; saveenv" from the U-Boot serial console. \
652 Instead of the sysupgrade image, you must then install the OpenWrt \
653 factory image, setting the force flag and wiping the configuration. \
654 (e.g. "sysupgrade -n -F openwrt-squashfs-factory.bin" on command line)
655 endef
656
657 define Device/linksys_ea6350v3
658 # The Linksys EA6350v3 has a uboot bootloader that does not
659 # support either booting lzma kernel images nor booting UBI
660 # partitions. This uboot, however, supports raw kernel images and
661 # gzipped images.
662 #
663 # As configured by the OEM factory, the device will boot the kernel
664 # from a fixed address with a fixed length of 3 MiB. Also, the
665 # device has a hard-coded kernel command line that requires the
666 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
667 # Oh... and the kernel partition overlaps with the rootfs
668 # partition (the same for alt_kernel and alt_rootfs).
669 #
670 # If you are planing re-partitioning the device, you may want to
671 # keep these details in mind:
672 # 1. The kernel addresses you should honor are 0x00000000 and
673 # 0x02800000 respectively.
674 # 2. The kernel size (plus the dtb) cannot exceed 3 MiB in size
675 # unless the uboot environment variable "kernsize" is increased.
676 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
677 # 4. The kernel command line from uboot is harcoded to boot with
678 # rootfs either in mtd11 or mtd13.
679 $(call Device/FitzImage)
680 $(call Device/kernel-size-6350-8300)
681 DEVICE_VENDOR := Linksys
682 DEVICE_MODEL := EA6350
683 DEVICE_VARIANT := v3
684 SOC := qcom-ipq4018
685 BLOCKSIZE := 128k
686 PAGESIZE := 2048
687 KERNEL_SIZE := 5120k
688 IMAGE_SIZE := 35840k
689 NAND_SIZE := 128m
690 UBINIZE_OPTS := -E 5
691 IMAGES += factory.bin
692 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
693 endef
694 TARGET_DEVICES += linksys_ea6350v3
695
696 define Device/linksys_ea8300
697 $(call Device/FitzImage)
698 $(call Device/kernel-size-6350-8300)
699 DEVICE_VENDOR := Linksys
700 DEVICE_MODEL := EA8300
701 SOC := qcom-ipq4019
702 KERNEL_SIZE := 5120k
703 IMAGE_SIZE := 84992k
704 NAND_SIZE := 256m
705 BLOCKSIZE := 128k
706 PAGESIZE := 2048
707 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
708 IMAGES += factory.bin
709 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
710 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
711 endef
712 TARGET_DEVICES += linksys_ea8300
713
714 define Device/linksys_mr8300
715 $(call Device/FitzImage)
716 $(call Device/kernel-size-6350-8300)
717 DEVICE_VENDOR := Linksys
718 DEVICE_MODEL := MR8300
719 SOC := qcom-ipq4019
720 KERNEL_SIZE := 5120k
721 IMAGE_SIZE := 84992k
722 NAND_SIZE := 256m
723 BLOCKSIZE := 128k
724 PAGESIZE := 2048
725 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
726 IMAGES += factory.bin
727 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
728 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
729 endef
730 TARGET_DEVICES += linksys_mr8300
731
732 define Device/linksys_whw03
733 $(call Device/FitzImage)
734 DEVICE_VENDOR := Linksys
735 DEVICE_MODEL := WHW03
736 SOC := qcom-ipq4019
737 KERNEL_SIZE := 8192k
738 IMAGE_SIZE := 131072k
739 IMAGES += factory.bin
740 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | linksys-image type=WHW03
741 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-bluetooth \
742 kmod-fs-ext4 e2fsprogs kmod-fs-f2fs mkf2fs losetup
743 endef
744 TARGET_DEVICES += linksys_whw03
745
746 define Device/linksys_whw03v2
747 $(call Device/FitzImage)
748 DEVICE_VENDOR := Linksys
749 DEVICE_MODEL := WHW03
750 DEVICE_VARIANT := V2
751 SOC := qcom-ipq4019
752 KERNEL_SIZE := 6144k
753 IMAGE_SIZE := 158720k
754 NAND_SIZE := 512m
755 BLOCKSIZE := 128k
756 PAGESIZE := 2048
757 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
758 IMAGES += factory.bin
759 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW03v2
760 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-bluetooth
761 endef
762 TARGET_DEVICES += linksys_whw03v2
763
764 define Device/linksys_whw01
765 $(call Device/FitzImage)
766 DEVICE_VENDOR := Linksys
767 DEVICE_MODEL := WHW01
768 KERNEL_SIZE := 6144k
769 IMAGE_SIZE := 75776k
770 NAND_SIZE := 256m
771 SOC := qcom-ipq4018
772 BLOCKSIZE := 128k
773 PAGESIZE := 2048
774 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
775 IMAGES += factory.bin
776 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW01
777 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
778 endef
779 TARGET_DEVICES += linksys_whw01
780
781 define Device/luma_wrtq-329acn
782 $(call Device/FitImage)
783 DEVICE_VENDOR := Luma Home
784 DEVICE_MODEL := WRTQ-329ACN
785 SOC := qcom-ipq4018
786 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
787 IMAGE_SIZE := 76632k
788 BLOCKSIZE := 128k
789 PAGESIZE := 2048
790 endef
791 TARGET_DEVICES += luma_wrtq-329acn
792
793 define Device/meraki_common
794 $(call Device/FitImage)
795 DEVICE_VENDOR := Cisco Meraki
796 SOC := qcom-ipq4029
797 BLOCKSIZE := 128k
798 PAGESIZE := 2048
799 DEVICE_DTS_LOADADDR := 0x89000000
800 DEVICE_PACKAGES := ath10k-firmware-qca9887-ct
801 endef
802
803 define Device/meraki_mr33
804 $(call Device/meraki_common)
805 DEVICE_MODEL := MR33
806 endef
807 TARGET_DEVICES += meraki_mr33
808
809 define Device/meraki_mr74
810 $(call Device/meraki_common)
811 DEVICE_MODEL := MR74
812 DEVICE_DTS_CONFIG := config@3
813 endef
814 TARGET_DEVICES += meraki_mr74
815
816 define Device/mobipromo_cm520-79f
817 $(call Device/FitzImage)
818 $(call Device/UbiFit)
819 DEVICE_VENDOR := MobiPromo
820 DEVICE_MODEL := CM520-79F
821 SOC := qcom-ipq4019
822 BLOCKSIZE := 128k
823 PAGESIZE := 2048
824 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
825 endef
826 TARGET_DEVICES += mobipromo_cm520-79f
827
828 define Device/netgear_ex61x0v2
829 $(call Device/DniImage)
830 DEVICE_VENDOR := NETGEAR
831 DEVICE_DTS_CONFIG := config@4
832 NETGEAR_BOARD_ID := EX6150v2series
833 NETGEAR_HW_ID := 29765285+16+0+128+2x2
834 IMAGE_SIZE := 14400k
835 SOC := qcom-ipq4018
836 endef
837
838 define Device/netgear_ex6100v2
839 $(call Device/netgear_ex61x0v2)
840 DEVICE_MODEL := EX6100
841 DEVICE_VARIANT := v2
842 endef
843 TARGET_DEVICES += netgear_ex6100v2
844
845 define Device/netgear_ex6150v2
846 $(call Device/netgear_ex61x0v2)
847 DEVICE_MODEL := EX6150
848 DEVICE_VARIANT := v2
849 endef
850 TARGET_DEVICES += netgear_ex6150v2
851
852 define Device/netgear_orbi
853 $(call Device/DniImage)
854 SOC := qcom-ipq4019
855 DEVICE_VENDOR := NETGEAR
856 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
857 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
858 append-rootfs | pad-rootfs | netgear-dni
859 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
860 sysupgrade-tar rootfs=$$$$@ | append-metadata
861 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
862 endef
863
864 define Device/netgear_lbr20
865 $(call Device/netgear_orbi)
866 DEVICE_MODEL := LBR20
867 NETGEAR_BOARD_ID := LBR20
868 NETGEAR_HW_ID := 29766182+0+256+512+2x2+2x2+2x2+1
869 KERNEL_SIZE := 7340032
870 BLOCKSIZE := 128k
871 PAGESIZE := 2048
872 UBINIZE_OPTS := -E 5
873 IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
874 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
875 append-ubi | netgear-dni
876 IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
877 append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
878 append-metadata
879 DEVICE_PACKAGES := ipq-wifi-netgear_lbr20 ath10k-firmware-qca9888-ct kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
880 endef
881 TARGET_DEVICES += netgear_lbr20
882
883 define Device/netgear_rbx40
884 $(call Device/netgear_orbi)
885 NETGEAR_HW_ID := 29765515+0+4096+512+2x2+2x2+2x2
886 KERNEL_SIZE := 3932160
887 ROOTFS_SIZE := 32243712
888 IMAGE_SIZE := 36175872
889 endef
890
891 define Device/netgear_rbr40
892 $(call Device/netgear_rbx40)
893 DEVICE_MODEL := RBR40
894 DEVICE_VARIANT := v1
895 NETGEAR_BOARD_ID := RBR40
896 endef
897 TARGET_DEVICES += netgear_rbr40
898
899 define Device/netgear_rbs40
900 $(call Device/netgear_rbx40)
901 DEVICE_MODEL := RBS40
902 DEVICE_VARIANT := v1
903 NETGEAR_BOARD_ID := RBS40
904 endef
905 TARGET_DEVICES += netgear_rbs40
906
907 define Device/netgear_rbx50
908 $(call Device/netgear_orbi)
909 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
910 KERNEL_SIZE := 3932160
911 ROOTFS_SIZE := 32243712
912 IMAGE_SIZE := 36175872
913 endef
914
915 define Device/netgear_rbr50
916 $(call Device/netgear_rbx50)
917 DEVICE_MODEL := RBR50
918 DEVICE_VARIANT := v1
919 NETGEAR_BOARD_ID := RBR50
920 endef
921 TARGET_DEVICES += netgear_rbr50
922
923 define Device/netgear_rbs50
924 $(call Device/netgear_rbx50)
925 DEVICE_MODEL := RBS50
926 DEVICE_VARIANT := v1
927 NETGEAR_BOARD_ID := RBS50
928 endef
929 TARGET_DEVICES += netgear_rbs50
930
931 define Device/netgear_srx60
932 $(call Device/netgear_orbi)
933 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
934 KERNEL_SIZE := 3932160
935 ROOTFS_SIZE := 32243712
936 IMAGE_SIZE := 36175872
937 endef
938
939 define Device/netgear_srr60
940 $(call Device/netgear_srx60)
941 DEVICE_MODEL := SRR60
942 NETGEAR_BOARD_ID := SRR60
943 endef
944 TARGET_DEVICES += netgear_srr60
945
946 define Device/netgear_srs60
947 $(call Device/netgear_srx60)
948 DEVICE_MODEL := SRS60
949 NETGEAR_BOARD_ID := SRS60
950 endef
951 TARGET_DEVICES += netgear_srs60
952
953 define Device/netgear_wac510
954 $(call Device/FitImage)
955 $(call Device/UbiFit)
956 DEVICE_VENDOR := Netgear
957 DEVICE_MODEL := WAC510
958 SOC := qcom-ipq4018
959 DEVICE_DTS_CONFIG := config@5
960 BLOCKSIZE := 128k
961 PAGESIZE := 2048
962 IMAGES += factory.tar
963 IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
964 DEVICE_PACKAGES := uboot-envtools
965 endef
966 TARGET_DEVICES += netgear_wac510
967
968 define Device/openmesh_a42
969 $(call Device/FitImageLzma)
970 DEVICE_VENDOR := OpenMesh
971 DEVICE_MODEL := A42
972 SOC := qcom-ipq4018
973 DEVICE_DTS_CONFIG := config@om.a42
974 BLOCKSIZE := 64k
975 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
976 IMAGE_SIZE := 15616k
977 IMAGES += factory.bin
978 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
979 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
980 endef
981 TARGET_DEVICES += openmesh_a42
982
983 define Device/openmesh_a62
984 $(call Device/FitImageLzma)
985 DEVICE_VENDOR := OpenMesh
986 DEVICE_MODEL := A62
987 SOC := qcom-ipq4019
988 DEVICE_DTS_CONFIG := config@om.a62
989 BLOCKSIZE := 64k
990 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
991 IMAGE_SIZE := 15552k
992 IMAGES += factory.bin
993 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
994 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
995 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
996 endef
997 TARGET_DEVICES += openmesh_a62
998
999 define Device/p2w_r619ac
1000 $(call Device/FitzImage)
1001 $(call Device/UbiFit)
1002 DEVICE_VENDOR := P&W
1003 DEVICE_MODEL := R619AC
1004 SOC := qcom-ipq4019
1005 DEVICE_DTS_CONFIG := config@10
1006 BLOCKSIZE := 128k
1007 PAGESIZE := 2048
1008 endef
1009
1010 define Device/p2w_r619ac-64m
1011 $(call Device/p2w_r619ac)
1012 DEVICE_VARIANT := 64M NAND
1013 IMAGES += factory.bin
1014 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
1015 endef
1016 TARGET_DEVICES += p2w_r619ac-64m
1017
1018 define Device/p2w_r619ac-128m
1019 $(call Device/p2w_r619ac)
1020 DEVICE_VARIANT := 128M NAND
1021 endef
1022 TARGET_DEVICES += p2w_r619ac-128m
1023
1024 define Device/pakedge_wr-1
1025 $(call Device/FitImageLzma)
1026 DEVICE_VENDOR := Pakedge
1027 DEVICE_MODEL := WR-1
1028 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
1029 SOC := qcom-ipq4018
1030 BLOCKSIZE := 64k
1031 IMAGE_SIZE := 31232k
1032 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
1033 endef
1034 TARGET_DEVICES += pakedge_wr-1
1035
1036 define Device/plasmacloud_pa1200
1037 $(call Device/FitImageLzma)
1038 DEVICE_VENDOR := Plasma Cloud
1039 DEVICE_MODEL := PA1200
1040 SOC := qcom-ipq4018
1041 DEVICE_DTS_CONFIG := config@pc.pa1200
1042 BLOCKSIZE := 64k
1043 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
1044 IMAGE_SIZE := 15616k
1045 IMAGES += factory.bin
1046 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
1047 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
1048 endef
1049 TARGET_DEVICES += plasmacloud_pa1200
1050
1051 define Device/plasmacloud_pa2200
1052 $(call Device/FitImageLzma)
1053 DEVICE_VENDOR := Plasma Cloud
1054 DEVICE_MODEL := PA2200
1055 SOC := qcom-ipq4019
1056 DEVICE_DTS_CONFIG := config@pc.pa2200
1057 BLOCKSIZE := 64k
1058 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
1059 IMAGE_SIZE := 15552k
1060 IMAGES += factory.bin
1061 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
1062 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
1063 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
1064 endef
1065 TARGET_DEVICES += plasmacloud_pa2200
1066
1067 define Device/qxwlan_e2600ac-c1
1068 $(call Device/FitImage)
1069 DEVICE_VENDOR := Qxwlan
1070 DEVICE_MODEL := E2600AC
1071 DEVICE_VARIANT := C1
1072 BOARD_NAME := e2600ac-c1
1073 SOC := qcom-ipq4019
1074 IMAGE_SIZE := 31232k
1075 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1076 endef
1077 TARGET_DEVICES += qxwlan_e2600ac-c1
1078
1079 define Device/qxwlan_e2600ac-c2
1080 $(call Device/FitImage)
1081 $(call Device/UbiFit)
1082 DEVICE_VENDOR := Qxwlan
1083 DEVICE_MODEL := E2600AC
1084 DEVICE_VARIANT := C2
1085 SOC := qcom-ipq4019
1086 KERNEL_INSTALL := 1
1087 BLOCKSIZE := 128k
1088 PAGESIZE := 2048
1089 endef
1090 TARGET_DEVICES += qxwlan_e2600ac-c2
1091
1092 define Device/sony_ncp-hg100-cellular
1093 $(call Device/FitImage)
1094 DEVICE_VENDOR := Sony
1095 DEVICE_MODEL := NCP-HG100/Cellular
1096 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1097 SOC := qcom-ipq4019
1098 KERNEL_SIZE := 8192k
1099 IMAGE_SIZE := 128m
1100 DEVICE_PACKAGES := e2fsprogs kmod-fs-ext4 uqmi
1101 endef
1102 TARGET_DEVICES += sony_ncp-hg100-cellular
1103
1104 define Device/teltonika_rutx10
1105 $(call Device/FitImage)
1106 $(call Device/UbiFit)
1107 DEVICE_VENDOR := Teltonika
1108 DEVICE_MODEL := RUTX10
1109 SOC := qcom-ipq4018
1110 DEVICE_DTS_CONFIG := config@5
1111 KERNEL_INSTALL := 1
1112 BLOCKSIZE := 128k
1113 PAGESIZE := 2048
1114 FILESYSTEMS := squashfs
1115 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1116 DEVICE_PACKAGES := kmod-bluetooth
1117 endef
1118 # Missing DSA Setup
1119 #TARGET_DEVICES += teltonika_rutx10
1120
1121 define Device/teltonika_rutx50
1122 $(call Device/FitImage)
1123 $(call Device/UbiFit)
1124 DEVICE_VENDOR := Teltonika
1125 DEVICE_MODEL := RUTX50
1126 SOC := qcom-ipq4018
1127 DEVICE_DTS_CONFIG := config@5
1128 KERNEL_INSTALL := 1
1129 BLOCKSIZE := 128k
1130 PAGESIZE := 2048
1131 FILESYSTEMS := squashfs
1132 IMAGE/factory.ubi := append-ubi
1133 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1134 endef
1135 TARGET_DEVICES += teltonika_rutx50
1136
1137 define Device/tel_x1pro
1138 $(call Device/FitImage)
1139 DEVICE_VENDOR := Telco
1140 DEVICE_MODEL := X1 Pro
1141 SOC := qcom-ipq4019
1142 KERNEL_SIZE := 4096k
1143 IMAGE_SIZE := 31232k
1144 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1145 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1146 DEFAULT := n
1147 endef
1148 # Missing DSA Setup
1149 #TARGET_DEVICES += tel_x1pro
1150
1151 define Device/unielec_u4019-32m
1152 $(call Device/FitImage)
1153 DEVICE_VENDOR := Unielec
1154 DEVICE_MODEL := U4019
1155 DEVICE_VARIANT := 32M
1156 BOARD_NAME := u4019-32m
1157 SOC := qcom-ipq4019
1158 KERNEL_SIZE := 4096k
1159 IMAGE_SIZE := 31232k
1160 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1161 DEFAULT := n
1162 endef
1163 # Missing DSA Setup
1164 #TARGET_DEVICES += unielec_u4019-32m
1165
1166 define Device/wallys_dr40x9
1167 $(call Device/FitImage)
1168 $(call Device/UbiFit)
1169 DEVICE_VENDOR := Wallys
1170 DEVICE_MODEL := DR40X9
1171 SOC := qcom-ipq40x9
1172 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
1173 BLOCKSIZE := 128k
1174 PAGESIZE := 2048
1175 DEVICE_PACKAGES := ipq-wifi-wallys_dr40x9
1176 endef
1177 TARGET_DEVICES += wallys_dr40x9
1178
1179 define Device/yyets_le1
1180 $(call Device/FitzImage)
1181 DEVICE_VENDOR := YYeTs
1182 DEVICE_MODEL := LE1
1183 SOC := qcom-ipq4019
1184 KERNEL_SIZE := 4096k
1185 IMAGE_SIZE := 31232k
1186 IMAGES += factory.bin
1187 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
1188 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1189 DEVICE_PACKAGES := ipq-wifi-yyets_le1 kmod-usb-ledtrig-usbport
1190 endef
1191 TARGET_DEVICES += yyets_le1
1192
1193 define Device/zte_mf18a
1194 $(call Device/FitImage)
1195 DEVICE_VENDOR := ZTE
1196 DEVICE_MODEL := MF18A
1197 SOC := qcom-ipq4019
1198 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1199 BLOCKSIZE := 128k
1200 PAGESIZE := 2048
1201 KERNEL_IN_UBI := 1
1202 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
1203 endef
1204 TARGET_DEVICES += zte_mf18a
1205
1206 define Device/zte_mf28x_common
1207 $(call Device/FitzImage)
1208 DEVICE_VENDOR := ZTE
1209 SOC := qcom-ipq4019
1210 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1211 BLOCKSIZE := 128k
1212 PAGESIZE := 2048
1213 KERNEL_IN_UBI := 1
1214 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1215 endef
1216
1217 define Device/zte_mf282plus
1218 $(call Device/zte_mf28x_common)
1219 DEVICE_MODEL := MF282Plus
1220 # The recovery image is used to return back to stock (an initramfs-based image
1221 # that can be flashed to the device via sysupgrade
1222 # The factory image is used to install from the stock firmware by using an
1223 # exploit for the web interface
1224 IMAGES += factory.bin recovery.bin
1225 IMAGE/factory.bin := append-ubi
1226 IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
1227 DEVICE_PACKAGES := kmod-usb-acm kmod-usb-net-rndis
1228 endef
1229 TARGET_DEVICES += zte_mf282plus
1230
1231 define Device/zte_mf286d
1232 $(call Device/zte_mf28x_common)
1233 DEVICE_MODEL := MF286D
1234 endef
1235 TARGET_DEVICES += zte_mf286d
1236
1237 define Device/zte_mf287_common
1238 $(call Device/zte_mf28x_common)
1239 SOC := qcom-ipq4018
1240 # The recovery image is used to return back to stock (an initramfs-based image
1241 # that can be flashed to the device via sysupgrade
1242 # The factory image is used to install from the stock firmware by using an
1243 # exploit for the web interface
1244 IMAGES += factory.bin recovery.bin
1245 IMAGE/factory.bin := append-ubi
1246 IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
1247 endef
1248
1249 define Device/zte_mf287plus
1250 $(call Device/zte_mf287_common)
1251 DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
1252 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
1253 DEVICE_MODEL := MF287Plus
1254 endef
1255 TARGET_DEVICES += zte_mf287plus
1256
1257 define Device/zte_mf287
1258 $(call Device/zte_mf287_common)
1259 DEVICE_PACKAGES += ipq-wifi-zte_mf287
1260 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
1261 DEVICE_MODEL := MF287
1262 endef
1263 TARGET_DEVICES += zte_mf287
1264
1265 define Device/zte_mf287pro
1266 $(call Device/zte_mf287_common)
1267 DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
1268 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1269 DEVICE_MODEL := MF287Pro
1270 endef
1271 TARGET_DEVICES += zte_mf287pro
1272
1273 define Device/zte_mf289f
1274 $(call Device/zte_mf28x_common)
1275 DEVICE_MODEL := MF289F
1276 DEVICE_PACKAGES += ath10k-firmware-qca9984-ct
1277 endef
1278 TARGET_DEVICES += zte_mf289f
1279
1280 define Device/zyxel_nbg6617
1281 $(call Device/FitImageLzma)
1282 DEVICE_VENDOR := ZyXEL
1283 DEVICE_MODEL := NBG6617
1284 SOC := qcom-ipq4018
1285 KERNEL_SIZE := 4096k
1286 ROOTFS_SIZE := 24960k
1287 RAS_BOARD := NBG6617
1288 RAS_ROOTFS_SIZE := 19840k
1289 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1290 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1291 IMAGES += factory.bin
1292 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1293 # at least as large as the one of the initial firmware image (not the current
1294 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1295 # this minimum-size. However, the larger image can be flashed both ways.
1296 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1297 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1298 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1299 endef
1300 TARGET_DEVICES += zyxel_nbg6617
1301
1302 define Device/zyxel_wre6606
1303 $(call Device/FitImage)
1304 DEVICE_VENDOR := ZyXEL
1305 DEVICE_MODEL := WRE6606
1306 DEVICE_DTS_CONFIG := config@4
1307 SOC := qcom-ipq4018
1308 IMAGE_SIZE := 13184k
1309 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1310 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1311 endef
1312 # Missing DSA Setup
1313 #TARGET_DEVICES += zyxel_wre6606