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
/askey_rt4230w-rev6
69 $(call Device
/LegacyImage
)
70 DEVICE_VENDOR
:= Askey
71 DEVICE_MODEL
:= RT4230W
72 DEVICE_VARIANT
:= REV6
76 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
79 TARGET_DEVICES
+= askey_rt4230w-rev6
81 define Device
/asrock_g10
82 $(call Device
/FitImage
)
85 DEVICE_VENDOR
:= ASRock
90 DEVICE_PACKAGES
:= kmod-i2c-gpio ath10k-firmware-qca99x0-ct
91 IMAGE
/nand-factory.bin
:= append-ubi | edimax-header RN67
93 TARGET_DEVICES
+= asrock_g10
95 define Device
/buffalo_wxr-2533dhp
96 $(call Device
/LegacyImage
)
98 DEVICE_VENDOR
:= Buffalo
99 DEVICE_MODEL
:= WXR-2533DHP
104 IMAGE
/sysupgrade.bin
:= append-rootfs | buffalo-rootfs-cksum | \
105 sysupgrade-tar rootfs
=$$$$@ | append-metadata
106 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
108 TARGET_DEVICES
+= buffalo_wxr-2533dhp
110 define Device
/compex_wpq864
111 $(call Device
/FitImage
)
112 $(call Device
/UbiFit
)
113 DEVICE_VENDOR
:= Compex
114 DEVICE_MODEL
:= WPQ864
118 DEVICE_PACKAGES
:= kmod-gpio-beeper
120 TARGET_DEVICES
+= compex_wpq864
122 define Device
/edgecore_ecw5410
123 $(call Device
/FitImage
)
124 $(call Device
/UbiFit
)
125 DEVICE_VENDOR
:= Edgecore
126 DEVICE_MODEL
:= ECW5410
130 DEVICE_DTS_CONFIG
:= config@v2.0
-ap160
131 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct \
132 ipq-wifi-edgecore_ecw5410
134 TARGET_DEVICES
+= edgecore_ecw5410
136 define Device
/linksys_ea7500-v1
137 $(call Device
/LegacyImage
)
138 $(Device
/kernel-size-migration
)
139 DEVICE_VENDOR
:= Linksys
140 DEVICE_MODEL
:= EA7500
146 KERNEL
= kernel-bin | append-dtb | uImage none | \
147 append-uImage-fakehdr filesystem
149 IMAGES
:= factory.bin sysupgrade.bin
150 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
151 append-ubi | pad-to
$$$$(PAGESIZE
)
152 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
154 TARGET_DEVICES
+= linksys_ea7500-v1
156 define Device
/linksys_ea8500
157 $(call Device
/LegacyImage
)
158 $(Device
/kernel-size-migration
)
159 DEVICE_VENDOR
:= Linksys
160 DEVICE_MODEL
:= EA8500
165 KERNEL
= kernel-bin | append-dtb | uImage none | \
166 append-uImage-fakehdr filesystem
168 SUPPORTED_DEVICES
+= ea8500
170 IMAGES
+= factory.bin
171 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | \
173 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
175 TARGET_DEVICES
+= linksys_ea8500
177 define Device
/meraki_mr42
178 $(call Device
/FitImage
)
179 DEVICE_VENDOR
:= Cisco Meraki
184 KERNEL_LOADADDR
= 0x44208000
185 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
186 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
187 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
188 -uboot-envtools ath10k-firmware-qca9887-ct \
189 ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
192 TARGET_DEVICES
+= meraki_mr42
194 define Device
/meraki_mr52
195 $(call Device
/FitImage
)
196 DEVICE_VENDOR
:= Cisco Meraki
201 KERNEL_LOADADDR
= 0x44208000
202 DEVICE_DTS_CONFIG
:= config@
2
203 DEVICE_PACKAGES
:= -swconfig
-kmod-ata-ahci
-kmod-ata-ahci-platform \
204 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
205 -kmod-phy-qcom-ipq806x-usb
-kmod-usb3
-kmod-usb-dwc3-qcom \
206 -uboot-envtools ath10k-firmware-qca9887-ct \
207 ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
210 TARGET_DEVICES
+= meraki_mr52
212 define Device
/nec_wg2600hp
213 $(call Device
/LegacyImage
)
215 DEVICE_MODEL
:= Aterm WG2600HP
218 BOARD_NAME
:= wg2600hp
219 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
220 pad-rootfs | append-metadata
221 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
223 TARGET_DEVICES
+= nec_wg2600hp
225 define Device
/nec_wg2600hp3
226 $(call Device
/LegacyImage
)
227 DEVICE_VENDOR
:= NEC Platforms
228 DEVICE_MODEL
:= Aterm WG2600HP3
231 IMAGES
:= sysupgrade.bin
232 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | \
233 pad-rootfs | append-metadata
234 DEVICE_PACKAGES
:= -kmod-ata-ahci
-kmod-ata-ahci-platform \
235 -kmod-usb-ohci
-kmod-usb2
-kmod-usb-ledtrig-usbport \
236 -kmod-usb-phy-qcom-dwc3
-kmod-usb3
-kmod-usb-dwc3-qcom \
237 ath10k-firmware-qca9984-ct ipq-wifi-nec_wg2600hp3
239 TARGET_DEVICES
+= nec_wg2600hp3
241 define Device
/netgear_d7800
242 $(call Device
/DniImage
)
243 DEVICE_VENDOR
:= NETGEAR
244 DEVICE_MODEL
:= Nighthawk X4 D7800
247 NETGEAR_BOARD_ID
:= D7800
248 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
252 SUPPORTED_DEVICES
+= d7800
253 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
254 DEVICE_COMPAT_VERSION
:= 2.0
255 DEVICE_COMPAT_MESSAGE
:= Sysupgrade does not work due to rootfs ubi partition size change. \
256 Use factory image with the TFTP recovery flash routine.
258 TARGET_DEVICES
+= netgear_d7800
260 define Device
/netgear_r7500
261 $(call Device
/DniImage
)
262 DEVICE_VENDOR
:= NETGEAR
263 DEVICE_MODEL
:= Nighthawk X4 R7500
267 NETGEAR_BOARD_ID
:= R7500
268 NETGEAR_HW_ID
:= 29764841+0+128+256+3x3
+4x4
272 SUPPORTED_DEVICES
+= r7500
273 DEVICE_PACKAGES
:= ath10k-firmware-qca988x-ct
275 TARGET_DEVICES
+= netgear_r7500
277 define Device
/netgear_r7500v2
278 $(call Device
/DniImage
)
279 DEVICE_VENDOR
:= NETGEAR
280 DEVICE_MODEL
:= Nighthawk X4 R7500
284 NETGEAR_BOARD_ID
:= R7500v2
285 NETGEAR_HW_ID
:= 29764958+0+128+512+3x3
+4x4
288 BOARD_NAME
:= r7500v2
289 SUPPORTED_DEVICES
+= r7500v2
290 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct \
291 ath10k-firmware-qca988x-ct
293 TARGET_DEVICES
+= netgear_r7500v2
295 define Device
/netgear_r7800
296 $(call Device
/DniImage
)
297 DEVICE_VENDOR
:= NETGEAR
298 DEVICE_MODEL
:= Nighthawk X4S R7800
301 NETGEAR_BOARD_ID
:= R7800
302 NETGEAR_HW_ID
:= 29764958+0+128+512+4x4
+4x4
+cascade
306 SUPPORTED_DEVICES
+= r7800
307 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
309 TARGET_DEVICES
+= netgear_r7800
311 define Device
/netgear_xr500
312 $(call Device
/DniImage
)
313 DEVICE_VENDOR
:= NETGEAR
314 DEVICE_MODEL
:= Nighthawk XR500
317 NETGEAR_BOARD_ID
:= XR500
318 NETGEAR_HW_ID
:= 29764958+0+256+512+4x4
+4x4
+cascade
321 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct kmod-ramoops
323 TARGET_DEVICES
+= netgear_xr500
325 define Device
/qcom_ipq8064-ap148
326 $(call Device
/FitImage
)
327 $(call Device
/UbiFit
)
328 DEVICE_VENDOR
:= Qualcomm
329 DEVICE_MODEL
:= AP148
330 DEVICE_VARIANT
:= standard
332 DEVICE_DTS
:= qcom-ipq8064-ap148
337 SUPPORTED_DEVICES
+= ap148
338 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
340 TARGET_DEVICES
+= qcom_ipq8064-ap148
342 define Device
/qcom_ipq8064-ap148-legacy
343 $(call Device
/LegacyImage
)
344 $(call Device
/UbiFit
)
345 DEVICE_VENDOR
:= Qualcomm
346 DEVICE_MODEL
:= AP148
347 DEVICE_VARIANT
:= legacy
349 DEVICE_DTS
:= qcom-ipq8064-ap148
353 SUPPORTED_DEVICES
:= qcom
,ipq8064-ap148 ap148
354 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
356 TARGET_DEVICES
+= qcom_ipq8064-ap148-legacy
358 define Device
/qcom_ipq8064-ap161
359 $(call Device
/FitImage
)
360 $(call Device
/UbiFit
)
361 DEVICE_VENDOR
:= Qualcomm
362 DEVICE_MODEL
:= AP161
364 DEVICE_DTS
:= qcom-ipq8064-ap161
369 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
371 TARGET_DEVICES
+= qcom_ipq8064-ap161
373 define Device
/qcom_ipq8064-db149
374 $(call Device
/FitImage
)
375 DEVICE_VENDOR
:= Qualcomm
376 DEVICE_MODEL
:= DB149
378 DEVICE_DTS
:= qcom-ipq8064-db149
381 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
383 TARGET_DEVICES
+= qcom_ipq8064-db149
385 define Device
/tplink_ad7200
386 $(call Device
/TpSafeImage
)
387 DEVICE_VENDOR
:= TP-Link
388 DEVICE_MODEL
:= AD7200
389 DEVICE_VARIANT
:= v1
/v2
390 DEVICE_ALT0_VENDOR
:= TP-Link
391 DEVICE_ALT0_MODEL
:= Talon AD7200
392 DEVICE_ALT0_VARIANT
:= v1
/v2
396 TPLINK_BOARD_ID
:= AD7200
397 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct kmod-wil6210
399 TARGET_DEVICES
+= tplink_ad7200
401 define Device
/tplink_c2600
402 $(call Device
/TpSafeImage
)
403 DEVICE_VENDOR
:= TP-Link
404 DEVICE_MODEL
:= Archer C2600
410 SUPPORTED_DEVICES
+= c2600
411 TPLINK_BOARD_ID
:= C2600
412 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
414 TARGET_DEVICES
+= tplink_c2600
416 define Device
/tplink_vr2600v
417 DEVICE_VENDOR
:= TP-Link
418 DEVICE_MODEL
:= Archer VR2600v
420 KERNEL_SUFFIX
:= -uImage
421 KERNEL
= kernel-bin | append-dtb | uImage none
422 KERNEL_NAME
:= zImage
427 BOARD_NAME
:= vr2600v
428 SUPPORTED_DEVICES
+= vr2600v
429 DEVICE_PACKAGES
:= ath10k-firmware-qca99x0-ct
430 IMAGE
/sysupgrade.bin
:= pad-extra
512 | append-kernel | \
431 append-rootfs | pad-rootfs | append-metadata
433 TARGET_DEVICES
+= tplink_vr2600v
435 define Device
/ubnt_unifi-ac-hd
436 $(call Device
/FitImageLzma
)
437 DEVICE_VENDOR
:= Ubiquiti
438 DEVICE_MODEL
:= UniFi AC HD
442 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct
443 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
444 append-rootfs | pad-rootfs | check-size | append-metadata
446 TARGET_DEVICES
+= ubnt_unifi-ac-hd
448 define Device
/zyxel_nbg6817
449 DEVICE_VENDOR
:= ZyXEL
450 DEVICE_MODEL
:= NBG6817
454 BOARD_NAME
:= nbg6817
456 RAS_ROOTFS_SIZE
:= 20934k
457 RAS_VERSION
:= "V1.99(OWRT.9999)C0"
458 SUPPORTED_DEVICES
+= nbg6817
459 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct e2fsprogs \
461 $(call Device
/ZyXELImage
)
463 TARGET_DEVICES
+= zyxel_nbg6817