1 DEVICE_VARS
+= NETGEAR_BOARD_ID NETGEAR_HW_ID
2 DEVICE_VARS
+= TPLINK_BOARD_ID
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.
***
11 define Device
/dsa-migration
12 DEVICE_COMPAT_VERSION
:= 1.1
13 DEVICE_COMPAT_MESSAGE
:= Config cannot be migrated from swconfig to DSA
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
21 define Build
/buffalo-rootfs-cksum
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}')"; \
28 define Build
/edimax-header
29 $(eval edimax_model
=$(word 1,$(1)))
31 $(STAGING_DIR_HOST
)/bin
/mkedimaximg \
32 -b
-s CSYS
-m
$(edimax_model
) \
33 -f
0x70000 -S
0x1200000 \
38 define Device
/DniImage
39 KERNEL_SUFFIX
:= -uImage
40 KERNEL
= kernel-bin | append-dtb | uImage none
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
=$$$$@ | \
54 define Device
/TpSafeImage
55 KERNEL_SUFFIX
:= -uImage
56 KERNEL
= kernel-bin | append-dtb | uImage none
60 IMAGE
/factory.bin
:= append-rootfs | tplink-safeloader factory
61 IMAGE
/sysupgrade.bin
:= append-rootfs | \
62 tplink-safeloader sysupgrade | append-metadata
65 define Device
/ZyXELImage
66 KERNEL_SUFFIX
:= -uImage
67 KERNEL
= kernel-bin | append-dtb | uImage none | \
68 pad-to
$$(KERNEL_SIZE
)
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
=$$$$@ | \
78 define Device
/arris_tr4400-v2
79 $(call Device
/LegacyImage
)
80 $(Device
/dsa-migration
)
81 DEVICE_VENDOR
:= Arris
82 DEVICE_MODEL
:= TR4400
87 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct
90 TARGET_DEVICES
+= arris_tr4400-v2
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
101 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
104 TARGET_DEVICES
+= askey_rt4230w-rev6
106 define Device
/asrock_g10
107 $(call Device
/FitImage
)
108 $(call Device
/UbiFit
)
109 $(Device
/dsa-migration
)
111 DEVICE_VENDOR
:= ASRock
116 DEVICE_PACKAGES
:= kmod-i2c-gpio ath10k-firmware-qca99x0-ct
117 IMAGE
/nand-factory.bin
:= append-ubi | edimax-header RN67
119 TARGET_DEVICES
+= asrock_g10
121 define Device
/buffalo_wxr-2533dhp
122 $(call Device
/LegacyImage
)
123 $(Device
/dsa-migration
)
125 DEVICE_VENDOR
:= Buffalo
126 DEVICE_MODEL
:= WXR-2533DHP
131 IMAGE
/sysupgrade.bin
:= append-rootfs | buffalo-rootfs-cksum | \
132 sysupgrade-tar rootfs
=$$$$@ | append-metadata
133 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
135 TARGET_DEVICES
+= buffalo_wxr-2533dhp
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
146 DEVICE_PACKAGES
:= kmod-gpio-beeper
148 TARGET_DEVICES
+= compex_wpq864
150 define Device
/edgecore_ecw5410
151 $(call Device
/FitImage
)
152 $(call Device
/UbiFit
)
153 DEVICE_VENDOR
:= Edgecore
154 DEVICE_MODEL
:= ECW5410
158 DEVICE_DTS_CONFIG
:= config@v2.0
-ap160
159 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
161 TARGET_DEVICES
+= edgecore_ecw5410
163 define Device
/extreme_ap3935
164 $(call Device
/LegacyImage
)
165 $(call Device
/UbiFit
)
166 DEVICE_VENDOR
:= Extreme Networks
167 DEVICE_MODEL
:= AP3935
171 KERNEL
= kernel-bin | append-dtb | uImage none | append-uImage-fakehdr filesystem
172 KERNEL_LOADADDR
= 0x41408000
173 KERNEL_SIZE
:= 14400k
174 KERNEL_SUFFIX
:= -uImage
176 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
178 TARGET_DEVICES
+= extreme_ap3935
180 define Device
/fortinet_fap-421e
181 $(call Device
/FitImage
)
182 DEVICE_VENDOR
:= Fortinet
183 DEVICE_MODEL
:= FAP-421E
187 BOARD_NAME
:= fap-421e
188 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
190 TARGET_DEVICES
+= fortinet_fap-421e
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
203 KERNEL
= kernel-bin | append-dtb | uImage none | \
204 append-uImage-fakehdr filesystem
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
211 TARGET_DEVICES
+= linksys_ea7500-v1
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
223 KERNEL
= kernel-bin | append-dtb | uImage none | \
224 append-uImage-fakehdr filesystem
226 SUPPORTED_DEVICES
+= ea8500
228 IMAGES
+= factory.bin
229 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
231 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
233 TARGET_DEVICES
+= linksys_ea8500
235 define Device
/meraki_mr42
236 $(call Device
/FitImage
)
237 DEVICE_VENDOR
:= Cisco Meraki
242 KERNEL_LOADADDR
= 0x44208000
243 DEVICE_PACKAGES
:= -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 \
250 TARGET_DEVICES
+= meraki_mr42
252 define Device
/meraki_mr52
253 $(call Device
/FitImage
)
254 DEVICE_VENDOR
:= Cisco Meraki
259 KERNEL_LOADADDR
= 0x44208000
260 DEVICE_DTS_CONFIG
:= config@
2
261 DEVICE_PACKAGES
:= -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 \
268 TARGET_DEVICES
+= meraki_mr52
270 define Device
/nec_wg2600hp
271 $(call Device
/LegacyImage
)
272 $(Device
/dsa-migration
)
274 DEVICE_MODEL
:= Aterm WG2600HP
277 BOARD_NAME
:= wg2600hp
278 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
279 pad-rootfs | append-metadata
280 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
282 TARGET_DEVICES
+= nec_wg2600hp
284 define Device
/nec_wg2600hp3
285 $(call Device
/LegacyImage
)
286 $(Device
/dsa-migration
)
287 DEVICE_VENDOR
:= NEC Platforms
288 DEVICE_MODEL
:= Aterm WG2600HP3
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
299 TARGET_DEVICES
+= nec_wg2600hp3
301 define Device
/netgear_d7800
302 $(call Device
/DniImage
)
303 $(Device
/dsa-migration
)
304 DEVICE_VENDOR
:= NETGEAR
305 DEVICE_MODEL
:= Nighthawk X4 D7800
308 NETGEAR_BOARD_ID
:= D7800
309 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
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.
319 TARGET_DEVICES
+= netgear_d7800
321 define Device
/netgear_r7500
322 $(call Device
/DniImage
)
323 $(Device
/dsa-migration
)
324 DEVICE_VENDOR
:= NETGEAR
325 DEVICE_MODEL
:= Nighthawk X4 R7500
329 NETGEAR_BOARD_ID
:= R7500
330 NETGEAR_HW_ID
:= 29764841+0+128+256+3x3
+4x4
334 SUPPORTED_DEVICES
+= r7500
335 DEVICE_PACKAGES
:= ath10k-firmware-qca988x-ct
337 TARGET_DEVICES
+= netgear_r7500
339 define Device
/netgear_r7500v2
340 $(call Device
/DniImage
)
341 $(Device
/dsa-migration
)
342 DEVICE_VENDOR
:= NETGEAR
343 DEVICE_MODEL
:= Nighthawk X4 R7500
347 NETGEAR_BOARD_ID
:= R7500v2
348 NETGEAR_HW_ID
:= 29764958+0+128+512+3x3
+4x4
351 BOARD_NAME
:= r7500v2
352 SUPPORTED_DEVICES
+= r7500v2
353 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct \
354 ath10k-firmware-qca988x-ct
356 TARGET_DEVICES
+= netgear_r7500v2
358 define Device
/netgear_r7800
359 $(call Device
/DniImage
)
360 $(Device
/dsa-migration
)
361 DEVICE_VENDOR
:= NETGEAR
362 DEVICE_MODEL
:= Nighthawk X4S R7800
365 NETGEAR_BOARD_ID
:= R7800
366 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
+cascade
370 SUPPORTED_DEVICES
+= r7800
371 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
373 TARGET_DEVICES
+= netgear_r7800
375 define Device
/netgear_xr450
376 $(call Device
/DniImage
)
377 $(Device
/dsa-migration
)
378 DEVICE_VENDOR
:= NETGEAR
379 DEVICE_MODEL
:= Nighthawk XR450
382 NETGEAR_BOARD_ID
:= XR450
383 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
386 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
388 TARGET_DEVICES
+= netgear_xr450
390 define Device
/netgear_xr500
391 $(call Device
/DniImage
)
392 $(Device
/dsa-migration
)
393 DEVICE_VENDOR
:= NETGEAR
394 DEVICE_MODEL
:= Nighthawk XR500
397 NETGEAR_BOARD_ID
:= XR500
398 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
401 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
403 TARGET_DEVICES
+= netgear_xr500
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
412 DEVICE_DTS
:= qcom-ipq8065-ac400i
416 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
418 TARGET_DEVICES
+= nokia_ac400i
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
428 DEVICE_DTS
:= qcom-ipq8064-ap148
433 SUPPORTED_DEVICES
+= ap148
434 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
436 TARGET_DEVICES
+= qcom_ipq8064-ap148
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
446 DEVICE_DTS
:= qcom-ipq8064-ap148
450 SUPPORTED_DEVICES
:= qcom
,ipq8064-ap148 ap148
451 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
453 TARGET_DEVICES
+= qcom_ipq8064-ap148-legacy
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
462 DEVICE_DTS
:= qcom-ipq8064-ap161
467 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
469 TARGET_DEVICES
+= qcom_ipq8064-ap161
471 define Device
/qcom_ipq8064-db149
472 $(call Device
/FitImage
)
473 $(Device
/dsa-migration
)
474 DEVICE_VENDOR
:= Qualcomm
475 DEVICE_MODEL
:= DB149
477 DEVICE_DTS
:= qcom-ipq8064-db149
480 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
482 TARGET_DEVICES
+= qcom_ipq8064-db149
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
496 TPLINK_BOARD_ID
:= AD7200
497 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
499 TARGET_DEVICES
+= tplink_ad7200
501 define Device
/tplink_c2600
502 $(call Device
/TpSafeImage
)
503 $(Device
/dsa-migration
)
504 DEVICE_VENDOR
:= TP-Link
505 DEVICE_MODEL
:= Archer C2600
511 SUPPORTED_DEVICES
+= c2600
512 TPLINK_BOARD_ID
:= C2600
513 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-ramoops
515 TARGET_DEVICES
+= tplink_c2600
517 define Device
/tplink_vr2600v
518 $(Device
/dsa-migration
)
519 DEVICE_VENDOR
:= TP-Link
520 DEVICE_MODEL
:= Archer VR2600v
522 KERNEL_SUFFIX
:= -uImage
523 KERNEL
= kernel-bin | append-dtb | uImage none
524 KERNEL_NAME
:= zImage
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
535 TARGET_DEVICES
+= tplink_vr2600v
537 define Device
/ubnt_unifi-ac-hd
538 $(call Device
/FitImageLzma
)
539 DEVICE_VENDOR
:= Ubiquiti
540 DEVICE_MODEL
:= UniFi AC HD
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
548 TARGET_DEVICES
+= ubnt_unifi-ac-hd
550 define Device
/zyxel_nbg6817
551 $(Device
/dsa-migration
)
552 DEVICE_VENDOR
:= ZyXEL
553 DEVICE_MODEL
:= NBG6817
557 BOARD_NAME
:= 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 \
564 $(call Device
/ZyXELImage
)
566 TARGET_DEVICES
+= zyxel_nbg6817