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