5dae52ff0ea13f572ff86bc6f882a24d8d6bb374
[openwrt/openwrt.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 ipq-wifi-aruba_ap-365
190 endef
191 # Missing DSA Setup
192 #TARGET_DEVICES += aruba_ap-365
193
194 define Device/asus_map-ac2200
195 $(call Device/FitImageLzma)
196 DEVICE_VENDOR := ASUS
197 DEVICE_MODEL := Lyra (MAP-AC2200)
198 SOC := qcom-ipq4019
199 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
200 endef
201 TARGET_DEVICES += asus_map-ac2200
202
203 # WARNING: this is an initramfs image that gets you half of the way there
204 # you need to delete the jffs2 ubi volume and sysupgrade to the final image
205 # to get a "trx" you can flash via web UI for ac42u/ac58u:
206 # - change call Device/FitImageLzma to Device/FitImage
207 # - add the following below UIMAGE_NAME
208 # UIMAGE_MAGIC := 0x27051956
209 # IMAGES += factory.trx
210 # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
211 define Device/asus_rt-ac42u
212 $(call Device/FitImageLzma)
213 DEVICE_VENDOR := ASUS
214 DEVICE_MODEL := RT-AC42U
215 DEVICE_ALT0_VENDOR := ASUS
216 DEVICE_ALT0_MODEL := RT-ACRH17
217 DEVICE_ALT1_VENDOR := ASUS
218 DEVICE_ALT1_MODEL := RT-AC2200
219 SOC := qcom-ipq4019
220 BLOCKSIZE := 128k
221 PAGESIZE := 2048
222 IMAGE_SIZE := 20439364
223 FILESYSTEMS := squashfs
224 # RT-AC82U is nowhere to be found online
225 # Rather, this device is a/k/a RT-AC42U
226 # But we'll go with what the vendor firmware has...
227 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC82U')
228 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
229 endef
230 TARGET_DEVICES += asus_rt-ac42u
231
232 define Device/asus_rt-ac58u
233 $(call Device/FitImageLzma)
234 DEVICE_VENDOR := ASUS
235 DEVICE_MODEL := RT-AC58U
236 DEVICE_ALT0_VENDOR := ASUS
237 DEVICE_ALT0_MODEL := RT-ACRH13
238 SOC := qcom-ipq4018
239 BLOCKSIZE := 128k
240 PAGESIZE := 2048
241 IMAGE_SIZE := 20439364
242 FILESYSTEMS := squashfs
243 # Someone - in their infinite wisdom - decided to put the firmware
244 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
245 # Since u-boot works with strings we either need another fixup step
246 # to add a version... or we are very careful not to add '\0' into that
247 # string and call it a day.... Yeah, we do the latter!
248 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
249 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
250 kmod-usb-ledtrig-usbport
251 endef
252 TARGET_DEVICES += asus_rt-ac58u
253
254 define Device/avm_fritzbox-4040
255 $(call Device/FitImageLzma)
256 DEVICE_VENDOR := AVM
257 DEVICE_MODEL := FRITZ!Box 4040
258 SOC := qcom-ipq4018
259 BOARD_NAME := fritz4040
260 IMAGE_SIZE := 29056k
261 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
262 UBOOT_PARTITION_SIZE := 524288
263 IMAGES += eva.bin
264 IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
265 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
266 DEVICE_PACKAGES := fritz-tffs fritz-caldata
267 endef
268 TARGET_DEVICES += avm_fritzbox-4040
269
270 define Device/avm_fritzbox-7530
271 $(call Device/FitImageLzma)
272 DEVICE_VENDOR := AVM
273 DEVICE_MODEL := FRITZ!Box 7530
274 DEVICE_ALT0_VENDOR := AVM
275 DEVICE_ALT0_MODEL := FRITZ!Box 7520
276 SOC := qcom-ipq4019
277 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
278 endef
279 TARGET_DEVICES += avm_fritzbox-7530
280
281 define Device/avm_fritzrepeater-1200
282 $(call Device/FitImageLzma)
283 DEVICE_VENDOR := AVM
284 DEVICE_MODEL := FRITZ!Repeater 1200
285 SOC := qcom-ipq4019
286 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
287 endef
288 TARGET_DEVICES += avm_fritzrepeater-1200
289
290 define Device/avm_fritzrepeater-3000
291 $(call Device/FitImageLzma)
292 DEVICE_VENDOR := AVM
293 DEVICE_MODEL := FRITZ!Repeater 3000
294 SOC := qcom-ipq4019
295 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
296 endef
297 # Missing DSA Setup
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 # Missing DSA Setup
546 #TARGET_DEVICES += extreme-networks_ws-ap3915i
547
548 define Device/ezviz_cs-w3-wd1200g-eup
549 $(call Device/FitImage)
550 DEVICE_VENDOR := EZVIZ
551 DEVICE_MODEL := CS-W3-WD1200G
552 DEVICE_VARIANT := EUP
553 IMAGE_SIZE := 14848k
554 KERNEL_SIZE = 6m
555 SOC := qcom-ipq4018
556 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
557 append-metadata
558 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
559 DEVICE_COMPAT_VERSION := 2.0
560 DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
561 Upgrade via sysupgrade mechanism is not possible.
562 endef
563 # Missing DSA Setup
564 #TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
565
566 define Device/glinet_gl-a1300
567 $(call Device/FitImage)
568 $(call Device/UbiFit)
569 DEVICE_VENDOR := GL.iNet
570 DEVICE_MODEL := GL-A1300
571 SOC := qcom-ipq4018
572 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
573 BLOCKSIZE := 128k
574 PAGESIZE := 2048
575 IMAGE_SIZE := 131072k
576 DEVICE_PACKAGE := ipq-wifi-glinet_gl-a1300
577 endef
578 TARGET_DEVICES += glinet_gl-a1300
579
580 define Device/glinet_gl-ap1300
581 $(call Device/FitImage)
582 $(call Device/UbiFit)
583 DEVICE_VENDOR := GL.iNet
584 DEVICE_MODEL := GL-AP1300
585 SOC := qcom-ipq4018
586 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
587 BLOCKSIZE := 128k
588 PAGESIZE := 2048
589 IMAGE_SIZE := 131072k
590 KERNEL_INSTALL := 1
591 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
592 endef
593 # Missing DSA Setup
594 #TARGET_DEVICES += glinet_gl-ap1300
595
596 define Device/glinet_gl-b1300
597 $(call Device/FitzImage)
598 DEVICE_VENDOR := GL.iNet
599 DEVICE_MODEL := GL-B1300
600 BOARD_NAME := gl-b1300
601 SOC := qcom-ipq4029
602 KERNEL_SIZE := 4096k
603 IMAGE_SIZE := 26624k
604 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
605 endef
606 TARGET_DEVICES += glinet_gl-b1300
607
608 define Device/glinet_gl-b2200
609 $(call Device/FitzImage)
610 DEVICE_VENDOR := GL.iNet
611 DEVICE_MODEL := GL-B2200
612 SOC := qcom-ipq4019
613 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
614 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
615 IMAGES := emmc.img.gz sysupgrade.bin
616 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
617 pad-to 1024k | append-kernel |\
618 pad-to 33792k | append-rootfs |\
619 append-metadata | gzip
620 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
621 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
622 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
623 endef
624 TARGET_DEVICES += glinet_gl-b2200
625
626 define Device/glinet_gl-s1300
627 $(call Device/FitzImage)
628 DEVICE_VENDOR := GL.iNet
629 DEVICE_MODEL := GL-S1300
630 SOC := qcom-ipq4029
631 KERNEL_SIZE := 4096k
632 IMAGE_SIZE := 26624k
633 IMAGES := sysupgrade.bin
634 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
635 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
636 endef
637 # Missing DSA Setup
638 #TARGET_DEVICES += glinet_gl-s1300
639
640 define Device/linksys_ea6350v3
641 # The Linksys EA6350v3 has a uboot bootloader that does not
642 # support either booting lzma kernel images nor booting UBI
643 # partitions. This uboot, however, supports raw kernel images and
644 # gzipped images.
645 #
646 # As for the time of writing this, the device will boot the kernel
647 # from a fixed address with a fixed length of 3MiB. Also, the
648 # device has a hard-coded kernel command line that requieres the
649 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
650 # Oh... and the kernel partition overlaps with the rootfs
651 # partition (the same for alt_kernel and alt_rootfs).
652 #
653 # If you are planing re-partitioning the device, you may want to
654 # keep those details in mind:
655 # 1. The kernel adresses you should honor are 0x00000000 and
656 # 0x02800000 respectively.
657 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
658 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
659 # 4. The kernel command line from uboot is harcoded to boot with
660 # rootfs either in mtd11 or mtd13.
661 $(call Device/FitzImage)
662 DEVICE_VENDOR := Linksys
663 DEVICE_MODEL := EA6350
664 DEVICE_VARIANT := v3
665 SOC := qcom-ipq4018
666 BLOCKSIZE := 128k
667 PAGESIZE := 2048
668 KERNEL_SIZE := 3072k
669 IMAGE_SIZE := 37888k
670 UBINIZE_OPTS := -E 5
671 IMAGES += factory.bin
672 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
673 DEFAULT := n
674 endef
675 TARGET_DEVICES += linksys_ea6350v3
676
677 define Device/linksys_ea8300
678 $(call Device/FitzImage)
679 DEVICE_VENDOR := Linksys
680 DEVICE_MODEL := EA8300
681 SOC := qcom-ipq4019
682 KERNEL_SIZE := 3072k
683 IMAGE_SIZE := 87040k
684 BLOCKSIZE := 128k
685 PAGESIZE := 2048
686 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
687 IMAGES += factory.bin
688 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
689 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
690 DEFAULT := n
691 endef
692 TARGET_DEVICES += linksys_ea8300
693
694 define Device/linksys_mr8300
695 $(call Device/FitzImage)
696 DEVICE_VENDOR := Linksys
697 DEVICE_MODEL := MR8300
698 SOC := qcom-ipq4019
699 KERNEL_SIZE := 3072k
700 IMAGE_SIZE := 87040k
701 BLOCKSIZE := 128k
702 PAGESIZE := 2048
703 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
704 IMAGES += factory.bin
705 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
706 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
707 DEFAULT := n
708 endef
709 TARGET_DEVICES += linksys_mr8300
710
711 define Device/linksys_whw01-v1
712 $(call Device/FitzImage)
713 DEVICE_VENDOR := Linksys
714 DEVICE_MODEL := WHW01
715 DEVICE_VARIANT := v1
716 KERNEL_SIZE := 6144k
717 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
718 SOC := qcom-ipq4018
719 BLOCKSIZE := 128k
720 PAGESIZE := 2048
721 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
722 IMAGES += factory.bin
723 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
724 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
725 check-size
726 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
727 endef
728 # Missing DSA Setup
729 #TARGET_DEVICES += linksys_whw01-v1
730
731 define Device/luma_wrtq-329acn
732 $(call Device/FitImage)
733 DEVICE_VENDOR := Luma Home
734 DEVICE_MODEL := WRTQ-329ACN
735 SOC := qcom-ipq4018
736 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
737 IMAGE_SIZE := 76632k
738 BLOCKSIZE := 128k
739 PAGESIZE := 2048
740 endef
741 TARGET_DEVICES += luma_wrtq-329acn
742
743 define Device/meraki_mr33
744 $(call Device/FitImage)
745 DEVICE_VENDOR := Cisco Meraki
746 DEVICE_MODEL := MR33
747 SOC := qcom-ipq4029
748 BLOCKSIZE := 128k
749 PAGESIZE := 2048
750 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
751 endef
752 TARGET_DEVICES += meraki_mr33
753
754 define Device/meraki_mr74
755 $(call Device/FitImage)
756 DEVICE_VENDOR := Cisco Meraki
757 DEVICE_MODEL := MR74
758 SOC := qcom-ipq4029
759 BLOCKSIZE := 128k
760 PAGESIZE := 2048
761 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
762 DEVICE_DTS_CONFIG := config@3
763 endef
764 TARGET_DEVICES += meraki_mr74
765
766 define Device/mobipromo_cm520-79f
767 $(call Device/FitzImage)
768 $(call Device/UbiFit)
769 DEVICE_VENDOR := MobiPromo
770 DEVICE_MODEL := CM520-79F
771 SOC := qcom-ipq4019
772 BLOCKSIZE := 128k
773 PAGESIZE := 2048
774 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
775 endef
776 TARGET_DEVICES += mobipromo_cm520-79f
777
778 define Device/netgear_ex61x0v2
779 $(call Device/DniImage)
780 DEVICE_VENDOR := NETGEAR
781 DEVICE_DTS_CONFIG := config@4
782 NETGEAR_BOARD_ID := EX6150v2series
783 NETGEAR_HW_ID := 29765285+16+0+128+2x2
784 IMAGE_SIZE := 14400k
785 SOC := qcom-ipq4018
786 endef
787
788 define Device/netgear_ex6100v2
789 $(call Device/netgear_ex61x0v2)
790 DEVICE_MODEL := EX6100
791 DEVICE_VARIANT := v2
792 endef
793 # Missing DSA Setup
794 #TARGET_DEVICES += netgear_ex6100v2
795
796 define Device/netgear_ex6150v2
797 $(call Device/netgear_ex61x0v2)
798 DEVICE_MODEL := EX6150
799 DEVICE_VARIANT := v2
800 endef
801 # Missing DSA Setup
802 #TARGET_DEVICES += netgear_ex6150v2
803
804 define Device/netgear_orbi
805 $(call Device/DniImage)
806 SOC := qcom-ipq4019
807 DEVICE_VENDOR := NETGEAR
808 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
809 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
810 append-rootfs | pad-rootfs | netgear-dni
811 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
812 sysupgrade-tar rootfs=$$$$@ | append-metadata
813 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
814 endef
815
816 define Device/netgear_rbx50
817 $(call Device/netgear_orbi)
818 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
819 KERNEL_SIZE := 3932160
820 ROOTFS_SIZE := 32243712
821 IMAGE_SIZE := 36175872
822 endef
823
824 define Device/netgear_rbr50
825 $(call Device/netgear_rbx50)
826 DEVICE_MODEL := RBR50
827 DEVICE_VARIANT := v1
828 NETGEAR_BOARD_ID := RBR50
829 endef
830 TARGET_DEVICES += netgear_rbr50
831
832 define Device/netgear_rbs50
833 $(call Device/netgear_rbx50)
834 DEVICE_MODEL := RBS50
835 DEVICE_VARIANT := v1
836 NETGEAR_BOARD_ID := RBS50
837 endef
838 TARGET_DEVICES += netgear_rbs50
839
840 define Device/netgear_srx60
841 $(call Device/netgear_orbi)
842 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
843 KERNEL_SIZE := 3932160
844 ROOTFS_SIZE := 32243712
845 IMAGE_SIZE := 36175872
846 endef
847
848 define Device/netgear_srr60
849 $(call Device/netgear_srx60)
850 DEVICE_MODEL := SRR60
851 NETGEAR_BOARD_ID := SRR60
852 endef
853 TARGET_DEVICES += netgear_srr60
854
855 define Device/netgear_srs60
856 $(call Device/netgear_srx60)
857 DEVICE_MODEL := SRS60
858 NETGEAR_BOARD_ID := SRS60
859 endef
860 TARGET_DEVICES += netgear_srs60
861
862 define Device/netgear_wac510
863 $(call Device/FitImage)
864 $(call Device/UbiFit)
865 DEVICE_VENDOR := Netgear
866 DEVICE_MODEL := WAC510
867 SOC := qcom-ipq4018
868 DEVICE_DTS_CONFIG := config@5
869 BLOCKSIZE := 128k
870 PAGESIZE := 2048
871 IMAGES += factory.tar
872 IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
873 DEVICE_PACKAGES := uboot-envtools
874 endef
875 TARGET_DEVICES += netgear_wac510
876
877 define Device/openmesh_a42
878 $(call Device/FitImageLzma)
879 DEVICE_VENDOR := OpenMesh
880 DEVICE_MODEL := A42
881 SOC := qcom-ipq4018
882 DEVICE_DTS_CONFIG := config@om.a42
883 BLOCKSIZE := 64k
884 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
885 IMAGE_SIZE := 15616k
886 IMAGES += factory.bin
887 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
888 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
889 endef
890 TARGET_DEVICES += openmesh_a42
891
892 define Device/openmesh_a62
893 $(call Device/FitImageLzma)
894 DEVICE_VENDOR := OpenMesh
895 DEVICE_MODEL := A62
896 SOC := qcom-ipq4019
897 DEVICE_DTS_CONFIG := config@om.a62
898 BLOCKSIZE := 64k
899 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
900 IMAGE_SIZE := 15552k
901 IMAGES += factory.bin
902 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
903 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
904 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
905 endef
906 TARGET_DEVICES += openmesh_a62
907
908 define Device/p2w_r619ac
909 $(call Device/FitzImage)
910 $(call Device/UbiFit)
911 DEVICE_VENDOR := P&W
912 DEVICE_MODEL := R619AC
913 SOC := qcom-ipq4019
914 DEVICE_DTS_CONFIG := config@10
915 BLOCKSIZE := 128k
916 PAGESIZE := 2048
917 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
918 endef
919
920 define Device/p2w_r619ac-64m
921 $(call Device/p2w_r619ac)
922 DEVICE_VARIANT := 64M NAND
923 IMAGES += factory.bin
924 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
925 endef
926 TARGET_DEVICES += p2w_r619ac-64m
927
928 define Device/p2w_r619ac-128m
929 $(call Device/p2w_r619ac)
930 DEVICE_VARIANT := 128M NAND
931 endef
932 TARGET_DEVICES += p2w_r619ac-128m
933
934 define Device/pakedge_wr-1
935 $(call Device/FitImageLzma)
936 DEVICE_VENDOR := Pakedge
937 DEVICE_MODEL := WR-1
938 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
939 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
940 SOC := qcom-ipq4018
941 BLOCKSIZE := 64k
942 IMAGE_SIZE := 31232k
943 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
944 endef
945 TARGET_DEVICES += pakedge_wr-1
946
947 define Device/plasmacloud_pa1200
948 $(call Device/FitImageLzma)
949 DEVICE_VENDOR := Plasma Cloud
950 DEVICE_MODEL := PA1200
951 SOC := qcom-ipq4018
952 DEVICE_DTS_CONFIG := config@pc.pa1200
953 BLOCKSIZE := 64k
954 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
955 IMAGE_SIZE := 15616k
956 IMAGES += factory.bin
957 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
958 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
959 endef
960 TARGET_DEVICES += plasmacloud_pa1200
961
962 define Device/plasmacloud_pa2200
963 $(call Device/FitImageLzma)
964 DEVICE_VENDOR := Plasma Cloud
965 DEVICE_MODEL := PA2200
966 SOC := qcom-ipq4019
967 DEVICE_DTS_CONFIG := config@pc.pa2200
968 BLOCKSIZE := 64k
969 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
970 IMAGE_SIZE := 15552k
971 IMAGES += factory.bin
972 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
973 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
974 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
975 endef
976 TARGET_DEVICES += plasmacloud_pa2200
977
978 define Device/qcom_ap-dk01.1-c1
979 DEVICE_VENDOR := Qualcomm Atheros
980 DEVICE_MODEL := AP-DK01.1
981 DEVICE_VARIANT := C1
982 BOARD_NAME := ap-dk01.1-c1
983 SOC := qcom-ipq4019
984 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
985 KERNEL_INSTALL := 1
986 KERNEL_SIZE := 4096k
987 IMAGE_SIZE := 26624k
988 $(call Device/FitImage)
989 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
990 DEFAULT := n
991 endef
992 TARGET_DEVICES += qcom_ap-dk01.1-c1
993
994 define Device/qcom_ap-dk04.1-c1
995 $(call Device/FitImage)
996 $(call Device/UbiFit)
997 DEVICE_VENDOR := Qualcomm Atheros
998 DEVICE_MODEL := AP-DK04.1
999 DEVICE_VARIANT := C1
1000 SOC := qcom-ipq4019
1001 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
1002 KERNEL_INSTALL := 1
1003 KERNEL_SIZE := 4048k
1004 BLOCKSIZE := 128k
1005 PAGESIZE := 2048
1006 BOARD_NAME := ap-dk04.1-c1
1007 DEFAULT := n
1008 endef
1009 TARGET_DEVICES += qcom_ap-dk04.1-c1
1010
1011 define Device/qxwlan_e2600ac-c1
1012 $(call Device/FitImage)
1013 DEVICE_VENDOR := Qxwlan
1014 DEVICE_MODEL := E2600AC
1015 DEVICE_VARIANT := C1
1016 BOARD_NAME := e2600ac-c1
1017 SOC := qcom-ipq4019
1018 KERNEL_SIZE := 4096k
1019 IMAGE_SIZE := 31232k
1020 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1021 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
1022 DEFAULT := n
1023 endef
1024 # Missing DSA Setup
1025 #TARGET_DEVICES += qxwlan_e2600ac-c1
1026
1027 define Device/qxwlan_e2600ac-c2
1028 $(call Device/FitImage)
1029 $(call Device/UbiFit)
1030 DEVICE_VENDOR := Qxwlan
1031 DEVICE_MODEL := E2600AC
1032 DEVICE_VARIANT := C2
1033 SOC := qcom-ipq4019
1034 KERNEL_INSTALL := 1
1035 BLOCKSIZE := 128k
1036 PAGESIZE := 2048
1037 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1038 endef
1039 # Missing DSA Setup
1040 #TARGET_DEVICES += qxwlan_e2600ac-c2
1041
1042 define Device/sony_ncp-hg100-cellular
1043 $(call Device/FitImage)
1044 DEVICE_VENDOR := Sony
1045 DEVICE_MODEL := NCP-HG100/Cellular
1046 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1047 SOC := qcom-ipq4019
1048 KERNEL_SIZE := 8192k
1049 IMAGE_SIZE := 128m
1050 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1051 kmod-fs-ext4 uqmi
1052 endef
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/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 TARGET_DEVICES += zte_mf289f
1124
1125 define Device/zyxel_nbg6617
1126 $(call Device/FitImageLzma)
1127 DEVICE_VENDOR := ZyXEL
1128 DEVICE_MODEL := NBG6617
1129 SOC := qcom-ipq4018
1130 KERNEL_SIZE := 4096k
1131 ROOTFS_SIZE := 24960k
1132 RAS_BOARD := NBG6617
1133 RAS_ROOTFS_SIZE := 19840k
1134 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1135 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1136 IMAGES += factory.bin
1137 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1138 # at least as large as the one of the initial firmware image (not the current
1139 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1140 # this minimum-size. However, the larger image can be flashed both ways.
1141 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1142 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1143 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1144 endef
1145 TARGET_DEVICES += zyxel_nbg6617
1146
1147 define Device/zyxel_wre6606
1148 $(call Device/FitImage)
1149 DEVICE_VENDOR := ZyXEL
1150 DEVICE_MODEL := WRE6606
1151 DEVICE_DTS_CONFIG := config@4
1152 SOC := qcom-ipq4018
1153 IMAGE_SIZE := 13184k
1154 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1155 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1156 endef
1157 # Missing DSA Setup
1158 #TARGET_DEVICES += zyxel_wre6606