1 DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_BOARD_NAME
3 # combine kernel and rootfs into one image
4 # mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
5 # <type> is "sysupgrade" or "factory"
7 # -a align the rootfs start on an <align> bytes boundary
8 # -j add jffs2 end-of-filesystem markers
9 # -s strip padding from end of the image
10 # -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
11 define Build/mktplinkfw
12 -$(STAGING_DIR_HOST)/bin/mktplinkfw \
13 -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \
14 -m $(TPLINK_HEADER_VERSION) \
19 -a $(call rootfs_align,$(FILESYSTEM)) \
20 $(wordlist 2,$(words $(1)),$(1)) \
21 $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
27 define Build/mktplinkfw-combined
28 $(STAGING_DIR_HOST)/bin/mktplinkfw \
29 -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $(1) \
30 -m $(TPLINK_HEADER_VERSION) \
38 # add RE450 and similar header to the kernel image
39 define Build/mktplinkfw-kernel
40 $(STAGING_DIR_HOST)/bin/mktplinkfw-kernel \
41 -H $(TPLINK_HWID) -N OpenWrt -V $(REVISION) \
42 -L $(KERNEL_LOADADDR) -E $(KERNEL_LOADADDR) \
48 define Build/uImageArcher
49 mkimage -A $(LINUX_KARCH) \
51 -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
52 -n '$(call toupper,$(LINUX_KARCH)) LEDE Linux-$(LINUX_VERSION)' -d $@ $@.new
59 TPLINK_HEADER_VERSION := 1
61 KERNEL := kernel-bin | patch-cmdline | lzma
62 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
63 IMAGES := sysupgrade.bin factory.bin
64 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade
65 IMAGE/factory.bin := append-rootfs | mktplinkfw factory
68 define Device/tplink-nolzma
70 LOADER_FLASH_OFFS := 0x22000
71 COMPILE := loader-$(1).gz
72 COMPILE/loader-$(1).gz := loader-okli-compile
73 KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1)
74 KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | mktplinkfw-combined
77 define Device/tplink-4m
78 $(Device/tplink-nolzma)
79 TPLINK_FLASHLAYOUT := 4M
83 define Device/tplink-8m
84 $(Device/tplink-nolzma)
85 TPLINK_FLASHLAYOUT := 8M
89 define Device/tplink-4mlzma
91 TPLINK_FLASHLAYOUT := 4Mlzma
95 define Device/tplink-8mlzma
97 TPLINK_FLASHLAYOUT := 8Mlzma
101 define Device/tplink-16mlzma
103 TPLINK_FLASHLAYOUT := 16Mlzma
107 define Device/archer-c59-v1
108 DEVICE_TITLE := TP-LINK Archer C59 v1
109 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k
110 BOARDNAME := ARCHER-C59-V1
111 TPLINK_BOARD_NAME := ARCHER-C59-V1
112 DEVICE_PROFILE := ARCHERC59V1
114 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
115 IMAGES := sysupgrade.bin factory.bin
116 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
117 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
118 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware)
120 TARGET_DEVICES += archer-c59-v1
122 define Device/archer-c60-v1
123 DEVICE_TITLE := TP-LINK Archer C60 v1
124 DEVICE_PACKAGES := kmod-ath10k
125 BOARDNAME := ARCHER-C60-V1
126 TPLINK_BOARD_NAME := ARCHER-C60-V1
127 DEVICE_PROFILE := ARCHERC60V1
129 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
130 IMAGES := sysupgrade.bin factory.bin
131 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
132 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
133 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1344k(kernel),6592k(rootfs),64k(tplink)ro,64k(art)ro,7936k@0x20000(firmware)
135 TARGET_DEVICES += archer-c60-v1
137 define Device/cpe510-520
138 DEVICE_TITLE := TP-LINK CPE510/520
139 DEVICE_PACKAGES := rssileds
140 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)
143 TPLINK_BOARD_NAME := CPE510
144 DEVICE_PROFILE := CPE510
146 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
147 IMAGES := sysupgrade.bin factory.bin
148 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
149 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
152 define Device/cpe210-220
154 DEVICE_TITLE := TP-LINK CPE210/220
155 DEVICE_PACKAGES := rssileds
157 TPLINK_BOARD_NAME := CPE210
162 DEVICE_TITLE := TP-LINK WBS210
163 DEVICE_PACKAGES := rssileds
165 TPLINK_BOARD_NAME := WBS210
170 DEVICE_TITLE := TP-LINK WBS510
171 DEVICE_PACKAGES := rssileds
173 TPLINK_BOARD_NAME := WBS510
175 TARGET_DEVICES += cpe210-220 cpe510-520 wbs210 wbs510
178 DEVICE_TITLE := TP-LINK RE450
179 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
180 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)
183 TPLINK_BOARD_NAME := RE450
184 DEVICE_PROFILE := RE450
186 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
187 IMAGES := sysupgrade.bin factory.bin
188 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
189 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
191 TARGET_DEVICES += re450
194 DEVICE_TITLE := TP-LINK EAP120
195 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)
198 TPLINK_BOARD_NAME := EAP120
199 DEVICE_PROFILE := EAP120
201 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
202 IMAGES := sysupgrade.bin factory.bin
203 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
204 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
206 TARGET_DEVICES += eap120
208 define Device/tl-wdr4300-v1
209 $(Device/tplink-8mlzma)
210 DEVICE_TITLE := TP-LINK TL-WDR4300 v1
211 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
212 BOARDNAME := TL-WDR4300
213 DEVICE_PROFILE := TLWDR4300
214 TPLINK_HWID := 0x43000001
215 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
218 define Device/tl-wdr3500-v1
219 $(Device/tplink-8mlzma)
220 DEVICE_TITLE := TP-LINK TL-WDR3500 v1
221 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
222 BOARDNAME := TL-WDR3500
223 DEVICE_PROFILE := TLWDR4300
224 TPLINK_HWID := 0x35000001
227 define Device/tl-wdr3600-v1
228 $(Device/tplink-8mlzma)
229 DEVICE_TITLE := TP-LINK TL-WDR3600 v1
230 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
231 BOARDNAME := TL-WDR4300
232 DEVICE_PROFILE := TLWDR4300
233 TPLINK_HWID := 0x36000001
234 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
237 define Device/tl-wdr4300-v1-il
238 $(Device/tplink-8mlzma)
239 DEVICE_TITLE := TP-LINK TL-WDR4300 v1 IL
240 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
241 BOARDNAME := TL-WDR4300
242 DEVICE_PROFILE := TLWDR4300
243 TPLINK_HWID := 0x43008001
246 define Device/tl-wdr4310-v1
247 $(Device/tplink-8mlzma)
248 DEVICE_TITLE := TP-LINK TL-WDR4310 v1
249 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
250 BOARDNAME := TL-WDR4300
251 DEVICE_PROFILE = TLWDR4300
252 TPLINK_HWID := 0x43100001
255 define Device/mw4530r-v1
256 $(Device/tl-wdr4300-v1)
257 DEVICE_TITLE := Mercury MW4530R v1
258 TPLINK_HWID := 0x45300001
260 TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1
262 define Device/tl-wdr6500-v2
263 $(Device/tplink-8mlzma)
264 DEVICE_TITLE := TP-LINK TL-WDR6500v2
265 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
266 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
267 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | mktplinkfw-combined
268 BOARDNAME = TL-WDR6500-v2
269 DEVICE_PROFILE = TLWDR6500V2
270 TPLINK_HWID := 0x65000002
271 TPLINK_HEADER_VERSION := 2
273 TARGET_DEVICES += tl-wdr6500-v2
275 define Device/tl-wdr3320-v2
276 $(Device/tplink-4mlzma)
277 DEVICE_TITLE := TP-LINK TL-WDR3320v2
278 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
279 BOARDNAME = TL-WDR3320-v2
280 DEVICE_PROFILE = TLWDR3320V2
281 TPLINK_HWID := 0x33200002
282 TPLINK_HEADER_VERSION := 2
284 TARGET_DEVICES += tl-wdr3320-v2
286 define Device/archer-c5-v1
287 $(Device/tplink-16mlzma)
288 DEVICE_TITLE := TP-LINK Archer C5
289 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
290 BOARDNAME := ARCHER-C5
291 DEVICE_PROFILE := ARCHERC7
292 TPLINK_HWID := 0xc5000001
295 define Device/archer-c7-v1
296 $(Device/tplink-8mlzma)
297 DEVICE_TITLE := TP-LINK Archer C7 v1
298 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
299 BOARDNAME := ARCHER-C7
300 DEVICE_PROFILE := ARCHERC7
301 TPLINK_HWID := 0x75000001
304 define Device/archer-c7-v2
305 $(Device/tplink-16mlzma)
306 DEVICE_TITLE := TP-LINK Archer C7 v2
307 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
308 BOARDNAME := ARCHER-C7-V2
309 DEVICE_PROFILE := ARCHERC7
310 TPLINK_HWID := 0xc7000002
311 IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
312 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
313 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
316 define Device/archer-c7-v2-il
317 $(Device/tplink-16mlzma)
318 DEVICE_TITLE := TP-LINK Archer C7 v2 IL
319 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
320 BOARDNAME := ARCHER-C7-V2
321 DEVICE_PROFILE := ARCHERC7
322 TPLINK_HWID := 0xc7000002
323 TPLINK_HWREV := 0x494c0001
326 define Device/tl-wdr7500-v3
327 $(Device/tplink-8mlzma)
328 DEVICE_TITLE := TP-LINK Archer C7 v3
329 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
330 BOARDNAME := ARCHER-C7
331 DEVICE_PROFILE := ARCHERC7
332 TPLINK_HWID := 0x75000003
334 TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2 archer-c7-v2-il tl-wdr7500-v3
336 define Device/tl-mr10u-v1
337 $(Device/tplink-4mlzma)
338 DEVICE_TITLE := TP-LINK TL-MR10U
339 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
340 BOARDNAME := TL-MR10U
341 DEVICE_PROFILE := TLMR10U
342 TPLINK_HWID := 0x00100101
343 CONSOLE := ttyATH0,115200
346 define Device/tl-mr11u-v1
347 $(Device/tplink-4mlzma)
348 DEVICE_TITLE := TP-LINK TL-MR11U
349 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
350 BOARDNAME := TL-MR11U
351 DEVICE_PROFILE := TLMR11U
352 TPLINK_HWID := 0x00110101
353 CONSOLE := ttyATH0,115200
356 define Device/tl-mr11u-v2
357 $(Device/tplink-4mlzma)
358 DEVICE_TITLE := TP-LINK TL-MR11U v2
359 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
360 BOARDNAME := TL-MR11U
361 DEVICE_PROFILE := TLMR11U
362 TPLINK_HWID := 0x00110102
363 CONSOLE := ttyATH0,115200
366 define Device/tl-mr12u-v1
367 $(Device/tplink-4mlzma)
368 DEVICE_TITLE := TP-LINK TL-MR12U
369 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
370 BOARDNAME := TL-MR13U
371 DEVICE_PROFILE := TLMR12U
372 TPLINK_HWID := 0x00120101
373 CONSOLE := ttyATH0,115200
376 define Device/tl-mr13u-v1
377 $(Device/tplink-4mlzma)
378 DEVICE_TITLE := TP-LINK TL-MR13U
379 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
380 BOARDNAME := TL-MR13U
381 DEVICE_PROFILE := TLMR13U
382 TPLINK_HWID := 0x00130101
383 CONSOLE := ttyATH0,115200
385 TARGET_DEVICES += tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1
387 define Device/tl-mr3020-v1
388 $(Device/tplink-4mlzma)
389 DEVICE_TITLE := TP-LINK TL-MR3020
390 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
391 BOARDNAME := TL-MR3020
392 DEVICE_PROFILE := TLMR3020
393 TPLINK_HWID := 0x30200001
394 CONSOLE := ttyATH0,115200
397 define Device/tl-mr3040-v1
398 $(Device/tplink-4mlzma)
399 DEVICE_TITLE := TP-LINK TL-MR3040
400 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
401 BOARDNAME := TL-MR3040
402 DEVICE_PROFILE := TLMR3040
403 TPLINK_HWID := 0x30400001
404 CONSOLE := ttyATH0,115200
407 define Device/tl-mr3040-v2
408 $(Device/tplink-4mlzma)
409 DEVICE_TITLE := TP-LINK TL-MR3040
410 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
411 BOARDNAME := TL-MR3040-v2
412 DEVICE_PROFILE := TLMR3040
413 TPLINK_HWID := 0x30400002
414 CONSOLE := ttyATH0,115200
417 define Device/tl-mr3220-v1
419 DEVICE_TITLE := TP-LINK TL-MR3220
420 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
421 BOARDNAME := TL-MR3220
422 DEVICE_PROFILE := TLMR3220
423 TPLINK_HWID := 0x32200001
426 define Device/tl-mr3220-v2
427 $(Device/tplink-4mlzma)
428 DEVICE_TITLE := TP-LINK TL-MR3220 v2
429 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
430 BOARDNAME := TL-MR3220-v2
431 DEVICE_PROFILE := TLMR3220
432 TPLINK_HWID := 0x32200002
433 CONSOLE := ttyATH0,115200
436 define Device/tl-mr3420-v1
438 DEVICE_TITLE := TP-LINK TL-MR3420
439 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
440 BOARDNAME := TL-MR3420
441 DEVICE_PROFILE := TLMR3420
442 TPLINK_HWID := 0x34200001
445 define Device/tl-mr3420-v2
446 $(Device/tplink-4mlzma)
447 DEVICE_TITLE := TP-LINK TL-MR3420 v2
448 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
449 BOARDNAME := TL-MR3420-v2
450 DEVICE_PROFILE := TLMR3420
451 TPLINK_HWID := 0x34200002
453 TARGET_DEVICES += tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-v2 tl-mr3420-v1 tl-mr3420-v2
455 define Device/tl-wpa8630
456 $(Device/tplink-8mlzma)
457 DEVICE_TITLE := TP-LINK TL-WPA8630
458 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
459 BOARDNAME := TL-WPA8630
460 DEVICE_PROFILE := TL-WPA8630
461 TPLINK_HWID := 0x86300001
463 TARGET_DEVICES += tl-wpa8630
465 define Device/tl-wr703n-v1
466 $(Device/tplink-4mlzma)
467 DEVICE_TITLE := TP-LINK TL-WR703N
468 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
469 BOARDNAME := TL-WR703N
470 DEVICE_PROFILE := TLWR703
471 TPLINK_HWID := 0x07030101
472 CONSOLE := ttyATH0,115200
475 define Device/tl-wr710n-v1
476 $(Device/tplink-8mlzma)
477 DEVICE_TITLE := TP-LINK TL-WR710N
478 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
479 BOARDNAME := TL-WR710N
480 DEVICE_PROFILE := TLWR710
481 TPLINK_HWID := 0x07100001
482 CONSOLE := ttyATH0,115200
485 define Device/tl-wr710n-v2
486 $(Device/tplink-4mlzma)
487 DEVICE_TITLE := TP-LINK TL-WR710N v2
488 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
489 BOARDNAME := TL-WR710N v2
490 DEVICE_PROFILE := TLWR710
491 TPLINK_HWID := 0x07100002
492 CONSOLE := ttyATH0,115200
495 define Device/tl-wr710n-v2.1
496 $(Device/tplink-8mlzma)
497 DEVICE_TITLE := TP-LINK TL-WR710N v2.1
498 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
499 BOARDNAME := TL-WR710N v2.1
500 DEVICE_PROFILE := TLWR710
501 TPLINK_HWID := 0x07100002
502 TPLINK_HWREV := 0x00000002
503 CONSOLE := ttyATH0,115200
506 define Device/tl-wr720n-v3
507 $(Device/tplink-4mlzma)
508 DEVICE_TITLE := TP-LINK TL-WR720N v3
509 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
510 BOARDNAME := TL-WR720N-v3
511 DEVICE_PROFILE := TLWR720
512 TPLINK_HWID := 0x07200103
513 CONSOLE := ttyATH0,115200
516 define Device/tl-wr720n-v4
517 $(Device/tplink-4mlzma)
518 DEVICE_TITLE := TP-LINK TL-WR720N v4
519 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
520 BOARDNAME := TL-WR720N-v3
521 DEVICE_PROFILE := TLWR720
522 TPLINK_HWID := 0x07200104
523 CONSOLE := ttyATH0,115200
525 TARGET_DEVICES += tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr710n-v2.1 tl-wr720n-v3 tl-wr720n-v4
527 define Device/tl-wr740n-v1
529 DEVICE_TITLE := TP-LINK TL-WR740N/ND v1
530 BOARDNAME := TL-WR741ND
531 DEVICE_PROFILE := TLWR740
532 TPLINK_HWID := 0x07400001
535 define Device/tl-wr740n-v3
537 DEVICE_TITLE := TP-LINK TL-WR740N/ND v3
538 BOARDNAME := TL-WR741ND
539 DEVICE_PROFILE := TLWR740
540 TPLINK_HWID := 0x07400003
543 define Device/tl-wr740n-v4
544 $(Device/tplink-4mlzma)
545 DEVICE_TITLE := TP-LINK TL-WR740N/ND v4
546 BOARDNAME := TL-WR741ND-v4
547 DEVICE_PROFILE := TLWR740
548 TPLINK_HWID := 0x07400004
549 CONSOLE := ttyATH0,115200
552 define Device/tl-wr740n-v5
553 $(Device/tplink-4mlzma)
554 DEVICE_TITLE := TP-LINK TL-WR740N/ND v5
555 BOARDNAME := TL-WR741ND-v4
556 DEVICE_PROFILE := TLWR740
557 TPLINK_HWID := 0x07400005
558 CONSOLE := ttyATH0,115200
561 define Device/tl-wr740n-v6
562 $(Device/tplink-4mlzma)
563 DEVICE_TITLE := TP-LINK TL-WR740N/ND v6
564 BOARDNAME := TL-WR841N-v9
565 DEVICE_PROFILE := TLWR740
566 TPLINK_HWID := 0x07400006
569 define Device/tl-wr741nd-v1
571 DEVICE_TITLE := TP-LINK TL-WR741N/ND v1
572 BOARDNAME := TL-WR741ND
573 DEVICE_PROFILE := TLWR741
574 TPLINK_HWID := 0x07410001
577 define Device/tl-wr741nd-v2
579 DEVICE_TITLE := TP-LINK TL-WR741N/ND v2
580 BOARDNAME := TL-WR741ND
581 DEVICE_PROFILE := TLWR741
582 TPLINK_HWID := 0x07410001
585 define Device/tl-wr741nd-v4
586 $(Device/tplink-4mlzma)
587 DEVICE_TITLE := TP-LINK TL-WR741N/ND v4
588 BOARDNAME := TL-WR741ND-v4
589 DEVICE_PROFILE := TLWR741
590 TPLINK_HWID := 0x07410004
591 CONSOLE := ttyATH0,115200
594 define Device/tl-wr741nd-v5
595 $(Device/tplink-4mlzma)
596 DEVICE_TITLE := TP-LINK TL-WR741N/ND v5
597 BOARDNAME := TL-WR741ND-v4
598 DEVICE_PROFILE := TLWR741
599 TPLINK_HWID := 0x07400005
600 CONSOLE := ttyATH0,115200
603 define Device/tl-wr810n
604 $(Device/tplink-8mlzma)
605 DEVICE_TITLE := TP-LINK TL-WR810N
606 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
607 BOARDNAME := TL-WR810N
608 DEVICE_PROFILE := TLWR810
609 TPLINK_HWID := 0x08100001
611 TARGET_DEVICES += tl-wr810n
613 define Device/tl-wr743nd-v1
615 DEVICE_TITLE := TP-LINK TL-WR743N/ND v1
616 BOARDNAME := TL-WR741ND
617 DEVICE_PROFILE := TLWR743
618 TPLINK_HWID := 0x07430001
621 define Device/tl-wr743nd-v2
622 $(Device/tplink-4mlzma)
623 DEVICE_TITLE := TP-LINK TL-WR743N/ND v2
624 BOARDNAME := TL-WR741ND-v4
625 DEVICE_PROFILE := TLWR743
626 TPLINK_HWID := 0x07430002
627 CONSOLE := ttyATH0,115200
629 TARGET_DEVICES += tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2
631 define Device/tl-wr802n-v1
632 $(Device/tplink-4mlzma)
633 DEVICE_TITLE := TP-LINK TL-WR802N v1
634 BOARDNAME := TL-WR802N-v1
635 DEVICE_PROFILE := TLWR802
636 TPLINK_HWID := 0x08020001
640 define Device/tl-wr802n-v2
641 $(Device/tplink-4mlzma)
642 DEVICE_TITLE := TP-LINK TL-WR802N v2
643 BOARDNAME := TL-WR802N-v2
644 DEVICE_PROFILE := TLWR802
645 TPLINK_HWID := 0x08020002
647 IMAGES += factory-us.bin factory-eu.bin
648 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
649 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
651 TARGET_DEVICES += tl-wr802n-v1 tl-wr802n-v2
653 define Device/tl-wr840n-v2
654 $(Device/tplink-4mlzma)
655 DEVICE_TITLE := TP-LINK TL-WR840N v2
656 BOARDNAME := TL-WR840N-v2
657 DEVICE_PROFILE := TLWR840
658 TPLINK_HWID := 0x08400002
659 IMAGES += factory-eu.bin
660 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
663 define Device/tl-wr840n-v3
664 $(Device/tl-wr840n-v2)
665 DEVICE_TITLE := TP-LINK TL-WR840N v3
666 BOARDNAME := TL-WR840N-v3
667 TPLINK_HWID := 0x08400003
670 define Device/tl-wr841-v1.5
672 DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5
673 BOARDNAME := TL-WR841N-v1.5
674 DEVICE_PROFILE := TLWR841
675 TPLINK_HWID := 0x08410002
679 define Device/tl-wr841-v3
681 DEVICE_TITLE := TP-LINK TL-WR841N/ND v3
682 BOARDNAME := TL-WR941ND
683 DEVICE_PROFILE := TLWR841
684 TPLINK_HWID := 0x08410003
688 define Device/tl-wr841-v5
690 DEVICE_TITLE := TP-LINK TL-WR841N/ND v5
691 BOARDNAME := TL-WR741ND
692 DEVICE_PROFILE := TLWR841
693 TPLINK_HWID := 0x08410005
696 define Device/tl-wr841-v7
698 DEVICE_TITLE := TP-LINK TL-WR841N/ND v7
699 BOARDNAME := TL-WR841N-v7
700 DEVICE_PROFILE := TLWR841
701 TPLINK_HWID := 0x08410007
704 define Device/tl-wr841-v8
705 $(Device/tplink-4mlzma)
706 DEVICE_TITLE := TP-LINK TL-WR841N/ND v8
707 BOARDNAME := TL-WR841N-v8
708 DEVICE_PROFILE := TLWR841
709 TPLINK_HWID := 0x08410008
712 define Device/tl-wr841-v9
713 $(Device/tplink-4mlzma)
714 DEVICE_TITLE := TP-LINK TL-WR841N/ND v9
715 BOARDNAME := TL-WR841N-v9
716 DEVICE_PROFILE := TLWR841
717 TPLINK_HWID := 0x08410009
720 define Device/tl-wr841-v10
721 $(Device/tplink-4mlzma)
722 DEVICE_TITLE := TP-LINK TL-WR841N/ND v10
723 BOARDNAME := TL-WR841N-v9
724 DEVICE_PROFILE := TLWR841
725 TPLINK_HWID := 0x08410010
728 define Device/tl-wr841-v11
729 $(Device/tplink-4mlzma)
730 DEVICE_TITLE := TP-LINK TL-WR841N/ND v11
731 BOARDNAME := TL-WR841N-v11
732 DEVICE_PROFILE := TLWR841
733 TPLINK_HWID := 0x08410011
734 IMAGES += factory-us.bin factory-eu.bin
735 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
736 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
739 define Device/tl-wr842n-v1
741 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
742 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
743 BOARDNAME := TL-MR3420
744 DEVICE_PROFILE := TLWR842
745 TPLINK_HWID := 0x08420001
748 define Device/tl-wr842n-v2
749 $(Device/tplink-8mlzma)
750 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
751 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
752 BOARDNAME := TL-WR842N-v2
753 DEVICE_PROFILE := TLWR842
754 TPLINK_HWID := 0x8420002
757 define Device/tl-wr842n-v3
758 $(Device/tplink-16mlzma)
759 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
760 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
761 BOARDNAME := TL-WR842N-v3
762 DEVICE_PROFILE := TLWR842
763 TPLINK_HWID := 0x08420003
766 define Device/tl-wr843nd-v1
767 $(Device/tplink-4mlzma)
768 DEVICE_TITLE := TP-LINK TL-WR843N/ND
769 BOARDNAME := TL-WR841N-v8
770 DEVICE_PROFILE := TLWR843
771 TPLINK_HWID := 0x08430001
774 define Device/tl-wr847n-v8
775 $(Device/tplink-4mlzma)
776 DEVICE_TITLE := TP-LINK TL-WR847N/ND v8
777 BOARDNAME := TL-WR841N-v8
778 DEVICE_PROFILE := TLWR841
779 TPLINK_HWID := 0x08470008
781 TARGET_DEVICES += tl-wr840n-v2 tl-wr840n-v3 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-wr842n-v1 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8
783 define Device/tl-wr941nd-v2
785 DEVICE_TITLE := TP-LINK TL-WR941N/ND v2
786 BOARDNAME := TL-WR941ND
787 DEVICE_PROFILE := TLWR941
788 TPLINK_HWID := 0x09410002
792 define Device/tl-wr941nd-v3
794 DEVICE_TITLE := TP-LINK TL-WR941N/ND v3
795 BOARDNAME := TL-WR941ND
796 DEVICE_PROFILE := TLWR941
797 TPLINK_HWID := 0x09410002
801 define Device/tl-wr941nd-v4
803 DEVICE_TITLE := TP-LINK TL-WR941N/ND v4
804 BOARDNAME := TL-WR741ND
805 DEVICE_PROFILE := TLWR941
806 TPLINK_HWID := 0x09410004
809 define Device/tl-wr941nd-v5
810 $(Device/tplink-4mlzma)
811 DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
812 BOARDNAME := TL-WR941ND-v5
813 DEVICE_PROFILE := TLWR941
814 TPLINK_HWID := 0x09410005
817 define Device/tl-wr941nd-v6
818 $(Device/tplink-4mlzma)
819 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6
820 BOARDNAME := TL-WR941ND-v6
821 DEVICE_PROFILE := TLWR941
822 TPLINK_HWID := 0x09410006
825 define Device/tl-wr940n-v4
826 $(Device/tplink-4mlzma)
827 DEVICE_TITLE := TP-LINK TL-WR940N v4
828 BOARDNAME := TL-WR940N-v4
829 DEVICE_PROFILE := TLWR941
830 TPLINK_HWID := 0x09400004
831 IMAGES += factory-us.bin factory-eu.bin
832 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
833 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
836 # Chinese version (unlike European) is similar to the TL-WDR3500
837 define Device/tl-wr941nd-v6-cn
838 $(Device/tplink-4mlzma)
839 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN)
840 BOARDNAME := TL-WDR3500
841 DEVICE_PROFILE := TLWR941
842 TPLINK_HWID := 0x09410006
844 TARGET_DEVICES += tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn tl-wr940n-v4
846 define Device/tl-wr1041n-v2
847 $(Device/tplink-4mlzma)
848 DEVICE_TITLE := TP-LINK TL-WR1041N
849 BOARDNAME := TL-WR1041N-v2
850 DEVICE_PROFILE := TLWR1041
851 TPLINK_HWID := 0x10410002
853 TARGET_DEVICES += tl-wr1041n-v2
855 define Device/tl-wr1043nd-v1
857 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
858 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
859 BOARDNAME := TL-WR1043ND
860 DEVICE_PROFILE := TLWR1043
861 TPLINK_HWID := 0x10430001
864 define Device/tl-wr1043nd-v2
865 $(Device/tplink-8mlzma)
866 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
867 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
868 BOARDNAME := TL-WR1043ND-v2
869 DEVICE_PROFILE := TLWR1043
870 TPLINK_HWID := 0x10430002
873 define Device/tl-wr1043nd-v3
874 $(Device/tplink-8mlzma)
875 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
876 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
877 BOARDNAME := TL-WR1043ND-v2
878 DEVICE_PROFILE := TLWR1043
879 TPLINK_HWID := 0x10430003
882 define Device/tl-wr1043nd-v4
884 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
885 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
886 BOARDNAME := TL-WR1043ND-v4
887 DEVICE_PROFILE := TLWR1043
888 TPLINK_HWID := 0x10430004
889 TPLINK_FLASHLAYOUT := 16Msafeloader
890 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)
892 TPLINK_BOARD_NAME := TLWR1043NDV4
893 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
894 IMAGES := sysupgrade.bin factory.bin
895 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
896 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
898 TARGET_DEVICES += tl-wr1043nd-v1 tl-wr1043nd-v2 tl-wr1043nd-v3 tl-wr1043nd-v4
900 define Device/tl-wr2543-v1
901 $(Device/tplink-8mlzma)
902 DEVICE_TITLE := TP-LINK TL-WR2543N/ND
903 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
904 BOARDNAME := TL-WR2543N
905 DEVICE_PROFILE := TLWR2543
906 TPLINK_HWID := 0x25430001
907 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
908 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
910 TARGET_DEVICES += tl-wr2543-v1
912 define Device/tl-wdr4900-v2
913 $(Device/tplink-8mlzma)
914 DEVICE_TITLE := TP-LINK TL-WDR4900v2
915 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
916 BOARDNAME := TL-WDR4900-v2
917 DEVICE_PROFILE := TLWDR4900V2
918 TPLINK_HWID := 0x49000002
920 TARGET_DEVICES += tl-wdr4900-v2
922 define Device/tl-wa701nd-v1
924 DEVICE_TITLE := TP-LINK TL-WA701N/ND v1
925 BOARDNAME := TL-WA901ND
926 DEVICE_PROFILE := TLWA701
927 TPLINK_HWID := 0x07010001
930 define Device/tl-wa701nd-v2
931 $(Device/tplink-4mlzma)
932 DEVICE_TITLE := TP-LINK TL-WA701N/ND v2
933 BOARDNAME := TL-WA701ND-v2
934 DEVICE_PROFILE := TLWA701
935 TPLINK_HWID := 0x07010002
936 CONSOLE := ttyATH0,115200
939 define Device/tl-wa730re-v1
941 DEVICE_TITLE := TP-LINK TL-WA730RE
942 BOARDNAME := TL-WA901ND
943 DEVICE_PROFILE := TLWA730RE
944 TPLINK_HWID := 0x07300001
947 define Device/tl-wa750re-v1
948 $(Device/tplink-4mlzma)
949 DEVICE_TITLE := TP-LINK TL-WA750RE
950 DEVICE_PACKAGES := rssileds
951 BOARDNAME := TL-WA750RE
952 DEVICE_PROFILE := TLWA750
953 TPLINK_HWID := 0x07500001
956 define Device/tl-wa7510n
958 DEVICE_TITLE := TP-LINK TL-WA7510N
959 BOARDNAME := TL-WA7510N
960 DEVICE_PROFILE := TLWA7510
961 TPLINK_HWID := 0x75100001
963 TARGET_DEVICES += tl-wa701nd-v1 tl-wa701nd-v2 tl-wa730re-v1 tl-wa750re-v1 tl-wa7510n
965 define Device/tl-wa801nd-v1
967 DEVICE_TITLE := TP-LINK TL-WA801N/ND v1
968 BOARDNAME := TL-WA901ND
969 DEVICE_PROFILE := TLWA801
970 TPLINK_HWID := 0x08010001
973 define Device/tl-wa801nd-v2
974 $(Device/tplink-4mlzma)
975 DEVICE_TITLE := TP-LINK TL-WA801N/ND v2
976 BOARDNAME := TL-WA801ND-v2
977 DEVICE_PROFILE := TLWA801
978 TPLINK_HWID := 0x08010002
981 define Device/tl-wa801nd-v3
982 $(Device/tplink-4mlzma)
983 DEVICE_TITLE := TP-LINK TL-WA801N/ND v3
984 BOARDNAME := TL-WA801ND-v3
985 DEVICE_PROFILE := TLWA801
986 TPLINK_HWID := 0x08010003
989 define Device/tl-wa830re-v1
991 DEVICE_TITLE := TP-LINK TL-WA830RE
992 BOARDNAME := TL-WA901ND
993 DEVICE_PROFILE := TLWA830
994 TPLINK_HWID := 0x08300010
997 define Device/tl-wa830re-v2
998 $(Device/tplink-4mlzma)
999 DEVICE_TITLE := TP-LINK TL-WA830RE
1000 BOARDNAME := TL-WA830RE-v2
1001 DEVICE_PROFILE := TLWA830
1002 TPLINK_HWID := 0x08300002
1005 define Device/tl-wa850re-v1
1006 $(Device/tplink-4mlzma)
1007 DEVICE_TITLE := TP-LINK TL-WA850RE
1008 BOARDNAME := TL-WA850RE
1009 DEVICE_PROFILE := TLWA850
1010 TPLINK_HWID := 0x08500001
1013 define Device/tl-wa850re-v2
1015 DEVICE_TITLE := TP-LINK TL-WA850RE v2
1016 DEVICE_PACKAGES := rssileds
1017 BOARDNAME := TL-WA850RE-V2
1018 DEVICE_PROFILE := TLWA850
1019 TPLINK_BOARD_NAME := TLWA850REV2
1020 TPLINK_HWID := 0x08500002
1021 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
1022 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
1023 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
1024 MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware)
1027 define Device/tl-wa860re-v1
1028 $(Device/tplink-4mlzma)
1029 DEVICE_TITLE := TP-LINK TL-WA860RE
1030 BOARDNAME := TL-WA860RE
1031 DEVICE_PROFILE := TLWA860
1032 TPLINK_HWID := 0x08600001
1034 TARGET_DEVICES += tl-wa801nd-v1 tl-wa801nd-v2 tl-wa801nd-v3 tl-wa830re-v1 tl-wa830re-v2 tl-wa850re-v1 tl-wa850re-v2 tl-wa860re-v1
1036 define Device/tl-wa901nd-v1
1038 DEVICE_TITLE := TP-LINK TL-WA901N/ND v1
1039 BOARDNAME := TL-WA901ND
1040 DEVICE_PROFILE := TLWA901
1041 TPLINK_HWID := 0x09010001
1044 define Device/tl-wa901nd-v2
1046 DEVICE_TITLE := TP-LINK TL-WA901N/ND v2
1047 BOARDNAME := TL-WA901ND-v2
1048 DEVICE_PROFILE := TLWA901
1049 TPLINK_HWID := 0x09010002
1052 define Device/tl-wa901nd-v3
1053 $(Device/tplink-4mlzma)
1054 DEVICE_TITLE := TP-LINK TL-WA901N/ND v3
1055 BOARDNAME := TL-WA901ND-v3
1056 DEVICE_PROFILE := TLWA901
1057 TPLINK_HWID := 0x09010003
1060 define Device/tl-wa901nd-v4
1061 $(Device/tplink-4mlzma)
1062 DEVICE_TITLE := TP-LINK TL-WA901N/ND v4
1063 BOARDNAME := TL-WA901ND-v4
1064 DEVICE_PROFILE := TLWA901
1065 TPLINK_HWID := 0x09010004
1066 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU
1069 TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
1071 define Device/tl-wa7210n-v2
1072 $(Device/tplink-4mlzma)
1073 DEVICE_TITLE := TP-LINK TL-WA7210N
1074 DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev
1075 BOARDNAME := TL-WA7210N-v2
1076 DEVICE_PROFILE := TLWA7210
1077 TPLINK_HWID := 0x72100002
1078 CONSOLE := ttyATH0,115200
1080 TARGET_DEVICES += tl-wa7210n-v2