ipq40xx: add support for EnGenius EAP2200
[openwrt/staging/jogo.git] / target / linux / ipq40xx / image / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/image.mk
3
4 DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION \
5 WRGG_DEVNAME WRGG_SIGNATURE
6
7 define Device/Default
8 PROFILES := Default
9 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
10 KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs
11 KERNEL_PREFIX := $$(IMAGE_PREFIX)
12 KERNEL_LOADADDR := 0x80208000
13 DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
14 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
15 IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
16 IMAGE/sysupgrade.bin/squashfs :=
17 endef
18
19 define Device/FitImage
20 KERNEL_SUFFIX := -fit-uImage.itb
21 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
22 KERNEL_NAME := Image
23 endef
24
25 define Device/FitImageLzma
26 KERNEL_SUFFIX := -fit-uImage.itb
27 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
28 KERNEL_NAME := Image
29 endef
30
31 define Device/FitzImage
32 KERNEL_SUFFIX := -fit-zImage.itb
33 KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
34 KERNEL_NAME := zImage
35 endef
36
37 define Device/UbiFit
38 KERNEL_IN_UBI := 1
39 IMAGES := nand-factory.ubi nand-sysupgrade.bin
40 IMAGE/nand-factory.ubi := append-ubi
41 IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
42 endef
43
44 define Device/DniImage
45 KERNEL_SUFFIX := -fit-uImage.itb
46 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
47 KERNEL_NAME := Image
48 NETGEAR_BOARD_ID :=
49 NETGEAR_HW_ID :=
50 IMAGES := factory.img sysupgrade.bin
51 IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
52 IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata
53 endef
54 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
55
56 define Build/SenaoFW
57 -$(STAGING_DIR_HOST)/bin/mksenaofw \
58 -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
59 -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
60 -e $@ \
61 -o $@.new
62 @cp $@.new $@
63 endef
64
65 define Build/wrgg-image
66 mkwrggimg -i $@ \
67 -o $@.new \
68 -d "$(WRGG_DEVNAME)" \
69 -s "$(WRGG_SIGNATURE)" \
70 -v "" -m "" -B ""
71 mv $@.new $@
72 endef
73
74 define Device/8dev_jalapeno-common
75 $(call Device/FitImage)
76 $(call Device/UbiFit)
77 BLOCKSIZE := 128k
78 PAGESIZE := 2048
79 SOC := qcom-ipq4018
80 endef
81
82 define Device/8dev_jalapeno
83 $(call Device/8dev_jalapeno-common)
84 DEVICE_VENDOR := 8devices
85 DEVICE_MODEL := Jalapeno
86 endef
87 TARGET_DEVICES += 8dev_jalapeno
88
89 define Device/alfa-network_ap120c-ac
90 $(call Device/FitImage)
91 $(call Device/UbiFit)
92 DEVICE_VENDOR := ALFA Network
93 DEVICE_MODEL := AP120C-AC
94 SOC := qcom-ipq4018
95 DEVICE_PACKAGES := kmod-usb-acm \
96 kmod-tpm-i2c-atmel uboot-envtools
97 BLOCKSIZE := 128k
98 PAGESIZE := 2048
99 IMAGE_SIZE := 65536k
100 IMAGES := nand-factory.bin nand-sysupgrade.bin
101 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
102 endef
103 TARGET_DEVICES += alfa-network_ap120c-ac
104
105 define Device/aruba_ap-303
106 $(call Device/FitImageLzma)
107 DEVICE_VENDOR := Aruba
108 DEVICE_MODEL := AP-303
109 SOC := qcom-ipq4029
110 DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
111 IMAGES := sysupgrade.bin
112 endef
113 TARGET_DEVICES += aruba_ap-303
114
115 define Device/aruba_ap-303h
116 $(call Device/FitImageLzma)
117 DEVICE_VENDOR := Aruba
118 DEVICE_MODEL := AP-303H
119 SOC := qcom-ipq4029
120 DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
121 IMAGES := sysupgrade.bin
122 endef
123 TARGET_DEVICES += aruba_ap-303h
124
125 define Device/asus_map-ac2200
126 $(call Device/FitImageLzma)
127 DEVICE_VENDOR := ASUS
128 DEVICE_MODEL := Lyra (MAP-AC2200)
129 SOC := qcom-ipq4019
130 IMAGES := sysupgrade.bin
131 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
132 endef
133 TARGET_DEVICES += asus_map-ac2200
134
135 define Device/asus_rt-ac58u
136 $(call Device/FitImageLzma)
137 DEVICE_VENDOR := ASUS
138 DEVICE_MODEL := RT-AC58U
139 SOC := qcom-ipq4018
140 BLOCKSIZE := 128k
141 PAGESIZE := 2048
142 DTB_SIZE := 65536
143 IMAGE_SIZE := 20439364
144 FILESYSTEMS := squashfs
145 # Someone - in their infinite wisdom - decided to put the firmware
146 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
147 # Since u-boot works with strings we either need another fixup step
148 # to add a version... or we are very careful not to add '\0' into that
149 # string and call it a day.... Yeah, we do the latter!
150 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
151 IMAGES := sysupgrade.bin
152 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
153 kmod-usb-ledtrig-usbport
154 endef
155 TARGET_DEVICES += asus_rt-ac58u
156
157 define Device/avm_fritzbox-4040
158 $(call Device/FitImageLzma)
159 DEVICE_VENDOR := AVM
160 DEVICE_MODEL := FRITZ!Box 4040
161 SOC := qcom-ipq4018
162 BOARD_NAME := fritz4040
163 IMAGE_SIZE := 29056k
164 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
165 UBOOT_PARTITION_SIZE := 524288
166 IMAGES = eva.bin sysupgrade.bin
167 IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
168 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
169 DEVICE_PACKAGES := fritz-tffs fritz-caldata
170 endef
171 TARGET_DEVICES += avm_fritzbox-4040
172
173 define Device/avm_fritzbox-7530
174 $(call Device/FitImageLzma)
175 DEVICE_VENDOR := AVM
176 DEVICE_MODEL := FRITZ!Box 7530
177 SOC := qcom-ipq4019
178 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
179 IMAGES := sysupgrade.bin
180 endef
181 TARGET_DEVICES += avm_fritzbox-7530
182
183 define Device/avm_fritzrepeater-1200
184 $(call Device/FitImageLzma)
185 DEVICE_VENDOR := AVM
186 DEVICE_MODEL := FRITZ!Repeater 1200
187 SOC := qcom-ipq4019
188 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
189 IMAGES := sysupgrade.bin
190 endef
191 TARGET_DEVICES += avm_fritzrepeater-1200
192
193 define Device/avm_fritzrepeater-3000
194 $(call Device/FitImageLzma)
195 DEVICE_VENDOR := AVM
196 DEVICE_MODEL := FRITZ!Repeater 3000
197 SOC := qcom-ipq4019
198 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
199 IMAGES := sysupgrade.bin
200 endef
201 TARGET_DEVICES += avm_fritzrepeater-3000
202
203 define Device/cilab_meshpoint-one
204 $(call Device/8dev_jalapeno-common)
205 DEVICE_VENDOR := Crisis Innovation Lab
206 DEVICE_MODEL := MeshPoint.One
207 DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
208 endef
209 TARGET_DEVICES += cilab_meshpoint-one
210
211 define Device/compex_wpj419
212 $(call Device/FitImage)
213 $(call Device/UbiFit)
214 DEVICE_VENDOR := Compex
215 DEVICE_MODEL := WPJ419
216 SOC := qcom-ipq4019
217 DEVICE_DTS_CONFIG := config@12
218 KERNEL_INSTALL := 1
219 BLOCKSIZE := 128k
220 PAGESIZE := 2048
221 FILESYSTEMS := squashfs
222 endef
223 TARGET_DEVICES += compex_wpj419
224
225 define Device/compex_wpj428
226 $(call Device/FitImage)
227 DEVICE_VENDOR := Compex
228 DEVICE_MODEL := WPJ428
229 SOC := qcom-ipq4028
230 DEVICE_DTS_CONFIG := config@4
231 BLOCKSIZE := 64k
232 IMAGE_SIZE := 31232k
233 KERNEL_SIZE := 4096k
234 IMAGES = sysupgrade.bin
235 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
236 DEVICE_PACKAGES := kmod-gpio-beeper
237 endef
238 TARGET_DEVICES += compex_wpj428
239
240 define Device/dlink_dap-2610
241 $(call Device/FitImageLzma)
242 DEVICE_VENDOR := D-Link
243 DEVICE_MODEL := DAP-2610
244 SOC := qcom-ipq4018
245 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
246 BLOCKSIZE := 64k
247 WRGG_DEVNAME := /dev/mtdblock/8
248 WRGG_SIGNATURE := wapac30_dkbs_dap2610
249 IMAGE_SIZE := 14080k
250 IMAGES := sysupgrade.bin factory.bin
251 # Bootloader expects a special 160 byte header which is added by
252 # wrgg-image.
253 # Factory image size must be larger than 6MB, and size in wrgg header must
254 # match actual factory image size to be flashable from D-Link http server.
255 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
256 # cannot be part of the wrgg image. This is solved in the factory image by
257 # having the rootfs at the end of the image (without pad-rootfs). And in
258 # the sysupgrade image only the kernel is included in the wrgg checksum,
259 # but this is not flashable from the D-link http server.
260 # append-rootfs must start on an erase block boundary.
261 IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size $$$$(IMAGE_SIZE)
262 IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | append-metadata
263 DEVICE_PACKAGES := ipq-wifi-dlink_dap2610
264 endef
265 TARGET_DEVICES += dlink_dap-2610
266
267 define Device/engenius_eap1300
268 $(call Device/FitImage)
269 DEVICE_VENDOR := EnGenius
270 DEVICE_MODEL := EAP1300
271 DEVICE_DTS_CONFIG := config@4
272 BOARD_NAME := eap1300
273 SOC := qcom-ipq4018
274 KERNEL_SIZE := 5120k
275 IMAGE_SIZE := 25344k
276 IMAGES := sysupgrade.bin
277 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
278 endef
279 TARGET_DEVICES += engenius_eap1300
280
281 define Device/engenius_eap2200
282 $(call Device/FitImage)
283 $(call Device/UbiFit)
284 DEVICE_VENDOR := EnGenius
285 DEVICE_MODEL := EAP2200
286 SOC := qcom-ipq4019
287 BLOCKSIZE := 128k
288 PAGESIZE := 2048
289 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-engenius_eap2200 -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
290 endef
291 TARGET_DEVICES += engenius_eap2200
292
293 define Device/engenius_emd1
294 $(call Device/FitImage)
295 DEVICE_VENDOR := EnGenius
296 DEVICE_MODEL := EMD1
297 DEVICE_DTS_CONFIG := config@4
298 SOC := qcom-ipq4018
299 IMAGE_SIZE := 30720k
300 IMAGES := sysupgrade.bin factory.bin
301 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
302 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size $$$$(IMAGE_SIZE)
303 endef
304 TARGET_DEVICES += engenius_emd1
305
306 define Device/engenius_ens620ext
307 $(call Device/FitImage)
308 DEVICE_VENDOR := EnGenius
309 DEVICE_MODEL := ENS620EXT
310 SOC := qcom-ipq4018
311 DEVICE_DTS_CONFIG := config@4
312 BLOCKSIZE := 64k
313 PAGESIZE := 256
314 BOARD_NAME := ENS620EXT
315 VENDOR_ID := 0x0101
316 PRODUCT_ID := 0x79
317 PRODUCT_ID_NEW := 0xA4
318 DATECODE := 190507
319 FW_VER := 3.1.2
320 FW_VER_NEW := 3.5.6
321 CW_VER := 1.8.99
322 IMAGE_SIZE := 21312k
323 KERNEL_SIZE := 5120k
324 FILESYSTEMS := squashfs
325 IMAGES := sysupgrade.bin factory_30.bin factory_35.bin
326 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | append-metadata
327 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
328 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size $$$$(IMAGE_SIZE) | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
329 endef
330 TARGET_DEVICES += engenius_ens620ext
331
332 define Device/ezviz_cs-w3-wd1200g-eup
333 $(call Device/FitImage)
334 DEVICE_VENDOR := EZVIZ
335 DEVICE_MODEL := CS-W3-WD1200G
336 DEVICE_VARIANT := EUP
337 DEVICE_DTS_CONFIG := config@4
338 IMAGE_SIZE := 14848k
339 SOC := qcom-ipq4018
340 IMAGES := sysupgrade.bin
341 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
342 append-metadata
343 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
344 ipq-wifi-ezviz_cs-w3-wd1200g-eup
345 endef
346 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
347
348 define Device/glinet_gl-b1300
349 $(call Device/FitImage)
350 DEVICE_VENDOR := GL.iNet
351 DEVICE_MODEL := GL-B1300
352 BOARD_NAME := gl-b1300
353 SOC := qcom-ipq4029
354 KERNEL_SIZE := 4096k
355 IMAGE_SIZE := 26624k
356 IMAGES := sysupgrade.bin
357 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
358 endef
359 TARGET_DEVICES += glinet_gl-b1300
360
361 define Device/linksys_ea6350v3
362 # The Linksys EA6350v3 has a uboot bootloader that does not
363 # support either booting lzma kernel images nor booting UBI
364 # partitions. This uboot, however, supports raw kernel images and
365 # gzipped images.
366 #
367 # As for the time of writing this, the device will boot the kernel
368 # from a fixed address with a fixed length of 3MiB. Also, the
369 # device has a hard-coded kernel command line that requieres the
370 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
371 # Oh... and the kernel partition overlaps with the rootfs
372 # partition (the same for alt_kernel and alt_rootfs).
373 #
374 # If you are planing re-partitioning the device, you may want to
375 # keep those details in mind:
376 # 1. The kernel adresses you should honor are 0x00000000 and
377 # 0x02800000 respectively.
378 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
379 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
380 # 4. The kernel command line from uboot is harcoded to boot with
381 # rootfs either in mtd11 or mtd13.
382 $(call Device/FitzImage)
383 DEVICE_VENDOR := Linksys
384 DEVICE_MODEL := EA6350
385 DEVICE_VARIANT := v3
386 SOC := qcom-ipq4018
387 BLOCKSIZE := 128k
388 PAGESIZE := 2048
389 KERNEL_SIZE := 3072k
390 IMAGE_SIZE := 37888k
391 UBINIZE_OPTS := -E 5
392 IMAGES := factory.bin sysupgrade.bin
393 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$${KERNEL_SIZE} | append-ubi | linksys-image type=EA6350v3
394 DEVICE_PACKAGES := uboot-envtools
395 endef
396 TARGET_DEVICES += linksys_ea6350v3
397
398 define Device/linksys_ea8300
399 $(call Device/FitzImage)
400 DEVICE_VENDOR := Linksys
401 DEVICE_MODEL := EA8300
402 SOC := qcom-ipq4019
403 KERNEL_SIZE := 3072k
404 IMAGE_SIZE := 87040k
405 BLOCKSIZE := 128k
406 PAGESIZE := 2048
407 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
408 IMAGES := sysupgrade.bin factory.bin
409 IMAGE/factory.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-ubi | linksys-image type=EA8300
410 DEVICE_PACKAGES := uboot-envtools ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
411 endef
412 TARGET_DEVICES += linksys_ea8300
413
414 define Device/meraki_mr33
415 $(call Device/FitImage)
416 DEVICE_VENDOR := Cisco Meraki
417 DEVICE_MODEL := MR33
418 SOC := qcom-ipq4029
419 BLOCKSIZE := 128k
420 PAGESIZE := 2048
421 IMAGES = sysupgrade.bin
422 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
423 endef
424 TARGET_DEVICES += meraki_mr33
425
426 define Device/netgear_ex61x0v2
427 $(call Device/DniImage)
428 DEVICE_DTS_CONFIG := config@4
429 NETGEAR_BOARD_ID := EX6150v2series
430 NETGEAR_HW_ID := 29765285+16+0+128+2x2
431 SOC := qcom-ipq4018
432 endef
433
434 define Device/netgear_ex6100v2
435 $(call Device/netgear_ex61x0v2)
436 DEVICE_VENDOR := Netgear
437 DEVICE_MODEL := EX6100
438 DEVICE_VARIANT := v2
439 endef
440 TARGET_DEVICES += netgear_ex6100v2
441
442 define Device/netgear_ex6150v2
443 $(call Device/netgear_ex61x0v2)
444 DEVICE_VENDOR := Netgear
445 DEVICE_MODEL := EX6150
446 DEVICE_VARIANT := v2
447 endef
448 TARGET_DEVICES += netgear_ex6150v2
449
450 define Device/openmesh_a42
451 $(call Device/FitImageLzma)
452 DEVICE_VENDOR := OpenMesh
453 DEVICE_MODEL := A42
454 SOC := qcom-ipq4018
455 DEVICE_DTS_CONFIG := config@om.a42
456 BLOCKSIZE := 64k
457 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
458 IMAGE_SIZE := 15616k
459 IMAGES = factory.bin sysupgrade.bin
460 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
461 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
462 DEVICE_PACKAGES := uboot-envtools
463 endef
464 TARGET_DEVICES += openmesh_a42
465
466 define Device/openmesh_a62
467 $(call Device/FitImageLzma)
468 DEVICE_VENDOR := OpenMesh
469 DEVICE_MODEL := A62
470 SOC := qcom-ipq4019
471 DEVICE_DTS_CONFIG := config@om.a62
472 BLOCKSIZE := 64k
473 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
474 IMAGE_SIZE := 15552k
475 IMAGES = factory.bin sysupgrade.bin
476 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
477 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
478 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct uboot-envtools
479 endef
480
481 TARGET_DEVICES += openmesh_a62
482
483 define Device/qcom_ap-dk01.1-c1
484 DEVICE_VENDOR := Qualcomm Atheros
485 DEVICE_MODEL := AP-DK01.1
486 DEVICE_VARIANT := C1
487 BOARD_NAME := ap-dk01.1-c1
488 SOC := qcom-ipq4019
489 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
490 KERNEL_INSTALL := 1
491 KERNEL_SIZE := 4096k
492 IMAGE_SIZE := 26624k
493 $(call Device/FitImage)
494 IMAGES := sysupgrade.bin
495 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
496 endef
497 TARGET_DEVICES += qcom_ap-dk01.1-c1
498
499 define Device/qcom_ap-dk04.1-c1
500 $(call Device/FitImage)
501 $(call Device/UbiFit)
502 DEVICE_VENDOR := Qualcomm Atheros
503 DEVICE_MODEL := AP-DK04.1
504 DEVICE_VARIANT := C1
505 SOC := qcom-ipq4019
506 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
507 KERNEL_INSTALL := 1
508 KERNEL_SIZE := 4048k
509 BLOCKSIZE := 128k
510 PAGESIZE := 2048
511 BOARD_NAME := ap-dk04.1-c1
512 endef
513 TARGET_DEVICES += qcom_ap-dk04.1-c1
514
515 define Device/qxwlan_e2600ac-c1
516 $(call Device/FitImage)
517 DEVICE_VENDOR := Qxwlan
518 DEVICE_MODEL := E2600AC
519 DEVICE_VARIANT := C1
520 BOARD_NAME := e2600ac-c1
521 SOC := qcom-ipq4019
522 KERNEL_SIZE := 4096k
523 IMAGE_SIZE := 31232k
524 IMAGES := sysupgrade.bin
525 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
526 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
527 endef
528 TARGET_DEVICES += qxwlan_e2600ac-c1
529
530 define Device/qxwlan_e2600ac-c2
531 $(call Device/FitImage)
532 $(call Device/UbiFit)
533 DEVICE_VENDOR := Qxwlan
534 DEVICE_MODEL := E2600AC
535 DEVICE_VARIANT := C2
536 SOC := qcom-ipq4019
537 KERNEL_INSTALL := 1
538 BLOCKSIZE := 128k
539 PAGESIZE := 2048
540 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
541 endef
542 TARGET_DEVICES += qxwlan_e2600ac-c2
543
544 define Device/unielec_u4019-32m
545 $(call Device/FitImage)
546 DEVICE_VENDOR := Unielec
547 DEVICE_MODEL := U4019
548 DEVICE_VARIANT := 32M
549 BOARD_NAME := u4019-32m
550 SOC := qcom-ipq4019
551 KERNEL_SIZE := 4096k
552 IMAGE_SIZE := 31232k
553 IMAGES := sysupgrade.bin
554 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
555 endef
556 TARGET_DEVICES += unielec_u4019-32m
557
558 define Device/zyxel_nbg6617
559 $(call Device/FitImageLzma)
560 DEVICE_VENDOR := ZyXEL
561 DEVICE_MODEL := NBG6617
562 SOC := qcom-ipq4018
563 ROOTFS_SIZE := 24960k
564 RAS_BOARD := NBG6617
565 RAS_ROOTFS_SIZE := 19840k
566 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
567 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
568 IMAGES := sysupgrade.bin factory.bin
569 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
570 # at least as large as the one of the initial firmware image (not the current
571 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
572 # this minimum-size. However, the larger image can be flashed both ways.
573 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
574 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
575 DEVICE_PACKAGES := uboot-envtools kmod-usb-ledtrig-usbport
576 endef
577 TARGET_DEVICES += zyxel_nbg6617
578
579 define Device/zyxel_wre6606
580 $(call Device/FitImage)
581 DEVICE_VENDOR := ZyXEL
582 DEVICE_MODEL := WRE6606
583 DEVICE_DTS_CONFIG := config@4
584 SOC := qcom-ipq4018
585 IMAGES := sysupgrade.bin
586 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
587 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
588 endef
589 TARGET_DEVICES += zyxel_wre6606
590
591 $(eval $(call BuildImage))