824a95b157a697a0a9812f9c738066646ac5878e
[openwrt/openwrt.git] / target / linux / ipq806x / image / generic.mk
1 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
2 DEVICE_VARS += TPLINK_BOARD_ID
3
4 define Device/kernel-size-migration
5 DEVICE_COMPAT_VERSION := 2.0
6 DEVICE_COMPAT_MESSAGE := *** Kernel partition size has changed from earlier \
7 versions. You need to sysupgrade with the OpenWrt factory image and \
8 use the force flag when image check fails. Settings will be lost. ***
9 endef
10
11 define Device/dsa-migration
12 DEVICE_COMPAT_VERSION := 1.1
13 DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
14 endef
15
16 define Device/dsa-migration-from-2_0
17 DEVICE_COMPAT_VERSION := 2.1
18 DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
19 endef
20
21 define Build/buffalo-rootfs-cksum
22 ( \
23 echo -ne "\x$$(od -A n -t u1 $@ | tr -s ' ' '\n' | \
24 $(STAGING_DIR_HOST)/bin/awk '{s+=$$0}END{printf "%x", 255-s%256}')"; \
25 ) >> $@
26 endef
27
28 define Build/edimax-header
29 $(eval edimax_model=$(word 1,$(1)))
30
31 $(STAGING_DIR_HOST)/bin/mkedimaximg \
32 -b -s CSYS -m $(edimax_model) \
33 -f 0x70000 -S 0x1200000 \
34 -i $@ -o $@.new
35 @mv $@.new $@
36 endef
37
38 define Device/DniImage
39 KERNEL_SUFFIX := -uImage
40 KERNEL = kernel-bin | append-dtb | uImage none
41 KERNEL_NAME := zImage
42 NETGEAR_BOARD_ID :=
43 NETGEAR_HW_ID :=
44 UBINIZE_OPTS := -E 5
45 IMAGES += factory.img
46 IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
47 append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
48 append-ubi | netgear-dni
49 IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
50 append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
51 append-metadata
52 endef
53
54 define Device/TpSafeImage
55 KERNEL_SUFFIX := -uImage
56 KERNEL = kernel-bin | append-dtb | uImage none
57 KERNEL_NAME := zImage
58 TPLINK_BOARD_ID :=
59 IMAGES += factory.bin
60 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
61 IMAGE/sysupgrade.bin := append-rootfs | \
62 tplink-safeloader sysupgrade | append-metadata
63 endef
64
65 define Device/ZyXELImage
66 KERNEL_SUFFIX := -uImage
67 KERNEL = kernel-bin | append-dtb | uImage none | \
68 pad-to $$(KERNEL_SIZE)
69 KERNEL_NAME := zImage
70 IMAGES += factory.bin
71 IMAGE/factory.bin := append-rootfs | pad-rootfs | \
72 pad-to $$$$(BLOCKSIZE) | zyxel-ras-image separate-kernel
73 IMAGE/sysupgrade.bin/squashfs := append-rootfs | \
74 pad-to $$$$(BLOCKSIZE) | sysupgrade-tar rootfs=$$$$@ | \
75 append-metadata
76 endef
77
78 define Device/arris_tr4400-v2
79 $(call Device/LegacyImage)
80 $(Device/dsa-migration)
81 DEVICE_VENDOR := Arris
82 DEVICE_MODEL := TR4400
83 DEVICE_VARIANT := v2
84 SOC := qcom-ipq8065
85 BLOCKSIZE := 128k
86 PAGESIZE := 2048
87 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct
88 KERNEL_IN_UBI := 1
89 endef
90 TARGET_DEVICES += arris_tr4400-v2
91
92 define Device/askey_rt4230w-rev6
93 $(call Device/LegacyImage)
94 $(Device/dsa-migration)
95 DEVICE_VENDOR := Askey
96 DEVICE_MODEL := RT4230W
97 DEVICE_VARIANT := REV6
98 SOC := qcom-ipq8065
99 BLOCKSIZE := 128k
100 PAGESIZE := 2048
101 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
102 KERNEL_IN_UBI := 1
103 endef
104 TARGET_DEVICES += askey_rt4230w-rev6
105
106 define Device/asrock_g10
107 $(call Device/FitImage)
108 $(call Device/UbiFit)
109 $(Device/dsa-migration)
110 SOC := qcom-ipq8064
111 DEVICE_VENDOR := ASRock
112 DEVICE_MODEL := G10
113 BLOCKSIZE := 128k
114 PAGESIZE := 2048
115 KERNEL_SIZE := 5332k
116 DEVICE_PACKAGES := kmod-i2c-gpio ath10k-firmware-qca99x0-ct
117 IMAGE/nand-factory.bin := append-ubi | edimax-header RN67
118 endef
119 TARGET_DEVICES += asrock_g10
120
121 define Device/buffalo_wxr-2533dhp
122 $(call Device/LegacyImage)
123 $(Device/dsa-migration)
124 SOC := qcom-ipq8064
125 DEVICE_VENDOR := Buffalo
126 DEVICE_MODEL := WXR-2533DHP
127 BLOCKSIZE := 128k
128 PAGESIZE := 2048
129 IMAGE_SIZE := 65536k
130 KERNEL_IN_UBI := 1
131 IMAGE/sysupgrade.bin := append-rootfs | buffalo-rootfs-cksum | \
132 sysupgrade-tar rootfs=$$$$@ | append-metadata
133 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
134 endef
135 TARGET_DEVICES += buffalo_wxr-2533dhp
136
137 define Device/compex_wpq864
138 $(call Device/FitImage)
139 $(call Device/UbiFit)
140 $(Device/dsa-migration)
141 DEVICE_VENDOR := Compex
142 DEVICE_MODEL := WPQ864
143 BLOCKSIZE := 128k
144 PAGESIZE := 2048
145 SOC := qcom-ipq8064
146 DEVICE_PACKAGES := kmod-gpio-beeper
147 endef
148 TARGET_DEVICES += compex_wpq864
149
150 define Device/edgecore_ecw5410
151 $(call Device/FitImage)
152 $(call Device/UbiFit)
153 DEVICE_VENDOR := Edgecore
154 DEVICE_MODEL := ECW5410
155 SOC := qcom-ipq8068
156 BLOCKSIZE := 128k
157 PAGESIZE := 2048
158 DEVICE_DTS_CONFIG := config@v2.0-ap160
159 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
160 endef
161 TARGET_DEVICES += edgecore_ecw5410
162
163 define Device/extreme_ap3935
164 $(call Device/LegacyImage)
165 $(call Device/UbiFit)
166 DEVICE_VENDOR := Extreme Networks
167 DEVICE_MODEL := AP3935
168 SOC := qcom-ipq8068
169 PAGESIZE := 2048
170 BLOCKSIZE := 128k
171 KERNEL = kernel-bin | append-dtb | uImage none | append-uImage-fakehdr filesystem
172 KERNEL_LOADADDR = 0x41408000
173 KERNEL_SIZE := 14400k
174 KERNEL_SUFFIX := -uImage
175 UBINIZE_OPTS := -E 5
176 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
177 endef
178 TARGET_DEVICES += extreme_ap3935
179
180 define Device/fortinet_fap-421e
181 $(call Device/FitImage)
182 DEVICE_VENDOR := Fortinet
183 DEVICE_MODEL := FAP-421E
184 SOC := qcom-ipq8064
185 BLOCKSIZE := 128k
186 PAGESIZE := 2048
187 BOARD_NAME := fap-421e
188 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
189 endef
190 TARGET_DEVICES += fortinet_fap-421e
191
192 define Device/linksys_ea7500-v1
193 $(call Device/LegacyImage)
194 $(Device/kernel-size-migration)
195 $(Device/dsa-migration-from-2_0)
196 DEVICE_VENDOR := Linksys
197 DEVICE_MODEL := EA7500
198 DEVICE_VARIANT := v1
199 SOC := qcom-ipq8064
200 PAGESIZE := 2048
201 BLOCKSIZE := 128k
202 KERNEL_SIZE := 4096k
203 KERNEL = kernel-bin | append-dtb | uImage none | \
204 append-uImage-fakehdr filesystem
205 UBINIZE_OPTS := -E 5
206 IMAGES := factory.bin sysupgrade.bin
207 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
208 append-ubi | pad-to $$$$(PAGESIZE)
209 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
210 endef
211 TARGET_DEVICES += linksys_ea7500-v1
212
213 define Device/linksys_ea8500
214 $(call Device/LegacyImage)
215 $(Device/kernel-size-migration)
216 $(Device/dsa-migration-from-2_0)
217 DEVICE_VENDOR := Linksys
218 DEVICE_MODEL := EA8500
219 SOC := qcom-ipq8064
220 PAGESIZE := 2048
221 BLOCKSIZE := 128k
222 KERNEL_SIZE := 4096k
223 KERNEL = kernel-bin | append-dtb | uImage none | \
224 append-uImage-fakehdr filesystem
225 BOARD_NAME := ea8500
226 SUPPORTED_DEVICES += ea8500
227 UBINIZE_OPTS := -E 5
228 IMAGES += factory.bin
229 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
230 append-ubi
231 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
232 endef
233 TARGET_DEVICES += linksys_ea8500
234
235 define Device/meraki_mr42
236 $(call Device/FitImage)
237 DEVICE_VENDOR := Cisco Meraki
238 DEVICE_MODEL := MR42
239 SOC := qcom-ipq8068
240 BLOCKSIZE := 128k
241 PAGESIZE := 2048
242 KERNEL_LOADADDR = 0x44208000
243 DEVICE_PACKAGES := -swconfig -kmod-ata-ahci -kmod-ata-ahci-platform \
244 -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
245 -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
246 -uboot-envtools ath10k-firmware-qca9887-ct \
247 ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
248 kmod-leds-tlc591xx
249 endef
250 TARGET_DEVICES += meraki_mr42
251
252 define Device/meraki_mr52
253 $(call Device/FitImage)
254 DEVICE_VENDOR := Cisco Meraki
255 DEVICE_MODEL := MR52
256 SOC := qcom-ipq8068
257 BLOCKSIZE := 128k
258 PAGESIZE := 2048
259 KERNEL_LOADADDR = 0x44208000
260 DEVICE_DTS_CONFIG := config@2
261 DEVICE_PACKAGES := -swconfig -kmod-ata-ahci -kmod-ata-ahci-platform \
262 -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
263 -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
264 -uboot-envtools ath10k-firmware-qca9887-ct \
265 ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
266 kmod-leds-tlc591xx
267 endef
268 TARGET_DEVICES += meraki_mr52
269
270 define Device/nec_wg2600hp
271 $(call Device/LegacyImage)
272 $(Device/dsa-migration)
273 DEVICE_VENDOR := NEC
274 DEVICE_MODEL := Aterm WG2600HP
275 SOC := qcom-ipq8064
276 BLOCKSIZE := 64k
277 BOARD_NAME := wg2600hp
278 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
279 pad-rootfs | append-metadata
280 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
281 endef
282 TARGET_DEVICES += nec_wg2600hp
283
284 define Device/nec_wg2600hp3
285 $(call Device/LegacyImage)
286 $(Device/dsa-migration)
287 DEVICE_VENDOR := NEC Platforms
288 DEVICE_MODEL := Aterm WG2600HP3
289 SOC := qcom-ipq8062
290 BLOCKSIZE := 64k
291 IMAGES := sysupgrade.bin
292 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
293 pad-rootfs | append-metadata
294 DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
295 -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
296 -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
297 ath10k-firmware-qca9984-ct
298 endef
299 TARGET_DEVICES += nec_wg2600hp3
300
301 define Device/netgear_d7800
302 $(call Device/DniImage)
303 $(Device/dsa-migration)
304 DEVICE_VENDOR := NETGEAR
305 DEVICE_MODEL := Nighthawk X4 D7800
306 SOC := qcom-ipq8064
307 KERNEL_SIZE := 4096k
308 NETGEAR_BOARD_ID := D7800
309 NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4
310 BLOCKSIZE := 128k
311 PAGESIZE := 2048
312 BOARD_NAME := d7800
313 SUPPORTED_DEVICES += d7800
314 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
315 DEVICE_COMPAT_VERSION := 2.0
316 DEVICE_COMPAT_MESSAGE := Sysupgrade does not work due to rootfs ubi partition size change. \
317 Use factory image with the TFTP recovery flash routine.
318 endef
319 TARGET_DEVICES += netgear_d7800
320
321 define Device/netgear_r7500
322 $(call Device/DniImage)
323 $(Device/dsa-migration)
324 DEVICE_VENDOR := NETGEAR
325 DEVICE_MODEL := Nighthawk X4 R7500
326 DEVICE_VARIANT := v1
327 SOC := qcom-ipq8064
328 KERNEL_SIZE := 4096k
329 NETGEAR_BOARD_ID := R7500
330 NETGEAR_HW_ID := 29764841+0+128+256+3x3+4x4
331 BLOCKSIZE := 128k
332 PAGESIZE := 2048
333 BOARD_NAME := r7500
334 SUPPORTED_DEVICES += r7500
335 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct
336 endef
337 TARGET_DEVICES += netgear_r7500
338
339 define Device/netgear_r7500v2
340 $(call Device/DniImage)
341 $(Device/dsa-migration)
342 DEVICE_VENDOR := NETGEAR
343 DEVICE_MODEL := Nighthawk X4 R7500
344 DEVICE_VARIANT := v2
345 SOC := qcom-ipq8064
346 KERNEL_SIZE := 4096k
347 NETGEAR_BOARD_ID := R7500v2
348 NETGEAR_HW_ID := 29764958+0+128+512+3x3+4x4
349 BLOCKSIZE := 128k
350 PAGESIZE := 2048
351 BOARD_NAME := r7500v2
352 SUPPORTED_DEVICES += r7500v2
353 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct \
354 ath10k-firmware-qca988x-ct
355 endef
356 TARGET_DEVICES += netgear_r7500v2
357
358 define Device/netgear_r7800
359 $(call Device/DniImage)
360 $(Device/dsa-migration)
361 DEVICE_VENDOR := NETGEAR
362 DEVICE_MODEL := Nighthawk X4S R7800
363 SOC := qcom-ipq8065
364 KERNEL_SIZE := 4096k
365 NETGEAR_BOARD_ID := R7800
366 NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4+cascade
367 BLOCKSIZE := 128k
368 PAGESIZE := 2048
369 BOARD_NAME := r7800
370 SUPPORTED_DEVICES += r7800
371 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
372 endef
373 TARGET_DEVICES += netgear_r7800
374
375 define Device/netgear_xr450
376 $(call Device/DniImage)
377 $(Device/dsa-migration)
378 DEVICE_VENDOR := NETGEAR
379 DEVICE_MODEL := Nighthawk XR450
380 SOC := qcom-ipq8065
381 KERNEL_SIZE := 4096k
382 NETGEAR_BOARD_ID := XR450
383 NETGEAR_HW_ID := 29764958+0+256+512+4x4+4x4+cascade
384 BLOCKSIZE := 128k
385 PAGESIZE := 2048
386 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
387 endef
388 TARGET_DEVICES += netgear_xr450
389
390 define Device/netgear_xr500
391 $(call Device/DniImage)
392 $(Device/dsa-migration)
393 DEVICE_VENDOR := NETGEAR
394 DEVICE_MODEL := Nighthawk XR500
395 SOC := qcom-ipq8065
396 KERNEL_SIZE := 4096k
397 NETGEAR_BOARD_ID := XR500
398 NETGEAR_HW_ID := 29764958+0+256+512+4x4+4x4+cascade
399 BLOCKSIZE := 128k
400 PAGESIZE := 2048
401 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
402 endef
403 TARGET_DEVICES += netgear_xr500
404
405 define Device/nokia_ac400i
406 $(call Device/FitImage)
407 $(call Device/UbiFit)
408 $(Device/dsa-migration)
409 DEVICE_VENDOR := Nokia
410 DEVICE_MODEL := AC400i
411 SOC := qcom-ipq8065
412 DEVICE_DTS := qcom-ipq8065-ac400i
413 BLOCKSIZE := 128k
414 PAGESIZE := 2048
415 BOARD_NAME := ac400i
416 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
417 endef
418 TARGET_DEVICES += nokia_ac400i
419
420 define Device/qcom_ipq8064-ap148
421 $(call Device/FitImage)
422 $(call Device/UbiFit)
423 $(Device/dsa-migration)
424 DEVICE_VENDOR := Qualcomm
425 DEVICE_MODEL := AP148
426 DEVICE_VARIANT := standard
427 SOC := qcom-ipq8064
428 DEVICE_DTS := qcom-ipq8064-ap148
429 KERNEL_INSTALL := 1
430 BLOCKSIZE := 128k
431 PAGESIZE := 2048
432 BOARD_NAME := ap148
433 SUPPORTED_DEVICES += ap148
434 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
435 endef
436 TARGET_DEVICES += qcom_ipq8064-ap148
437
438 define Device/qcom_ipq8064-ap148-legacy
439 $(call Device/LegacyImage)
440 $(call Device/UbiFit)
441 $(Device/dsa-migration)
442 DEVICE_VENDOR := Qualcomm
443 DEVICE_MODEL := AP148
444 DEVICE_VARIANT := legacy
445 SOC := qcom-ipq8064
446 DEVICE_DTS := qcom-ipq8064-ap148
447 BLOCKSIZE := 128k
448 PAGESIZE := 2048
449 BOARD_NAME := ap148
450 SUPPORTED_DEVICES := qcom,ipq8064-ap148 ap148
451 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
452 endef
453 TARGET_DEVICES += qcom_ipq8064-ap148-legacy
454
455 define Device/qcom_ipq8064-ap161
456 $(call Device/FitImage)
457 $(call Device/UbiFit)
458 $(Device/dsa-migration)
459 DEVICE_VENDOR := Qualcomm
460 DEVICE_MODEL := AP161
461 SOC := qcom-ipq8064
462 DEVICE_DTS := qcom-ipq8064-ap161
463 KERNEL_INSTALL := 1
464 BLOCKSIZE := 128k
465 PAGESIZE := 2048
466 BOARD_NAME := ap161
467 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
468 endef
469 TARGET_DEVICES += qcom_ipq8064-ap161
470
471 define Device/qcom_ipq8064-db149
472 $(call Device/FitImage)
473 $(Device/dsa-migration)
474 DEVICE_VENDOR := Qualcomm
475 DEVICE_MODEL := DB149
476 SOC := qcom-ipq8064
477 DEVICE_DTS := qcom-ipq8064-db149
478 KERNEL_INSTALL := 1
479 BOARD_NAME := db149
480 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
481 endef
482 TARGET_DEVICES += qcom_ipq8064-db149
483
484 define Device/tplink_ad7200
485 $(call Device/TpSafeImage)
486 $(Device/dsa-migration)
487 DEVICE_VENDOR := TP-Link
488 DEVICE_MODEL := AD7200
489 DEVICE_VARIANT := v1/v2
490 DEVICE_ALT0_VENDOR := TP-Link
491 DEVICE_ALT0_MODEL := Talon AD7200
492 DEVICE_ALT0_VARIANT := v1/v2
493 SOC := qcom-ipq8064
494 BLOCKSIZE := 128k
495 PAGESIZE := 2048
496 TPLINK_BOARD_ID := AD7200
497 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
498 endef
499 TARGET_DEVICES += tplink_ad7200
500
501 define Device/tplink_c2600
502 $(call Device/TpSafeImage)
503 $(Device/dsa-migration)
504 DEVICE_VENDOR := TP-Link
505 DEVICE_MODEL := Archer C2600
506 DEVICE_VARIANT := v1
507 SOC := qcom-ipq8064
508 BLOCKSIZE := 128k
509 PAGESIZE := 2048
510 BOARD_NAME := c2600
511 SUPPORTED_DEVICES += c2600
512 TPLINK_BOARD_ID := C2600
513 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops
514 endef
515 TARGET_DEVICES += tplink_c2600
516
517 define Device/tplink_vr2600v
518 $(Device/dsa-migration)
519 DEVICE_VENDOR := TP-Link
520 DEVICE_MODEL := Archer VR2600v
521 DEVICE_VARIANT := v1
522 KERNEL_SUFFIX := -uImage
523 KERNEL = kernel-bin | append-dtb | uImage none
524 KERNEL_NAME := zImage
525 IMAGE_SIZE := 12672k
526 SOC := qcom-ipq8064
527 BLOCKSIZE := 128k
528 PAGESIZE := 2048
529 BOARD_NAME := vr2600v
530 SUPPORTED_DEVICES += vr2600v
531 DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
532 IMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | \
533 append-rootfs | pad-rootfs | append-metadata
534 endef
535 TARGET_DEVICES += tplink_vr2600v
536
537 define Device/ubnt_unifi-ac-hd
538 $(call Device/FitImageLzma)
539 DEVICE_VENDOR := Ubiquiti
540 DEVICE_MODEL := UniFi AC HD
541 SOC := qcom-ipq8064
542 BLOCKSIZE := 64k
543 IMAGE_SIZE := 14784k
544 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
545 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
546 append-rootfs | pad-rootfs | check-size | append-metadata
547 endef
548 TARGET_DEVICES += ubnt_unifi-ac-hd
549
550 define Device/zyxel_nbg6817
551 $(Device/dsa-migration)
552 DEVICE_VENDOR := ZyXEL
553 DEVICE_MODEL := NBG6817
554 SOC := qcom-ipq8065
555 KERNEL_SIZE := 4096k
556 BLOCKSIZE := 64k
557 BOARD_NAME := nbg6817
558 RAS_BOARD := NBG6817
559 RAS_ROOTFS_SIZE := 20934k
560 RAS_VERSION := "V1.99(OWRT.9999)C0"
561 SUPPORTED_DEVICES += nbg6817
562 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs \
563 kmod-fs-ext4 losetup
564 $(call Device/ZyXELImage)
565 endef
566 TARGET_DEVICES += zyxel_nbg6817