ipq40xx: add support for Sony NCP-HG100/Cellular
[openwrt/staging/hauke.git] / target / linux / ipq40xx / image / generic.mk
1
2 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
3 DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
4 DEVICE_VARS += WRGG_DEVNAME WRGG_SIGNATURE
5
6 define Device/FitImage
7 KERNEL_SUFFIX := -fit-uImage.itb
8 KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
9 KERNEL_NAME := Image
10 endef
11
12 define Device/FitImageLzma
13 KERNEL_SUFFIX := -fit-uImage.itb
14 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
15 KERNEL_NAME := Image
16 endef
17
18 define Device/FitzImage
19 KERNEL_SUFFIX := -fit-zImage.itb
20 KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb
21 KERNEL_NAME := zImage
22 endef
23
24 define Device/UbiFit
25 KERNEL_IN_UBI := 1
26 IMAGES := nand-factory.ubi nand-sysupgrade.bin
27 IMAGE/nand-factory.ubi := append-ubi
28 IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
29 endef
30
31 define Device/DniImage
32 $(call Device/FitzImage)
33 NETGEAR_BOARD_ID :=
34 NETGEAR_HW_ID :=
35 IMAGES += factory.img
36 IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
37 IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | \
38 append-rootfs | pad-rootfs | check-size | append-metadata
39 endef
40
41 define Build/append-rootfshdr
42 mkimage -A $(LINUX_KARCH) \
43 -O linux -T filesystem \
44 -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
45 -n root.squashfs -d $(IMAGE_ROOTFS) $@.new
46 cat $(IMAGE_KERNEL) > $@.$1
47 dd if=$@.new bs=64 count=1 >> $@.$1
48 endef
49
50 define Build/append-rutx-metadata
51 echo \
52 '{ \
53 "device_code": [".*"], \
54 "hwver": [".*"], \
55 "batch": [".*"], \
56 "serial": [".*"], \
57 "supported_devices":["teltonika,rutx"] \
58 }' | fwtool -I - $@
59 endef
60
61 define Build/copy-file
62 cat "$(1)" > "$@"
63 endef
64
65 define Build/mkmylofw_32m
66 $(eval device_id=$(word 1,$(1)))
67 $(eval revision=$(word 2,$(1)))
68
69 let \
70 size="$$(stat -c%s $@)" \
71 pad="$(subst k,* 1024,$(BLOCKSIZE))" \
72 pad="(pad - (size % pad)) % pad" \
73 newsize='size + pad'; \
74 $(STAGING_DIR_HOST)/bin/mkmylofw \
75 -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
76 -s 0x2000000 -p0x180000:$$newsize:al:0x80208000:"OpenWrt":$@ \
77 $@.new
78 @mv $@.new $@
79 endef
80
81 define Build/wac5xx-netgear-tar
82 mkdir $@.tmp
83 mv $@ $@.tmp/wac5xx-ubifs-root.img
84 md5sum $@.tmp/wac5xx-ubifs-root.img > $@.tmp/wac5xx-ubifs-root.md5sum
85 echo "WAC505 WAC510" > $@.tmp/metadata.txt
86 echo "WAC505_V9.9.9.9" > $@.tmp/version
87 tar -C $@.tmp/ -cf $@ .
88 rm -rf $@.tmp
89 endef
90
91 define Build/qsdk-ipq-factory-nand-askey
92 $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh $@.its\
93 askey_kernel $@.$1 \
94 askey_fs $(IMAGE_ROOTFS) \
95 ubifs $@
96 PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
97 @mv $@.new $@
98 endef
99
100 define Build/qsdk-ipq-app-gpt
101 cp $@ $@.tmp 2>/dev/null || true
102 ptgen -g -o $@.tmp -a 1 -l 1024 \
103 -t 0x2e -N 0:HLOS -r -p 32M \
104 -t 0x83 -N rootfs -r -p 128M \
105 -N rootfs_data -p 512M
106 cat $@.tmp >> $@
107 rm $@.tmp
108 endef
109
110 define Build/SenaoFW
111 -$(STAGING_DIR_HOST)/bin/mksenaofw \
112 -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
113 -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
114 -e $@ \
115 -o $@.new
116 @cp $@.new $@
117 endef
118
119 define Build/wrgg-image
120 mkwrggimg -i $@ \
121 -o $@.new \
122 -d "$(WRGG_DEVNAME)" \
123 -s "$(WRGG_SIGNATURE)" \
124 -v "" -m "" -B ""
125 mv $@.new $@
126 endef
127
128 define Device/8dev_habanero-dvk
129 $(call Device/FitImageLzma)
130 DEVICE_VENDOR := 8devices
131 DEVICE_MODEL := Habanero DVK
132 IMAGE_SIZE := 30976k
133 SOC := qcom-ipq4019
134 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | check-size | append-metadata
135 endef
136 TARGET_DEVICES += 8dev_habanero-dvk
137
138 define Device/8dev_jalapeno-common
139 $(call Device/FitImage)
140 $(call Device/UbiFit)
141 BLOCKSIZE := 128k
142 PAGESIZE := 2048
143 SOC := qcom-ipq4018
144 endef
145
146 define Device/8dev_jalapeno
147 $(call Device/8dev_jalapeno-common)
148 DEVICE_VENDOR := 8devices
149 DEVICE_MODEL := Jalapeno
150 endef
151 TARGET_DEVICES += 8dev_jalapeno
152
153 define Device/alfa-network_ap120c-ac
154 $(call Device/FitImage)
155 $(call Device/UbiFit)
156 DEVICE_VENDOR := ALFA Network
157 DEVICE_MODEL := AP120C-AC
158 SOC := qcom-ipq4018
159 DEVICE_PACKAGES := kmod-usb-acm kmod-tpm-i2c-atmel
160 BLOCKSIZE := 128k
161 PAGESIZE := 2048
162 IMAGE_SIZE := 65536k
163 IMAGES := nand-factory.bin nand-sysupgrade.bin
164 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
165 endef
166 TARGET_DEVICES += alfa-network_ap120c-ac
167
168 define Device/aruba_glenmorangie
169 $(call Device/FitImageLzma)
170 DEVICE_VENDOR := Aruba
171 SOC := qcom-ipq4029
172 endef
173
174 define Device/aruba_ap-303
175 $(call Device/aruba_glenmorangie)
176 DEVICE_MODEL := AP-303
177 endef
178 TARGET_DEVICES += aruba_ap-303
179
180 define Device/aruba_ap-303h
181 $(call Device/aruba_glenmorangie)
182 DEVICE_MODEL := AP-303H
183 endef
184 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 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
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 TARGET_DEVICES += buffalo_wtr-m2133hp
309
310 define Device/cellc_rtl30vw
311 KERNEL_SUFFIX := -fit-zImage.itb
312 KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
313 KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb | uImage lzma | pad-to 2048
314 KERNEL_NAME := zImage
315 KERNEL_IN_UBI :=
316 IMAGES := nand-factory.bin nand-sysupgrade.bin
317 IMAGE/nand-factory.bin := append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
318 IMAGE/nand-sysupgrade.bin := append-rootfshdr kernel | sysupgrade-tar kernel=$$$$@.kernel | append-metadata
319 DEVICE_VENDOR := Cell C
320 DEVICE_MODEL := RTL30VW
321 SOC := qcom-ipq4019
322 DEVICE_DTS_CONFIG := config@5
323 KERNEL_INSTALL := 1
324 KERNEL_SIZE := 4096k
325 IMAGE_SIZE := 57344k
326 BLOCKSIZE := 128k
327 PAGESIZE := 2048
328 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
329 endef
330 TARGET_DEVICES += cellc_rtl30vw
331
332 define Device/cilab_meshpoint-one
333 $(call Device/8dev_jalapeno-common)
334 DEVICE_VENDOR := Crisis Innovation Lab
335 DEVICE_MODEL := MeshPoint.One
336 DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
337 endef
338 TARGET_DEVICES += cilab_meshpoint-one
339
340 define Device/compex_wpj419
341 $(call Device/FitImage)
342 $(call Device/UbiFit)
343 DEVICE_VENDOR := Compex
344 DEVICE_MODEL := WPJ419
345 SOC := qcom-ipq4019
346 DEVICE_DTS_CONFIG := config@12
347 KERNEL_INSTALL := 1
348 BLOCKSIZE := 128k
349 PAGESIZE := 2048
350 FILESYSTEMS := squashfs
351 endef
352 TARGET_DEVICES += compex_wpj419
353
354 define Device/compex_wpj428
355 $(call Device/FitImage)
356 DEVICE_VENDOR := Compex
357 DEVICE_MODEL := WPJ428
358 SOC := qcom-ipq4028
359 DEVICE_DTS_CONFIG := config@4
360 BLOCKSIZE := 64k
361 IMAGE_SIZE := 31232k
362 KERNEL_SIZE := 4096k
363 IMAGES += cpximg-6a04.bin
364 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
365 IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
366 DEVICE_PACKAGES := kmod-gpio-beeper
367 DEFAULT := n
368 endef
369 TARGET_DEVICES += compex_wpj428
370
371 define Device/devolo_magic-2-wifi-next
372 $(call Device/FitImage)
373 DEVICE_VENDOR := devolo
374 DEVICE_MODEL := Magic 2 WiFi next
375 SOC := qcom-ipq4018
376 KERNEL_SIZE := 4096k
377
378 # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
379 # it will bootm it, just like we want for the initramfs.
380 KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to 64k |\
381 append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
382
383 IMAGE_SIZE := 26624k
384 IMAGES := sysupgrade.bin
385 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
386 DEVICE_PACKAGES := ipq-wifi-devolo_magic-2-wifi-next
387 DEFAULT := n
388 endef
389 TARGET_DEVICES += devolo_magic-2-wifi-next
390
391 define Device/dlink_dap-2610
392 $(call Device/FitImageLzma)
393 DEVICE_VENDOR := D-Link
394 DEVICE_MODEL := DAP-2610
395 SOC := qcom-ipq4018
396 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
397 BLOCKSIZE := 64k
398 WRGG_DEVNAME := /dev/mtdblock/8
399 WRGG_SIGNATURE := wapac30_dkbs_dap2610
400 IMAGE_SIZE := 14080k
401 IMAGES += factory.bin
402 # Bootloader expects a special 160 byte header which is added by
403 # wrgg-image.
404 # Factory image size must be larger than 6MB, and size in wrgg header must
405 # match actual factory image size to be flashable from D-Link http server.
406 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
407 # cannot be part of the wrgg image. This is solved in the factory image by
408 # having the rootfs at the end of the image (without pad-rootfs). And in
409 # the sysupgrade image only the kernel is included in the wrgg checksum,
410 # but this is not flashable from the D-link http server.
411 # append-rootfs must start on an erase block boundary.
412 IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
413 IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
414 endef
415 TARGET_DEVICES += dlink_dap-2610
416
417 define Device/edgecore_ecw5211
418 $(call Device/FitImage)
419 $(call Device/UbiFit)
420 DEVICE_VENDOR := Edgecore
421 DEVICE_MODEL := ECW5211
422 SOC := qcom-ipq4018
423 BLOCKSIZE := 128k
424 PAGESIZE := 2048
425 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
426 DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
427 endef
428 TARGET_DEVICES += edgecore_ecw5211
429
430 define Device/edgecore_oap100
431 $(call Device/FitImage)
432 $(call Device/UbiFit)
433 DEVICE_VENDOR := Edgecore
434 DEVICE_MODEL := OAP100
435 SOC := qcom-ipq4019
436 BLOCKSIZE := 128k
437 PAGESIZE := 2048
438 IMAGES := nand-sysupgrade.bin
439 DEVICE_DTS_CONFIG := config@ap.dk07.1-c1
440 DEVICE_PACKAGES := ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
441 endef
442 TARGET_DEVICES += edgecore_oap100
443
444 define Device/engenius_eap1300
445 $(call Device/FitImage)
446 DEVICE_VENDOR := EnGenius
447 DEVICE_MODEL := EAP1300
448 DEVICE_DTS_CONFIG := config@4
449 BOARD_NAME := eap1300
450 SOC := qcom-ipq4018
451 KERNEL_SIZE := 5120k
452 IMAGE_SIZE := 25344k
453 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
454 endef
455 TARGET_DEVICES += engenius_eap1300
456
457 define Device/engenius_eap2200
458 $(call Device/FitImage)
459 $(call Device/UbiFit)
460 DEVICE_VENDOR := EnGenius
461 DEVICE_MODEL := EAP2200
462 SOC := qcom-ipq4019
463 BLOCKSIZE := 128k
464 PAGESIZE := 2048
465 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
466 endef
467 TARGET_DEVICES += engenius_eap2200
468
469 define Device/engenius_emd1
470 $(call Device/FitImage)
471 DEVICE_VENDOR := EnGenius
472 DEVICE_MODEL := EMD1
473 DEVICE_DTS_CONFIG := config@4
474 SOC := qcom-ipq4018
475 IMAGE_SIZE := 30720k
476 IMAGES += factory.bin
477 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
478 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
479 endef
480 TARGET_DEVICES += engenius_emd1
481
482 define Device/engenius_emr3500
483 $(call Device/FitImage)
484 DEVICE_VENDOR := EnGenius
485 DEVICE_MODEL := EMR3500
486 DEVICE_DTS_CONFIG := config@4
487 SOC := qcom-ipq4018
488 KERNEL_SIZE := 4096k
489 IMAGE_SIZE := 30720k
490 IMAGES += factory.bin
491 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
492 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
493 DEFAULT := n
494 endef
495 TARGET_DEVICES += engenius_emr3500
496
497 define Device/engenius_ens620ext
498 $(call Device/FitImage)
499 DEVICE_VENDOR := EnGenius
500 DEVICE_MODEL := ENS620EXT
501 SOC := qcom-ipq4018
502 DEVICE_DTS_CONFIG := config@4
503 BLOCKSIZE := 64k
504 PAGESIZE := 256
505 BOARD_NAME := ENS620EXT
506 VENDOR_ID := 0x0101
507 PRODUCT_ID := 0x79
508 PRODUCT_ID_NEW := 0xA4
509 DATECODE := 190507
510 FW_VER := 3.1.2
511 FW_VER_NEW := 3.5.6
512 CW_VER := 1.8.99
513 IMAGE_SIZE := 21312k
514 KERNEL_SIZE := 5120k
515 FILESYSTEMS := squashfs
516 IMAGES += factory_30.bin factory_35.bin
517 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
518 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
519 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
520 endef
521 TARGET_DEVICES += engenius_ens620ext
522
523 define Device/extreme-networks_ws-ap3915i
524 $(call Device/FitImage)
525 DEVICE_VENDOR := Extreme Networks
526 DEVICE_MODEL := WS-AP3915i
527 IMAGE_SIZE := 30080k
528 SOC := qcom-ipq4029
529 BLOCKSIZE := 128k
530 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
531 DEVICE_PACKAGES := ipq-wifi-extreme-networks_ws-ap3915i
532 endef
533 TARGET_DEVICES += extreme-networks_ws-ap3915i
534
535 define Device/ezviz_cs-w3-wd1200g-eup
536 $(call Device/FitImage)
537 DEVICE_VENDOR := EZVIZ
538 DEVICE_MODEL := CS-W3-WD1200G
539 DEVICE_VARIANT := EUP
540 IMAGE_SIZE := 14848k
541 KERNEL_SIZE = 6m
542 SOC := qcom-ipq4018
543 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
544 append-metadata
545 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
546 DEVICE_COMPAT_VERSION := 2.0
547 DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
548 Upgrade via sysupgrade mechanism is not possible.
549 endef
550 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
551
552 define Device/glinet_gl-ap1300
553 $(call Device/FitImage)
554 $(call Device/UbiFit)
555 DEVICE_VENDOR := GL.iNet
556 DEVICE_MODEL := GL-AP1300
557 SOC := qcom-ipq4018
558 DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
559 BLOCKSIZE := 128k
560 PAGESIZE := 2048
561 IMAGE_SIZE := 131072k
562 KERNEL_INSTALL := 1
563 DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
564 endef
565 TARGET_DEVICES += glinet_gl-ap1300
566
567 define Device/glinet_gl-b1300
568 $(call Device/FitzImage)
569 DEVICE_VENDOR := GL.iNet
570 DEVICE_MODEL := GL-B1300
571 BOARD_NAME := gl-b1300
572 SOC := qcom-ipq4029
573 KERNEL_SIZE := 4096k
574 IMAGE_SIZE := 26624k
575 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
576 endef
577 TARGET_DEVICES += glinet_gl-b1300
578
579 define Device/glinet_gl-b2200
580 $(call Device/FitzImage)
581 DEVICE_VENDOR := GL.iNet
582 DEVICE_MODEL := GL-B2200
583 SOC := qcom-ipq4019
584 DEVICE_DTS_CONFIG := config@ap.dk04.1-c3
585 KERNEL_INITRAMFS_SUFFIX := -recovery.itb
586 IMAGES := emmc.img.gz sysupgrade.bin
587 IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
588 pad-to 1024k | append-kernel |\
589 pad-to 33792k | append-rootfs |\
590 append-metadata | gzip
591 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
592 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
593 kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
594 endef
595 TARGET_DEVICES += glinet_gl-b2200
596
597 define Device/glinet_gl-s1300
598 $(call Device/FitzImage)
599 DEVICE_VENDOR := GL.iNet
600 DEVICE_MODEL := GL-S1300
601 SOC := qcom-ipq4029
602 KERNEL_SIZE := 4096k
603 IMAGE_SIZE := 26624k
604 IMAGES := sysupgrade.bin
605 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
606 DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
607 endef
608 TARGET_DEVICES += glinet_gl-s1300
609
610 define Device/linksys_ea6350v3
611 # The Linksys EA6350v3 has a uboot bootloader that does not
612 # support either booting lzma kernel images nor booting UBI
613 # partitions. This uboot, however, supports raw kernel images and
614 # gzipped images.
615 #
616 # As for the time of writing this, the device will boot the kernel
617 # from a fixed address with a fixed length of 3MiB. Also, the
618 # device has a hard-coded kernel command line that requieres the
619 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
620 # Oh... and the kernel partition overlaps with the rootfs
621 # partition (the same for alt_kernel and alt_rootfs).
622 #
623 # If you are planing re-partitioning the device, you may want to
624 # keep those details in mind:
625 # 1. The kernel adresses you should honor are 0x00000000 and
626 # 0x02800000 respectively.
627 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
628 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
629 # 4. The kernel command line from uboot is harcoded to boot with
630 # rootfs either in mtd11 or mtd13.
631 $(call Device/FitzImage)
632 DEVICE_VENDOR := Linksys
633 DEVICE_MODEL := EA6350
634 DEVICE_VARIANT := v3
635 SOC := qcom-ipq4018
636 BLOCKSIZE := 128k
637 PAGESIZE := 2048
638 KERNEL_SIZE := 3072k
639 IMAGE_SIZE := 37888k
640 UBINIZE_OPTS := -E 5
641 IMAGES += factory.bin
642 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
643 DEFAULT := n
644 endef
645 TARGET_DEVICES += linksys_ea6350v3
646
647 define Device/linksys_ea8300
648 $(call Device/FitzImage)
649 DEVICE_VENDOR := Linksys
650 DEVICE_MODEL := EA8300
651 SOC := qcom-ipq4019
652 KERNEL_SIZE := 3072k
653 IMAGE_SIZE := 87040k
654 BLOCKSIZE := 128k
655 PAGESIZE := 2048
656 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
657 IMAGES += factory.bin
658 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
659 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
660 DEFAULT := n
661 endef
662 TARGET_DEVICES += linksys_ea8300
663
664 define Device/linksys_mr8300
665 $(call Device/FitzImage)
666 DEVICE_VENDOR := Linksys
667 DEVICE_MODEL := MR8300
668 SOC := qcom-ipq4019
669 KERNEL_SIZE := 3072k
670 IMAGE_SIZE := 87040k
671 BLOCKSIZE := 128k
672 PAGESIZE := 2048
673 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
674 IMAGES += factory.bin
675 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
676 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
677 DEFAULT := n
678 endef
679 TARGET_DEVICES += linksys_mr8300
680
681 define Device/linksys_whw01-v1
682 $(call Device/FitzImage)
683 DEVICE_VENDOR := Linksys
684 DEVICE_MODEL := WHW01
685 DEVICE_VARIANT := v1
686 KERNEL_SIZE := 6144k
687 IMAGE_SIZE := 28704512 # 28032k minus linksys signature (256-bytes).
688 SOC := qcom-ipq4018
689 BLOCKSIZE := 128k
690 PAGESIZE := 2048
691 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
692 IMAGES += factory.bin
693 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
694 append-ubi | linksys-image type=WHW01 | pad-to $$$$(PAGESIZE) | \
695 check-size
696 DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
697 endef
698 TARGET_DEVICES += linksys_whw01-v1
699
700 define Device/luma_wrtq-329acn
701 $(call Device/FitImage)
702 DEVICE_VENDOR := Luma Home
703 DEVICE_MODEL := WRTQ-329ACN
704 SOC := qcom-ipq4018
705 DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
706 IMAGE_SIZE := 76632k
707 BLOCKSIZE := 128k
708 PAGESIZE := 2048
709 endef
710 TARGET_DEVICES += luma_wrtq-329acn
711
712 define Device/meraki_mr33
713 $(call Device/FitImage)
714 DEVICE_VENDOR := Cisco Meraki
715 DEVICE_MODEL := MR33
716 SOC := qcom-ipq4029
717 BLOCKSIZE := 128k
718 PAGESIZE := 2048
719 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
720 endef
721 TARGET_DEVICES += meraki_mr33
722
723 define Device/meraki_mr74
724 $(call Device/FitImage)
725 DEVICE_VENDOR := Cisco Meraki
726 DEVICE_MODEL := MR74
727 SOC := qcom-ipq4029
728 BLOCKSIZE := 128k
729 PAGESIZE := 2048
730 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
731 DEVICE_DTS_CONFIG := config@3
732 endef
733 TARGET_DEVICES += meraki_mr74
734
735 define Device/mobipromo_cm520-79f
736 $(call Device/FitzImage)
737 $(call Device/UbiFit)
738 DEVICE_VENDOR := MobiPromo
739 DEVICE_MODEL := CM520-79F
740 SOC := qcom-ipq4019
741 BLOCKSIZE := 128k
742 PAGESIZE := 2048
743 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
744 endef
745 TARGET_DEVICES += mobipromo_cm520-79f
746
747 define Device/netgear_ex61x0v2
748 $(call Device/DniImage)
749 DEVICE_VENDOR := NETGEAR
750 DEVICE_DTS_CONFIG := config@4
751 NETGEAR_BOARD_ID := EX6150v2series
752 NETGEAR_HW_ID := 29765285+16+0+128+2x2
753 IMAGE_SIZE := 14400k
754 SOC := qcom-ipq4018
755 endef
756
757 define Device/netgear_ex6100v2
758 $(call Device/netgear_ex61x0v2)
759 DEVICE_MODEL := EX6100
760 DEVICE_VARIANT := v2
761 endef
762 TARGET_DEVICES += netgear_ex6100v2
763
764 define Device/netgear_ex6150v2
765 $(call Device/netgear_ex61x0v2)
766 DEVICE_MODEL := EX6150
767 DEVICE_VARIANT := v2
768 endef
769 TARGET_DEVICES += netgear_ex6150v2
770
771 define Device/netgear_orbi
772 $(call Device/DniImage)
773 SOC := qcom-ipq4019
774 DEVICE_VENDOR := NETGEAR
775 IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
776 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
777 append-rootfs | pad-rootfs | netgear-dni
778 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
779 sysupgrade-tar rootfs=$$$$@ | append-metadata
780 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
781 endef
782
783 define Device/netgear_rbx50
784 $(call Device/netgear_orbi)
785 NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
786 KERNEL_SIZE := 3932160
787 ROOTFS_SIZE := 32243712
788 IMAGE_SIZE := 36175872
789 endef
790
791 define Device/netgear_rbr50
792 $(call Device/netgear_rbx50)
793 DEVICE_MODEL := RBR50
794 DEVICE_VARIANT := v1
795 NETGEAR_BOARD_ID := RBR50
796 endef
797 TARGET_DEVICES += netgear_rbr50
798
799 define Device/netgear_rbs50
800 $(call Device/netgear_rbx50)
801 DEVICE_MODEL := RBS50
802 DEVICE_VARIANT := v1
803 NETGEAR_BOARD_ID := RBS50
804 endef
805 TARGET_DEVICES += netgear_rbs50
806
807 define Device/netgear_srx60
808 $(call Device/netgear_orbi)
809 NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
810 KERNEL_SIZE := 3932160
811 ROOTFS_SIZE := 32243712
812 IMAGE_SIZE := 36175872
813 endef
814
815 define Device/netgear_srr60
816 $(call Device/netgear_srx60)
817 DEVICE_MODEL := SRR60
818 NETGEAR_BOARD_ID := SRR60
819 endef
820 TARGET_DEVICES += netgear_srr60
821
822 define Device/netgear_srs60
823 $(call Device/netgear_srx60)
824 DEVICE_MODEL := SRS60
825 NETGEAR_BOARD_ID := SRS60
826 endef
827 TARGET_DEVICES += netgear_srs60
828
829 define Device/netgear_wac510
830 $(call Device/FitImage)
831 $(call Device/UbiFit)
832 DEVICE_VENDOR := Netgear
833 DEVICE_MODEL := WAC510
834 SOC := qcom-ipq4018
835 DEVICE_DTS_CONFIG := config@5
836 BLOCKSIZE := 128k
837 PAGESIZE := 2048
838 IMAGES += nand-factory.tar
839 IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
840 DEVICE_PACKAGES := uboot-envtools
841 endef
842 TARGET_DEVICES += netgear_wac510
843
844 define Device/openmesh_a42
845 $(call Device/FitImageLzma)
846 DEVICE_VENDOR := OpenMesh
847 DEVICE_MODEL := A42
848 SOC := qcom-ipq4018
849 DEVICE_DTS_CONFIG := config@om.a42
850 BLOCKSIZE := 64k
851 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
852 IMAGE_SIZE := 15616k
853 IMAGES += factory.bin
854 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
855 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
856 endef
857 TARGET_DEVICES += openmesh_a42
858
859 define Device/openmesh_a62
860 $(call Device/FitImageLzma)
861 DEVICE_VENDOR := OpenMesh
862 DEVICE_MODEL := A62
863 SOC := qcom-ipq4019
864 DEVICE_DTS_CONFIG := config@om.a62
865 BLOCKSIZE := 64k
866 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
867 IMAGE_SIZE := 15552k
868 IMAGES += factory.bin
869 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
870 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
871 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
872 endef
873 TARGET_DEVICES += openmesh_a62
874
875 define Device/p2w_r619ac
876 $(call Device/FitzImage)
877 $(call Device/UbiFit)
878 DEVICE_VENDOR := P&W
879 DEVICE_MODEL := R619AC
880 SOC := qcom-ipq4019
881 DEVICE_DTS_CONFIG := config@10
882 BLOCKSIZE := 128k
883 PAGESIZE := 2048
884 DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
885 endef
886
887 define Device/p2w_r619ac-64m
888 $(call Device/p2w_r619ac)
889 DEVICE_VARIANT := 64M NAND
890 IMAGES += nand-factory.bin
891 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
892 endef
893 TARGET_DEVICES += p2w_r619ac-64m
894
895 define Device/p2w_r619ac-128m
896 $(call Device/p2w_r619ac)
897 DEVICE_VARIANT := 128M NAND
898 endef
899 TARGET_DEVICES += p2w_r619ac-128m
900
901 define Device/pakedge_wr-1
902 $(call Device/FitImageLzma)
903 DEVICE_VENDOR := Pakedge
904 DEVICE_MODEL := WR-1
905 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
906 DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1
907 SOC := qcom-ipq4018
908 BLOCKSIZE := 64k
909 IMAGE_SIZE := 31232k
910 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
911 endef
912 TARGET_DEVICES += pakedge_wr-1
913
914 define Device/plasmacloud_pa1200
915 $(call Device/FitImageLzma)
916 DEVICE_VENDOR := Plasma Cloud
917 DEVICE_MODEL := PA1200
918 SOC := qcom-ipq4018
919 DEVICE_DTS_CONFIG := config@pc.pa1200
920 BLOCKSIZE := 64k
921 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
922 IMAGE_SIZE := 15616k
923 IMAGES += factory.bin
924 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
925 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
926 endef
927 TARGET_DEVICES += plasmacloud_pa1200
928
929 define Device/plasmacloud_pa2200
930 $(call Device/FitImageLzma)
931 DEVICE_VENDOR := Plasma Cloud
932 DEVICE_MODEL := PA2200
933 SOC := qcom-ipq4019
934 DEVICE_DTS_CONFIG := config@pc.pa2200
935 BLOCKSIZE := 64k
936 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
937 IMAGE_SIZE := 15552k
938 IMAGES += factory.bin
939 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
940 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
941 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
942 endef
943 TARGET_DEVICES += plasmacloud_pa2200
944
945 define Device/qcom_ap-dk01.1-c1
946 DEVICE_VENDOR := Qualcomm Atheros
947 DEVICE_MODEL := AP-DK01.1
948 DEVICE_VARIANT := C1
949 BOARD_NAME := ap-dk01.1-c1
950 SOC := qcom-ipq4019
951 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
952 KERNEL_INSTALL := 1
953 KERNEL_SIZE := 4096k
954 IMAGE_SIZE := 26624k
955 $(call Device/FitImage)
956 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
957 DEFAULT := n
958 endef
959 TARGET_DEVICES += qcom_ap-dk01.1-c1
960
961 define Device/qcom_ap-dk04.1-c1
962 $(call Device/FitImage)
963 $(call Device/UbiFit)
964 DEVICE_VENDOR := Qualcomm Atheros
965 DEVICE_MODEL := AP-DK04.1
966 DEVICE_VARIANT := C1
967 SOC := qcom-ipq4019
968 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
969 KERNEL_INSTALL := 1
970 KERNEL_SIZE := 4048k
971 BLOCKSIZE := 128k
972 PAGESIZE := 2048
973 BOARD_NAME := ap-dk04.1-c1
974 DEFAULT := n
975 endef
976 TARGET_DEVICES += qcom_ap-dk04.1-c1
977
978 define Device/qxwlan_e2600ac-c1
979 $(call Device/FitImage)
980 DEVICE_VENDOR := Qxwlan
981 DEVICE_MODEL := E2600AC
982 DEVICE_VARIANT := C1
983 BOARD_NAME := e2600ac-c1
984 SOC := qcom-ipq4019
985 KERNEL_SIZE := 4096k
986 IMAGE_SIZE := 31232k
987 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
988 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
989 DEFAULT := n
990 endef
991 TARGET_DEVICES += qxwlan_e2600ac-c1
992
993 define Device/qxwlan_e2600ac-c2
994 $(call Device/FitImage)
995 $(call Device/UbiFit)
996 DEVICE_VENDOR := Qxwlan
997 DEVICE_MODEL := E2600AC
998 DEVICE_VARIANT := C2
999 SOC := qcom-ipq4019
1000 KERNEL_INSTALL := 1
1001 BLOCKSIZE := 128k
1002 PAGESIZE := 2048
1003 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
1004 endef
1005 TARGET_DEVICES += qxwlan_e2600ac-c2
1006
1007 define Device/sony_ncp-hg100-cellular
1008 $(call Device/FitImage)
1009 DEVICE_VENDOR := Sony
1010 DEVICE_MODEL := NCP-HG100/Cellular
1011 DEVICE_DTS_CONFIG := config@ap.dk04.1-c4
1012 SOC := qcom-ipq4019
1013 KERNEL_SIZE := 8192k
1014 IMAGE_SIZE := 128m
1015 DEVICE_PACKAGES := e2fsprogs ipq-wifi-sony_ncp-hg100-cellular \
1016 kmod-fs-ext4 uqmi
1017 endef
1018 TARGET_DEVICES += sony_ncp-hg100-cellular
1019
1020 define Device/teltonika_rutx10
1021 $(call Device/FitImage)
1022 $(call Device/UbiFit)
1023 DEVICE_VENDOR := Teltonika
1024 DEVICE_MODEL := RUTX10
1025 SOC := qcom-ipq4018
1026 DEVICE_DTS_CONFIG := config@5
1027 KERNEL_INSTALL := 1
1028 BLOCKSIZE := 128k
1029 PAGESIZE := 2048
1030 FILESYSTEMS := squashfs
1031 IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
1032 DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
1033 endef
1034 TARGET_DEVICES += teltonika_rutx10
1035
1036 define Device/tel_x1pro
1037 $(call Device/FitImage)
1038 DEVICE_VENDOR := Telco
1039 DEVICE_MODEL := X1 Pro
1040 SOC := qcom-ipq4019
1041 KERNEL_SIZE := 4096k
1042 IMAGE_SIZE := 31232k
1043 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1044 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1045 DEFAULT := n
1046 endef
1047 TARGET_DEVICES += tel_x1pro
1048
1049 define Device/unielec_u4019-32m
1050 $(call Device/FitImage)
1051 DEVICE_VENDOR := Unielec
1052 DEVICE_MODEL := U4019
1053 DEVICE_VARIANT := 32M
1054 BOARD_NAME := u4019-32m
1055 SOC := qcom-ipq4019
1056 KERNEL_SIZE := 4096k
1057 IMAGE_SIZE := 31232k
1058 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1059 DEFAULT := n
1060 endef
1061 TARGET_DEVICES += unielec_u4019-32m
1062
1063 define Device/zte_mf286d
1064 $(call Device/FitzImage)
1065 DEVICE_VENDOR := ZTE
1066 DEVICE_MODEL := MF286D
1067 SOC := qcom-ipq4019
1068 DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
1069 BLOCKSIZE := 128k
1070 PAGESIZE := 2048
1071 KERNEL_IN_UBI := 1
1072 DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
1073 endef
1074 TARGET_DEVICES += zte_mf286d
1075
1076 define Device/zyxel_nbg6617
1077 $(call Device/FitImageLzma)
1078 DEVICE_VENDOR := ZyXEL
1079 DEVICE_MODEL := NBG6617
1080 SOC := qcom-ipq4018
1081 KERNEL_SIZE := 4096k
1082 ROOTFS_SIZE := 24960k
1083 RAS_BOARD := NBG6617
1084 RAS_ROOTFS_SIZE := 19840k
1085 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
1086 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
1087 IMAGES += factory.bin
1088 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
1089 # at least as large as the one of the initial firmware image (not the current
1090 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
1091 # this minimum-size. However, the larger image can be flashed both ways.
1092 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
1093 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
1094 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
1095 endef
1096 TARGET_DEVICES += zyxel_nbg6617
1097
1098 define Device/zyxel_wre6606
1099 $(call Device/FitImage)
1100 DEVICE_VENDOR := ZyXEL
1101 DEVICE_MODEL := WRE6606
1102 DEVICE_DTS_CONFIG := config@4
1103 SOC := qcom-ipq4018
1104 IMAGE_SIZE := 13184k
1105 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
1106 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
1107 endef
1108 TARGET_DEVICES += zyxel_wre6606