1 DEVICE_VARS += LOADER_FLASH_OFFS TPLINK_BOARD_NAME TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV
7 define Build/loader-okli
8 dd if=$(KDIR)/loader-$(1).gz bs=7680 conv=sync of="$@.new"
13 define Build/loader-okli-compile
14 $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0 KERNEL_CMDLINE="$(CMDLINE)")
17 # combine kernel and rootfs into one image
18 # mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
19 # <type> is "sysupgrade" or "factory"
21 # -a align the rootfs start on an <align> bytes boundary
22 # -j add jffs2 end-of-filesystem markers
23 # -s strip padding from end of the image
24 # -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
25 define Build/mktplinkfw
26 -$(STAGING_DIR_HOST)/bin/mktplinkfw \
27 -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \
28 -m $(TPLINK_HEADER_VERSION) \
33 -a $(call rootfs_align,$(FILESYSTEM)) \
34 $(wordlist 2,$(words $(1)),$(1)) \
35 $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
41 define Build/mktplinkfw-combined
42 $(STAGING_DIR_HOST)/bin/mktplinkfw \
43 -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $(1) \
44 -m $(TPLINK_HEADER_VERSION) \
52 # add RE450 and similar header to the kernel image
53 define Build/mktplinkfw-kernel
54 $(STAGING_DIR_HOST)/bin/mktplinkfw-kernel \
55 -H $(TPLINK_HWID) -N OpenWrt -V $(REVISION) \
56 -L $(KERNEL_LOADADDR) -E $(KERNEL_LOADADDR) \
62 define Build/uImageArcher
63 mkimage -A $(LINUX_KARCH) \
65 -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
66 -n '$(call toupper,$(LINUX_KARCH)) LEDE Linux-$(LINUX_VERSION)' -d $@ $@.new
73 TPLINK_HEADER_VERSION := 1
75 KERNEL := kernel-bin | patch-cmdline | lzma
76 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
77 IMAGES := sysupgrade.bin factory.bin
78 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade
79 IMAGE/factory.bin := append-rootfs | mktplinkfw factory
82 define Device/tplink-nolzma
84 LOADER_FLASH_OFFS := 0x22000
85 COMPILE := loader-$(1).gz
86 COMPILE/loader-$(1).gz := loader-okli-compile
87 KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1)
88 KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | mktplinkfw-combined
91 define Device/tplink-4m
92 $(Device/tplink-nolzma)
93 TPLINK_FLASHLAYOUT := 4M
97 define Device/tplink-8m
98 $(Device/tplink-nolzma)
99 TPLINK_FLASHLAYOUT := 8M
103 define Device/tplink-4mlzma
105 TPLINK_FLASHLAYOUT := 4Mlzma
109 define Device/tplink-8mlzma
111 TPLINK_FLASHLAYOUT := 8Mlzma
115 define Device/tplink-16mlzma
117 TPLINK_FLASHLAYOUT := 16Mlzma
121 define Device/archer-cxx
122 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
123 IMAGES := sysupgrade.bin factory.bin
124 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
125 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
128 define Device/archer-c25-v1
130 DEVICE_TITLE := TP-LINK Archer C25 v1
131 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887
132 BOARDNAME := ARCHER-C25-V1
133 TPLINK_BOARD_NAME := ARCHER-C25-V1
134 DEVICE_PROFILE := ARCHERC25V1
137 MTDPARTS := spi0.0:128k(factory-uboot)ro,64k(u-boot)ro,1536k(kernel),6272k(rootfs),128k(config)ro,64k(art)ro,7808k@0x30000(firmware)
140 define Device/archer-c58-v1
142 DEVICE_TITLE := TP-LINK Archer C58 v1
143 DEVICE_PACKAGES := kmod-ath10k
144 BOARDNAME := ARCHER-C58-V1
145 TPLINK_BOARD_NAME := ARCHER-C58-V1
146 DEVICE_PROFILE := ARCHERC58V1
148 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1344k(kernel),6592k(rootfs),64k(tplink)ro,64k(art)ro,7936k@0x20000(firmware)
151 define Device/archer-c59-v1
153 DEVICE_TITLE := TP-LINK Archer C59 v1
154 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
155 BOARDNAME := ARCHER-C59-V1
156 TPLINK_BOARD_NAME := ARCHER-C59-V1
157 DEVICE_PROFILE := ARCHERC59V1
159 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware)
162 define Device/archer-c60-v1
164 DEVICE_TITLE := TP-LINK Archer C60 v1
165 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
166 BOARDNAME := ARCHER-C60-V1
167 TPLINK_BOARD_NAME := ARCHER-C60-V1
168 DEVICE_PROFILE := ARCHERC60V1
170 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1344k(kernel),6592k(rootfs),64k(tplink)ro,64k(art)ro,7936k@0x20000(firmware)
172 TARGET_DEVICES += archer-c25-v1 archer-c58-v1 archer-c59-v1 archer-c60-v1
174 define Device/archer-c5-v1
175 $(Device/tplink-16mlzma)
176 DEVICE_TITLE := TP-LINK Archer C5 v1
177 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
178 BOARDNAME := ARCHER-C5
179 DEVICE_PROFILE := ARCHERC7
180 TPLINK_HWID := 0xc5000001
183 define Device/archer-c7-v1
184 $(Device/tplink-8mlzma)
185 DEVICE_TITLE := TP-LINK Archer C7 v1
186 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
187 BOARDNAME := ARCHER-C7
188 DEVICE_PROFILE := ARCHERC7
189 TPLINK_HWID := 0x75000001
192 define Device/archer-c7-v2
193 $(Device/tplink-16mlzma)
194 DEVICE_TITLE := TP-LINK Archer C7 v2
195 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
196 BOARDNAME := ARCHER-C7-V2
197 DEVICE_PROFILE := ARCHERC7
198 TPLINK_HWID := 0xc7000002
199 IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
200 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
201 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
204 define Device/archer-c7-v2-il
205 $(Device/tplink-16mlzma)
206 DEVICE_TITLE := TP-LINK Archer C7 v2 (IL)
207 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
208 BOARDNAME := ARCHER-C7-V2
209 DEVICE_PROFILE := ARCHERC7
210 TPLINK_HWID := 0xc7000002
211 TPLINK_HWREV := 0x494c0001
214 define Device/tl-wdr7500-v3
215 $(Device/tplink-8mlzma)
216 DEVICE_TITLE := TP-LINK Archer C7 v3
217 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
218 BOARDNAME := ARCHER-C7
219 DEVICE_PROFILE := ARCHERC7
220 TPLINK_HWID := 0x75000003
222 TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2 archer-c7-v2-il tl-wdr7500-v3
224 define Device/cpe510-520-v1
225 DEVICE_TITLE := TP-LINK CPE510/520 v1
226 DEVICE_PACKAGES := rssileds
227 MTDPARTS := spi0.0:128k(u-boot)ro,64k(pation-table)ro,64k(product-info)ro,1536k(kernel),6144k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware)
230 TPLINK_BOARD_NAME := CPE510
231 DEVICE_PROFILE := CPE510
233 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
234 IMAGES := sysupgrade.bin factory.bin
235 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
236 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
239 define Device/cpe210-220-v1
240 $(Device/cpe510-520-v1)
241 DEVICE_TITLE := TP-LINK CPE210/220 v1
243 TPLINK_BOARD_NAME := CPE210
246 define Device/wbs210-v1
247 $(Device/cpe510-520-v1)
248 DEVICE_TITLE := TP-LINK WBS210 v1
250 TPLINK_BOARD_NAME := WBS210
253 define Device/wbs510-v1
254 $(Device/cpe510-520-v1)
255 DEVICE_TITLE := TP-LINK WBS510 v1
257 TPLINK_BOARD_NAME := WBS510
259 TARGET_DEVICES += cpe210-220-v1 cpe510-520-v1 wbs210-v1 wbs510-v1
261 define Device/eap120-v1
262 DEVICE_TITLE := TP-LINK EAP120 v1
263 MTDPARTS := spi0.0:128k(u-boot)ro,64k(pation-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware)
266 TPLINK_BOARD_NAME := EAP120
267 DEVICE_PROFILE := EAP120
269 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
270 IMAGES := sysupgrade.bin factory.bin
271 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
272 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
274 TARGET_DEVICES += eap120-v1
276 define Device/re450-v1
277 DEVICE_TITLE := TP-LINK RE450 v1
278 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
279 MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),4672k(rootfs),64k(pation-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro,6016k@0x20000(firmware)
282 TPLINK_BOARD_NAME := RE450
283 DEVICE_PROFILE := RE450
285 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
286 IMAGES := sysupgrade.bin factory.bin
287 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
288 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
290 TARGET_DEVICES += re450-v1
292 define Device/tl-mr10u-v1
293 $(Device/tplink-4mlzma)
294 DEVICE_TITLE := TP-LINK TL-MR10U v1
295 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
296 BOARDNAME := TL-MR10U
297 DEVICE_PROFILE := TLMR10U
298 TPLINK_HWID := 0x00100101
299 CONSOLE := ttyATH0,115200
302 define Device/tl-mr11u-v1
303 $(Device/tplink-4mlzma)
304 DEVICE_TITLE := TP-LINK TL-MR11U v1
305 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
306 BOARDNAME := TL-MR11U
307 DEVICE_PROFILE := TLMR11U
308 TPLINK_HWID := 0x00110101
309 CONSOLE := ttyATH0,115200
312 define Device/tl-mr11u-v2
313 $(Device/tl-mr11u-v1)
314 DEVICE_TITLE := TP-LINK TL-MR11U v2
315 TPLINK_HWID := 0x00110102
318 define Device/tl-mr12u-v1
319 $(Device/tplink-4mlzma)
320 DEVICE_TITLE := TP-LINK TL-MR12U v1
321 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
322 BOARDNAME := TL-MR13U
323 DEVICE_PROFILE := TLMR12U
324 TPLINK_HWID := 0x00120101
325 CONSOLE := ttyATH0,115200
328 define Device/tl-mr13u-v1
329 $(Device/tl-mr12u-v1)
330 DEVICE_TITLE := TP-LINK TL-MR13U v1
331 DEVICE_PROFILE := TLMR13U
332 TPLINK_HWID := 0x00130101
334 TARGET_DEVICES += tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1
336 define Device/tl-mr3020-v1
337 $(Device/tplink-4mlzma)
338 DEVICE_TITLE := TP-LINK TL-MR3020 v1
339 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
340 BOARDNAME := TL-MR3020
341 DEVICE_PROFILE := TLMR3020
342 TPLINK_HWID := 0x30200001
343 CONSOLE := ttyATH0,115200
346 define Device/tl-mr3040-v1
347 $(Device/tl-mr3020-v1)
348 DEVICE_TITLE := TP-LINK TL-MR3040 v1
349 BOARDNAME := TL-MR3040
350 DEVICE_PROFILE := TLMR3040
351 TPLINK_HWID := 0x30400001
354 define Device/tl-mr3040-v2
355 $(Device/tl-mr3040-v1)
356 DEVICE_TITLE := TP-LINK TL-MR3040 v2
357 BOARDNAME := TL-MR3040-v2
358 TPLINK_HWID := 0x30400002
361 define Device/tl-mr3220-v1
363 DEVICE_TITLE := TP-LINK TL-MR3220 v1
364 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
365 BOARDNAME := TL-MR3220
366 DEVICE_PROFILE := TLMR3220
367 TPLINK_HWID := 0x32200001
370 define Device/tl-mr3220-v2
371 $(Device/tplink-4mlzma)
372 DEVICE_TITLE := TP-LINK TL-MR3220 v2
373 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
374 BOARDNAME := TL-MR3220-v2
375 DEVICE_PROFILE := TLMR3220
376 TPLINK_HWID := 0x32200002
377 CONSOLE := ttyATH0,115200
380 define Device/tl-mr3420-v1
382 DEVICE_TITLE := TP-LINK TL-MR3420 v1
383 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
384 BOARDNAME := TL-MR3420
385 DEVICE_PROFILE := TLMR3420
386 TPLINK_HWID := 0x34200001
389 define Device/tl-mr3420-v2
390 $(Device/tplink-4mlzma)
391 DEVICE_TITLE := TP-LINK TL-MR3420 v2
392 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
393 BOARDNAME := TL-MR3420-v2
394 DEVICE_PROFILE := TLMR3420
395 TPLINK_HWID := 0x34200002
397 TARGET_DEVICES += tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-v2 tl-mr3420-v1 tl-mr3420-v2
399 define Device/tl-mr6400-v1
400 $(Device/tplink-8mlzma)
401 DEVICE_TITLE := TP-LINK TL-MR6400 v1
402 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
403 BOARDNAME := TL-MR6400
404 DEVICE_PROFILE := TLMR6400
405 TPLINK_HWID := 0x64000001
407 TARGET_DEVICES += tl-mr6400-v1
409 define Device/tl-wa701nd-v1
411 DEVICE_TITLE := TP-LINK TL-WA701N/ND v1
412 BOARDNAME := TL-WA901ND
413 DEVICE_PROFILE := TLWA701
414 TPLINK_HWID := 0x07010001
417 define Device/tl-wa701nd-v2
418 $(Device/tplink-4mlzma)
419 DEVICE_TITLE := TP-LINK TL-WA701N/ND v2
420 BOARDNAME := TL-WA701ND-v2
421 DEVICE_PROFILE := TLWA701
422 TPLINK_HWID := 0x07010002
423 CONSOLE := ttyATH0,115200
426 define Device/tl-wa7210n-v2
427 $(Device/tplink-4mlzma)
428 DEVICE_TITLE := TP-LINK TL-WA7210N v2
429 DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev
430 BOARDNAME := TL-WA7210N-v2
431 DEVICE_PROFILE := TLWA7210
432 TPLINK_HWID := 0x72100002
433 CONSOLE := ttyATH0,115200
436 define Device/tl-wa730re-v1
438 DEVICE_TITLE := TP-LINK TL-WA730RE v1
439 BOARDNAME := TL-WA901ND
440 DEVICE_PROFILE := TLWA730RE
441 TPLINK_HWID := 0x07300001
444 define Device/tl-wa750re-v1
445 $(Device/tplink-4mlzma)
446 DEVICE_TITLE := TP-LINK TL-WA750RE v1
447 DEVICE_PACKAGES := rssileds
448 BOARDNAME := TL-WA750RE
449 DEVICE_PROFILE := TLWA750
450 TPLINK_HWID := 0x07500001
453 define Device/tl-wa7510n-v1
455 DEVICE_TITLE := TP-LINK TL-WA7510N v1
456 BOARDNAME := TL-WA7510N
457 DEVICE_PROFILE := TLWA7510
458 TPLINK_HWID := 0x75100001
460 TARGET_DEVICES += tl-wa701nd-v1 tl-wa701nd-v2 tl-wa7210n-v2 tl-wa730re-v1 tl-wa750re-v1 tl-wa7510n-v1
462 define Device/tl-wa801nd-v1
464 DEVICE_TITLE := TP-LINK TL-WA801N/ND v1
465 BOARDNAME := TL-WA901ND
466 DEVICE_PROFILE := TLWA801
467 TPLINK_HWID := 0x08010001
470 define Device/tl-wa801nd-v2
471 $(Device/tplink-4mlzma)
472 DEVICE_TITLE := TP-LINK TL-WA801N/ND v2
473 BOARDNAME := TL-WA801ND-v2
474 DEVICE_PROFILE := TLWA801
475 TPLINK_HWID := 0x08010002
478 define Device/tl-wa801nd-v3
479 $(Device/tplink-4mlzma)
480 DEVICE_TITLE := TP-LINK TL-WA801N/ND v3
481 BOARDNAME := TL-WA801ND-v3
482 DEVICE_PROFILE := TLWA801
483 TPLINK_HWID := 0x08010003
486 define Device/tl-wa830re-v1
488 DEVICE_TITLE := TP-LINK TL-WA830RE v1
489 BOARDNAME := TL-WA901ND
490 DEVICE_PROFILE := TLWA830
491 TPLINK_HWID := 0x08300010
494 define Device/tl-wa830re-v2
495 $(Device/tplink-4mlzma)
496 DEVICE_TITLE := TP-LINK TL-WA830RE v2
497 BOARDNAME := TL-WA830RE-v2
498 DEVICE_PROFILE := TLWA830
499 TPLINK_HWID := 0x08300002
502 define Device/tl-wa850re-v1
503 $(Device/tplink-4mlzma)
504 DEVICE_TITLE := TP-LINK TL-WA850RE v1
505 BOARDNAME := TL-WA850RE
506 DEVICE_PROFILE := TLWA850
507 TPLINK_HWID := 0x08500001
510 define Device/tl-wa85xre
512 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
513 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
514 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
515 MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware)
518 define Device/tl-wa850re-v2
520 DEVICE_TITLE := TP-LINK TL-WA850RE v2
521 DEVICE_PACKAGES := rssileds
522 BOARDNAME := TL-WA850RE-V2
523 DEVICE_PROFILE := TLWA850
524 TPLINK_BOARD_NAME := TLWA850REV2
525 TPLINK_HWID := 0x08500002
528 define Device/tl-wa855re-v1
530 DEVICE_TITLE := TP-LINK TL-WA855RE v1
531 BOARDNAME := TL-WA855RE-v1
532 DEVICE_PROFILE := TLWA855RE
533 TPLINK_HWID := 0x08550001
534 TPLINK_BOARD_NAME := TLWA855REV1
537 define Device/tl-wa860re-v1
538 $(Device/tplink-4mlzma)
539 DEVICE_TITLE := TP-LINK TL-WA860RE v1
540 BOARDNAME := TL-WA860RE
541 DEVICE_PROFILE := TLWA860
542 TPLINK_HWID := 0x08600001
544 TARGET_DEVICES += tl-wa801nd-v1 tl-wa801nd-v2 tl-wa801nd-v3 tl-wa830re-v1 tl-wa830re-v2 tl-wa850re-v1 tl-wa850re-v2 tl-wa855re-v1 tl-wa860re-v1
546 define Device/tl-wa901nd-v1
548 DEVICE_TITLE := TP-LINK TL-WA901N/ND v1
549 BOARDNAME := TL-WA901ND
550 DEVICE_PROFILE := TLWA901
551 TPLINK_HWID := 0x09010001
554 define Device/tl-wa901nd-v2
556 DEVICE_TITLE := TP-LINK TL-WA901N/ND v2
557 BOARDNAME := TL-WA901ND-v2
558 DEVICE_PROFILE := TLWA901
559 TPLINK_HWID := 0x09010002
562 define Device/tl-wa901nd-v3
563 $(Device/tplink-4mlzma)
564 DEVICE_TITLE := TP-LINK TL-WA901N/ND v3
565 BOARDNAME := TL-WA901ND-v3
566 DEVICE_PROFILE := TLWA901
567 TPLINK_HWID := 0x09010003
570 define Device/tl-wa901nd-v4
571 $(Device/tplink-4mlzma)
572 DEVICE_TITLE := TP-LINK TL-WA901N/ND v4
573 BOARDNAME := TL-WA901ND-v4
574 DEVICE_PROFILE := TLWA901
575 TPLINK_HWID := 0x09010004
576 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU
578 TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
580 define Device/tl-wdr3320-v2
581 $(Device/tplink-4mlzma)
582 DEVICE_TITLE := TP-LINK TL-WDR3320 v2
583 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
584 BOARDNAME := TL-WDR3320-v2
585 DEVICE_PROFILE := TLWDR3320V2
586 TPLINK_HWID := 0x33200002
587 TPLINK_HEADER_VERSION := 2
590 define Device/tl-wdr3500-v1
591 $(Device/tplink-8mlzma)
592 DEVICE_TITLE := TP-LINK TL-WDR3500 v1
593 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
594 BOARDNAME := TL-WDR3500
595 DEVICE_PROFILE := TLWDR4300
596 TPLINK_HWID := 0x35000001
599 define Device/tl-wdr3600-v1
600 $(Device/tl-wdr3500-v1)
601 DEVICE_TITLE := TP-LINK TL-WDR3600 v1
602 BOARDNAME := TL-WDR4300
603 TPLINK_HWID := 0x36000001
604 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
607 define Device/tl-wdr4300-v1
608 $(Device/tl-wdr3600-v1)
609 DEVICE_TITLE := TP-LINK TL-WDR4300 v1
610 TPLINK_HWID := 0x43000001
613 define Device/tl-wdr4300-v1-il
614 $(Device/tl-wdr3500-v1)
615 DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL)
616 BOARDNAME := TL-WDR4300
617 TPLINK_HWID := 0x43008001
620 define Device/tl-wdr4310-v1
621 $(Device/tl-wdr4300-v1-il)
622 DEVICE_TITLE := TP-LINK TL-WDR4310 v1
623 TPLINK_HWID := 0x43100001
626 define Device/tl-wdr4900-v2
627 $(Device/tplink-8mlzma)
628 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
629 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
630 BOARDNAME := TL-WDR4900-v2
631 DEVICE_PROFILE := TLWDR4900V2
632 TPLINK_HWID := 0x49000002
635 define Device/tl-wdr6500-v2
636 $(Device/tplink-8mlzma)
637 DEVICE_TITLE := TP-LINK TL-WDR6500 v2
638 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
639 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
640 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | mktplinkfw-combined
641 BOARDNAME := TL-WDR6500-v2
642 DEVICE_PROFILE := TLWDR6500V2
643 TPLINK_HWID := 0x65000002
644 TPLINK_HEADER_VERSION := 2
647 define Device/mw4530r-v1
648 $(Device/tl-wdr4300-v1)
649 DEVICE_TITLE := Mercury MW4530R v1
650 TPLINK_HWID := 0x45300001
652 TARGET_DEVICES += tl-wdr3320-v2 tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 tl-wdr4900-v2 tl-wdr6500-v2 mw4530r-v1
654 define Device/tl-wpa8630-v1
655 $(Device/tplink-8mlzma)
656 DEVICE_TITLE := TP-LINK TL-WPA8630 v1
657 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
658 BOARDNAME := TL-WPA8630
659 DEVICE_PROFILE := TL-WPA8630
660 TPLINK_HWID := 0x86300001
662 TARGET_DEVICES += tl-wpa8630-v1
664 define Device/tl-wr1041n-v2
665 $(Device/tplink-4mlzma)
666 DEVICE_TITLE := TP-LINK TL-WR1041N v2
667 BOARDNAME := TL-WR1041N-v2
668 DEVICE_PROFILE := TLWR1041
669 TPLINK_HWID := 0x10410002
671 TARGET_DEVICES += tl-wr1041n-v2
673 define Device/tl-wr1043nd-v1
675 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
676 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
677 BOARDNAME := TL-WR1043ND
678 DEVICE_PROFILE := TLWR1043
679 TPLINK_HWID := 0x10430001
682 define Device/tl-wr1043nd-v2
683 $(Device/tplink-8mlzma)
684 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
685 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
686 BOARDNAME := TL-WR1043ND-v2
687 DEVICE_PROFILE := TLWR1043
688 TPLINK_HWID := 0x10430002
691 define Device/tl-wr1043nd-v3
692 $(Device/tl-wr1043nd-v2)
693 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
694 TPLINK_HWID := 0x10430003
697 define Device/tl-wr1043nd-v4
699 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
700 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
701 BOARDNAME := TL-WR1043ND-v4
702 DEVICE_PROFILE := TLWR1043
703 TPLINK_HWID := 0x10430004
704 TPLINK_FLASHLAYOUT := 16Msafeloader
705 MTDPARTS := spi0.0:128k(u-boot)ro,1536k(kernel),14016k(rootfs),128k(product-info)ro,320k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(ART)ro,15552k@0x20000(firmware)
707 TPLINK_BOARD_NAME := TLWR1043NDV4
708 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
709 IMAGES := sysupgrade.bin factory.bin
710 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
711 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
714 define Device/tl-wr2543-v1
715 $(Device/tplink-8mlzma)
716 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
717 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
718 BOARDNAME := TL-WR2543N
719 DEVICE_PROFILE := TLWR2543
720 TPLINK_HWID := 0x25430001
721 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
722 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
724 TARGET_DEVICES += tl-wr1043nd-v1 tl-wr1043nd-v2 tl-wr1043nd-v3 tl-wr1043nd-v4 tl-wr2543-v1
726 define Device/tl-wr703n-v1
727 $(Device/tplink-4mlzma)
728 DEVICE_TITLE := TP-LINK TL-WR703N v1
729 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
730 BOARDNAME := TL-WR703N
731 DEVICE_PROFILE := TLWR703
732 TPLINK_HWID := 0x07030101
733 CONSOLE := ttyATH0,115200
736 define Device/tl-wr710n-v1
737 $(Device/tplink-8mlzma)
738 DEVICE_TITLE := TP-LINK TL-WR710N v1
739 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
740 BOARDNAME := TL-WR710N
741 DEVICE_PROFILE := TLWR710
742 TPLINK_HWID := 0x07100001
743 CONSOLE := ttyATH0,115200
746 define Device/tl-wr710n-v2
747 $(Device/tplink-4mlzma)
748 DEVICE_TITLE := TP-LINK TL-WR710N v2
749 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
750 BOARDNAME := TL-WR710N
751 DEVICE_PROFILE := TLWR710
752 TPLINK_HWID := 0x07100002
753 CONSOLE := ttyATH0,115200
756 define Device/tl-wr710n-v2.1
757 $(Device/tl-wr710n-v1)
758 DEVICE_TITLE := TP-LINK TL-WR710N v2.1
759 TPLINK_HWID := 0x07100002
760 TPLINK_HWREV := 0x00000002
763 define Device/tl-wr720n-v3
764 $(Device/tplink-4mlzma)
765 DEVICE_TITLE := TP-LINK TL-WR720N v3
766 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
767 BOARDNAME := TL-WR720N-v3
768 DEVICE_PROFILE := TLWR720
769 TPLINK_HWID := 0x07200103
770 CONSOLE := ttyATH0,115200
773 define Device/tl-wr720n-v4
774 $(Device/tl-wr720n-v3)
775 DEVICE_TITLE := TP-LINK TL-WR720N v4
776 TPLINK_HWID := 0x07200104
778 TARGET_DEVICES += tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr710n-v2.1 tl-wr720n-v3 tl-wr720n-v4
780 define Device/tl-wr740n-v1
782 DEVICE_TITLE := TP-LINK TL-WR740N/ND v1
783 BOARDNAME := TL-WR741ND
784 DEVICE_PROFILE := TLWR740
785 TPLINK_HWID := 0x07400001
788 define Device/tl-wr740n-v3
789 $(Device/tl-wr740n-v1)
790 DEVICE_TITLE := TP-LINK TL-WR740N/ND v3
791 TPLINK_HWID := 0x07400003
794 define Device/tl-wr740n-v4
795 $(Device/tplink-4mlzma)
796 DEVICE_TITLE := TP-LINK TL-WR740N/ND v4
797 BOARDNAME := TL-WR741ND-v4
798 DEVICE_PROFILE := TLWR740
799 TPLINK_HWID := 0x07400004
800 CONSOLE := ttyATH0,115200
803 define Device/tl-wr740n-v5
804 $(Device/tl-wr740n-v4)
805 DEVICE_TITLE := TP-LINK TL-WR740N/ND v5
806 TPLINK_HWID := 0x07400005
809 define Device/tl-wr740n-v6
810 $(Device/tplink-4mlzma)
811 DEVICE_TITLE := TP-LINK TL-WR740N/ND v6
812 BOARDNAME := TL-WR740N-v6
813 DEVICE_PROFILE := TLWR740
814 TPLINK_HWID := 0x07400006
816 TARGET_DEVICES += tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6
818 define Device/tl-wr741nd-v1
820 DEVICE_TITLE := TP-LINK TL-WR741N/ND v1
821 BOARDNAME := TL-WR741ND
822 DEVICE_PROFILE := TLWR741
823 TPLINK_HWID := 0x07410001
826 define Device/tl-wr741nd-v2
827 $(Device/tl-wr741nd-v1)
828 DEVICE_TITLE := TP-LINK TL-WR741N/ND v2
831 define Device/tl-wr741nd-v4
832 $(Device/tplink-4mlzma)
833 DEVICE_TITLE := TP-LINK TL-WR741N/ND v4
834 BOARDNAME := TL-WR741ND-v4
835 DEVICE_PROFILE := TLWR741
836 TPLINK_HWID := 0x07410004
837 CONSOLE := ttyATH0,115200
840 define Device/tl-wr741nd-v5
841 $(Device/tl-wr741nd-v4)
842 DEVICE_TITLE := TP-LINK TL-WR741N/ND v5
843 TPLINK_HWID := 0x07400005
846 define Device/tl-wr743nd-v1
848 DEVICE_TITLE := TP-LINK TL-WR743N/ND v1
849 BOARDNAME := TL-WR741ND
850 DEVICE_PROFILE := TLWR743
851 TPLINK_HWID := 0x07430001
854 define Device/tl-wr743nd-v2
855 $(Device/tl-wr741nd-v4)
856 DEVICE_TITLE := TP-LINK TL-WR743N/ND v2
857 DEVICE_PROFILE := TLWR743
858 TPLINK_HWID := 0x07430002
860 TARGET_DEVICES += tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2
862 define Device/tl-wr802n-v1
863 $(Device/tplink-4mlzma)
864 DEVICE_TITLE := TP-LINK TL-WR802N v1
865 BOARDNAME := TL-WR802N-v1
866 DEVICE_PROFILE := TLWR802
867 TPLINK_HWID := 0x08020001
871 define Device/tl-wr802n-v2
872 $(Device/tplink-4mlzma)
873 DEVICE_TITLE := TP-LINK TL-WR802N v2
874 BOARDNAME := TL-WR802N-v2
875 DEVICE_PROFILE := TLWR802
876 TPLINK_HWID := 0x08020002
878 IMAGES += factory-us.bin factory-eu.bin
879 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
880 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
883 define Device/tl-wr810n-v1
884 $(Device/tplink-8mlzma)
885 DEVICE_TITLE := TP-LINK TL-WR810N v1
886 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
887 BOARDNAME := TL-WR810N
888 DEVICE_PROFILE := TLWR810
889 TPLINK_HWID := 0x08100001
892 define Device/tl-wr840n-v2
893 $(Device/tplink-4mlzma)
894 DEVICE_TITLE := TP-LINK TL-WR840N v2
895 BOARDNAME := TL-WR840N-v2
896 DEVICE_PROFILE := TLWR840
897 TPLINK_HWID := 0x08400002
898 IMAGES += factory-eu.bin
899 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
902 define Device/tl-wr840n-v3
903 $(Device/tl-wr840n-v2)
904 DEVICE_TITLE := TP-LINK TL-WR840N v3
905 BOARDNAME := TL-WR840N-v3
906 TPLINK_HWID := 0x08400003
908 TARGET_DEVICES += tl-wr802n-v1 tl-wr802n-v2 tl-wr810n-v1 tl-wr840n-v2 tl-wr840n-v3
910 define Device/tl-wr841-v1.5
912 DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5
913 BOARDNAME := TL-WR841N-v1.5
914 DEVICE_PROFILE := TLWR841
915 TPLINK_HWID := 0x08410002
919 define Device/tl-wr841-v3
921 DEVICE_TITLE := TP-LINK TL-WR841N/ND v3
922 BOARDNAME := TL-WR941ND
923 DEVICE_PROFILE := TLWR841
924 TPLINK_HWID := 0x08410003
928 define Device/tl-wr841-v5
930 DEVICE_TITLE := TP-LINK TL-WR841N/ND v5
931 BOARDNAME := TL-WR741ND
932 DEVICE_PROFILE := TLWR841
933 TPLINK_HWID := 0x08410005
936 define Device/tl-wr841-v7
938 DEVICE_TITLE := TP-LINK TL-WR841N/ND v7
939 BOARDNAME := TL-WR841N-v7
940 DEVICE_PROFILE := TLWR841
941 TPLINK_HWID := 0x08410007
944 define Device/tl-wr841-v8
945 $(Device/tplink-4mlzma)
946 DEVICE_TITLE := TP-LINK TL-WR841N/ND v8
947 BOARDNAME := TL-WR841N-v8
948 DEVICE_PROFILE := TLWR841
949 TPLINK_HWID := 0x08410008
952 define Device/tl-wr841-v9
953 $(Device/tplink-4mlzma)
954 DEVICE_TITLE := TP-LINK TL-WR841N/ND v9
955 BOARDNAME := TL-WR841N-v9
956 DEVICE_PROFILE := TLWR841
957 TPLINK_HWID := 0x08410009
960 define Device/tl-wr841-v10
961 $(Device/tl-wr841-v9)
962 DEVICE_TITLE := TP-LINK TL-WR841N/ND v10
963 TPLINK_HWID := 0x08410010
966 define Device/tl-wr841-v11
967 $(Device/tplink-4mlzma)
968 DEVICE_TITLE := TP-LINK TL-WR841N/ND v11
969 BOARDNAME := TL-WR841N-v11
970 DEVICE_PROFILE := TLWR841
971 TPLINK_HWID := 0x08410011
972 IMAGES += factory-us.bin factory-eu.bin
973 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
974 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
977 define Device/tl-wr841-v12
978 $(Device/tl-wr841-v11)
979 DEVICE_TITLE := TP-LINK TL-WR841N/ND v12
980 TPLINK_HWID := 0x08410012
982 TARGET_DEVICES += tl-wr841-v1.5 tl-wr841-v3 tl-wr841-v5 tl-wr841-v7 tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr841-v11 tl-wr841-v12
984 define Device/tl-wr842n-v1
986 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
987 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
988 BOARDNAME := TL-MR3420
989 DEVICE_PROFILE := TLWR842
990 TPLINK_HWID := 0x08420001
993 define Device/tl-wr842n-v2
994 $(Device/tplink-8mlzma)
995 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
996 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
997 BOARDNAME := TL-WR842N-v2
998 DEVICE_PROFILE := TLWR842
999 TPLINK_HWID := 0x8420002
1002 define Device/tl-wr842n-v3
1003 $(Device/tplink-16mlzma)
1004 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
1005 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1006 BOARDNAME := TL-WR842N-v3
1007 DEVICE_PROFILE := TLWR842
1008 TPLINK_HWID := 0x08420003
1011 define Device/tl-wr843nd-v1
1012 $(Device/tplink-4mlzma)
1013 DEVICE_TITLE := TP-LINK TL-WR843N/ND v1
1014 BOARDNAME := TL-WR841N-v8
1015 DEVICE_PROFILE := TLWR843
1016 TPLINK_HWID := 0x08430001
1019 define Device/tl-wr847n-v8
1020 $(Device/tplink-4mlzma)
1021 DEVICE_TITLE := TP-LINK TL-WR847N/ND v8
1022 BOARDNAME := TL-WR841N-v8
1023 DEVICE_PROFILE := TLWR841
1024 TPLINK_HWID := 0x08470008
1026 TARGET_DEVICES += tl-wr842n-v1 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8
1028 define Device/tl-wr940n-v4
1029 $(Device/tplink-4mlzma)
1030 DEVICE_TITLE := TP-LINK TL-WR940N v4
1031 BOARDNAME := TL-WR940N-v4
1032 DEVICE_PROFILE := TLWR941
1033 TPLINK_HWID := 0x09400004
1034 IMAGES += factory-us.bin factory-eu.bin
1035 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
1036 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
1039 define Device/tl-wr941nd-v2
1041 DEVICE_TITLE := TP-LINK TL-WR941N/ND v2
1042 BOARDNAME := TL-WR941ND
1043 DEVICE_PROFILE := TLWR941
1044 TPLINK_HWID := 0x09410002
1048 define Device/tl-wr941nd-v3
1049 $(Device/tl-wr941nd-v2)
1050 DEVICE_TITLE := TP-LINK TL-WR941N/ND v3
1053 define Device/tl-wr941nd-v4
1055 DEVICE_TITLE := TP-LINK TL-WR941N/ND v4
1056 BOARDNAME := TL-WR741ND
1057 DEVICE_PROFILE := TLWR941
1058 TPLINK_HWID := 0x09410004
1061 define Device/tl-wr941nd-v5
1062 $(Device/tplink-4mlzma)
1063 DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
1064 BOARDNAME := TL-WR941ND-v5
1065 DEVICE_PROFILE := TLWR941
1066 TPLINK_HWID := 0x09410005
1069 define Device/tl-wr941nd-v6
1070 $(Device/tplink-4mlzma)
1071 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6
1072 BOARDNAME := TL-WR941ND-v6
1073 DEVICE_PROFILE := TLWR941
1074 TPLINK_HWID := 0x09410006
1077 # Chinese version (unlike European) is similar to the TL-WDR3500
1078 define Device/tl-wr941nd-v6-cn
1079 $(Device/tplink-4mlzma)
1080 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN)
1081 BOARDNAME := TL-WDR3500
1082 DEVICE_PROFILE := TLWR941
1083 TPLINK_HWID := 0x09410006
1086 define Device/tl-wr942n-v1
1087 DEVICE_TITLE := TP-LINK TL-WR942N v1
1088 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1089 BOARDNAME := TL-WR942N-V1
1090 TPLINK_BOARD_NAME := TLWR942NV1
1091 DEVICE_PROFILE := TLWR942
1092 IMAGE_SIZE := 14464k
1093 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
1094 IMAGES := sysupgrade.bin factory.bin
1095 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
1096 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
1097 MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),13120k(rootfs),64k(product-info)ro,64k(partition-table)ro,256k(oem-config)ro,1344k(oem-vars)ro,64k(ART)ro,14464k@0x20000(firmware)
1099 TARGET_DEVICES += tl-wr940n-v4 tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn tl-wr942n-v1