140123a4d89bcf0afce0420a7a35631441d78088
[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 $(word 1,$^) \
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-initramfs <optional extra arguments to mktplinkfw binary>
25 #
26 # -c combined image
27 define Build/mktplinkfw-initramfs
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 define Device/tplink
39 TPLINK_HWREV := 0x1
40 TPLINK_HEADER_VERSION := 1
41 LOADER_TYPE := gz
42 KERNEL := kernel-bin | patch-cmdline | lzma
43 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-initramfs
44 IMAGES := sysupgrade.bin factory.bin
45 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade
46 IMAGE/factory.bin := append-rootfs | mktplinkfw factory
47 endef
48
49 define Device/tplink-nolzma
50 $(Device/tplink)
51 LOADER_FLASH_OFFS := 0x22000
52 COMPILE := loader-$(1).gz
53 COMPILE/loader-$(1).gz := loader-okli-compile
54 KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1)
55 KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | mktplinkfw-initramfs
56 endef
57
58 define Device/tplink-4m
59 $(Device/tplink-nolzma)
60 TPLINK_FLASHLAYOUT := 4M
61 IMAGE_SIZE := 3904k
62 endef
63
64 define Device/tplink-8m
65 $(Device/tplink-nolzma)
66 TPLINK_FLASHLAYOUT := 8M
67 IMAGE_SIZE := 7936k
68 endef
69
70 define Device/tplink-4mlzma
71 $(Device/tplink)
72 TPLINK_FLASHLAYOUT := 4Mlzma
73 IMAGE_SIZE := 3904k
74 endef
75
76 define Device/tplink-8mlzma
77 $(Device/tplink)
78 TPLINK_FLASHLAYOUT := 8Mlzma
79 IMAGE_SIZE := 7936k
80 endef
81
82 define Device/tplink-16mlzma
83 $(Device/tplink)
84 TPLINK_FLASHLAYOUT := 16Mlzma
85 IMAGE_SIZE := 15872k
86 endef
87
88 define Device/cpe510-520
89 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)
90 IMAGE_SIZE := 7680k
91 BOARDNAME := CPE510
92 TPLINK_BOARD_NAME := CPE510
93 DEVICE_PROFILE := CPE510
94 LOADER_TYPE := elf
95 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
96 IMAGES := sysupgrade.bin factory.bin
97 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
98 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
99 endef
100
101 define Device/cpe210-220
102 $(Device/cpe510-520)
103 BOARDNAME := CPE210
104 endef
105 TARGET_DEVICES += cpe210-220 cpe510-520
106
107 define Device/tl-wdr4300-v1
108 $(Device/tplink-8mlzma)
109 BOARDNAME = TL-WDR4300
110 DEVICE_PROFILE = TLWDR4300
111 TPLINK_HWID := 0x43000001
112 endef
113
114 define Device/tl-wdr3500-v1
115 $(Device/tl-wdr4300-v1)
116 BOARDNAME = TL-WDR3500
117 TPLINK_HWID := 0x35000001
118 endef
119
120 define Device/tl-wdr3600-v1
121 $(Device/tl-wdr4300-v1)
122 TPLINK_HWID := 0x36000001
123 endef
124
125 define Device/tl-wdr4300-v1-il
126 $(Device/tl-wdr4300-v1)
127 TPLINK_HWID := 0x43008001
128 endef
129
130 define Device/tl-wdr4310-v1
131 $(Device/tl-wdr4300-v1)
132 TPLINK_HWID := 0x43100001
133 endef
134
135 define Device/mw4530r-v1
136 $(Device/tl-wdr4300-v1)
137 TPLINK_HWID := 0x45300001
138 endef
139 TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1
140
141 define Device/tl-wdr6500-v2
142 $(Device/tplink-8mlzma)
143 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
144 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | mktplinkfw-initramfs
145 BOARDNAME = TL-WDR6500-v2
146 DEVICE_PROFILE = TLWDR6500V2
147 TPLINK_HWID := 0x65000002
148 TPLINK_HEADER_VERSION := 2
149 endef
150 TARGET_DEVICES += tl-wdr6500-v2
151
152 define Device/tl-wdr3320-v2
153 $(Device/tplink-4mlzma)
154 BOARDNAME = TL-WDR3320-v2
155 DEVICE_PROFILE = TLWDR3320V2
156 TPLINK_HWID := 0x33200002
157 TPLINK_HEADER_VERSION := 2
158 endef
159 TARGET_DEVICES += tl-wdr3320-v2
160
161 define Device/archer-c5-v1
162 $(Device/tplink-16mlzma)
163 BOARDNAME := ARCHER-C5
164 DEVICE_PROFILE := ARCHERC7
165 TPLINK_HWID := 0xc5000001
166 endef
167
168 define Device/archer-c7-v1
169 $(Device/tplink-8mlzma)
170 BOARDNAME := ARCHER-C7
171 DEVICE_PROFILE := ARCHERC7
172 TPLINK_HWID := 0x75000001
173 endef
174
175 define Device/archer-c7-v2
176 $(Device/tplink-16mlzma)
177 BOARDNAME := ARCHER-C7-V2
178 DEVICE_PROFILE := ARCHERC7
179 TPLINK_HWID := 0xc7000002
180 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
181 endef
182
183 define Device/tl-wdr7500-v3
184 $(Device/tplink-8mlzma)
185 BOARDNAME := ARCHER-C7
186 DEVICE_PROFILE := ARCHERC7
187 TPLINK_HWID := 0x75000003
188 endef
189 TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2 tl-wdr7500-v3
190
191 define Device/tl-mr10u-v1
192 $(Device/tplink-4mlzma)
193 BOARDNAME := TL-MR10U
194 DEVICE_PROFILE := TLMR10U
195 TPLINK_HWID := 0x00100101
196 CONSOLE := ttyATH0,115200
197 endef
198
199 define Device/tl-mr11u-v1
200 $(Device/tplink-4mlzma)
201 BOARDNAME := TL-MR11U
202 DEVICE_PROFILE := TLMR11U
203 TPLINK_HWID := 0x00110101
204 CONSOLE := ttyATH0,115200
205 endef
206
207 define Device/tl-mr11u-v2
208 $(Device/tplink-4mlzma)
209 BOARDNAME := TL-MR11U
210 DEVICE_PROFILE := TLMR11U
211 TPLINK_HWID := 0x00110102
212 CONSOLE := ttyATH0,115200
213 endef
214
215 define Device/tl-mr12u-v1
216 $(Device/tplink-4mlzma)
217 BOARDNAME := TL-MR13U
218 DEVICE_PROFILE := TLMR12U
219 TPLINK_HWID := 0x00120101
220 CONSOLE := ttyATH0,115200
221 endef
222
223 define Device/tl-mr13u-v1
224 $(Device/tplink-4mlzma)
225 BOARDNAME := TL-MR13U
226 DEVICE_PROFILE := TLMR13U
227 TPLINK_HWID := 0x00130101
228 CONSOLE := ttyATH0,115200
229 endef
230 TARGET_DEVICES += tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1
231
232 define Device/tl-mr3020-v1
233 $(Device/tplink-4mlzma)
234 BOARDNAME := TL-MR3020
235 DEVICE_PROFILE := TLMR3020
236 TPLINK_HWID := 0x30200001
237 CONSOLE := ttyATH0,115200
238 endef
239
240 define Device/tl-mr3040-v1
241 $(Device/tplink-4mlzma)
242 BOARDNAME := TL-MR3040
243 DEVICE_PROFILE := TLMR3040
244 TPLINK_HWID := 0x30400001
245 CONSOLE := ttyATH0,115200
246 endef
247
248 define Device/tl-mr3040-v2
249 $(Device/tplink-4mlzma)
250 BOARDNAME := TL-MR3040-v2
251 DEVICE_PROFILE := TLMR3040
252 TPLINK_HWID := 0x30400002
253 CONSOLE := ttyATH0,115200
254 endef
255
256 define Device/tl-mr3220-v1
257 $(Device/tplink-4m)
258 BOARDNAME := TL-MR3220
259 DEVICE_PROFILE := TLMR3220
260 TPLINK_HWID := 0x32200001
261 endef
262
263 define Device/tl-mr3220-v2
264 $(Device/tplink-4mlzma)
265 BOARDNAME := TL-MR3220-v2
266 DEVICE_PROFILE := TLMR3220
267 TPLINK_HWID := 0x32200002
268 CONSOLE := ttyATH0,115200
269 endef
270
271 define Device/tl-mr3420-v1
272 $(Device/tplink-4m)
273 BOARDNAME := TL-MR3420
274 DEVICE_PROFILE := TLMR3420
275 TPLINK_HWID := 0x34200001
276 endef
277
278 define Device/tl-mr3420-v2
279 $(Device/tplink-4mlzma)
280 BOARDNAME := TL-MR3420-v2
281 DEVICE_PROFILE := TLMR3420
282 TPLINK_HWID := 0x34200002
283 endef
284 TARGET_DEVICES += tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-v2 tl-mr3420-v1 tl-mr3420-v2
285
286 define Device/tl-wr703n-v1
287 $(Device/tplink-4mlzma)
288 BOARDNAME := TL-WR703N
289 DEVICE_PROFILE := TLWR703
290 TPLINK_HWID := 0x07030101
291 CONSOLE := ttyATH0,115200
292 endef
293
294 define Device/tl-wr710n-v1
295 $(Device/tplink-8mlzma)
296 BOARDNAME := TL-WR710N
297 DEVICE_PROFILE := TLWR710
298 TPLINK_HWID := 0x07100001
299 CONSOLE := ttyATH0,115200
300 endef
301
302 define Device/tl-wr710n-v2
303 $(Device/tplink-4mlzma)
304 BOARDNAME := TL-WR710N
305 DEVICE_PROFILE := TLWR710
306 TPLINK_HWID := 0x07100002
307 CONSOLE := ttyATH0,115200
308 endef
309
310 define Device/tl-wr710n-v2.1
311 $(Device/tplink-8mlzma)
312 BOARDNAME := TL-WR710N
313 DEVICE_PROFILE := TLWR710
314 TPLINK_HWID := 0x07100002
315 TPLINK_HWREV := 0x00000002
316 CONSOLE := ttyATH0,115200
317 endef
318
319 define Device/tl-wr720n-v3
320 $(Device/tplink-4mlzma)
321 BOARDNAME := TL-WR720N-v3
322 DEVICE_PROFILE := TLWR720
323 TPLINK_HWID := 0x07200103
324 CONSOLE := ttyATH0,115200
325 endef
326
327 define Device/tl-wr720n-v4
328 $(Device/tplink-4mlzma)
329 BOARDNAME := TL-WR720N-v3
330 DEVICE_PROFILE := TLWR720
331 TPLINK_HWID := 0x07200104
332 CONSOLE := ttyATH0,115200
333 endef
334 TARGET_DEVICES += tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr710n-v2.1 tl-wr720n-v3 tl-wr720n-v4
335
336 define Device/tl-wr740n-v1
337 $(Device/tplink-4m)
338 BOARDNAME := TL-WR741ND
339 DEVICE_PROFILE := TLWR740
340 TPLINK_HWID := 0x07400001
341 endef
342
343 define Device/tl-wr740n-v3
344 $(Device/tplink-4m)
345 BOARDNAME := TL-WR741ND
346 DEVICE_PROFILE := TLWR740
347 TPLINK_HWID := 0x07400003
348 endef
349
350 define Device/tl-wr740n-v4
351 $(Device/tplink-4mlzma)
352 BOARDNAME := TL-WR741ND-v4
353 DEVICE_PROFILE := TLWR740
354 TPLINK_HWID := 0x07400004
355 CONSOLE := ttyATH0,115200
356 endef
357
358 define Device/tl-wr740n-v5
359 $(Device/tplink-4mlzma)
360 BOARDNAME := TL-WR741ND-v4
361 DEVICE_PROFILE := TLWR740
362 TPLINK_HWID := 0x07400005
363 CONSOLE := ttyATH0,115200
364 endef
365
366 define Device/tl-wr740n-v6
367 $(Device/tplink-4mlzma)
368 BOARDNAME := TL-WR841N-v9
369 DEVICE_PROFILE := TLWR740
370 TPLINK_HWID := 0x07400006
371 endef
372
373 define Device/tl-wr741nd-v1
374 $(Device/tplink-4m)
375 BOARDNAME := TL-WR741ND
376 DEVICE_PROFILE := TLWR741
377 TPLINK_HWID := 0x07410001
378 endef
379
380 define Device/tl-wr741nd-v2
381 $(Device/tplink-4m)
382 BOARDNAME := TL-WR741ND
383 DEVICE_PROFILE := TLWR741
384 TPLINK_HWID := 0x07410001
385 endef
386
387 define Device/tl-wr741nd-v4
388 $(Device/tplink-4mlzma)
389 BOARDNAME := TL-WR741ND-v4
390 DEVICE_PROFILE := TLWR741
391 TPLINK_HWID := 0x07410004
392 CONSOLE := ttyATH0,115200
393 endef
394
395 define Device/tl-wr741nd-v5
396 $(Device/tplink-4mlzma)
397 BOARDNAME := TL-WR741ND-v4
398 DEVICE_PROFILE := TLWR741
399 TPLINK_HWID := 0x07400005
400 CONSOLE := ttyATH0,115200
401 endef
402
403 define Device/tl-wr810n
404 $(Device/tplink-8mlzma)
405 BOARDNAME := TL-WR810N
406 DEVICE_PROFILE := TLWR810
407 TPLINK_HWID := 0x08100001
408 endef
409 TARGET_DEVICES += tl-wr810n
410
411 define Device/tl-wr743nd-v1
412 $(Device/tplink-4m)
413 BOARDNAME := TL-WR741ND
414 DEVICE_PROFILE := TLWR743
415 TPLINK_HWID := 0x07430001
416 endef
417
418 define Device/tl-wr743nd-v2
419 $(Device/tplink-4mlzma)
420 BOARDNAME := TL-WR741ND-v4
421 DEVICE_PROFILE := TLWR743
422 TPLINK_HWID := 0x07430002
423 CONSOLE := ttyATH0,115200
424 endef
425 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
426
427 define Device/tl-wr841-v1.5
428 $(Device/tplink-4m)
429 BOARDNAME := TL-WR841N-v1.5
430 DEVICE_PROFILE := TLWR841
431 TPLINK_HWID := 0x08410002
432 TPLINK_HWREV := 2
433 endef
434
435 define Device/tl-wr841-v3
436 $(Device/tplink-4m)
437 BOARDNAME := TL-WR941ND
438 DEVICE_PROFILE := TLWR841
439 TPLINK_HWID := 0x08410003
440 TPLINK_HWREV := 3
441 endef
442
443 define Device/tl-wr841-v5
444 $(Device/tplink-4m)
445 BOARDNAME := TL-WR741ND
446 DEVICE_PROFILE := TLWR841
447 TPLINK_HWID := 0x08410005
448 endef
449
450 define Device/tl-wr841-v7
451 $(Device/tplink-4m)
452 BOARDNAME := TL-WR841N-v7
453 DEVICE_PROFILE := TLWR841
454 TPLINK_HWID := 0x08410007
455 endef
456
457 define Device/tl-wr841-v8
458 $(Device/tplink-4mlzma)
459 BOARDNAME := TL-WR841N-v8
460 DEVICE_PROFILE := TLWR841
461 TPLINK_HWID := 0x08410008
462 endef
463
464 define Device/tl-wr841-v9
465 $(Device/tplink-4mlzma)
466 BOARDNAME := TL-WR841N-v9
467 DEVICE_PROFILE := TLWR841
468 TPLINK_HWID := 0x08410009
469 endef
470
471 define Device/tl-wr841-v10
472 $(Device/tplink-4mlzma)
473 BOARDNAME := TL-WR841N-v9
474 DEVICE_PROFILE := TLWR841
475 TPLINK_HWID := 0x08410010
476 endef
477
478 define Device/tl-wr841-v11
479 $(Device/tplink-4mlzma)
480 BOARDNAME := TL-WR841N-v9
481 DEVICE_PROFILE := TLWR841
482 TPLINK_HWID := 0x08410011
483 endef
484
485 define Device/tl-wr842n-v1
486 $(Device/tplink-8m)
487 BOARDNAME := TL-MR3420
488 DEVICE_PROFILE := TLWR842
489 TPLINK_HWID := 0x08420001
490 endef
491
492 define Device/tl-wr842n-v2
493 $(Device/tplink-8mlzma)
494 BOARDNAME := TL-WR842N-v2
495 DEVICE_PROFILE := TLWR842
496 TPLINK_HWID := 0x8420002
497 endef
498
499 define Device/tl-wr842n-v3
500 $(Device/tplink-16mlzma)
501 BOARDNAME := TL-WR842N-v3
502 DEVICE_PROFILE := TLWR842
503 TPLINK_HWID := 0x08420003
504 endef
505
506 define Device/tl-wr843nd-v1
507 $(Device/tplink-4mlzma)
508 BOARDNAME := TL-WR841N-v8
509 DEVICE_PROFILE := TLWR843
510 TPLINK_HWID := 0x08430001
511 endef
512
513 define Device/tl-wr847n-v8
514 $(Device/tplink-4mlzma)
515 BOARDNAME := TL-WR841N-v8
516 DEVICE_PROFILE := TLWR841
517 TPLINK_HWID := 0x08470008
518 endef
519 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
520
521 define Device/tl-wr941nd-v2
522 $(Device/tplink-4m)
523 BOARDNAME := TL-WR941ND
524 DEVICE_PROFILE := TLWR941
525 TPLINK_HWID := 0x09410002
526 TPLINK_HWREV := 2
527 endef
528
529 define Device/tl-wr941nd-v3
530 $(Device/tplink-4m)
531 BOARDNAME := TL-WR941ND
532 DEVICE_PROFILE := TLWR941
533 TPLINK_HWID := 0x09410002
534 TPLINK_HWREV := 2
535 endef
536
537 define Device/tl-wr941nd-v4
538 $(Device/tplink-4m)
539 BOARDNAME := TL-WR741ND
540 DEVICE_PROFILE := TLWR941
541 TPLINK_HWID := 0x09410004
542 endef
543
544 define Device/tl-wr941nd-v5
545 $(Device/tplink-4mlzma)
546 BOARDNAME := TL-WR941ND-v5
547 DEVICE_PROFILE := TLWR941
548 TPLINK_HWID := 0x09410005
549 endef
550
551 define Device/tl-wr941nd-v6
552 $(Device/tplink-4mlzma)
553 BOARDNAME := TL-WR941ND-v6
554 DEVICE_PROFILE := TLWR941
555 TPLINK_HWID := 0x09410006
556 endef
557
558 # Chinese version (unlike European) is similar to the TL-WDR3500
559 define Device/tl-wr941nd-v6-cn
560 $(Device/tplink-4mlzma)
561 BOARDNAME := TL-WDR3500
562 DEVICE_PROFILE := TLWR941
563 TPLINK_HWID := 0x09410006
564 endef
565 TARGET_DEVICES += tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn
566
567 define Device/tl-wr1041n-v2
568 $(Device/tplink-4mlzma)
569 BOARDNAME := TL-WR1041N-v2
570 DEVICE_PROFILE := TLWR1041
571 TPLINK_HWID := 0x10410002
572 endef
573 TARGET_DEVICES += tl-wr1041n-v2
574
575 define Device/tl-wr1043nd-v1
576 $(Device/tplink-8m)
577 BOARDNAME := TL-WR1043ND
578 DEVICE_PROFILE := TLWR1043
579 TPLINK_HWID := 0x10430001
580 endef
581
582 define Device/tl-wr1043nd-v2
583 $(Device/tplink-8mlzma)
584 BOARDNAME := TL-WR1043ND-v2
585 DEVICE_PROFILE := TLWR1043
586 TPLINK_HWID := 0x10430002
587 endef
588
589 define Device/tl-wr1043nd-v3
590 $(Device/tplink-8mlzma)
591 BOARDNAME := TL-WR1043ND-v2
592 DEVICE_PROFILE := TLWR1043
593 TPLINK_HWID := 0x10430003
594 endef
595 TARGET_DEVICES += tl-wr1043nd-v1 tl-wr1043nd-v2 tl-wr1043nd-v3
596
597 define Device/tl-wr2543-v1
598 $(Device/tplink-8mlzma)
599 BOARDNAME := TL-WR2543N
600 DEVICE_PROFILE := TLWR2543
601 TPLINK_HWID := 0x25430001
602 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
603 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
604 endef
605 TARGET_DEVICES += tl-wr2543-v1
606
607 define Device/tl-wdr4900-v2
608 $(Device/tplink-8mlzma)
609 BOARDNAME := TL-WDR4900-v2
610 DEVICE_PROFILE := TLWDR4900V2
611 TPLINK_HWID := 0x49000002
612 endef
613 TARGET_DEVICES += tl-wdr4900-v2
614
615 define Device/tl-wa701nd-v1
616 $(Device/tplink-4m)
617 BOARDNAME := TL-WA901ND
618 DEVICE_PROFILE := TLWA701
619 TPLINK_HWID := 0x07010001
620 endef
621
622 define Device/tl-wa701nd-v2
623 $(Device/tplink-4mlzma)
624 BOARDNAME := TL-WA701ND-v2
625 DEVICE_PROFILE := TLWA701
626 TPLINK_HWID := 0x07010002
627 CONSOLE := ttyATH0,115200
628 endef
629
630 define Device/tl-wa730re-v1
631 $(Device/tplink-4m)
632 BOARDNAME := TL-WA901ND
633 DEVICE_PROFILE := TLWA730RE
634 TPLINK_HWID := 0x07300001
635 endef
636
637 define Device/tl-wa750re-v1
638 $(Device/tplink-4mlzma)
639 BOARDNAME := TL-WA750RE
640 DEVICE_PROFILE := TLWA750
641 TPLINK_HWID := 0x07500001
642 endef
643
644 define Device/tl-wa7510n
645 $(Device/tplink-4m)
646 BOARDNAME := TL-WA7510N
647 DEVICE_PROFILE := TLWA7510
648 TPLINK_HWID := 0x75100001
649 endef
650 TARGET_DEVICES += tl-wa701nd-v1 tl-wa701nd-v2 tl-wa730re-v1 tl-wa750re-v1 tl-wa7510n
651
652 define Device/tl-wa801nd-v1
653 $(Device/tplink-4m)
654 BOARDNAME := TL-WA901ND
655 DEVICE_PROFILE := TLWA801
656 TPLINK_HWID := 0x08010001
657 endef
658
659 define Device/tl-wa801nd-v2
660 $(Device/tplink-4mlzma)
661 BOARDNAME := TL-WA801ND-v2
662 DEVICE_PROFILE := TLWA801
663 TPLINK_HWID := 0x08010002
664 endef
665
666 define Device/tl-wa801nd-v3
667 $(Device/tplink-4mlzma)
668 BOARDNAME := TL-WA801ND-v3
669 DEVICE_PROFILE := TLWA801
670 TPLINK_HWID := 0x08010003
671 endef
672
673 define Device/tl-wa830re-v1
674 $(Device/tplink-4m)
675 BOARDNAME := TL-WA901ND
676 DEVICE_PROFILE := TLWA830
677 TPLINK_HWID := 0x08300010
678 endef
679
680 define Device/tl-wa830re-v2
681 $(Device/tplink-4mlzma)
682 BOARDNAME := TL-WA830RE-v2
683 DEVICE_PROFILE := TLWA830
684 TPLINK_HWID := 0x08300002
685 endef
686
687 define Device/tl-wa850re-v1
688 $(Device/tplink-4mlzma)
689 BOARDNAME := TL-WA850RE
690 DEVICE_PROFILE := TLWA850
691 TPLINK_HWID := 0x08500001
692 endef
693
694 define Device/tl-wa860re-v1
695 $(Device/tplink-4mlzma)
696 BOARDNAME := TL-WA860RE
697 DEVICE_PROFILE := TLWA860
698 TPLINK_HWID := 0x08600001
699 endef
700 TARGET_DEVICES += tl-wa801nd-v1 tl-wa801nd-v2 tl-wa801nd-v3 tl-wa830re-v1 tl-wa830re-v2 tl-wa850re-v1 tl-wa860re-v1
701
702 define Device/tl-wa901nd-v1
703 $(Device/tplink-4m)
704 BOARDNAME := TL-WA901ND
705 DEVICE_PROFILE := TLWA901
706 TPLINK_HWID := 0x09010001
707 endef
708
709 define Device/tl-wa901nd-v2
710 $(Device/tplink-4m)
711 BOARDNAME := TL-WA901ND-v2
712 DEVICE_PROFILE := TLWA901
713 TPLINK_HWID := 0x09010002
714 endef
715
716 define Device/tl-wa901nd-v3
717 $(Device/tplink-4mlzma)
718 BOARDNAME := TL-WA901ND-v3
719 DEVICE_PROFILE := TLWA901
720 TPLINK_HWID := 0x09010003
721 endef
722
723 define Device/tl-wa901nd-v4
724 $(Device/tplink-4mlzma)
725 BOARDNAME := TL-WA901ND-v4
726 DEVICE_PROFILE := TLWA901
727 TPLINK_HWID := 0x09010004
728 endef
729
730 TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
731
732 define Device/tl-wa7210n-v2
733 $(Device/tplink-4mlzma)
734 BOARDNAME := TL-WA7210N-v2
735 DEVICE_PROFILE := TLWA7210
736 TPLINK_HWID := 0x72100002
737 CONSOLE := ttyATH0,115200
738 endef
739 TARGET_DEVICES += tl-wa7210n-v2
740