ar71xx: add support for TL-WR802N Version 2
[openwrt/openwrt.git] / target / linux / ar71xx / image / tp-link.mk
1 DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_BOARD_NAME
2
3 # combine kernel and rootfs into one image
4 # mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
5 # <type> is "sysupgrade" or "factory"
6 #
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) \
15 -k $(IMAGE_KERNEL) \
16 -r $@ \
17 -o $@.new \
18 -j -X 0x40000 \
19 -a $(call rootfs_align,$(FILESYSTEM)) \
20 $(wordlist 2,$(words $(1)),$(1)) \
21 $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
22 endef
23
24 # mktplinkfw-combined
25 #
26 # -c combined image
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) \
31 -k $@ \
32 -o $@.new \
33 -s -S \
34 -c
35 @mv $@.new $@
36 endef
37
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) \
43 -k $@ \
44 -o $@.new
45 @mv $@.new $@
46 endef
47
48 define Build/uImageArcher
49 mkimage -A $(LINUX_KARCH) \
50 -O linux -T kernel \
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
53 @mv $@.new $@
54 endef
55
56
57 define Device/tplink
58 TPLINK_HWREV := 0x1
59 TPLINK_HEADER_VERSION := 1
60 LOADER_TYPE := gz
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
66 endef
67
68 define Device/tplink-nolzma
69 $(Device/tplink)
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
75 endef
76
77 define Device/tplink-4m
78 $(Device/tplink-nolzma)
79 TPLINK_FLASHLAYOUT := 4M
80 IMAGE_SIZE := 3904k
81 endef
82
83 define Device/tplink-8m
84 $(Device/tplink-nolzma)
85 TPLINK_FLASHLAYOUT := 8M
86 IMAGE_SIZE := 7936k
87 endef
88
89 define Device/tplink-4mlzma
90 $(Device/tplink)
91 TPLINK_FLASHLAYOUT := 4Mlzma
92 IMAGE_SIZE := 3904k
93 endef
94
95 define Device/tplink-8mlzma
96 $(Device/tplink)
97 TPLINK_FLASHLAYOUT := 8Mlzma
98 IMAGE_SIZE := 7936k
99 endef
100
101 define Device/tplink-16mlzma
102 $(Device/tplink)
103 TPLINK_FLASHLAYOUT := 16Mlzma
104 IMAGE_SIZE := 15872k
105 endef
106
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
113 IMAGE_SIZE := 14528k
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)
119 endef
120 TARGET_DEVICES += archer-c59-v1
121
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
128 IMAGE_SIZE := 7936k
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)
134 endef
135 TARGET_DEVICES += archer-c60-v1
136
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)
141 IMAGE_SIZE := 7680k
142 BOARDNAME := CPE510
143 TPLINK_BOARD_NAME := CPE510
144 DEVICE_PROFILE := CPE510
145 LOADER_TYPE := elf
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
150 endef
151
152 define Device/cpe210-220
153 $(Device/cpe510-520)
154 DEVICE_TITLE := TP-LINK CPE210/220
155 DEVICE_PACKAGES := rssileds
156 BOARDNAME := CPE210
157 TPLINK_BOARD_NAME := CPE210
158 endef
159
160 define Device/wbs210
161 $(Device/cpe510-520)
162 DEVICE_TITLE := TP-LINK WBS210
163 DEVICE_PACKAGES := rssileds
164 BOARDNAME := WBS210
165 TPLINK_BOARD_NAME := WBS210
166 endef
167
168 define Device/wbs510
169 $(Device/cpe510-520)
170 DEVICE_TITLE := TP-LINK WBS510
171 DEVICE_PACKAGES := rssileds
172 BOARDNAME := WBS510
173 TPLINK_BOARD_NAME := WBS510
174 endef
175 TARGET_DEVICES += cpe210-220 cpe510-520 wbs210 wbs510
176
177 define Device/re450
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)
181 IMAGE_SIZE := 7936k
182 BOARDNAME := RE450
183 TPLINK_BOARD_NAME := RE450
184 DEVICE_PROFILE := RE450
185 LOADER_TYPE := elf
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
190 endef
191 TARGET_DEVICES += re450
192
193 define Device/eap120
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)
196 IMAGE_SIZE := 15872k
197 BOARDNAME := EAP120
198 TPLINK_BOARD_NAME := EAP120
199 DEVICE_PROFILE := EAP120
200 LOADER_TYPE := elf
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
205 endef
206 TARGET_DEVICES += eap120
207
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
216 endef
217
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
225 endef
226
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
235 endef
236
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
244 endef
245
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
253 endef
254
255 define Device/mw4530r-v1
256 $(Device/tl-wdr4300-v1)
257 DEVICE_TITLE := Mercury MW4530R v1
258 TPLINK_HWID := 0x45300001
259 endef
260 TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1
261
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
272 endef
273 TARGET_DEVICES += tl-wdr6500-v2
274
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
283 endef
284 TARGET_DEVICES += tl-wdr3320-v2
285
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
293 endef
294
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
302 endef
303
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
314 endef
315
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
324 endef
325
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
333 endef
334 TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2 archer-c7-v2-il tl-wdr7500-v3
335
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
344 endef
345
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
354 endef
355
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
364 endef
365
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
374 endef
375
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
384 endef
385 TARGET_DEVICES += tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1
386
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
395 endef
396
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
405 endef
406
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
415 endef
416
417 define Device/tl-mr3220-v1
418 $(Device/tplink-4m)
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
424 endef
425
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
434 endef
435
436 define Device/tl-mr3420-v1
437 $(Device/tplink-4m)
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
443 endef
444
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
452 endef
453 TARGET_DEVICES += tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-v2 tl-mr3420-v1 tl-mr3420-v2
454
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
462 endef
463 TARGET_DEVICES += tl-wpa8630
464
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
473 endef
474
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
483 endef
484
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
493 endef
494
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
504 endef
505
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
514 endef
515
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
524 endef
525 TARGET_DEVICES += tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr710n-v2.1 tl-wr720n-v3 tl-wr720n-v4
526
527 define Device/tl-wr740n-v1
528 $(Device/tplink-4m)
529 DEVICE_TITLE := TP-LINK TL-WR740N/ND v1
530 BOARDNAME := TL-WR741ND
531 DEVICE_PROFILE := TLWR740
532 TPLINK_HWID := 0x07400001
533 endef
534
535 define Device/tl-wr740n-v3
536 $(Device/tplink-4m)
537 DEVICE_TITLE := TP-LINK TL-WR740N/ND v3
538 BOARDNAME := TL-WR741ND
539 DEVICE_PROFILE := TLWR740
540 TPLINK_HWID := 0x07400003
541 endef
542
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
550 endef
551
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
559 endef
560
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
567 endef
568
569 define Device/tl-wr741nd-v1
570 $(Device/tplink-4m)
571 DEVICE_TITLE := TP-LINK TL-WR741N/ND v1
572 BOARDNAME := TL-WR741ND
573 DEVICE_PROFILE := TLWR741
574 TPLINK_HWID := 0x07410001
575 endef
576
577 define Device/tl-wr741nd-v2
578 $(Device/tplink-4m)
579 DEVICE_TITLE := TP-LINK TL-WR741N/ND v2
580 BOARDNAME := TL-WR741ND
581 DEVICE_PROFILE := TLWR741
582 TPLINK_HWID := 0x07410001
583 endef
584
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
592 endef
593
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
601 endef
602
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
610 endef
611 TARGET_DEVICES += tl-wr810n
612
613 define Device/tl-wr743nd-v1
614 $(Device/tplink-4m)
615 DEVICE_TITLE := TP-LINK TL-WR743N/ND v1
616 BOARDNAME := TL-WR741ND
617 DEVICE_PROFILE := TLWR743
618 TPLINK_HWID := 0x07430001
619 endef
620
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
628 endef
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
630
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
637 TPLINK_HWREV := 1
638 endef
639
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
646 TPLINK_HWREV := 2
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
650 endef
651 TARGET_DEVICES += tl-wr802n-v1 tl-wr802n-v2
652
653 define Device/tl-wr841-v1.5
654 $(Device/tplink-4m)
655 DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5
656 BOARDNAME := TL-WR841N-v1.5
657 DEVICE_PROFILE := TLWR841
658 TPLINK_HWID := 0x08410002
659 TPLINK_HWREV := 2
660 endef
661
662 define Device/tl-wr841-v3
663 $(Device/tplink-4m)
664 DEVICE_TITLE := TP-LINK TL-WR841N/ND v3
665 BOARDNAME := TL-WR941ND
666 DEVICE_PROFILE := TLWR841
667 TPLINK_HWID := 0x08410003
668 TPLINK_HWREV := 3
669 endef
670
671 define Device/tl-wr841-v5
672 $(Device/tplink-4m)
673 DEVICE_TITLE := TP-LINK TL-WR841N/ND v5
674 BOARDNAME := TL-WR741ND
675 DEVICE_PROFILE := TLWR841
676 TPLINK_HWID := 0x08410005
677 endef
678
679 define Device/tl-wr841-v7
680 $(Device/tplink-4m)
681 DEVICE_TITLE := TP-LINK TL-WR841N/ND v7
682 BOARDNAME := TL-WR841N-v7
683 DEVICE_PROFILE := TLWR841
684 TPLINK_HWID := 0x08410007
685 endef
686
687 define Device/tl-wr841-v8
688 $(Device/tplink-4mlzma)
689 DEVICE_TITLE := TP-LINK TL-WR841N/ND v8
690 BOARDNAME := TL-WR841N-v8
691 DEVICE_PROFILE := TLWR841
692 TPLINK_HWID := 0x08410008
693 endef
694
695 define Device/tl-wr841-v9
696 $(Device/tplink-4mlzma)
697 DEVICE_TITLE := TP-LINK TL-WR841N/ND v9
698 BOARDNAME := TL-WR841N-v9
699 DEVICE_PROFILE := TLWR841
700 TPLINK_HWID := 0x08410009
701 endef
702
703 define Device/tl-wr841-v10
704 $(Device/tplink-4mlzma)
705 DEVICE_TITLE := TP-LINK TL-WR841N/ND v10
706 BOARDNAME := TL-WR841N-v9
707 DEVICE_PROFILE := TLWR841
708 TPLINK_HWID := 0x08410010
709 endef
710
711 define Device/tl-wr841-v11
712 $(Device/tplink-4mlzma)
713 DEVICE_TITLE := TP-LINK TL-WR841N/ND v11
714 BOARDNAME := TL-WR841N-v11
715 DEVICE_PROFILE := TLWR841
716 TPLINK_HWID := 0x08410011
717 IMAGES += factory-us.bin factory-eu.bin
718 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
719 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
720 endef
721
722 define Device/tl-wr842n-v1
723 $(Device/tplink-8m)
724 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
725 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
726 BOARDNAME := TL-MR3420
727 DEVICE_PROFILE := TLWR842
728 TPLINK_HWID := 0x08420001
729 endef
730
731 define Device/tl-wr842n-v2
732 $(Device/tplink-8mlzma)
733 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
734 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
735 BOARDNAME := TL-WR842N-v2
736 DEVICE_PROFILE := TLWR842
737 TPLINK_HWID := 0x8420002
738 endef
739
740 define Device/tl-wr842n-v3
741 $(Device/tplink-16mlzma)
742 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
743 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
744 BOARDNAME := TL-WR842N-v3
745 DEVICE_PROFILE := TLWR842
746 TPLINK_HWID := 0x08420003
747 endef
748
749 define Device/tl-wr843nd-v1
750 $(Device/tplink-4mlzma)
751 DEVICE_TITLE := TP-LINK TL-WR843N/ND
752 BOARDNAME := TL-WR841N-v8
753 DEVICE_PROFILE := TLWR843
754 TPLINK_HWID := 0x08430001
755 endef
756
757 define Device/tl-wr847n-v8
758 $(Device/tplink-4mlzma)
759 DEVICE_TITLE := TP-LINK TL-WR847N/ND v8
760 BOARDNAME := TL-WR841N-v8
761 DEVICE_PROFILE := TLWR841
762 TPLINK_HWID := 0x08470008
763 endef
764 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-wr842n-v1 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8
765
766 define Device/tl-wr941nd-v2
767 $(Device/tplink-4m)
768 DEVICE_TITLE := TP-LINK TL-WR941N/ND v2
769 BOARDNAME := TL-WR941ND
770 DEVICE_PROFILE := TLWR941
771 TPLINK_HWID := 0x09410002
772 TPLINK_HWREV := 2
773 endef
774
775 define Device/tl-wr941nd-v3
776 $(Device/tplink-4m)
777 DEVICE_TITLE := TP-LINK TL-WR941N/ND v3
778 BOARDNAME := TL-WR941ND
779 DEVICE_PROFILE := TLWR941
780 TPLINK_HWID := 0x09410002
781 TPLINK_HWREV := 2
782 endef
783
784 define Device/tl-wr941nd-v4
785 $(Device/tplink-4m)
786 DEVICE_TITLE := TP-LINK TL-WR941N/ND v4
787 BOARDNAME := TL-WR741ND
788 DEVICE_PROFILE := TLWR941
789 TPLINK_HWID := 0x09410004
790 endef
791
792 define Device/tl-wr941nd-v5
793 $(Device/tplink-4mlzma)
794 DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
795 BOARDNAME := TL-WR941ND-v5
796 DEVICE_PROFILE := TLWR941
797 TPLINK_HWID := 0x09410005
798 endef
799
800 define Device/tl-wr941nd-v6
801 $(Device/tplink-4mlzma)
802 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6
803 BOARDNAME := TL-WR941ND-v6
804 DEVICE_PROFILE := TLWR941
805 TPLINK_HWID := 0x09410006
806 endef
807
808 define Device/tl-wr940n-v4
809 $(Device/tplink-4mlzma)
810 DEVICE_TITLE := TP-LINK TL-WR940N v4
811 BOARDNAME := TL-WR940N-v4
812 DEVICE_PROFILE := TLWR941
813 TPLINK_HWID := 0x09400004
814 IMAGES += factory-us.bin factory-eu.bin
815 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
816 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
817 endef
818
819 # Chinese version (unlike European) is similar to the TL-WDR3500
820 define Device/tl-wr941nd-v6-cn
821 $(Device/tplink-4mlzma)
822 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN)
823 BOARDNAME := TL-WDR3500
824 DEVICE_PROFILE := TLWR941
825 TPLINK_HWID := 0x09410006
826 endef
827 TARGET_DEVICES += tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn tl-wr940n-v4
828
829 define Device/tl-wr1041n-v2
830 $(Device/tplink-4mlzma)
831 DEVICE_TITLE := TP-LINK TL-WR1041N
832 BOARDNAME := TL-WR1041N-v2
833 DEVICE_PROFILE := TLWR1041
834 TPLINK_HWID := 0x10410002
835 endef
836 TARGET_DEVICES += tl-wr1041n-v2
837
838 define Device/tl-wr1043nd-v1
839 $(Device/tplink-8m)
840 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
841 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
842 BOARDNAME := TL-WR1043ND
843 DEVICE_PROFILE := TLWR1043
844 TPLINK_HWID := 0x10430001
845 endef
846
847 define Device/tl-wr1043nd-v2
848 $(Device/tplink-8mlzma)
849 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
850 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
851 BOARDNAME := TL-WR1043ND-v2
852 DEVICE_PROFILE := TLWR1043
853 TPLINK_HWID := 0x10430002
854 endef
855
856 define Device/tl-wr1043nd-v3
857 $(Device/tplink-8mlzma)
858 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
859 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
860 BOARDNAME := TL-WR1043ND-v2
861 DEVICE_PROFILE := TLWR1043
862 TPLINK_HWID := 0x10430003
863 endef
864
865 define Device/tl-wr1043nd-v4
866 $(Device/tplink)
867 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
868 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
869 BOARDNAME := TL-WR1043ND-v4
870 DEVICE_PROFILE := TLWR1043
871 TPLINK_HWID := 0x10430004
872 TPLINK_FLASHLAYOUT := 16Msafeloader
873 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)
874 IMAGE_SIZE := 15552k
875 TPLINK_BOARD_NAME := TLWR1043NDV4
876 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
877 IMAGES := sysupgrade.bin factory.bin
878 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
879 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
880 endef
881 TARGET_DEVICES += tl-wr1043nd-v1 tl-wr1043nd-v2 tl-wr1043nd-v3 tl-wr1043nd-v4
882
883 define Device/tl-wr2543-v1
884 $(Device/tplink-8mlzma)
885 DEVICE_TITLE := TP-LINK TL-WR2543N/ND
886 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
887 BOARDNAME := TL-WR2543N
888 DEVICE_PROFILE := TLWR2543
889 TPLINK_HWID := 0x25430001
890 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
891 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
892 endef
893 TARGET_DEVICES += tl-wr2543-v1
894
895 define Device/tl-wdr4900-v2
896 $(Device/tplink-8mlzma)
897 DEVICE_TITLE := TP-LINK TL-WDR4900v2
898 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
899 BOARDNAME := TL-WDR4900-v2
900 DEVICE_PROFILE := TLWDR4900V2
901 TPLINK_HWID := 0x49000002
902 endef
903 TARGET_DEVICES += tl-wdr4900-v2
904
905 define Device/tl-wa701nd-v1
906 $(Device/tplink-4m)
907 DEVICE_TITLE := TP-LINK TL-WA701N/ND v1
908 BOARDNAME := TL-WA901ND
909 DEVICE_PROFILE := TLWA701
910 TPLINK_HWID := 0x07010001
911 endef
912
913 define Device/tl-wa701nd-v2
914 $(Device/tplink-4mlzma)
915 DEVICE_TITLE := TP-LINK TL-WA701N/ND v2
916 BOARDNAME := TL-WA701ND-v2
917 DEVICE_PROFILE := TLWA701
918 TPLINK_HWID := 0x07010002
919 CONSOLE := ttyATH0,115200
920 endef
921
922 define Device/tl-wa730re-v1
923 $(Device/tplink-4m)
924 DEVICE_TITLE := TP-LINK TL-WA730RE
925 BOARDNAME := TL-WA901ND
926 DEVICE_PROFILE := TLWA730RE
927 TPLINK_HWID := 0x07300001
928 endef
929
930 define Device/tl-wa750re-v1
931 $(Device/tplink-4mlzma)
932 DEVICE_TITLE := TP-LINK TL-WA750RE
933 DEVICE_PACKAGES := rssileds
934 BOARDNAME := TL-WA750RE
935 DEVICE_PROFILE := TLWA750
936 TPLINK_HWID := 0x07500001
937 endef
938
939 define Device/tl-wa7510n
940 $(Device/tplink-4m)
941 DEVICE_TITLE := TP-LINK TL-WA7510N
942 BOARDNAME := TL-WA7510N
943 DEVICE_PROFILE := TLWA7510
944 TPLINK_HWID := 0x75100001
945 endef
946 TARGET_DEVICES += tl-wa701nd-v1 tl-wa701nd-v2 tl-wa730re-v1 tl-wa750re-v1 tl-wa7510n
947
948 define Device/tl-wa801nd-v1
949 $(Device/tplink-4m)
950 DEVICE_TITLE := TP-LINK TL-WA801N/ND v1
951 BOARDNAME := TL-WA901ND
952 DEVICE_PROFILE := TLWA801
953 TPLINK_HWID := 0x08010001
954 endef
955
956 define Device/tl-wa801nd-v2
957 $(Device/tplink-4mlzma)
958 DEVICE_TITLE := TP-LINK TL-WA801N/ND v2
959 BOARDNAME := TL-WA801ND-v2
960 DEVICE_PROFILE := TLWA801
961 TPLINK_HWID := 0x08010002
962 endef
963
964 define Device/tl-wa801nd-v3
965 $(Device/tplink-4mlzma)
966 DEVICE_TITLE := TP-LINK TL-WA801N/ND v3
967 BOARDNAME := TL-WA801ND-v3
968 DEVICE_PROFILE := TLWA801
969 TPLINK_HWID := 0x08010003
970 endef
971
972 define Device/tl-wa830re-v1
973 $(Device/tplink-4m)
974 DEVICE_TITLE := TP-LINK TL-WA830RE
975 BOARDNAME := TL-WA901ND
976 DEVICE_PROFILE := TLWA830
977 TPLINK_HWID := 0x08300010
978 endef
979
980 define Device/tl-wa830re-v2
981 $(Device/tplink-4mlzma)
982 DEVICE_TITLE := TP-LINK TL-WA830RE
983 BOARDNAME := TL-WA830RE-v2
984 DEVICE_PROFILE := TLWA830
985 TPLINK_HWID := 0x08300002
986 endef
987
988 define Device/tl-wa850re-v1
989 $(Device/tplink-4mlzma)
990 DEVICE_TITLE := TP-LINK TL-WA850RE
991 BOARDNAME := TL-WA850RE
992 DEVICE_PROFILE := TLWA850
993 TPLINK_HWID := 0x08500001
994 endef
995
996 define Device/tl-wa850re-v2
997 $(Device/tplink)
998 DEVICE_TITLE := TP-LINK TL-WA850RE v2
999 DEVICE_PACKAGES := rssileds
1000 BOARDNAME := TL-WA850RE-V2
1001 DEVICE_PROFILE := TLWA850
1002 TPLINK_BOARD_NAME := TLWA850REV2
1003 TPLINK_HWID := 0x08500002
1004 KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
1005 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
1006 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
1007 MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware)
1008 endef
1009
1010 define Device/tl-wa860re-v1
1011 $(Device/tplink-4mlzma)
1012 DEVICE_TITLE := TP-LINK TL-WA860RE
1013 BOARDNAME := TL-WA860RE
1014 DEVICE_PROFILE := TLWA860
1015 TPLINK_HWID := 0x08600001
1016 endef
1017 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
1018
1019 define Device/tl-wa901nd-v1
1020 $(Device/tplink-4m)
1021 DEVICE_TITLE := TP-LINK TL-WA901N/ND v1
1022 BOARDNAME := TL-WA901ND
1023 DEVICE_PROFILE := TLWA901
1024 TPLINK_HWID := 0x09010001
1025 endef
1026
1027 define Device/tl-wa901nd-v2
1028 $(Device/tplink-4m)
1029 DEVICE_TITLE := TP-LINK TL-WA901N/ND v2
1030 BOARDNAME := TL-WA901ND-v2
1031 DEVICE_PROFILE := TLWA901
1032 TPLINK_HWID := 0x09010002
1033 endef
1034
1035 define Device/tl-wa901nd-v3
1036 $(Device/tplink-4mlzma)
1037 DEVICE_TITLE := TP-LINK TL-WA901N/ND v3
1038 BOARDNAME := TL-WA901ND-v3
1039 DEVICE_PROFILE := TLWA901
1040 TPLINK_HWID := 0x09010003
1041 endef
1042
1043 define Device/tl-wa901nd-v4
1044 $(Device/tplink-4mlzma)
1045 DEVICE_TITLE := TP-LINK TL-WA901N/ND v4
1046 BOARDNAME := TL-WA901ND-v4
1047 DEVICE_PROFILE := TLWA901
1048 TPLINK_HWID := 0x09010004
1049 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU
1050 endef
1051
1052 TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
1053
1054 define Device/tl-wa7210n-v2
1055 $(Device/tplink-4mlzma)
1056 DEVICE_TITLE := TP-LINK TL-WA7210N
1057 DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev
1058 BOARDNAME := TL-WA7210N-v2
1059 DEVICE_PROFILE := TLWA7210
1060 TPLINK_HWID := 0x72100002
1061 CONSOLE := ttyATH0,115200
1062 endef
1063 TARGET_DEVICES += tl-wa7210n-v2