ipq40xx: remove '-fit' string from kernel filenames
[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 := -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="$(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 := 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 # 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 := -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 := factory.bin sysupgrade.bin
321 IMAGE/factory.bin := append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
322 IMAGE/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 TARGET_DEVICES += dlink_dap-2610
423
424 define Device/edgecore_ecw5211
425 $(call Device/FitImage)
426 $(call Device/UbiFit)
427 DEVICE_VENDOR := Edgecore
428 DEVICE_MODEL := ECW5211
429 SOC := qcom-ipq4018
430 BLOCKSIZE := 128k
431 PAGESIZE := 2048
432 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
433 DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
434 endef
435 TARGET_DEVICES += edgecore_ecw5211
436
437 define Device/edgecore_oap100
438 $(call Device/FitImage)
439 $(call Device/UbiFit)
440 DEVICE_VENDOR := Edgecore
441 DEVICE_MODEL := OAP100
442 SOC := qcom-ipq4019
443 BLOCKSIZE := 128k
444 PAGESIZE := 2048
445 IMAGES := sysupgrade.bin
446 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
447 DEVICE_PACKAGES := ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
448 endef
449 # Missing DSA Setup
450 #TARGET_DEVICES += edgecore_oap100
451
452 define Device/engenius_eap1300
453 $(call Device/FitImage)
454 DEVICE_VENDOR := EnGenius
455 DEVICE_MODEL := EAP1300
456 DEVICE_DTS_CONFIG := config@4
457 BOARD_NAME := eap1300
458 SOC := qcom-ipq4018
459 KERNEL_SIZE := 5120k
460 IMAGE_SIZE := 25344k
461 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
462 endef
463 # Missing DSA Setup
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 DEVICE_PACKAGES := ipq-wifi-extreme-networks_ws-ap3915i
545 endef
546 # Missing DSA Setup
547 #TARGET_DEVICES += extreme-networks_ws-ap3915i
548
549 define Device/ezviz_cs-w3-wd1200g-eup
550 $(call Device/FitImage)
551 DEVICE_VENDOR := EZVIZ
552 DEVICE_MODEL := CS-W3-WD1200G
553 DEVICE_VARIANT := EUP
554 IMAGE_SIZE := 14848k
555 KERNEL_SIZE = 6m
556 SOC := qcom-ipq4018
557 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
558 append-metadata
559 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
560 DEVICE_COMPAT_VERSION := 2.0
561 DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
562 Upgrade via sysupgrade mechanism is not possible.
563 endef
564 # Missing DSA Setup
565 #TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
566
567 define Device/glinet_gl-a1300
568 $(call Device/FitImage)
569 $(call Device/UbiFit)
570 DEVICE_VENDOR := GL.iNet
571 DEVICE_MODEL := GL-A1300
572 SOC := qcom-ipq4018
573 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
574 BLOCKSIZE := 128k
575 PAGESIZE := 2048
576 IMAGE_SIZE := 131072k
577 DEVICE_PACKAGE := ipq-wifi-glinet_gl-a1300
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 := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
593 endef
594 # Missing DSA Setup
595 #TARGET_DEVICES += glinet_gl-ap1300
596
597 define Device/glinet_gl-b1300
598 $(call Device/FitzImage)
599 DEVICE_VENDOR := GL.iNet
600 DEVICE_MODEL := GL-B1300
601 BOARD_NAME := gl-b1300
602 SOC := qcom-ipq4029
603 KERNEL_SIZE := 4096k
604 IMAGE_SIZE := 26624k
605 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
606 endef
607 TARGET_DEVICES += glinet_gl-b1300
608
609 define Device/glinet_gl-b2200
610 $(call Device/FitzImage)
611 DEVICE_VENDOR := GL.iNet
612 DEVICE_MODEL := GL-B2200
613 SOC := qcom-ipq4019
614 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
615 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
616 IMAGES := emmc.img.gz sysupgrade.bin
617 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
618 pad-to 1024k | append-kernel |\
619 pad-to 33792k | append-rootfs |\
620 append-metadata | gzip
621 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
622 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
623 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
624 endef
625 TARGET_DEVICES += glinet_gl-b2200
626
627 define Device/glinet_gl-s1300
628 $(call Device/FitzImage)
629 DEVICE_VENDOR := GL.iNet
630 DEVICE_MODEL := GL-S1300
631 SOC := qcom-ipq4029
632 KERNEL_SIZE := 4096k
633 IMAGE_SIZE := 26624k
634 IMAGES := sysupgrade.bin
635 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
636 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
637 endef
638 # Missing DSA Setup
639 #TARGET_DEVICES += glinet_gl-s1300
640
641 define Device/linksys_ea6350v3
642 # The Linksys EA6350v3 has a uboot bootloader that does not
643 # support either booting lzma kernel images nor booting UBI
644 # partitions. This uboot, however, supports raw kernel images and
645 # gzipped images.
646 #
647 # As for the time of writing this, the device will boot the kernel
648 # from a fixed address with a fixed length of 3MiB. Also, the
649 # device has a hard-coded kernel command line that requieres the
650 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
651 # Oh... and the kernel partition overlaps with the rootfs
652 # partition (the same for alt_kernel and alt_rootfs).
653 #
654 # If you are planing re-partitioning the device, you may want to
655 # keep those details in mind:
656 # 1. The kernel adresses you should honor are 0x00000000 and
657 # 0x02800000 respectively.
658 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
659 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
660 # 4. The kernel command line from uboot is harcoded to boot with
661 # rootfs either in mtd11 or mtd13.
662 $(call Device/FitzImage)
663 DEVICE_VENDOR := Linksys
664 DEVICE_MODEL := EA6350
665 DEVICE_VARIANT := v3
666 SOC := qcom-ipq4018
667 BLOCKSIZE := 128k
668 PAGESIZE := 2048
669 KERNEL_SIZE := 3072k
670 IMAGE_SIZE := 37888k
671 UBINIZE_OPTS := -E 5
672 IMAGES += factory.bin
673 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
674 DEFAULT := n
675 endef
676 TARGET_DEVICES += linksys_ea6350v3
677
678 define Device/linksys_ea8300
679 $(call Device/FitzImage)
680 DEVICE_VENDOR := Linksys
681 DEVICE_MODEL := EA8300
682 SOC := qcom-ipq4019
683 KERNEL_SIZE := 3072k
684 IMAGE_SIZE := 87040k
685 BLOCKSIZE := 128k
686 PAGESIZE := 2048
687 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
688 IMAGES += factory.bin
689 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
690 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
691 DEFAULT := n
692 endef
693 TARGET_DEVICES += linksys_ea8300
694
695 define Device/linksys_mr8300
696 $(call Device/FitzImage)
697 DEVICE_VENDOR := Linksys
698 DEVICE_MODEL := MR8300
699 SOC := qcom-ipq4019
700 KERNEL_SIZE := 3072k
701 IMAGE_SIZE := 87040k
702 BLOCKSIZE := 128k
703 PAGESIZE := 2048
704 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
705 IMAGES += factory.bin
706 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
707 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
708 DEFAULT := n
709 endef
710 TARGET_DEVICES += linksys_mr8300
711
712 define Device/linksys_whw01-v1
713 $(call Device/FitzImage)
714 DEVICE_VENDOR := Linksys
715 DEVICE_MODEL := WHW01
716 DEVICE_VARIANT := v1
717 KERNEL_SIZE := 6144k
718 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
719 SOC := qcom-ipq4018
720 BLOCKSIZE := 128k
721 PAGESIZE := 2048
722 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
723 IMAGES += factory.bin
724 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
725 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
726 check-size
727 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
728 endef
729 # Missing DSA Setup
730 #TARGET_DEVICES += linksys_whw01-v1
731
732 define Device/luma_wrtq-329acn
733 $(call Device/FitImage)
734 DEVICE_VENDOR := Luma Home
735 DEVICE_MODEL := WRTQ-329ACN
736 SOC := qcom-ipq4018
737 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
738 IMAGE_SIZE := 76632k
739 BLOCKSIZE := 128k
740 PAGESIZE := 2048
741 endef
742 TARGET_DEVICES += luma_wrtq-329acn
743
744 define Device/meraki_mr33
745 $(call Device/FitImage)
746 DEVICE_VENDOR := Cisco Meraki
747 DEVICE_MODEL := MR33
748 SOC := qcom-ipq4029
749 BLOCKSIZE := 128k
750 PAGESIZE := 2048
751 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
752 endef
753 TARGET_DEVICES += meraki_mr33
754
755 define Device/meraki_mr74
756 $(call Device/FitImage)
757 DEVICE_VENDOR := Cisco Meraki
758 DEVICE_MODEL := MR74
759 SOC := qcom-ipq4029
760 BLOCKSIZE := 128k
761 PAGESIZE := 2048
762 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
763 DEVICE_DTS_CONFIG := config@3
764 endef
765 TARGET_DEVICES += meraki_mr74
766
767 define Device/mobipromo_cm520-79f
768 $(call Device/FitzImage)
769 $(call Device/UbiFit)
770 DEVICE_VENDOR := MobiPromo
771 DEVICE_MODEL := CM520-79F
772 SOC := qcom-ipq4019
773 BLOCKSIZE := 128k
774 PAGESIZE := 2048
775 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
776 endef
777 TARGET_DEVICES += mobipromo_cm520-79f
778
779 define Device/netgear_ex61x0v2
780 $(call Device/DniImage)
781 DEVICE_VENDOR := NETGEAR
782 DEVICE_DTS_CONFIG := config@4
783 NETGEAR_BOARD_ID := EX6150v2series
784 NETGEAR_HW_ID := 29765285+16+0+128+2x2
785 IMAGE_SIZE := 14400k
786 SOC := qcom-ipq4018
787 endef
788
789 define Device/netgear_ex6100v2
790 $(call Device/netgear_ex61x0v2)
791 DEVICE_MODEL := EX6100
792 DEVICE_VARIANT := v2
793 endef
794 # Missing DSA Setup
795 #TARGET_DEVICES += netgear_ex6100v2
796
797 define Device/netgear_ex6150v2
798 $(call Device/netgear_ex61x0v2)
799 DEVICE_MODEL := EX6150
800 DEVICE_VARIANT := v2
801 endef
802 # Missing DSA Setup
803 #TARGET_DEVICES += netgear_ex6150v2
804
805 define Device/netgear_orbi
806 $(call Device/DniImage)
807 SOC := qcom-ipq4019
808 DEVICE_VENDOR := NETGEAR
809 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
810 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
811 append-rootfs | pad-rootfs | netgear-dni
812 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
813 sysupgrade-tar rootfs=$$$$@ | append-metadata
814 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
815 endef
816
817 define Device/netgear_rbx50
818 $(call Device/netgear_orbi)
819 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
820 KERNEL_SIZE := 3932160
821 ROOTFS_SIZE := 32243712
822 IMAGE_SIZE := 36175872
823 endef
824
825 define Device/netgear_rbr50
826 $(call Device/netgear_rbx50)
827 DEVICE_MODEL := RBR50
828 DEVICE_VARIANT := v1
829 NETGEAR_BOARD_ID := RBR50
830 endef
831 TARGET_DEVICES += netgear_rbr50
832
833 define Device/netgear_rbs50
834 $(call Device/netgear_rbx50)
835 DEVICE_MODEL := RBS50
836 DEVICE_VARIANT := v1
837 NETGEAR_BOARD_ID := RBS50
838 endef
839 TARGET_DEVICES += netgear_rbs50
840
841 define Device/netgear_srx60
842 $(call Device/netgear_orbi)
843 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
844 KERNEL_SIZE := 3932160
845 ROOTFS_SIZE := 32243712
846 IMAGE_SIZE := 36175872
847 endef
848
849 define Device/netgear_srr60
850 $(call Device/netgear_srx60)
851 DEVICE_MODEL := SRR60
852 NETGEAR_BOARD_ID := SRR60
853 endef
854 TARGET_DEVICES += netgear_srr60
855
856 define Device/netgear_srs60
857 $(call Device/netgear_srx60)
858 DEVICE_MODEL := SRS60
859 NETGEAR_BOARD_ID := SRS60
860 endef
861 TARGET_DEVICES += netgear_srs60
862
863 define Device/netgear_wac510
864 $(call Device/FitImage)
865 $(call Device/UbiFit)
866 DEVICE_VENDOR := Netgear
867 DEVICE_MODEL := WAC510
868 SOC := qcom-ipq4018
869 DEVICE_DTS_CONFIG := config@5
870 BLOCKSIZE := 128k
871 PAGESIZE := 2048
872 IMAGES += factory.tar
873 IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
874 DEVICE_PACKAGES := uboot-envtools
875 endef
876 TARGET_DEVICES += netgear_wac510
877
878 define Device/openmesh_a42
879 $(call Device/FitImageLzma)
880 DEVICE_VENDOR := OpenMesh
881 DEVICE_MODEL := A42
882 SOC := qcom-ipq4018
883 DEVICE_DTS_CONFIG := config@om.a42
884 BLOCKSIZE := 64k
885 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
886 IMAGE_SIZE := 15616k
887 IMAGES += factory.bin
888 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
889 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
890 endef
891 TARGET_DEVICES += openmesh_a42
892
893 define Device/openmesh_a62
894 $(call Device/FitImageLzma)
895 DEVICE_VENDOR := OpenMesh
896 DEVICE_MODEL := A62
897 SOC := qcom-ipq4019
898 DEVICE_DTS_CONFIG := config@om.a62
899 BLOCKSIZE := 64k
900 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
901 IMAGE_SIZE := 15552k
902 IMAGES += factory.bin
903 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
904 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
905 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
906 endef
907 TARGET_DEVICES += openmesh_a62
908
909 define Device/p2w_r619ac
910 $(call Device/FitzImage)
911 $(call Device/UbiFit)
912 DEVICE_VENDOR := P&W
913 DEVICE_MODEL := R619AC
914 SOC := qcom-ipq4019
915 DEVICE_DTS_CONFIG := config@10
916 BLOCKSIZE := 128k
917 PAGESIZE := 2048
918 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
919 endef
920
921 define Device/p2w_r619ac-64m
922 $(call Device/p2w_r619ac)
923 DEVICE_VARIANT := 64M NAND
924 IMAGES += factory.bin
925 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
926 endef
927 TARGET_DEVICES += p2w_r619ac-64m
928
929 define Device/p2w_r619ac-128m
930 $(call Device/p2w_r619ac)
931 DEVICE_VARIANT := 128M NAND
932 endef
933 TARGET_DEVICES += p2w_r619ac-128m
934
935 define Device/pakedge_wr-1
936 $(call Device/FitImageLzma)
937 DEVICE_VENDOR := Pakedge
938 DEVICE_MODEL := WR-1
939 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
940 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
941 SOC := qcom-ipq4018
942 BLOCKSIZE := 64k
943 IMAGE_SIZE := 31232k
944 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
945 endef
946 TARGET_DEVICES += pakedge_wr-1
947
948 define Device/plasmacloud_pa1200
949 $(call Device/FitImageLzma)
950 DEVICE_VENDOR := Plasma Cloud
951 DEVICE_MODEL := PA1200
952 SOC := qcom-ipq4018
953 DEVICE_DTS_CONFIG := config@pc.pa1200
954 BLOCKSIZE := 64k
955 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
956 IMAGE_SIZE := 15616k
957 IMAGES += factory.bin
958 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
959 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
960 endef
961 TARGET_DEVICES += plasmacloud_pa1200
962
963 define Device/plasmacloud_pa2200
964 $(call Device/FitImageLzma)
965 DEVICE_VENDOR := Plasma Cloud
966 DEVICE_MODEL := PA2200
967 SOC := qcom-ipq4019
968 DEVICE_DTS_CONFIG := config@pc.pa2200
969 BLOCKSIZE := 64k
970 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
971 IMAGE_SIZE := 15552k
972 IMAGES += factory.bin
973 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
974 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
975 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
976 endef
977 TARGET_DEVICES += plasmacloud_pa2200
978
979 define Device/qcom_ap-dk01.1-c1
980 DEVICE_VENDOR := Qualcomm Atheros
981 DEVICE_MODEL := AP-DK01.1
982 DEVICE_VARIANT := C1
983 BOARD_NAME := ap-dk01.1-c1
984 SOC := qcom-ipq4019
985 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
986 KERNEL_INSTALL := 1
987 KERNEL_SIZE := 4096k
988 IMAGE_SIZE := 26624k
989 $(call Device/FitImage)
990 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
991 DEFAULT := n
992 endef
993 TARGET_DEVICES += qcom_ap-dk01.1-c1
994
995 define Device/qcom_ap-dk04.1-c1
996 $(call Device/FitImage)
997 $(call Device/UbiFit)
998 DEVICE_VENDOR := Qualcomm Atheros
999 DEVICE_MODEL := AP-DK04.1
1000 DEVICE_VARIANT := C1
1001 SOC := qcom-ipq4019
1002 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
1003 KERNEL_INSTALL := 1
1004 KERNEL_SIZE := 4048k
1005 BLOCKSIZE := 128k
1006 PAGESIZE := 2048
1007 BOARD_NAME := ap-dk04.1-c1
1008 DEFAULT := n
1009 endef
1010 TARGET_DEVICES += qcom_ap-dk04.1-c1
1011
1012 define Device/qxwlan_e2600ac-c1
1013 $(call Device/FitImage)
1014 DEVICE_VENDOR := Qxwlan
1015 DEVICE_MODEL := E2600AC
1016 DEVICE_VARIANT := C1
1017 BOARD_NAME := e2600ac-c1
1018 SOC := qcom-ipq4019
1019 KERNEL_SIZE := 4096k
1020 IMAGE_SIZE := 31232k
1021 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1022 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
1023 DEFAULT := n
1024 endef
1025 # Missing DSA Setup
1026 #TARGET_DEVICES += qxwlan_e2600ac-c1
1027
1028 define Device/qxwlan_e2600ac-c2
1029 $(call Device/FitImage)
1030 $(call Device/UbiFit)
1031 DEVICE_VENDOR := Qxwlan
1032 DEVICE_MODEL := E2600AC
1033 DEVICE_VARIANT := C2
1034 SOC := qcom-ipq4019
1035 KERNEL_INSTALL := 1
1036 BLOCKSIZE := 128k
1037 PAGESIZE := 2048
1038 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1039 endef
1040 # Missing DSA Setup
1041 #TARGET_DEVICES += qxwlan_e2600ac-c2
1042
1043 define Device/sony_ncp-hg100-cellular
1044 $(call Device/FitImage)
1045 DEVICE_VENDOR := Sony
1046 DEVICE_MODEL := NCP-HG100/Cellular
1047 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1048 SOC := qcom-ipq4019
1049 KERNEL_SIZE := 8192k
1050 IMAGE_SIZE := 128m
1051 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1052 kmod-fs-ext4 uqmi
1053 endef
1054 TARGET_DEVICES += sony_ncp-hg100-cellular
1055
1056 define Device/teltonika_rutx10
1057 $(call Device/FitImage)
1058 $(call Device/UbiFit)
1059 DEVICE_VENDOR := Teltonika
1060 DEVICE_MODEL := RUTX10
1061 SOC := qcom-ipq4018
1062 DEVICE_DTS_CONFIG := config@5
1063 KERNEL_INSTALL := 1
1064 BLOCKSIZE := 128k
1065 PAGESIZE := 2048
1066 FILESYSTEMS := squashfs
1067 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1068 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1069 endef
1070 # Missing DSA Setup
1071 #TARGET_DEVICES += teltonika_rutx10
1072
1073 define Device/tel_x1pro
1074 $(call Device/FitImage)
1075 DEVICE_VENDOR := Telco
1076 DEVICE_MODEL := X1 Pro
1077 SOC := qcom-ipq4019
1078 KERNEL_SIZE := 4096k
1079 IMAGE_SIZE := 31232k
1080 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1081 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1082 DEFAULT := n
1083 endef
1084 # Missing DSA Setup
1085 #TARGET_DEVICES += tel_x1pro
1086
1087 define Device/unielec_u4019-32m
1088 $(call Device/FitImage)
1089 DEVICE_VENDOR := Unielec
1090 DEVICE_MODEL := U4019
1091 DEVICE_VARIANT := 32M
1092 BOARD_NAME := u4019-32m
1093 SOC := qcom-ipq4019
1094 KERNEL_SIZE := 4096k
1095 IMAGE_SIZE := 31232k
1096 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1097 DEFAULT := n
1098 endef
1099 # Missing DSA Setup
1100 #TARGET_DEVICES += unielec_u4019-32m
1101
1102 define Device/zte_mf28x_common
1103 $(call Device/FitzImage)
1104 DEVICE_VENDOR := ZTE
1105 SOC := qcom-ipq4019
1106 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1107 BLOCKSIZE := 128k
1108 PAGESIZE := 2048
1109 KERNEL_IN_UBI := 1
1110 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1111 endef
1112
1113 define Device/zte_mf286d
1114 $(call Device/zte_mf28x_common)
1115 DEVICE_MODEL := MF286D
1116 endef
1117 TARGET_DEVICES += zte_mf286d
1118
1119 define Device/zte_mf289f
1120 $(call Device/zte_mf28x_common)
1121 DEVICE_MODEL := MF289F
1122 DEVICE_PACKAGES += ipq-wifi-zte_mf289f ath10k-firmware-qca9984-ct
1123 endef
1124 TARGET_DEVICES += zte_mf289f
1125
1126 define Device/zyxel_nbg6617
1127 $(call Device/FitImageLzma)
1128 DEVICE_VENDOR := ZyXEL
1129 DEVICE_MODEL := NBG6617
1130 SOC := qcom-ipq4018
1131 KERNEL_SIZE := 4096k
1132 ROOTFS_SIZE := 24960k
1133 RAS_BOARD := NBG6617
1134 RAS_ROOTFS_SIZE := 19840k
1135 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1136 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1137 IMAGES += factory.bin
1138 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1139 # at least as large as the one of the initial firmware image (not the current
1140 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1141 # this minimum-size. However, the larger image can be flashed both ways.
1142 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1143 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1144 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1145 endef
1146 TARGET_DEVICES += zyxel_nbg6617
1147
1148 define Device/zyxel_wre6606
1149 $(call Device/FitImage)
1150 DEVICE_VENDOR := ZyXEL
1151 DEVICE_MODEL := WRE6606
1152 DEVICE_DTS_CONFIG := config@4
1153 SOC := qcom-ipq4018
1154 IMAGE_SIZE := 13184k
1155 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1156 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1157 endef
1158 # Missing DSA Setup
1159 #TARGET_DEVICES += zyxel_wre6606