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