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