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 \
145 ipq-wifi-edgecore_ecw5410
147 TARGET_DEVICES
+= edgecore_ecw5410
149 define Device
/linksys_ea7500-v1
150 $(call Device
/LegacyImage
)
151 $(Device
/kernel-size-migration
)
152 DEVICE_VENDOR
:= Linksys
153 DEVICE_MODEL
:= EA7500
159 KERNEL
= kernel-bin | append-dtb | uImage none | \
160 append-uImage-fakehdr filesystem
162 IMAGES
:= factory.bin sysupgrade.bin
163 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
164 append-ubi | pad-to
$$$$(PAGESIZE
)
165 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
168 TARGET_DEVICES
+= linksys_ea7500-v1
170 define Device
/linksys_ea8500
171 $(call Device
/LegacyImage
)
172 $(Device
/kernel-size-migration
)
173 DEVICE_VENDOR
:= Linksys
174 DEVICE_MODEL
:= EA8500
179 KERNEL
= kernel-bin | append-dtb | uImage none | \
180 append-uImage-fakehdr filesystem
182 SUPPORTED_DEVICES
+= ea8500
184 IMAGES
+= factory.bin
185 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
187 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
190 TARGET_DEVICES
+= linksys_ea8500
192 define Device
/meraki_mr42
193 $(call Device
/FitImage
)
194 DEVICE_VENDOR
:= Cisco Meraki
199 KERNEL_LOADADDR
= 0x44208000
200 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
201 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
202 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
203 -uboot-envtools ath10k-firmware-qca9887-ct \
204 ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
207 TARGET_DEVICES
+= meraki_mr42
209 define Device
/meraki_mr52
210 $(call Device
/FitImage
)
211 DEVICE_VENDOR
:= Cisco Meraki
216 KERNEL_LOADADDR
= 0x44208000
217 DEVICE_DTS_CONFIG
:= config@
2
218 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
219 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
220 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
221 -uboot-envtools ath10k-firmware-qca9887-ct \
222 ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
225 TARGET_DEVICES
+= meraki_mr52
227 define Device
/nec_wg2600hp
228 $(call Device
/LegacyImage
)
230 DEVICE_MODEL
:= Aterm WG2600HP
233 BOARD_NAME
:= wg2600hp
234 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
235 pad-rootfs | append-metadata
236 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
238 TARGET_DEVICES
+= nec_wg2600hp
240 define Device
/nec_wg2600hp3
241 $(call Device
/LegacyImage
)
242 DEVICE_VENDOR
:= NEC Platforms
243 DEVICE_MODEL
:= Aterm WG2600HP3
246 IMAGES
:= sysupgrade.bin
247 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
248 pad-rootfs | append-metadata
249 DEVICE_PACKAGES
:= -kmod-ata-ahci
-kmod-ata-ahci-platform \
250 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
251 -kmod-usb-phy-qcom-dwc3
-kmod-usb3
-kmod-usb-dwc3-qcom \
252 ath10k-firmware-qca9984-ct
254 TARGET_DEVICES
+= nec_wg2600hp3
256 define Device
/netgear_d7800
257 $(call Device
/DniImage
)
258 DEVICE_VENDOR
:= NETGEAR
259 DEVICE_MODEL
:= Nighthawk X4 D7800
262 NETGEAR_BOARD_ID
:= D7800
263 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
267 SUPPORTED_DEVICES
+= d7800
268 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
269 DEVICE_COMPAT_VERSION
:= 2.0
270 DEVICE_COMPAT_MESSAGE
:= Sysupgrade does not work due to rootfs ubi partition size change. \
271 Use factory image with the TFTP recovery flash routine.
273 TARGET_DEVICES
+= netgear_d7800
275 define Device
/netgear_r7500
276 $(call Device
/DniImage
)
277 DEVICE_VENDOR
:= NETGEAR
278 DEVICE_MODEL
:= Nighthawk X4 R7500
282 NETGEAR_BOARD_ID
:= R7500
283 NETGEAR_HW_ID
:= 29764841+0+128+256+3x3
+4x4
287 SUPPORTED_DEVICES
+= r7500
288 DEVICE_PACKAGES
:= ath10k-firmware-qca988x-ct
290 TARGET_DEVICES
+= netgear_r7500
292 define Device
/netgear_r7500v2
293 $(call Device
/DniImage
)
294 DEVICE_VENDOR
:= NETGEAR
295 DEVICE_MODEL
:= Nighthawk X4 R7500
299 NETGEAR_BOARD_ID
:= R7500v2
300 NETGEAR_HW_ID
:= 29764958+0+128+512+3x3
+4x4
303 BOARD_NAME
:= r7500v2
304 SUPPORTED_DEVICES
+= r7500v2
305 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct \
306 ath10k-firmware-qca988x-ct
308 TARGET_DEVICES
+= netgear_r7500v2
310 define Device
/netgear_r7800
311 $(call Device
/DniImage
)
312 DEVICE_VENDOR
:= NETGEAR
313 DEVICE_MODEL
:= Nighthawk X4S R7800
316 NETGEAR_BOARD_ID
:= R7800
317 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
+cascade
321 SUPPORTED_DEVICES
+= r7800
322 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
324 TARGET_DEVICES
+= netgear_r7800
326 define Device
/netgear_xr500
327 $(call Device
/DniImage
)
328 DEVICE_VENDOR
:= NETGEAR
329 DEVICE_MODEL
:= Nighthawk XR500
332 NETGEAR_BOARD_ID
:= XR500
333 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
336 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
338 TARGET_DEVICES
+= netgear_xr500
340 define Device
/qcom_ipq8064-ap148
341 $(call Device
/FitImage
)
342 $(call Device
/UbiFit
)
343 DEVICE_VENDOR
:= Qualcomm
344 DEVICE_MODEL
:= AP148
345 DEVICE_VARIANT
:= standard
347 DEVICE_DTS
:= qcom-ipq8064-ap148
352 SUPPORTED_DEVICES
+= ap148
353 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
355 TARGET_DEVICES
+= qcom_ipq8064-ap148
357 define Device
/qcom_ipq8064-ap148-legacy
358 $(call Device
/LegacyImage
)
359 $(call Device
/UbiFit
)
360 DEVICE_VENDOR
:= Qualcomm
361 DEVICE_MODEL
:= AP148
362 DEVICE_VARIANT
:= legacy
364 DEVICE_DTS
:= qcom-ipq8064-ap148
368 SUPPORTED_DEVICES
:= qcom
,ipq8064-ap148 ap148
369 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
371 TARGET_DEVICES
+= qcom_ipq8064-ap148-legacy
373 define Device
/qcom_ipq8064-ap161
374 $(call Device
/FitImage
)
375 $(call Device
/UbiFit
)
376 DEVICE_VENDOR
:= Qualcomm
377 DEVICE_MODEL
:= AP161
379 DEVICE_DTS
:= qcom-ipq8064-ap161
384 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
386 TARGET_DEVICES
+= qcom_ipq8064-ap161
388 define Device
/qcom_ipq8064-db149
389 $(call Device
/FitImage
)
390 DEVICE_VENDOR
:= Qualcomm
391 DEVICE_MODEL
:= DB149
393 DEVICE_DTS
:= qcom-ipq8064-db149
396 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
398 TARGET_DEVICES
+= qcom_ipq8064-db149
400 define Device
/tplink_ad7200
401 $(call Device
/TpSafeImage
)
402 DEVICE_VENDOR
:= TP-Link
403 DEVICE_MODEL
:= AD7200
404 DEVICE_VARIANT
:= v1
/v2
405 DEVICE_ALT0_VENDOR
:= TP-Link
406 DEVICE_ALT0_MODEL
:= Talon AD7200
407 DEVICE_ALT0_VARIANT
:= v1
/v2
411 TPLINK_BOARD_ID
:= AD7200
412 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-wil6210
414 TARGET_DEVICES
+= tplink_ad7200
416 define Device
/tplink_c2600
417 $(call Device
/TpSafeImage
)
418 DEVICE_VENDOR
:= TP-Link
419 DEVICE_MODEL
:= Archer C2600
425 SUPPORTED_DEVICES
+= c2600
426 TPLINK_BOARD_ID
:= C2600
427 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
429 TARGET_DEVICES
+= tplink_c2600
431 define Device
/tplink_vr2600v
432 DEVICE_VENDOR
:= TP-Link
433 DEVICE_MODEL
:= Archer VR2600v
435 KERNEL_SUFFIX
:= -uImage
436 KERNEL
= kernel-bin | append-dtb | uImage none
437 KERNEL_NAME
:= zImage
442 BOARD_NAME
:= vr2600v
443 SUPPORTED_DEVICES
+= vr2600v
444 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
445 IMAGE
/sysupgrade.bin
:= pad-extra
512 | append-kernel | \
446 append-rootfs | pad-rootfs | append-metadata
448 TARGET_DEVICES
+= tplink_vr2600v
450 define Device
/ubnt_unifi-ac-hd
451 $(call Device
/FitImageLzma
)
452 DEVICE_VENDOR
:= Ubiquiti
453 DEVICE_MODEL
:= UniFi AC HD
457 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
458 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
459 append-rootfs | pad-rootfs | check-size | append-metadata
461 TARGET_DEVICES
+= ubnt_unifi-ac-hd
463 define Device
/zyxel_nbg6817
464 DEVICE_VENDOR
:= ZyXEL
465 DEVICE_MODEL
:= NBG6817
469 BOARD_NAME
:= nbg6817
471 RAS_ROOTFS_SIZE
:= 20934k
472 RAS_VERSION
:= "V1.99(OWRT.9999)C0"
473 SUPPORTED_DEVICES
+= nbg6817
474 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct e2fsprogs \
476 $(call Device
/ZyXELImage
)
478 TARGET_DEVICES
+= zyxel_nbg6817