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