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