ipq40xx: add support for GL.iNet GL-A1300
[openwrt/staging/ldir.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 $$(KDIR)/image-$$(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 $$(KDIR)/image-$$(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 $$(KDIR)/image-$$(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 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="$(subst k,* 1024,$(BLOCKSIZE))" \
72 pad="(pad - (size % pad)) % pad" \
73 newsize='size + pad'; \
74 $(STAGING_DIR_HOST)/bin/mkmylofw \
75 -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
76 -s 0x2000000 -p0x180000:$$newsize:al:0x80208000:"OpenWrt":$@ \
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 := 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 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 # Missing DSA Setup
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 ipq-wifi-aruba_ap-365
191 endef
192 # Missing DSA Setup
193 #TARGET_DEVICES += aruba_ap-365
194
195 define Device/asus_map-ac2200
196 $(call Device/FitImageLzma)
197 DEVICE_VENDOR := ASUS
198 DEVICE_MODEL := Lyra (MAP-AC2200)
199 SOC := qcom-ipq4019
200 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
201 endef
202 TARGET_DEVICES += asus_map-ac2200
203
204 # WARNING: this is an initramfs image that gets you half of the way there
205 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
206 # to get a "trx" you can flash via web UI for ac42u/ac58u:
207 # - change call Device/FitImageLzma to Device/FitImage
208 # - add the following below UIMAGE_NAME
209 # UIMAGE_MAGIC := 0x27051956
210 # IMAGES += factory.trx
211 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
212 define Device/asus_rt-ac42u
213 $(call Device/FitImageLzma)
214 DEVICE_VENDOR := ASUS
215 DEVICE_MODEL := RT-AC42U
216 DEVICE_ALT0_VENDOR := ASUS
217 DEVICE_ALT0_MODEL := RT-ACRH17
218 DEVICE_ALT1_VENDOR := ASUS
219 DEVICE_ALT1_MODEL := RT-AC2200
220 SOC := qcom-ipq4019
221 BLOCKSIZE := 128k
222 PAGESIZE := 2048
223 IMAGE_SIZE := 20439364
224 FILESYSTEMS := squashfs
225 # RT-AC82U is nowhere to be found online
226 # Rather, this device is a/k/a RT-AC42U
227 # But we'll go with what the vendor firmware has...
228 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC82U')
229 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
230 endef
231 TARGET_DEVICES += asus_rt-ac42u
232
233 define Device/asus_rt-ac58u
234 $(call Device/FitImageLzma)
235 DEVICE_VENDOR := ASUS
236 DEVICE_MODEL := RT-AC58U
237 DEVICE_ALT0_VENDOR := ASUS
238 DEVICE_ALT0_MODEL := RT-ACRH13
239 SOC := qcom-ipq4018
240 BLOCKSIZE := 128k
241 PAGESIZE := 2048
242 IMAGE_SIZE := 20439364
243 FILESYSTEMS := squashfs
244 # Someone - in their infinite wisdom - decided to put the firmware
245 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
246 # Since u-boot works with strings we either need another fixup step
247 # to add a version... or we are very careful not to add '\0' into that
248 # string and call it a day.... Yeah, we do the latter!
249 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
250 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
251 kmod-usb-ledtrig-usbport
252 endef
253 TARGET_DEVICES += asus_rt-ac58u
254
255 define Device/avm_fritzbox-4040
256 $(call Device/FitImageLzma)
257 DEVICE_VENDOR := AVM
258 DEVICE_MODEL := FRITZ!Box 4040
259 SOC := qcom-ipq4018
260 BOARD_NAME := fritz4040
261 IMAGE_SIZE := 29056k
262 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
263 UBOOT_PARTITION_SIZE := 524288
264 IMAGES += eva.bin
265 IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
266 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
267 DEVICE_PACKAGES := fritz-tffs fritz-caldata
268 endef
269 TARGET_DEVICES += avm_fritzbox-4040
270
271 define Device/avm_fritzbox-7530
272 $(call Device/FitImageLzma)
273 DEVICE_VENDOR := AVM
274 DEVICE_MODEL := FRITZ!Box 7530
275 DEVICE_ALT0_VENDOR := AVM
276 DEVICE_ALT0_MODEL := FRITZ!Box 7520
277 SOC := qcom-ipq4019
278 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
279 endef
280 TARGET_DEVICES += avm_fritzbox-7530
281
282 define Device/avm_fritzrepeater-1200
283 $(call Device/FitImageLzma)
284 DEVICE_VENDOR := AVM
285 DEVICE_MODEL := FRITZ!Repeater 1200
286 SOC := qcom-ipq4019
287 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
288 endef
289 TARGET_DEVICES += avm_fritzrepeater-1200
290
291 define Device/avm_fritzrepeater-3000
292 $(call Device/FitImageLzma)
293 DEVICE_VENDOR := AVM
294 DEVICE_MODEL := FRITZ!Repeater 3000
295 SOC := qcom-ipq4019
296 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
297 endef
298 # Missing DSA Setup
299 #TARGET_DEVICES += avm_fritzrepeater-3000
300
301 define Device/buffalo_wtr-m2133hp
302 $(call Device/FitImage)
303 $(call Device/UbiFit)
304 DEVICE_VENDOR := Buffalo
305 DEVICE_MODEL := WTR-M2133HP
306 SOC := qcom-ipq4019
307 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
308 BLOCKSIZE := 128k
309 PAGESIZE := 2048
310 endef
311 # Missing DSA Setup
312 #TARGET_DEVICES += buffalo_wtr-m2133hp
313
314 define Device/cellc_rtl30vw
315 KERNEL_SUFFIX := -fit-zImage.itb
316 KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
317 KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb | uImage lzma | pad-to 2048
318 KERNEL_NAME := zImage
319 KERNEL_IN_UBI :=
320 IMAGES := nand-factory.bin nand-sysupgrade.bin
321 IMAGE/nand-factory.bin := append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
322 IMAGE/nand-sysupgrade.bin := append-rootfshdr kernel | sysupgrade-tar kernel=$$$$@.kernel | append-metadata
323 DEVICE_VENDOR := Cell C
324 DEVICE_MODEL := RTL30VW
325 SOC := qcom-ipq4019
326 DEVICE_DTS_CONFIG := config@5
327 KERNEL_INSTALL := 1
328 KERNEL_SIZE := 4096k
329 IMAGE_SIZE := 57344k
330 BLOCKSIZE := 128k
331 PAGESIZE := 2048
332 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
333 endef
334 TARGET_DEVICES += cellc_rtl30vw
335
336 define Device/cilab_meshpoint-one
337 $(call Device/8dev_jalapeno-common)
338 DEVICE_VENDOR := Crisis Innovation Lab
339 DEVICE_MODEL := MeshPoint.One
340 DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
341 endef
342 # Missing DSA Setup
343 #TARGET_DEVICES += cilab_meshpoint-one
344
345 define Device/compex_wpj419
346 $(call Device/FitImage)
347 $(call Device/UbiFit)
348 DEVICE_VENDOR := Compex
349 DEVICE_MODEL := WPJ419
350 SOC := qcom-ipq4019
351 DEVICE_DTS_CONFIG := config@12
352 KERNEL_INSTALL := 1
353 BLOCKSIZE := 128k
354 PAGESIZE := 2048
355 FILESYSTEMS := squashfs
356 endef
357 # Missing DSA Setup
358 #TARGET_DEVICES += compex_wpj419
359
360 define Device/compex_wpj428
361 $(call Device/FitImage)
362 DEVICE_VENDOR := Compex
363 DEVICE_MODEL := WPJ428
364 SOC := qcom-ipq4028
365 DEVICE_DTS_CONFIG := config@4
366 BLOCKSIZE := 64k
367 IMAGE_SIZE := 31232k
368 KERNEL_SIZE := 4096k
369 IMAGES += cpximg-6a04.bin
370 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
371 IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
372 DEVICE_PACKAGES := kmod-gpio-beeper
373 DEFAULT := n
374 endef
375 TARGET_DEVICES += compex_wpj428
376
377 define Device/devolo_magic-2-wifi-next
378 $(call Device/FitImage)
379 DEVICE_VENDOR := devolo
380 DEVICE_MODEL := Magic 2 WiFi next
381 SOC := qcom-ipq4018
382 KERNEL_SIZE := 4096k
383
384 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
385 # it will bootm it, just like we want for the initramfs.
386 KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to 64k |\
387 append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
388
389 IMAGE_SIZE := 26624k
390 IMAGES := sysupgrade.bin
391 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
392 DEVICE_PACKAGES := ipq-wifi-devolo_magic-2-wifi-next
393 DEFAULT := n
394 endef
395 # Missing DSA Setup
396 #TARGET_DEVICES += devolo_magic-2-wifi-next
397
398 define Device/dlink_dap-2610
399 $(call Device/FitImageLzma)
400 DEVICE_VENDOR := D-Link
401 DEVICE_MODEL := DAP-2610
402 SOC := qcom-ipq4018
403 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
404 BLOCKSIZE := 64k
405 WRGG_DEVNAME := /dev/mtdblock/8
406 WRGG_SIGNATURE := wapac30_dkbs_dap2610
407 IMAGE_SIZE := 14080k
408 IMAGES += factory.bin
409 # Bootloader expects a special 160 byte header which is added by
410 # wrgg-image.
411 # Factory image size must be larger than 6MB, and size in wrgg header must
412 # match actual factory image size to be flashable from D-Link http server.
413 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
414 # cannot be part of the wrgg image. This is solved in the factory image by
415 # having the rootfs at the end of the image (without pad-rootfs). And in
416 # the sysupgrade image only the kernel is included in the wrgg checksum,
417 # but this is not flashable from the D-link http server.
418 # append-rootfs must start on an erase block boundary.
419 IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
420 IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
421 endef
422 # Missing DSA Setup
423 #TARGET_DEVICES += dlink_dap-2610
424
425 define Device/edgecore_ecw5211
426 $(call Device/FitImage)
427 $(call Device/UbiFit)
428 DEVICE_VENDOR := Edgecore
429 DEVICE_MODEL := ECW5211
430 SOC := qcom-ipq4018
431 BLOCKSIZE := 128k
432 PAGESIZE := 2048
433 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
434 DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
435 endef
436 TARGET_DEVICES += edgecore_ecw5211
437
438 define Device/edgecore_oap100
439 $(call Device/FitImage)
440 $(call Device/UbiFit)
441 DEVICE_VENDOR := Edgecore
442 DEVICE_MODEL := OAP100
443 SOC := qcom-ipq4019
444 BLOCKSIZE := 128k
445 PAGESIZE := 2048
446 IMAGES := nand-sysupgrade.bin
447 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
448 DEVICE_PACKAGES := ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
449 endef
450 # Missing DSA Setup
451 #TARGET_DEVICES += edgecore_oap100
452
453 define Device/engenius_eap1300
454 $(call Device/FitImage)
455 DEVICE_VENDOR := EnGenius
456 DEVICE_MODEL := EAP1300
457 DEVICE_DTS_CONFIG := config@4
458 BOARD_NAME := eap1300
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 # Missing DSA Setup
465 #TARGET_DEVICES += engenius_eap1300
466
467 define Device/engenius_eap2200
468 $(call Device/FitImage)
469 $(call Device/UbiFit)
470 DEVICE_VENDOR := EnGenius
471 DEVICE_MODEL := EAP2200
472 SOC := qcom-ipq4019
473 BLOCKSIZE := 128k
474 PAGESIZE := 2048
475 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
476 endef
477 # Missing DSA Setup
478 #TARGET_DEVICES += engenius_eap2200
479
480 define Device/engenius_emd1
481 $(call Device/FitImage)
482 DEVICE_VENDOR := EnGenius
483 DEVICE_MODEL := EMD1
484 DEVICE_DTS_CONFIG := config@4
485 SOC := qcom-ipq4018
486 IMAGE_SIZE := 30720k
487 IMAGES += factory.bin
488 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
489 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
490 endef
491 # Missing DSA Setup
492 #TARGET_DEVICES += engenius_emd1
493
494 define Device/engenius_emr3500
495 $(call Device/FitImage)
496 DEVICE_VENDOR := EnGenius
497 DEVICE_MODEL := EMR3500
498 DEVICE_DTS_CONFIG := config@4
499 SOC := qcom-ipq4018
500 KERNEL_SIZE := 4096k
501 IMAGE_SIZE := 30720k
502 IMAGES += factory.bin
503 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
504 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
505 DEFAULT := n
506 endef
507 # Missing DSA Setup
508 #TARGET_DEVICES += engenius_emr3500
509
510 define Device/engenius_ens620ext
511 $(call Device/FitImage)
512 DEVICE_VENDOR := EnGenius
513 DEVICE_MODEL := ENS620EXT
514 SOC := qcom-ipq4018
515 DEVICE_DTS_CONFIG := config@4
516 BLOCKSIZE := 64k
517 PAGESIZE := 256
518 BOARD_NAME := ENS620EXT
519 VENDOR_ID := 0x0101
520 PRODUCT_ID := 0x79
521 PRODUCT_ID_NEW := 0xA4
522 DATECODE := 190507
523 FW_VER := 3.1.2
524 FW_VER_NEW := 3.5.6
525 CW_VER := 1.8.99
526 IMAGE_SIZE := 21312k
527 KERNEL_SIZE := 5120k
528 FILESYSTEMS := squashfs
529 IMAGES += factory_30.bin factory_35.bin
530 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
531 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
532 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
533 endef
534 # Missing DSA Setup
535 #TARGET_DEVICES += engenius_ens620ext
536
537 define Device/extreme-networks_ws-ap3915i
538 $(call Device/FitImage)
539 DEVICE_VENDOR := Extreme Networks
540 DEVICE_MODEL := WS-AP3915i
541 IMAGE_SIZE := 30080k
542 SOC := qcom-ipq4029
543 BLOCKSIZE := 128k
544 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
545 DEVICE_PACKAGES := ipq-wifi-extreme-networks_ws-ap3915i
546 endef
547 # Missing DSA Setup
548 #TARGET_DEVICES += extreme-networks_ws-ap3915i
549
550 define Device/ezviz_cs-w3-wd1200g-eup
551 $(call Device/FitImage)
552 DEVICE_VENDOR := EZVIZ
553 DEVICE_MODEL := CS-W3-WD1200G
554 DEVICE_VARIANT := EUP
555 IMAGE_SIZE := 14848k
556 KERNEL_SIZE = 6m
557 SOC := qcom-ipq4018
558 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
559 append-metadata
560 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
561 DEVICE_COMPAT_VERSION := 2.0
562 DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
563 Upgrade via sysupgrade mechanism is not possible.
564 endef
565 # Missing DSA Setup
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 DEVICE_PACKAGE := ipq-wifi-glinet_gl-a1300
579 endef
580 TARGET_DEVICES += glinet_gl-a1300
581
582 define Device/glinet_gl-ap1300
583 $(call Device/FitImage)
584 $(call Device/UbiFit)
585 DEVICE_VENDOR := GL.iNet
586 DEVICE_MODEL := GL-AP1300
587 SOC := qcom-ipq4018
588 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
589 BLOCKSIZE := 128k
590 PAGESIZE := 2048
591 IMAGE_SIZE := 131072k
592 KERNEL_INSTALL := 1
593 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
594 endef
595 # Missing DSA Setup
596 #TARGET_DEVICES += glinet_gl-ap1300
597
598 define Device/glinet_gl-b1300
599 $(call Device/FitzImage)
600 DEVICE_VENDOR := GL.iNet
601 DEVICE_MODEL := GL-B1300
602 BOARD_NAME := gl-b1300
603 SOC := qcom-ipq4029
604 KERNEL_SIZE := 4096k
605 IMAGE_SIZE := 26624k
606 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
607 endef
608 TARGET_DEVICES += glinet_gl-b1300
609
610 define Device/glinet_gl-b2200
611 $(call Device/FitzImage)
612 DEVICE_VENDOR := GL.iNet
613 DEVICE_MODEL := GL-B2200
614 SOC := qcom-ipq4019
615 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
616 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
617 IMAGES := emmc.img.gz sysupgrade.bin
618 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
619 pad-to 1024k | append-kernel |\
620 pad-to 33792k | append-rootfs |\
621 append-metadata | gzip
622 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
623 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
624 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
625 endef
626 TARGET_DEVICES += glinet_gl-b2200
627
628 define Device/glinet_gl-s1300
629 $(call Device/FitzImage)
630 DEVICE_VENDOR := GL.iNet
631 DEVICE_MODEL := GL-S1300
632 SOC := qcom-ipq4029
633 KERNEL_SIZE := 4096k
634 IMAGE_SIZE := 26624k
635 IMAGES := sysupgrade.bin
636 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
637 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
638 endef
639 # Missing DSA Setup
640 #TARGET_DEVICES += glinet_gl-s1300
641
642 define Device/linksys_ea6350v3
643 # The Linksys EA6350v3 has a uboot bootloader that does not
644 # support either booting lzma kernel images nor booting UBI
645 # partitions. This uboot, however, supports raw kernel images and
646 # gzipped images.
647 #
648 # As for the time of writing this, the device will boot the kernel
649 # from a fixed address with a fixed length of 3MiB. Also, the
650 # device has a hard-coded kernel command line that requieres the
651 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
652 # Oh... and the kernel partition overlaps with the rootfs
653 # partition (the same for alt_kernel and alt_rootfs).
654 #
655 # If you are planing re-partitioning the device, you may want to
656 # keep those details in mind:
657 # 1. The kernel adresses you should honor are 0x00000000 and
658 # 0x02800000 respectively.
659 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
660 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
661 # 4. The kernel command line from uboot is harcoded to boot with
662 # rootfs either in mtd11 or mtd13.
663 $(call Device/FitzImage)
664 DEVICE_VENDOR := Linksys
665 DEVICE_MODEL := EA6350
666 DEVICE_VARIANT := v3
667 SOC := qcom-ipq4018
668 BLOCKSIZE := 128k
669 PAGESIZE := 2048
670 KERNEL_SIZE := 3072k
671 IMAGE_SIZE := 37888k
672 UBINIZE_OPTS := -E 5
673 IMAGES += factory.bin
674 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
675 DEFAULT := n
676 endef
677 TARGET_DEVICES += linksys_ea6350v3
678
679 define Device/linksys_ea8300
680 $(call Device/FitzImage)
681 DEVICE_VENDOR := Linksys
682 DEVICE_MODEL := EA8300
683 SOC := qcom-ipq4019
684 KERNEL_SIZE := 3072k
685 IMAGE_SIZE := 87040k
686 BLOCKSIZE := 128k
687 PAGESIZE := 2048
688 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
689 IMAGES += factory.bin
690 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
691 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
692 DEFAULT := n
693 endef
694 TARGET_DEVICES += linksys_ea8300
695
696 define Device/linksys_mr8300
697 $(call Device/FitzImage)
698 DEVICE_VENDOR := Linksys
699 DEVICE_MODEL := MR8300
700 SOC := qcom-ipq4019
701 KERNEL_SIZE := 3072k
702 IMAGE_SIZE := 87040k
703 BLOCKSIZE := 128k
704 PAGESIZE := 2048
705 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
706 IMAGES += factory.bin
707 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
708 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
709 DEFAULT := n
710 endef
711 TARGET_DEVICES += linksys_mr8300
712
713 define Device/linksys_whw01-v1
714 $(call Device/FitzImage)
715 DEVICE_VENDOR := Linksys
716 DEVICE_MODEL := WHW01
717 DEVICE_VARIANT := v1
718 KERNEL_SIZE := 6144k
719 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
720 SOC := qcom-ipq4018
721 BLOCKSIZE := 128k
722 PAGESIZE := 2048
723 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
724 IMAGES += factory.bin
725 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
726 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
727 check-size
728 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
729 endef
730 # Missing DSA Setup
731 #TARGET_DEVICES += linksys_whw01-v1
732
733 define Device/luma_wrtq-329acn
734 $(call Device/FitImage)
735 DEVICE_VENDOR := Luma Home
736 DEVICE_MODEL := WRTQ-329ACN
737 SOC := qcom-ipq4018
738 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
739 IMAGE_SIZE := 76632k
740 BLOCKSIZE := 128k
741 PAGESIZE := 2048
742 endef
743 TARGET_DEVICES += luma_wrtq-329acn
744
745 define Device/meraki_mr33
746 $(call Device/FitImage)
747 DEVICE_VENDOR := Cisco Meraki
748 DEVICE_MODEL := MR33
749 SOC := qcom-ipq4029
750 BLOCKSIZE := 128k
751 PAGESIZE := 2048
752 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
753 endef
754 TARGET_DEVICES += meraki_mr33
755
756 define Device/meraki_mr74
757 $(call Device/FitImage)
758 DEVICE_VENDOR := Cisco Meraki
759 DEVICE_MODEL := MR74
760 SOC := qcom-ipq4029
761 BLOCKSIZE := 128k
762 PAGESIZE := 2048
763 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
764 DEVICE_DTS_CONFIG := config@3
765 endef
766 TARGET_DEVICES += meraki_mr74
767
768 define Device/mobipromo_cm520-79f
769 $(call Device/FitzImage)
770 $(call Device/UbiFit)
771 DEVICE_VENDOR := MobiPromo
772 DEVICE_MODEL := CM520-79F
773 SOC := qcom-ipq4019
774 BLOCKSIZE := 128k
775 PAGESIZE := 2048
776 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
777 endef
778 TARGET_DEVICES += mobipromo_cm520-79f
779
780 define Device/netgear_ex61x0v2
781 $(call Device/DniImage)
782 DEVICE_VENDOR := NETGEAR
783 DEVICE_DTS_CONFIG := config@4
784 NETGEAR_BOARD_ID := EX6150v2series
785 NETGEAR_HW_ID := 29765285+16+0+128+2x2
786 IMAGE_SIZE := 14400k
787 SOC := qcom-ipq4018
788 endef
789
790 define Device/netgear_ex6100v2
791 $(call Device/netgear_ex61x0v2)
792 DEVICE_MODEL := EX6100
793 DEVICE_VARIANT := v2
794 endef
795 # Missing DSA Setup
796 #TARGET_DEVICES += netgear_ex6100v2
797
798 define Device/netgear_ex6150v2
799 $(call Device/netgear_ex61x0v2)
800 DEVICE_MODEL := EX6150
801 DEVICE_VARIANT := v2
802 endef
803 # Missing DSA Setup
804 #TARGET_DEVICES += netgear_ex6150v2
805
806 define Device/netgear_orbi
807 $(call Device/DniImage)
808 SOC := qcom-ipq4019
809 DEVICE_VENDOR := NETGEAR
810 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
811 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
812 append-rootfs | pad-rootfs | netgear-dni
813 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
814 sysupgrade-tar rootfs=$$$$@ | append-metadata
815 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
816 endef
817
818 define Device/netgear_rbx50
819 $(call Device/netgear_orbi)
820 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
821 KERNEL_SIZE := 3932160
822 ROOTFS_SIZE := 32243712
823 IMAGE_SIZE := 36175872
824 endef
825
826 define Device/netgear_rbr50
827 $(call Device/netgear_rbx50)
828 DEVICE_MODEL := RBR50
829 DEVICE_VARIANT := v1
830 NETGEAR_BOARD_ID := RBR50
831 endef
832 TARGET_DEVICES += netgear_rbr50
833
834 define Device/netgear_rbs50
835 $(call Device/netgear_rbx50)
836 DEVICE_MODEL := RBS50
837 DEVICE_VARIANT := v1
838 NETGEAR_BOARD_ID := RBS50
839 endef
840 TARGET_DEVICES += netgear_rbs50
841
842 define Device/netgear_srx60
843 $(call Device/netgear_orbi)
844 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
845 KERNEL_SIZE := 3932160
846 ROOTFS_SIZE := 32243712
847 IMAGE_SIZE := 36175872
848 endef
849
850 define Device/netgear_srr60
851 $(call Device/netgear_srx60)
852 DEVICE_MODEL := SRR60
853 NETGEAR_BOARD_ID := SRR60
854 endef
855 TARGET_DEVICES += netgear_srr60
856
857 define Device/netgear_srs60
858 $(call Device/netgear_srx60)
859 DEVICE_MODEL := SRS60
860 NETGEAR_BOARD_ID := SRS60
861 endef
862 TARGET_DEVICES += netgear_srs60
863
864 define Device/netgear_wac510
865 $(call Device/FitImage)
866 $(call Device/UbiFit)
867 DEVICE_VENDOR := Netgear
868 DEVICE_MODEL := WAC510
869 SOC := qcom-ipq4018
870 DEVICE_DTS_CONFIG := config@5
871 BLOCKSIZE := 128k
872 PAGESIZE := 2048
873 IMAGES += nand-factory.tar
874 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
875 DEVICE_PACKAGES := uboot-envtools
876 endef
877 TARGET_DEVICES += netgear_wac510
878
879 define Device/openmesh_a42
880 $(call Device/FitImageLzma)
881 DEVICE_VENDOR := OpenMesh
882 DEVICE_MODEL := A42
883 SOC := qcom-ipq4018
884 DEVICE_DTS_CONFIG := config@om.a42
885 BLOCKSIZE := 64k
886 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
887 IMAGE_SIZE := 15616k
888 IMAGES += factory.bin
889 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
890 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
891 endef
892 # Missing DSA Setup
893 #TARGET_DEVICES += openmesh_a42
894
895 define Device/openmesh_a62
896 $(call Device/FitImageLzma)
897 DEVICE_VENDOR := OpenMesh
898 DEVICE_MODEL := A62
899 SOC := qcom-ipq4019
900 DEVICE_DTS_CONFIG := config@om.a62
901 BLOCKSIZE := 64k
902 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
903 IMAGE_SIZE := 15552k
904 IMAGES += factory.bin
905 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
906 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
907 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
908 endef
909 # Missing DSA Setup
910 #TARGET_DEVICES += openmesh_a62
911
912 define Device/p2w_r619ac
913 $(call Device/FitzImage)
914 $(call Device/UbiFit)
915 DEVICE_VENDOR := P&W
916 DEVICE_MODEL := R619AC
917 SOC := qcom-ipq4019
918 DEVICE_DTS_CONFIG := config@10
919 BLOCKSIZE := 128k
920 PAGESIZE := 2048
921 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
922 endef
923
924 define Device/p2w_r619ac-64m
925 $(call Device/p2w_r619ac)
926 DEVICE_VARIANT := 64M NAND
927 IMAGES += nand-factory.bin
928 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
929 endef
930 TARGET_DEVICES += p2w_r619ac-64m
931
932 define Device/p2w_r619ac-128m
933 $(call Device/p2w_r619ac)
934 DEVICE_VARIANT := 128M NAND
935 endef
936 TARGET_DEVICES += p2w_r619ac-128m
937
938 define Device/pakedge_wr-1
939 $(call Device/FitImageLzma)
940 DEVICE_VENDOR := Pakedge
941 DEVICE_MODEL := WR-1
942 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
943 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
944 SOC := qcom-ipq4018
945 BLOCKSIZE := 64k
946 IMAGE_SIZE := 31232k
947 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
948 endef
949 TARGET_DEVICES += pakedge_wr-1
950
951 define Device/plasmacloud_pa1200
952 $(call Device/FitImageLzma)
953 DEVICE_VENDOR := Plasma Cloud
954 DEVICE_MODEL := PA1200
955 SOC := qcom-ipq4018
956 DEVICE_DTS_CONFIG := config@pc.pa1200
957 BLOCKSIZE := 64k
958 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
959 IMAGE_SIZE := 15616k
960 IMAGES += factory.bin
961 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
962 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
963 endef
964 # Missing DSA Setup
965 #TARGET_DEVICES += plasmacloud_pa1200
966
967 define Device/plasmacloud_pa2200
968 $(call Device/FitImageLzma)
969 DEVICE_VENDOR := Plasma Cloud
970 DEVICE_MODEL := PA2200
971 SOC := qcom-ipq4019
972 DEVICE_DTS_CONFIG := config@pc.pa2200
973 BLOCKSIZE := 64k
974 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
975 IMAGE_SIZE := 15552k
976 IMAGES += factory.bin
977 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
978 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
979 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
980 endef
981 # Missing DSA Setup
982 #TARGET_DEVICES += plasmacloud_pa2200
983
984 define Device/qcom_ap-dk01.1-c1
985 DEVICE_VENDOR := Qualcomm Atheros
986 DEVICE_MODEL := AP-DK01.1
987 DEVICE_VARIANT := C1
988 BOARD_NAME := ap-dk01.1-c1
989 SOC := qcom-ipq4019
990 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
991 KERNEL_INSTALL := 1
992 KERNEL_SIZE := 4096k
993 IMAGE_SIZE := 26624k
994 $(call Device/FitImage)
995 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
996 DEFAULT := n
997 endef
998 TARGET_DEVICES += qcom_ap-dk01.1-c1
999
1000 define Device/qcom_ap-dk04.1-c1
1001 $(call Device/FitImage)
1002 $(call Device/UbiFit)
1003 DEVICE_VENDOR := Qualcomm Atheros
1004 DEVICE_MODEL := AP-DK04.1
1005 DEVICE_VARIANT := C1
1006 SOC := qcom-ipq4019
1007 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
1008 KERNEL_INSTALL := 1
1009 KERNEL_SIZE := 4048k
1010 BLOCKSIZE := 128k
1011 PAGESIZE := 2048
1012 BOARD_NAME := ap-dk04.1-c1
1013 DEFAULT := n
1014 endef
1015 TARGET_DEVICES += qcom_ap-dk04.1-c1
1016
1017 define Device/qxwlan_e2600ac-c1
1018 $(call Device/FitImage)
1019 DEVICE_VENDOR := Qxwlan
1020 DEVICE_MODEL := E2600AC
1021 DEVICE_VARIANT := C1
1022 BOARD_NAME := e2600ac-c1
1023 SOC := qcom-ipq4019
1024 KERNEL_SIZE := 4096k
1025 IMAGE_SIZE := 31232k
1026 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1027 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
1028 DEFAULT := n
1029 endef
1030 # Missing DSA Setup
1031 #TARGET_DEVICES += qxwlan_e2600ac-c1
1032
1033 define Device/qxwlan_e2600ac-c2
1034 $(call Device/FitImage)
1035 $(call Device/UbiFit)
1036 DEVICE_VENDOR := Qxwlan
1037 DEVICE_MODEL := E2600AC
1038 DEVICE_VARIANT := C2
1039 SOC := qcom-ipq4019
1040 KERNEL_INSTALL := 1
1041 BLOCKSIZE := 128k
1042 PAGESIZE := 2048
1043 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1044 endef
1045 # Missing DSA Setup
1046 #TARGET_DEVICES += qxwlan_e2600ac-c2
1047
1048 define Device/sony_ncp-hg100-cellular
1049 $(call Device/FitImage)
1050 DEVICE_VENDOR := Sony
1051 DEVICE_MODEL := NCP-HG100/Cellular
1052 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1053 SOC := qcom-ipq4019
1054 KERNEL_SIZE := 8192k
1055 IMAGE_SIZE := 128m
1056 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1057 kmod-fs-ext4 uqmi
1058 endef
1059 TARGET_DEVICES += sony_ncp-hg100-cellular
1060
1061 define Device/teltonika_rutx10
1062 $(call Device/FitImage)
1063 $(call Device/UbiFit)
1064 DEVICE_VENDOR := Teltonika
1065 DEVICE_MODEL := RUTX10
1066 SOC := qcom-ipq4018
1067 DEVICE_DTS_CONFIG := config@5
1068 KERNEL_INSTALL := 1
1069 BLOCKSIZE := 128k
1070 PAGESIZE := 2048
1071 FILESYSTEMS := squashfs
1072 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1073 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1074 endef
1075 # Missing DSA Setup
1076 #TARGET_DEVICES += teltonika_rutx10
1077
1078 define Device/tel_x1pro
1079 $(call Device/FitImage)
1080 DEVICE_VENDOR := Telco
1081 DEVICE_MODEL := X1 Pro
1082 SOC := qcom-ipq4019
1083 KERNEL_SIZE := 4096k
1084 IMAGE_SIZE := 31232k
1085 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1086 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1087 DEFAULT := n
1088 endef
1089 # Missing DSA Setup
1090 #TARGET_DEVICES += tel_x1pro
1091
1092 define Device/unielec_u4019-32m
1093 $(call Device/FitImage)
1094 DEVICE_VENDOR := Unielec
1095 DEVICE_MODEL := U4019
1096 DEVICE_VARIANT := 32M
1097 BOARD_NAME := u4019-32m
1098 SOC := qcom-ipq4019
1099 KERNEL_SIZE := 4096k
1100 IMAGE_SIZE := 31232k
1101 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1102 DEFAULT := n
1103 endef
1104 # Missing DSA Setup
1105 #TARGET_DEVICES += unielec_u4019-32m
1106
1107 define Device/zte_mf28x_common
1108 $(call Device/FitzImage)
1109 DEVICE_VENDOR := ZTE
1110 SOC := qcom-ipq4019
1111 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1112 BLOCKSIZE := 128k
1113 PAGESIZE := 2048
1114 KERNEL_IN_UBI := 1
1115 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1116 endef
1117
1118 define Device/zte_mf286d
1119 $(call Device/zte_mf28x_common)
1120 DEVICE_MODEL := MF286D
1121 endef
1122 TARGET_DEVICES += zte_mf286d
1123
1124 define Device/zte_mf289f
1125 $(call Device/zte_mf28x_common)
1126 DEVICE_MODEL := MF289F
1127 DEVICE_PACKAGES += ipq-wifi-zte_mf289f ath10k-firmware-qca9984-ct
1128 endef
1129 TARGET_DEVICES += zte_mf289f
1130
1131 define Device/zyxel_nbg6617
1132 $(call Device/FitImageLzma)
1133 DEVICE_VENDOR := ZyXEL
1134 DEVICE_MODEL := NBG6617
1135 SOC := qcom-ipq4018
1136 KERNEL_SIZE := 4096k
1137 ROOTFS_SIZE := 24960k
1138 RAS_BOARD := NBG6617
1139 RAS_ROOTFS_SIZE := 19840k
1140 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1141 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1142 IMAGES += factory.bin
1143 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1144 # at least as large as the one of the initial firmware image (not the current
1145 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1146 # this minimum-size. However, the larger image can be flashed both ways.
1147 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1148 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1149 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1150 endef
1151 TARGET_DEVICES += zyxel_nbg6617
1152
1153 define Device/zyxel_wre6606
1154 $(call Device/FitImage)
1155 DEVICE_VENDOR := ZyXEL
1156 DEVICE_MODEL := WRE6606
1157 DEVICE_DTS_CONFIG := config@4
1158 SOC := qcom-ipq4018
1159 IMAGE_SIZE := 13184k
1160 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1161 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1162 endef
1163 # Missing DSA Setup
1164 #TARGET_DEVICES += zyxel_wre6606