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 Build
/buffalo-rootfs-cksum
13 echo
-ne
"\x$$(od -A n -t u1 $@ | tr -s ' ' '\n' | \
14 $(STAGING_DIR_HOST)/bin/awk '{s+=$$0}END{printf "%x
", 255-s%256}')"; \
18 define Build
/edimax-header
19 $(eval edimax_model
=$(word 1,$(1)))
21 $(STAGING_DIR_HOST
)/bin
/mkedimaximg \
22 -b
-s CSYS
-m
$(edimax_model
) \
23 -f
0x70000 -S
0x1200000 \
28 define Device
/DniImage
29 KERNEL_SUFFIX
:= -uImage
30 KERNEL
= kernel-bin | append-dtb | uImage none
36 IMAGE
/factory.img
:= append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | \
37 append-uImage-fakehdr filesystem | pad-to
$$$$(KERNEL_SIZE
) | \
38 append-ubi | netgear-dni
39 IMAGE
/sysupgrade.bin
:= append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | \
40 append-uImage-fakehdr filesystem | sysupgrade-tar kernel
=$$$$@ | \
44 define Device
/TpSafeImage
45 KERNEL_SUFFIX
:= -uImage
46 KERNEL
= kernel-bin | append-dtb | uImage none
50 IMAGE
/factory.bin
:= append-rootfs | tplink-safeloader factory
51 IMAGE
/sysupgrade.bin
:= append-rootfs | \
52 tplink-safeloader sysupgrade | append-metadata
55 define Device
/ZyXELImage
56 KERNEL_SUFFIX
:= -uImage
57 KERNEL
= kernel-bin | append-dtb | uImage none | \
58 pad-to
$$(KERNEL_SIZE
)
61 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | \
62 pad-to
$$$$(BLOCKSIZE
) | zyxel-ras-image separate-kernel
63 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | \
64 pad-to
$$$$(BLOCKSIZE
) | sysupgrade-tar rootfs
=$$$$@ | \
68 define Device
/arris_tr4400-v2
69 $(call Device
/LegacyImage
)
70 DEVICE_VENDOR
:= Arris
71 DEVICE_MODEL
:= TR4400
76 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct
79 TARGET_DEVICES
+= arris_tr4400-v2
81 define Device
/askey_rt4230w-rev6
82 $(call Device
/LegacyImage
)
83 DEVICE_VENDOR
:= Askey
84 DEVICE_MODEL
:= RT4230W
85 DEVICE_VARIANT
:= REV6
89 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
92 TARGET_DEVICES
+= askey_rt4230w-rev6
94 define Device
/asrock_g10
95 $(call Device
/FitImage
)
98 DEVICE_VENDOR
:= ASRock
103 DEVICE_PACKAGES
:= kmod-i2c-gpio ath10k-firmware-qca99x0-ct
104 IMAGE
/nand-factory.bin
:= append-ubi | edimax-header RN67
106 TARGET_DEVICES
+= asrock_g10
108 define Device
/buffalo_wxr-2533dhp
109 $(call Device
/LegacyImage
)
111 DEVICE_VENDOR
:= Buffalo
112 DEVICE_MODEL
:= WXR-2533DHP
117 IMAGE
/sysupgrade.bin
:= append-rootfs | buffalo-rootfs-cksum | \
118 sysupgrade-tar rootfs
=$$$$@ | append-metadata
119 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
121 TARGET_DEVICES
+= buffalo_wxr-2533dhp
123 define Device
/compex_wpq864
124 $(call Device
/FitImage
)
125 $(call Device
/UbiFit
)
126 DEVICE_VENDOR
:= Compex
127 DEVICE_MODEL
:= WPQ864
131 DEVICE_PACKAGES
:= kmod-gpio-beeper
133 TARGET_DEVICES
+= compex_wpq864
135 define Device
/edgecore_ecw5410
136 $(call Device
/FitImage
)
137 $(call Device
/UbiFit
)
138 DEVICE_VENDOR
:= Edgecore
139 DEVICE_MODEL
:= ECW5410
143 DEVICE_DTS_CONFIG
:= config@v2.0
-ap160
144 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
146 TARGET_DEVICES
+= edgecore_ecw5410
148 define Device
/linksys_ea7500-v1
149 $(call Device
/LegacyImage
)
150 $(Device
/kernel-size-migration
)
151 DEVICE_VENDOR
:= Linksys
152 DEVICE_MODEL
:= EA7500
158 KERNEL
= kernel-bin | append-dtb | uImage none | \
159 append-uImage-fakehdr filesystem
161 IMAGES
:= factory.bin sysupgrade.bin
162 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
163 append-ubi | pad-to
$$$$(PAGESIZE
)
164 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
166 TARGET_DEVICES
+= linksys_ea7500-v1
168 define Device
/linksys_ea8500
169 $(call Device
/LegacyImage
)
170 $(Device
/kernel-size-migration
)
171 DEVICE_VENDOR
:= Linksys
172 DEVICE_MODEL
:= EA8500
177 KERNEL
= kernel-bin | append-dtb | uImage none | \
178 append-uImage-fakehdr filesystem
180 SUPPORTED_DEVICES
+= ea8500
182 IMAGES
+= factory.bin
183 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
185 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
187 TARGET_DEVICES
+= linksys_ea8500
189 define Device
/meraki_mr42
190 $(call Device
/FitImage
)
191 DEVICE_VENDOR
:= Cisco Meraki
196 KERNEL_LOADADDR
= 0x44208000
197 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
198 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
199 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
200 -uboot-envtools ath10k-firmware-qca9887-ct \
201 ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
204 TARGET_DEVICES
+= meraki_mr42
206 define Device
/meraki_mr52
207 $(call Device
/FitImage
)
208 DEVICE_VENDOR
:= Cisco Meraki
213 KERNEL_LOADADDR
= 0x44208000
214 DEVICE_DTS_CONFIG
:= config@
2
215 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
216 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
217 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
218 -uboot-envtools ath10k-firmware-qca9887-ct \
219 ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
222 TARGET_DEVICES
+= meraki_mr52
224 define Device
/nec_wg2600hp
225 $(call Device
/LegacyImage
)
227 DEVICE_MODEL
:= Aterm WG2600HP
230 BOARD_NAME
:= wg2600hp
231 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
232 pad-rootfs | append-metadata
233 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
235 TARGET_DEVICES
+= nec_wg2600hp
237 define Device
/nec_wg2600hp3
238 $(call Device
/LegacyImage
)
239 DEVICE_VENDOR
:= NEC Platforms
240 DEVICE_MODEL
:= Aterm WG2600HP3
243 IMAGES
:= sysupgrade.bin
244 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
245 pad-rootfs | append-metadata
246 DEVICE_PACKAGES
:= -kmod-ata-ahci
-kmod-ata-ahci-platform \
247 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
248 -kmod-usb-phy-qcom-dwc3
-kmod-usb3
-kmod-usb-dwc3-qcom \
249 ath10k-firmware-qca9984-ct
251 TARGET_DEVICES
+= nec_wg2600hp3
253 define Device
/netgear_d7800
254 $(call Device
/DniImage
)
255 DEVICE_VENDOR
:= NETGEAR
256 DEVICE_MODEL
:= Nighthawk X4 D7800
259 NETGEAR_BOARD_ID
:= D7800
260 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
264 SUPPORTED_DEVICES
+= d7800
265 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
266 DEVICE_COMPAT_VERSION
:= 2.0
267 DEVICE_COMPAT_MESSAGE
:= Sysupgrade does not work due to rootfs ubi partition size change. \
268 Use factory image with the TFTP recovery flash routine.
270 TARGET_DEVICES
+= netgear_d7800
272 define Device
/netgear_r7500
273 $(call Device
/DniImage
)
274 DEVICE_VENDOR
:= NETGEAR
275 DEVICE_MODEL
:= Nighthawk X4 R7500
279 NETGEAR_BOARD_ID
:= R7500
280 NETGEAR_HW_ID
:= 29764841+0+128+256+3x3
+4x4
284 SUPPORTED_DEVICES
+= r7500
285 DEVICE_PACKAGES
:= ath10k-firmware-qca988x-ct
287 TARGET_DEVICES
+= netgear_r7500
289 define Device
/netgear_r7500v2
290 $(call Device
/DniImage
)
291 DEVICE_VENDOR
:= NETGEAR
292 DEVICE_MODEL
:= Nighthawk X4 R7500
296 NETGEAR_BOARD_ID
:= R7500v2
297 NETGEAR_HW_ID
:= 29764958+0+128+512+3x3
+4x4
300 BOARD_NAME
:= r7500v2
301 SUPPORTED_DEVICES
+= r7500v2
302 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct \
303 ath10k-firmware-qca988x-ct
305 TARGET_DEVICES
+= netgear_r7500v2
307 define Device
/netgear_r7800
308 $(call Device
/DniImage
)
309 DEVICE_VENDOR
:= NETGEAR
310 DEVICE_MODEL
:= Nighthawk X4S R7800
313 NETGEAR_BOARD_ID
:= R7800
314 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
+cascade
318 SUPPORTED_DEVICES
+= r7800
319 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
321 TARGET_DEVICES
+= netgear_r7800
323 define Device
/netgear_xr450
324 $(call Device
/DniImage
)
325 DEVICE_VENDOR
:= NETGEAR
326 DEVICE_MODEL
:= Nighthawk XR450
329 NETGEAR_BOARD_ID
:= XR450
330 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
333 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
335 TARGET_DEVICES
+= netgear_xr450
337 define Device
/netgear_xr500
338 $(call Device
/DniImage
)
339 DEVICE_VENDOR
:= NETGEAR
340 DEVICE_MODEL
:= Nighthawk XR500
343 NETGEAR_BOARD_ID
:= XR500
344 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
347 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
349 TARGET_DEVICES
+= netgear_xr500
351 define Device
/nokia_ac400i
352 $(call Device
/FitImage
)
353 $(call Device
/UbiFit
)
354 DEVICE_VENDOR
:= Nokia
355 DEVICE_MODEL
:= AC400i
357 DEVICE_DTS
:= qcom-ipq8065-ac400i
361 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
363 TARGET_DEVICES
+= nokia_ac400i
365 define Device
/qcom_ipq8064-ap148
366 $(call Device
/FitImage
)
367 $(call Device
/UbiFit
)
368 DEVICE_VENDOR
:= Qualcomm
369 DEVICE_MODEL
:= AP148
370 DEVICE_VARIANT
:= standard
372 DEVICE_DTS
:= qcom-ipq8064-ap148
377 SUPPORTED_DEVICES
+= ap148
378 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
380 TARGET_DEVICES
+= qcom_ipq8064-ap148
382 define Device
/qcom_ipq8064-ap148-legacy
383 $(call Device
/LegacyImage
)
384 $(call Device
/UbiFit
)
385 DEVICE_VENDOR
:= Qualcomm
386 DEVICE_MODEL
:= AP148
387 DEVICE_VARIANT
:= legacy
389 DEVICE_DTS
:= qcom-ipq8064-ap148
393 SUPPORTED_DEVICES
:= qcom
,ipq8064-ap148 ap148
394 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
396 TARGET_DEVICES
+= qcom_ipq8064-ap148-legacy
398 define Device
/qcom_ipq8064-ap161
399 $(call Device
/FitImage
)
400 $(call Device
/UbiFit
)
401 DEVICE_VENDOR
:= Qualcomm
402 DEVICE_MODEL
:= AP161
404 DEVICE_DTS
:= qcom-ipq8064-ap161
409 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
411 TARGET_DEVICES
+= qcom_ipq8064-ap161
413 define Device
/qcom_ipq8064-db149
414 $(call Device
/FitImage
)
415 DEVICE_VENDOR
:= Qualcomm
416 DEVICE_MODEL
:= DB149
418 DEVICE_DTS
:= qcom-ipq8064-db149
421 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
423 TARGET_DEVICES
+= qcom_ipq8064-db149
425 define Device
/tplink_ad7200
426 $(call Device
/TpSafeImage
)
427 DEVICE_VENDOR
:= TP-Link
428 DEVICE_MODEL
:= AD7200
429 DEVICE_VARIANT
:= v1
/v2
430 DEVICE_ALT0_VENDOR
:= TP-Link
431 DEVICE_ALT0_MODEL
:= Talon AD7200
432 DEVICE_ALT0_VARIANT
:= v1
/v2
436 TPLINK_BOARD_ID
:= AD7200
437 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
439 TARGET_DEVICES
+= tplink_ad7200
441 define Device
/tplink_c2600
442 $(call Device
/TpSafeImage
)
443 DEVICE_VENDOR
:= TP-Link
444 DEVICE_MODEL
:= Archer C2600
450 SUPPORTED_DEVICES
+= c2600
451 TPLINK_BOARD_ID
:= C2600
452 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-ramoops
454 TARGET_DEVICES
+= tplink_c2600
456 define Device
/tplink_vr2600v
457 DEVICE_VENDOR
:= TP-Link
458 DEVICE_MODEL
:= Archer VR2600v
460 KERNEL_SUFFIX
:= -uImage
461 KERNEL
= kernel-bin | append-dtb | uImage none
462 KERNEL_NAME
:= zImage
467 BOARD_NAME
:= vr2600v
468 SUPPORTED_DEVICES
+= vr2600v
469 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
470 IMAGE
/sysupgrade.bin
:= pad-extra
512 | append-kernel | \
471 append-rootfs | pad-rootfs | append-metadata
473 TARGET_DEVICES
+= tplink_vr2600v
475 define Device
/ubnt_unifi-ac-hd
476 $(call Device
/FitImageLzma
)
477 DEVICE_VENDOR
:= Ubiquiti
478 DEVICE_MODEL
:= UniFi AC HD
482 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
483 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
484 append-rootfs | pad-rootfs | check-size | append-metadata
486 TARGET_DEVICES
+= ubnt_unifi-ac-hd
488 define Device
/zyxel_nbg6817
489 DEVICE_VENDOR
:= ZyXEL
490 DEVICE_MODEL
:= NBG6817
494 BOARD_NAME
:= nbg6817
496 RAS_ROOTFS_SIZE
:= 20934k
497 RAS_VERSION
:= "V1.99(OWRT.9999)C0"
498 SUPPORTED_DEVICES
+= nbg6817
499 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct e2fsprogs \
501 $(call Device
/ZyXELImage
)
503 TARGET_DEVICES
+= zyxel_nbg6817