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
/linksys_ea7500-v1
181 $(call Device
/LegacyImage
)
182 $(Device
/kernel-size-migration
)
183 $(Device
/dsa-migration-from-2_0
)
184 DEVICE_VENDOR
:= Linksys
185 DEVICE_MODEL
:= EA7500
191 KERNEL
= kernel-bin | append-dtb | uImage none | \
192 append-uImage-fakehdr filesystem
194 IMAGES
:= factory.bin sysupgrade.bin
195 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
196 append-ubi | pad-to
$$$$(PAGESIZE
)
197 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
199 TARGET_DEVICES
+= linksys_ea7500-v1
201 define Device
/linksys_ea8500
202 $(call Device
/LegacyImage
)
203 $(Device
/kernel-size-migration
)
204 $(Device
/dsa-migration-from-2_0
)
205 DEVICE_VENDOR
:= Linksys
206 DEVICE_MODEL
:= EA8500
211 KERNEL
= kernel-bin | append-dtb | uImage none | \
212 append-uImage-fakehdr filesystem
214 SUPPORTED_DEVICES
+= ea8500
216 IMAGES
+= factory.bin
217 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
219 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
221 TARGET_DEVICES
+= linksys_ea8500
223 define Device
/meraki_mr42
224 $(call Device
/FitImage
)
225 DEVICE_VENDOR
:= Cisco Meraki
230 KERNEL_LOADADDR
= 0x44208000
231 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
232 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
233 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
234 -uboot-envtools ath10k-firmware-qca9887-ct \
235 ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
238 TARGET_DEVICES
+= meraki_mr42
240 define Device
/meraki_mr52
241 $(call Device
/FitImage
)
242 DEVICE_VENDOR
:= Cisco Meraki
247 KERNEL_LOADADDR
= 0x44208000
248 DEVICE_DTS_CONFIG
:= config@
2
249 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
250 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
251 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
252 -uboot-envtools ath10k-firmware-qca9887-ct \
253 ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
256 TARGET_DEVICES
+= meraki_mr52
258 define Device
/nec_wg2600hp
259 $(call Device
/LegacyImage
)
260 $(Device
/dsa-migration
)
262 DEVICE_MODEL
:= Aterm WG2600HP
265 BOARD_NAME
:= wg2600hp
266 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
267 pad-rootfs | append-metadata
268 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
270 TARGET_DEVICES
+= nec_wg2600hp
272 define Device
/nec_wg2600hp3
273 $(call Device
/LegacyImage
)
274 $(Device
/dsa-migration
)
275 DEVICE_VENDOR
:= NEC Platforms
276 DEVICE_MODEL
:= Aterm WG2600HP3
279 IMAGES
:= sysupgrade.bin
280 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
281 pad-rootfs | append-metadata
282 DEVICE_PACKAGES
:= -kmod-ata-ahci
-kmod-ata-ahci-platform \
283 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
284 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
285 ath10k-firmware-qca9984-ct
287 TARGET_DEVICES
+= nec_wg2600hp3
289 define Device
/netgear_d7800
290 $(call Device
/DniImage
)
291 $(Device
/dsa-migration
)
292 DEVICE_VENDOR
:= NETGEAR
293 DEVICE_MODEL
:= Nighthawk X4 D7800
296 NETGEAR_BOARD_ID
:= D7800
297 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
301 SUPPORTED_DEVICES
+= d7800
302 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
303 DEVICE_COMPAT_VERSION
:= 2.0
304 DEVICE_COMPAT_MESSAGE
:= Sysupgrade does not work due to rootfs ubi partition size change. \
305 Use factory image with the TFTP recovery flash routine.
307 TARGET_DEVICES
+= netgear_d7800
309 define Device
/netgear_r7500
310 $(call Device
/DniImage
)
311 $(Device
/dsa-migration
)
312 DEVICE_VENDOR
:= NETGEAR
313 DEVICE_MODEL
:= Nighthawk X4 R7500
317 NETGEAR_BOARD_ID
:= R7500
318 NETGEAR_HW_ID
:= 29764841+0+128+256+3x3
+4x4
322 SUPPORTED_DEVICES
+= r7500
323 DEVICE_PACKAGES
:= ath10k-firmware-qca988x-ct
325 TARGET_DEVICES
+= netgear_r7500
327 define Device
/netgear_r7500v2
328 $(call Device
/DniImage
)
329 $(Device
/dsa-migration
)
330 DEVICE_VENDOR
:= NETGEAR
331 DEVICE_MODEL
:= Nighthawk X4 R7500
335 NETGEAR_BOARD_ID
:= R7500v2
336 NETGEAR_HW_ID
:= 29764958+0+128+512+3x3
+4x4
339 BOARD_NAME
:= r7500v2
340 SUPPORTED_DEVICES
+= r7500v2
341 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct \
342 ath10k-firmware-qca988x-ct
344 TARGET_DEVICES
+= netgear_r7500v2
346 define Device
/netgear_r7800
347 $(call Device
/DniImage
)
348 $(Device
/dsa-migration
)
349 DEVICE_VENDOR
:= NETGEAR
350 DEVICE_MODEL
:= Nighthawk X4S R7800
353 NETGEAR_BOARD_ID
:= R7800
354 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
+cascade
358 SUPPORTED_DEVICES
+= r7800
359 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
361 TARGET_DEVICES
+= netgear_r7800
363 define Device
/netgear_xr450
364 $(call Device
/DniImage
)
365 $(Device
/dsa-migration
)
366 DEVICE_VENDOR
:= NETGEAR
367 DEVICE_MODEL
:= Nighthawk XR450
370 NETGEAR_BOARD_ID
:= XR450
371 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
374 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
376 TARGET_DEVICES
+= netgear_xr450
378 define Device
/netgear_xr500
379 $(call Device
/DniImage
)
380 $(Device
/dsa-migration
)
381 DEVICE_VENDOR
:= NETGEAR
382 DEVICE_MODEL
:= Nighthawk XR500
385 NETGEAR_BOARD_ID
:= XR500
386 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
389 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
391 TARGET_DEVICES
+= netgear_xr500
393 define Device
/nokia_ac400i
394 $(call Device
/FitImage
)
395 $(call Device
/UbiFit
)
396 $(Device
/dsa-migration
)
397 DEVICE_VENDOR
:= Nokia
398 DEVICE_MODEL
:= AC400i
400 DEVICE_DTS
:= qcom-ipq8065-ac400i
404 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
406 TARGET_DEVICES
+= nokia_ac400i
408 define Device
/qcom_ipq8064-ap148
409 $(call Device
/FitImage
)
410 $(call Device
/UbiFit
)
411 $(Device
/dsa-migration
)
412 DEVICE_VENDOR
:= Qualcomm
413 DEVICE_MODEL
:= AP148
414 DEVICE_VARIANT
:= standard
416 DEVICE_DTS
:= qcom-ipq8064-ap148
421 SUPPORTED_DEVICES
+= ap148
422 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
424 TARGET_DEVICES
+= qcom_ipq8064-ap148
426 define Device
/qcom_ipq8064-ap148-legacy
427 $(call Device
/LegacyImage
)
428 $(call Device
/UbiFit
)
429 $(Device
/dsa-migration
)
430 DEVICE_VENDOR
:= Qualcomm
431 DEVICE_MODEL
:= AP148
432 DEVICE_VARIANT
:= legacy
434 DEVICE_DTS
:= qcom-ipq8064-ap148
438 SUPPORTED_DEVICES
:= qcom
,ipq8064-ap148 ap148
439 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
441 TARGET_DEVICES
+= qcom_ipq8064-ap148-legacy
443 define Device
/qcom_ipq8064-ap161
444 $(call Device
/FitImage
)
445 $(call Device
/UbiFit
)
446 $(Device
/dsa-migration
)
447 DEVICE_VENDOR
:= Qualcomm
448 DEVICE_MODEL
:= AP161
450 DEVICE_DTS
:= qcom-ipq8064-ap161
455 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
457 TARGET_DEVICES
+= qcom_ipq8064-ap161
459 define Device
/qcom_ipq8064-db149
460 $(call Device
/FitImage
)
461 $(Device
/dsa-migration
)
462 DEVICE_VENDOR
:= Qualcomm
463 DEVICE_MODEL
:= DB149
465 DEVICE_DTS
:= qcom-ipq8064-db149
468 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
470 TARGET_DEVICES
+= qcom_ipq8064-db149
472 define Device
/tplink_ad7200
473 $(call Device
/TpSafeImage
)
474 $(Device
/dsa-migration
)
475 DEVICE_VENDOR
:= TP-Link
476 DEVICE_MODEL
:= AD7200
477 DEVICE_VARIANT
:= v1
/v2
478 DEVICE_ALT0_VENDOR
:= TP-Link
479 DEVICE_ALT0_MODEL
:= Talon AD7200
480 DEVICE_ALT0_VARIANT
:= v1
/v2
484 TPLINK_BOARD_ID
:= AD7200
485 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
487 TARGET_DEVICES
+= tplink_ad7200
489 define Device
/tplink_c2600
490 $(call Device
/TpSafeImage
)
491 $(Device
/dsa-migration
)
492 DEVICE_VENDOR
:= TP-Link
493 DEVICE_MODEL
:= Archer C2600
499 SUPPORTED_DEVICES
+= c2600
500 TPLINK_BOARD_ID
:= C2600
501 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-ramoops
503 TARGET_DEVICES
+= tplink_c2600
505 define Device
/tplink_vr2600v
506 $(Device
/dsa-migration
)
507 DEVICE_VENDOR
:= TP-Link
508 DEVICE_MODEL
:= Archer VR2600v
510 KERNEL_SUFFIX
:= -uImage
511 KERNEL
= kernel-bin | append-dtb | uImage none
512 KERNEL_NAME
:= zImage
517 BOARD_NAME
:= vr2600v
518 SUPPORTED_DEVICES
+= vr2600v
519 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
520 IMAGE
/sysupgrade.bin
:= pad-extra
512 | append-kernel | \
521 append-rootfs | pad-rootfs | append-metadata
523 TARGET_DEVICES
+= tplink_vr2600v
525 define Device
/ubnt_unifi-ac-hd
526 $(call Device
/FitImageLzma
)
527 DEVICE_VENDOR
:= Ubiquiti
528 DEVICE_MODEL
:= UniFi AC HD
532 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
533 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
534 append-rootfs | pad-rootfs | check-size | append-metadata
536 TARGET_DEVICES
+= ubnt_unifi-ac-hd
538 define Device
/zyxel_nbg6817
539 $(Device
/dsa-migration
)
540 DEVICE_VENDOR
:= ZyXEL
541 DEVICE_MODEL
:= NBG6817
545 BOARD_NAME
:= nbg6817
547 RAS_ROOTFS_SIZE
:= 20934k
548 RAS_VERSION
:= "V1.99(OWRT.9999)C0"
549 SUPPORTED_DEVICES
+= nbg6817
550 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct e2fsprogs \
552 $(call Device
/ZyXELImage
)
554 TARGET_DEVICES
+= zyxel_nbg6817