ar71xx/generic: add generic- prefix to vendor-specific image Makefile snippets
[openwrt/staging/wigyori.git] / target / linux / ar71xx / image / generic-tp-link.mk
1 DEVICE_VARS += LOADER_FLASH_OFFS TPLINK_BOARD_ID TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV
2
3 define Build/copy-file
4 cat "$(1)" > "$@"
5 endef
6
7 define Build/loader-okli
8 dd if=$(KDIR)/loader-$(1).gz bs=7680 conv=sync of="$@.new"
9 cat "$@" >> "$@.new"
10 mv "$@.new" "$@"
11 endef
12
13 define Build/loader-okli-compile
14 $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0 KERNEL_CMDLINE="$(CMDLINE)")
15 endef
16
17 # combine kernel and rootfs into one image
18 # mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
19 # <type> is "sysupgrade" or "factory"
20 #
21 # -a align the rootfs start on an <align> bytes boundary
22 # -j add jffs2 end-of-filesystem markers
23 # -s strip padding from end of the image
24 # -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
25 define Build/mktplinkfw
26 -$(STAGING_DIR_HOST)/bin/mktplinkfw \
27 -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \
28 -m $(TPLINK_HEADER_VERSION) \
29 -k $(IMAGE_KERNEL) \
30 -r $@ \
31 -o $@.new \
32 -j -X 0x40000 \
33 -a $(call rootfs_align,$(FILESYSTEM)) \
34 $(wordlist 2,$(words $(1)),$(1)) \
35 $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
36 endef
37
38 define Build/uImageArcher
39 mkimage -A $(LINUX_KARCH) \
40 -O linux -T kernel \
41 -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
42 -n '$(call toupper,$(LINUX_KARCH)) OpenWrt Linux-$(LINUX_VERSION)' -d $@ $@.new
43 @mv $@.new $@
44 endef
45
46
47 define Device/tplink
48 TPLINK_HWREV := 0x1
49 TPLINK_HEADER_VERSION := 1
50 LOADER_TYPE := gz
51 KERNEL := kernel-bin | patch-cmdline | lzma
52 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header
53 IMAGES := sysupgrade.bin factory.bin
54 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade
55 IMAGE/factory.bin := append-rootfs | mktplinkfw factory
56 endef
57
58 define Device/tplink-nolzma
59 $(Device/tplink)
60 LOADER_FLASH_OFFS := 0x22000
61 COMPILE := loader-$(1).gz
62 COMPILE/loader-$(1).gz := loader-okli-compile
63 KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1)
64 KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | tplink-v1-header
65 endef
66
67 define Device/tplink-4m
68 $(Device/tplink-nolzma)
69 TPLINK_FLASHLAYOUT := 4M
70 IMAGE_SIZE := 3904k
71 endef
72
73 define Device/tplink-8m
74 $(Device/tplink-nolzma)
75 TPLINK_FLASHLAYOUT := 8M
76 IMAGE_SIZE := 7936k
77 endef
78
79 define Device/tplink-4mlzma
80 $(Device/tplink)
81 TPLINK_FLASHLAYOUT := 4Mlzma
82 IMAGE_SIZE := 3904k
83 endef
84
85 define Device/tplink-8mlzma
86 $(Device/tplink)
87 TPLINK_FLASHLAYOUT := 8Mlzma
88 IMAGE_SIZE := 7936k
89 endef
90
91 define Device/tplink-16mlzma
92 $(Device/tplink)
93 TPLINK_FLASHLAYOUT := 16Mlzma
94 IMAGE_SIZE := 15872k
95 endef
96
97 define Device/archer-cxx
98 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
99 IMAGES := sysupgrade.bin factory.bin
100 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
101 append-metadata | check-size $$$$(IMAGE_SIZE)
102 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
103 endef
104
105 define Device/archer-c25-v1
106 $(Device/archer-cxx)
107 DEVICE_TITLE := TP-LINK Archer C25 v1
108 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887
109 BOARDNAME := ARCHER-C25-V1
110 TPLINK_BOARD_ID := ARCHER-C25-V1
111 DEVICE_PROFILE := ARCHERC25V1
112 IMAGE_SIZE := 7808k
113 LOADER_TYPE := elf
114 MTDPARTS := spi0.0:128k(factory-uboot)ro,64k(u-boot)ro,1536k(kernel),6272k(rootfs),128k(config)ro,64k(art)ro,7808k@0x30000(firmware)
115 SUPPORTED_DEVICES := archer-c25-v1
116 endef
117 TARGET_DEVICES += archer-c25-v1
118
119 define Device/archer-c58-v1
120 $(Device/archer-cxx)
121 DEVICE_TITLE := TP-LINK Archer C58 v1
122 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
123 BOARDNAME := ARCHER-C58-V1
124 TPLINK_BOARD_ID := ARCHER-C58-V1
125 DEVICE_PROFILE := ARCHERC58V1
126 IMAGE_SIZE := 7936k
127 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
128 SUPPORTED_DEVICES := archer-c58-v1
129 endef
130 TARGET_DEVICES += archer-c58-v1
131
132 define Device/archer-c59-v1
133 $(Device/archer-cxx)
134 DEVICE_TITLE := TP-LINK Archer C59 v1
135 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888
136 BOARDNAME := ARCHER-C59-V1
137 TPLINK_BOARD_ID := ARCHER-C59-V1
138 DEVICE_PROFILE := ARCHERC59V1
139 IMAGE_SIZE := 14528k
140 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware)
141 SUPPORTED_DEVICES := archer-c59-v1
142 endef
143 TARGET_DEVICES += archer-c59-v1
144
145 define Device/archer-c60-v1
146 $(Device/archer-cxx)
147 DEVICE_TITLE := TP-LINK Archer C60 v1
148 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
149 BOARDNAME := ARCHER-C60-V1
150 TPLINK_BOARD_ID := ARCHER-C60-V1
151 DEVICE_PROFILE := ARCHERC60V1
152 IMAGE_SIZE := 7936k
153 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
154 SUPPORTED_DEVICES := archer-c60-v1
155 endef
156 TARGET_DEVICES += archer-c60-v1
157
158 define Device/archer-c5-v1
159 $(Device/tplink-16mlzma)
160 DEVICE_TITLE := TP-LINK Archer C5 v1
161 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
162 BOARDNAME := ARCHER-C5
163 DEVICE_PROFILE := ARCHERC7
164 TPLINK_HWID := 0xc5000001
165 endef
166 TARGET_DEVICES += archer-c5-v1
167
168 define Device/archer-c7-v1
169 $(Device/tplink-8mlzma)
170 DEVICE_TITLE := TP-LINK Archer C7 v1
171 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
172 BOARDNAME := ARCHER-C7
173 DEVICE_PROFILE := ARCHERC7
174 TPLINK_HWID := 0x75000001
175 endef
176 TARGET_DEVICES += archer-c7-v1
177
178 define Device/archer-c7-v2
179 $(Device/tplink-16mlzma)
180 DEVICE_TITLE := TP-LINK Archer C7 v2
181 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
182 BOARDNAME := ARCHER-C7-V2
183 DEVICE_PROFILE := ARCHERC7
184 TPLINK_HWID := 0xc7000002
185 IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
186 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
187 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
188 endef
189 TARGET_DEVICES += archer-c7-v2
190
191 define Device/archer-c7-v2-il
192 $(Device/tplink-16mlzma)
193 DEVICE_TITLE := TP-LINK Archer C7 v2 (IL)
194 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
195 BOARDNAME := ARCHER-C7-V2
196 DEVICE_PROFILE := ARCHERC7
197 TPLINK_HWID := 0xc7000002
198 TPLINK_HWREV := 0x494c0001
199 endef
200 TARGET_DEVICES += archer-c7-v2-il
201
202 define Device/tl-wdr7500-v3
203 $(Device/tplink-8mlzma)
204 DEVICE_TITLE := TP-LINK Archer C7 v3
205 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
206 BOARDNAME := ARCHER-C7
207 DEVICE_PROFILE := ARCHERC7
208 TPLINK_HWID := 0x75000003
209 endef
210 TARGET_DEVICES += tl-wdr7500-v3
211
212 define Device/archer-c7-v4
213 $(Device/archer-cxx)
214 DEVICE_TITLE := TP-LINK Archer C7 v4
215 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
216 BOARDNAME := ARCHER-C7-V4
217 TPLINK_BOARD_ID := ARCHER-C7-V4
218 IMAGE_SIZE := 15104k
219 LOADER_TYPE := elf
220 MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,1536k(kernel),13568k(rootfs),960k(config)ro,64k(art)ro,15104k@0x40000(firmware)
221 SUPPORTED_DEVICES := archer-c7-v4
222 endef
223 TARGET_DEVICES += archer-c7-v4
224
225 define Device/cpe510-520-v1
226 DEVICE_TITLE := TP-LINK CPE510/520 v1
227 DEVICE_PACKAGES := rssileds
228 MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),6144k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware)
229 IMAGE_SIZE := 7680k
230 BOARDNAME := CPE510
231 TPLINK_BOARD_ID := CPE510
232 DEVICE_PROFILE := CPE510
233 LOADER_TYPE := elf
234 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
235 IMAGES := sysupgrade.bin factory.bin
236 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
237 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
238 endef
239 TARGET_DEVICES += cpe510-520-v1
240
241 define Device/cpe210-220-v1
242 $(Device/cpe510-520-v1)
243 DEVICE_TITLE := TP-LINK CPE210/220 v1
244 BOARDNAME := CPE210
245 TPLINK_BOARD_ID := CPE210
246 endef
247 TARGET_DEVICES += cpe210-220-v1
248
249 define Device/wbs210-v1
250 $(Device/cpe510-520-v1)
251 DEVICE_TITLE := TP-LINK WBS210 v1
252 BOARDNAME := WBS210
253 TPLINK_BOARD_ID := WBS210
254 endef
255 TARGET_DEVICES += wbs210-v1
256
257 define Device/wbs510-v1
258 $(Device/cpe510-520-v1)
259 DEVICE_TITLE := TP-LINK WBS510 v1
260 BOARDNAME := WBS510
261 TPLINK_BOARD_ID := WBS510
262 endef
263 TARGET_DEVICES += wbs510-v1
264
265 define Device/eap120-v1
266 DEVICE_TITLE := TP-LINK EAP120 v1
267 MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware)
268 IMAGE_SIZE := 15872k
269 BOARDNAME := EAP120
270 TPLINK_BOARD_ID := EAP120
271 DEVICE_PROFILE := EAP120
272 LOADER_TYPE := elf
273 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
274 IMAGES := sysupgrade.bin factory.bin
275 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
276 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
277 endef
278 TARGET_DEVICES += eap120-v1
279
280 define Device/re450-v1
281 DEVICE_TITLE := TP-LINK RE450 v1
282 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
283 MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro
284 IMAGE_SIZE := 7936k
285 BOARDNAME := RE450
286 TPLINK_BOARD_ID := RE450
287 DEVICE_PROFILE := RE450
288 LOADER_TYPE := elf
289 TPLINK_HWID := 0x0
290 TPLINK_HWREV := 0
291 TPLINK_HEADER_VERSION := 1
292 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
293 IMAGES := sysupgrade.bin factory.bin
294 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
295 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
296 endef
297 TARGET_DEVICES += re450-v1
298
299 define Device/tl-mr10u-v1
300 $(Device/tplink-4mlzma)
301 DEVICE_TITLE := TP-LINK TL-MR10U v1
302 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
303 BOARDNAME := TL-MR10U
304 DEVICE_PROFILE := TLMR10U
305 TPLINK_HWID := 0x00100101
306 CONSOLE := ttyATH0,115200
307 endef
308 TARGET_DEVICES += tl-mr10u-v1
309
310 define Device/tl-mr11u-v1
311 $(Device/tplink-4mlzma)
312 DEVICE_TITLE := TP-LINK TL-MR11U v1
313 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
314 BOARDNAME := TL-MR11U
315 DEVICE_PROFILE := TLMR11U
316 TPLINK_HWID := 0x00110101
317 CONSOLE := ttyATH0,115200
318 endef
319 TARGET_DEVICES += tl-mr11u-v1
320
321 define Device/tl-mr11u-v2
322 $(Device/tl-mr11u-v1)
323 DEVICE_TITLE := TP-LINK TL-MR11U v2
324 TPLINK_HWID := 0x00110102
325 endef
326 TARGET_DEVICES += tl-mr11u-v2
327
328 define Device/tl-mr12u-v1
329 $(Device/tplink-4mlzma)
330 DEVICE_TITLE := TP-LINK TL-MR12U v1
331 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
332 BOARDNAME := TL-MR13U
333 DEVICE_PROFILE := TLMR12U
334 TPLINK_HWID := 0x00120101
335 CONSOLE := ttyATH0,115200
336 endef
337 TARGET_DEVICES += tl-mr12u-v1
338
339 define Device/tl-mr13u-v1
340 $(Device/tl-mr12u-v1)
341 DEVICE_TITLE := TP-LINK TL-MR13U v1
342 DEVICE_PROFILE := TLMR13U
343 TPLINK_HWID := 0x00130101
344 endef
345 TARGET_DEVICES += tl-mr13u-v1
346
347 define Device/tl-mr3020-v1
348 $(Device/tplink-4mlzma)
349 DEVICE_TITLE := TP-LINK TL-MR3020 v1
350 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
351 BOARDNAME := TL-MR3020
352 DEVICE_PROFILE := TLMR3020
353 TPLINK_HWID := 0x30200001
354 CONSOLE := ttyATH0,115200
355 endef
356 TARGET_DEVICES += tl-mr3020-v1
357
358 define Device/tl-mr3040-v1
359 $(Device/tl-mr3020-v1)
360 DEVICE_TITLE := TP-LINK TL-MR3040 v1
361 BOARDNAME := TL-MR3040
362 DEVICE_PROFILE := TLMR3040
363 TPLINK_HWID := 0x30400001
364 endef
365 TARGET_DEVICES += tl-mr3040-v1
366
367 define Device/tl-mr3040-v2
368 $(Device/tl-mr3040-v1)
369 DEVICE_TITLE := TP-LINK TL-MR3040 v2
370 BOARDNAME := TL-MR3040-v2
371 TPLINK_HWID := 0x30400002
372 endef
373 TARGET_DEVICES += tl-mr3040-v2
374
375 define Device/tl-mr3220-v1
376 $(Device/tplink-4m)
377 DEVICE_TITLE := TP-LINK TL-MR3220 v1
378 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
379 BOARDNAME := TL-MR3220
380 DEVICE_PROFILE := TLMR3220
381 TPLINK_HWID := 0x32200001
382 endef
383 TARGET_DEVICES += tl-mr3220-v1
384
385 define Device/tl-mr3220-v2
386 $(Device/tplink-4mlzma)
387 DEVICE_TITLE := TP-LINK TL-MR3220 v2
388 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
389 BOARDNAME := TL-MR3220-v2
390 DEVICE_PROFILE := TLMR3220
391 TPLINK_HWID := 0x32200002
392 CONSOLE := ttyATH0,115200
393 endef
394 TARGET_DEVICES += tl-mr3220-v2
395
396 define Device/tl-mr3420-v1
397 $(Device/tplink-4m)
398 DEVICE_TITLE := TP-LINK TL-MR3420 v1
399 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
400 BOARDNAME := TL-MR3420
401 DEVICE_PROFILE := TLMR3420
402 TPLINK_HWID := 0x34200001
403 endef
404 TARGET_DEVICES += tl-mr3420-v1
405
406 define Device/tl-mr3420-v2
407 $(Device/tplink-4mlzma)
408 DEVICE_TITLE := TP-LINK TL-MR3420 v2
409 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
410 BOARDNAME := TL-MR3420-v2
411 DEVICE_PROFILE := TLMR3420
412 TPLINK_HWID := 0x34200002
413 endef
414 TARGET_DEVICES += tl-mr3420-v2
415
416 define Device/tl-mr6400-v1
417 $(Device/tplink-8mlzma)
418 DEVICE_TITLE := TP-LINK TL-MR6400 v1
419 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
420 BOARDNAME := TL-MR6400
421 DEVICE_PROFILE := TLMR6400
422 TPLINK_HWID := 0x64000001
423 endef
424 TARGET_DEVICES += tl-mr6400-v1
425
426 define Device/tl-wa701nd-v1
427 $(Device/tplink-4m)
428 DEVICE_TITLE := TP-LINK TL-WA701N/ND v1
429 BOARDNAME := TL-WA901ND
430 DEVICE_PROFILE := TLWA701
431 TPLINK_HWID := 0x07010001
432 endef
433 TARGET_DEVICES += tl-wa701nd-v1
434
435 define Device/tl-wa701nd-v2
436 $(Device/tplink-4mlzma)
437 DEVICE_TITLE := TP-LINK TL-WA701N/ND v2
438 BOARDNAME := TL-WA701ND-v2
439 DEVICE_PROFILE := TLWA701
440 TPLINK_HWID := 0x07010002
441 CONSOLE := ttyATH0,115200
442 endef
443 TARGET_DEVICES += tl-wa701nd-v2
444
445 define Device/tl-wa7210n-v2
446 $(Device/tplink-4mlzma)
447 DEVICE_TITLE := TP-LINK TL-WA7210N v2
448 DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev
449 BOARDNAME := TL-WA7210N-v2
450 DEVICE_PROFILE := TLWA7210
451 TPLINK_HWID := 0x72100002
452 CONSOLE := ttyATH0,115200
453 endef
454 TARGET_DEVICES += tl-wa7210n-v2
455
456 define Device/tl-wa730re-v1
457 $(Device/tplink-4m)
458 DEVICE_TITLE := TP-LINK TL-WA730RE v1
459 BOARDNAME := TL-WA901ND
460 DEVICE_PROFILE := TLWA730RE
461 TPLINK_HWID := 0x07300001
462 endef
463 TARGET_DEVICES += tl-wa730re-v1
464
465 define Device/tl-wa750re-v1
466 $(Device/tplink-4mlzma)
467 DEVICE_TITLE := TP-LINK TL-WA750RE v1
468 DEVICE_PACKAGES := rssileds
469 BOARDNAME := TL-WA750RE
470 DEVICE_PROFILE := TLWA750
471 TPLINK_HWID := 0x07500001
472 endef
473 TARGET_DEVICES += tl-wa750re-v1
474
475 define Device/tl-wa7510n-v1
476 $(Device/tplink-4m)
477 DEVICE_TITLE := TP-LINK TL-WA7510N v1
478 BOARDNAME := TL-WA7510N
479 DEVICE_PROFILE := TLWA7510
480 TPLINK_HWID := 0x75100001
481 endef
482 TARGET_DEVICES += tl-wa7510n-v1
483
484 define Device/tl-wa801nd-v1
485 $(Device/tplink-4m)
486 DEVICE_TITLE := TP-LINK TL-WA801N/ND v1
487 BOARDNAME := TL-WA901ND
488 DEVICE_PROFILE := TLWA801
489 TPLINK_HWID := 0x08010001
490 endef
491 TARGET_DEVICES += tl-wa801nd-v1
492
493 define Device/tl-wa801nd-v2
494 $(Device/tplink-4mlzma)
495 DEVICE_TITLE := TP-LINK TL-WA801N/ND v2
496 BOARDNAME := TL-WA801ND-v2
497 DEVICE_PROFILE := TLWA801
498 TPLINK_HWID := 0x08010002
499 endef
500 TARGET_DEVICES += tl-wa801nd-v2
501
502 define Device/tl-wa801nd-v3
503 $(Device/tplink-4mlzma)
504 DEVICE_TITLE := TP-LINK TL-WA801N/ND v3
505 BOARDNAME := TL-WA801ND-v3
506 DEVICE_PROFILE := TLWA801
507 TPLINK_HWID := 0x08010003
508 endef
509 TARGET_DEVICES += tl-wa801nd-v3
510
511 define Device/tl-wa830re-v1
512 $(Device/tplink-4m)
513 DEVICE_TITLE := TP-LINK TL-WA830RE v1
514 BOARDNAME := TL-WA901ND
515 DEVICE_PROFILE := TLWA830
516 TPLINK_HWID := 0x08300010
517 endef
518 TARGET_DEVICES += tl-wa830re-v1
519
520 define Device/tl-wa830re-v2
521 $(Device/tplink-4mlzma)
522 DEVICE_TITLE := TP-LINK TL-WA830RE v2
523 BOARDNAME := TL-WA830RE-v2
524 DEVICE_PROFILE := TLWA830
525 TPLINK_HWID := 0x08300002
526 endef
527 TARGET_DEVICES += tl-wa830re-v2
528
529 define Device/tl-wa850re-v1
530 $(Device/tplink-4mlzma)
531 DEVICE_TITLE := TP-LINK TL-WA850RE v1
532 DEVICE_PACKAGES := rssileds
533 BOARDNAME := TL-WA850RE
534 DEVICE_PROFILE := TLWA850
535 TPLINK_HWID := 0x08500001
536 endef
537 TARGET_DEVICES += tl-wa850re-v1
538
539 define Device/tl-wa85xre
540 $(Device/tplink)
541 TPLINK_HWREV := 0
542 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
543 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
544 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
545 MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware)
546 endef
547
548 define Device/tl-wa850re-v2
549 $(Device/tl-wa85xre)
550 DEVICE_TITLE := TP-LINK TL-WA850RE v2
551 DEVICE_PACKAGES := rssileds
552 BOARDNAME := TL-WA850RE-V2
553 DEVICE_PROFILE := TLWA850
554 TPLINK_BOARD_ID := TLWA850REV2
555 TPLINK_HWID := 0x08500002
556 endef
557 TARGET_DEVICES += tl-wa850re-v2
558
559 define Device/tl-wa855re-v1
560 $(Device/tl-wa85xre)
561 DEVICE_TITLE := TP-LINK TL-WA855RE v1
562 BOARDNAME := TL-WA855RE-v1
563 DEVICE_PROFILE := TLWA855RE
564 TPLINK_HWID := 0x08550001
565 TPLINK_BOARD_ID := TLWA855REV1
566 endef
567 TARGET_DEVICES += tl-wa855re-v1
568
569
570 define Device/tl-wa860re-v1
571 $(Device/tplink-4mlzma)
572 DEVICE_TITLE := TP-LINK TL-WA860RE v1
573 BOARDNAME := TL-WA860RE
574 DEVICE_PROFILE := TLWA860
575 TPLINK_HWID := 0x08600001
576 endef
577 TARGET_DEVICES += tl-wa860re-v1
578
579 define Device/tl-wa901nd-v1
580 $(Device/tplink-4m)
581 DEVICE_TITLE := TP-LINK TL-WA901N/ND v1
582 BOARDNAME := TL-WA901ND
583 DEVICE_PROFILE := TLWA901
584 TPLINK_HWID := 0x09010001
585 endef
586 TARGET_DEVICES += tl-wa901nd-v1
587
588 define Device/tl-wa901nd-v2
589 $(Device/tplink-4m)
590 DEVICE_TITLE := TP-LINK TL-WA901N/ND v2
591 BOARDNAME := TL-WA901ND-v2
592 DEVICE_PROFILE := TLWA901
593 TPLINK_HWID := 0x09010002
594 endef
595 TARGET_DEVICES += tl-wa901nd-v2
596
597 define Device/tl-wa901nd-v3
598 $(Device/tplink-4mlzma)
599 DEVICE_TITLE := TP-LINK TL-WA901N/ND v3
600 BOARDNAME := TL-WA901ND-v3
601 DEVICE_PROFILE := TLWA901
602 TPLINK_HWID := 0x09010003
603 endef
604 TARGET_DEVICES += tl-wa901nd-v3
605
606 define Device/tl-wa901nd-v4
607 $(Device/tplink-4mlzma)
608 DEVICE_TITLE := TP-LINK TL-WA901N/ND v4
609 BOARDNAME := TL-WA901ND-v4
610 DEVICE_PROFILE := TLWA901
611 TPLINK_HWID := 0x09010004
612 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU
613 endef
614 TARGET_DEVICES += tl-wa901nd-v4
615
616 define Device/tl-wa901nd-v5
617 $(Device/tl-wa901nd-v4)
618 DEVICE_TITLE := TP-LINK TL-WA901N/ND v5
619 BOARDNAME := TL-WA901ND-v5
620 TPLINK_HWID := 0x09010005
621 endef
622 TARGET_DEVICES += tl-wa901nd-v5
623
624 define Device/tl-wdr3320-v2
625 $(Device/tplink-4mlzma)
626 DEVICE_TITLE := TP-LINK TL-WDR3320 v2
627 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
628 BOARDNAME := TL-WDR3320-v2
629 DEVICE_PROFILE := TLWDR3320V2
630 TPLINK_HWID := 0x33200002
631 TPLINK_HEADER_VERSION := 2
632 endef
633 TARGET_DEVICES += tl-wdr3320-v2
634
635 define Device/tl-wdr3500-v1
636 $(Device/tplink-8mlzma)
637 DEVICE_TITLE := TP-LINK TL-WDR3500 v1
638 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
639 BOARDNAME := TL-WDR3500
640 DEVICE_PROFILE := TLWDR4300
641 TPLINK_HWID := 0x35000001
642 endef
643 TARGET_DEVICES += tl-wdr3500-v1
644
645 define Device/tl-wdr3600-v1
646 $(Device/tl-wdr3500-v1)
647 DEVICE_TITLE := TP-LINK TL-WDR3600 v1
648 BOARDNAME := TL-WDR4300
649 TPLINK_HWID := 0x36000001
650 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
651 endef
652 TARGET_DEVICES += tl-wdr3600-v1
653
654 define Device/tl-wdr4300-v1
655 $(Device/tl-wdr3600-v1)
656 DEVICE_TITLE := TP-LINK TL-WDR4300 v1
657 TPLINK_HWID := 0x43000001
658 endef
659 TARGET_DEVICES += tl-wdr4300-v1
660
661 define Device/tl-wdr4300-v1-il
662 $(Device/tl-wdr3500-v1)
663 DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL)
664 BOARDNAME := TL-WDR4300
665 TPLINK_HWID := 0x43008001
666 endef
667 TARGET_DEVICES += tl-wdr4300-v1-il
668
669 define Device/tl-wdr4310-v1
670 $(Device/tl-wdr4300-v1-il)
671 DEVICE_TITLE := TP-LINK TL-WDR4310 v1
672 TPLINK_HWID := 0x43100001
673 endef
674 TARGET_DEVICES += tl-wdr4310-v1
675
676 define Device/tl-wdr4900-v2
677 $(Device/tplink-8mlzma)
678 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
679 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
680 BOARDNAME := TL-WDR4900-v2
681 DEVICE_PROFILE := TLWDR4900V2
682 TPLINK_HWID := 0x49000002
683 endef
684 TARGET_DEVICES += tl-wdr4900-v2
685
686 define Device/tl-wdr6500-v2
687 $(Device/tplink-8mlzma)
688 DEVICE_TITLE := TP-LINK TL-WDR6500 v2
689 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
690 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
691 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | tplink-v1-header
692 BOARDNAME := TL-WDR6500-v2
693 DEVICE_PROFILE := TLWDR6500V2
694 TPLINK_HWID := 0x65000002
695 TPLINK_HEADER_VERSION := 2
696 endef
697 TARGET_DEVICES += tl-wdr6500-v2
698
699 define Device/mw4530r-v1
700 $(Device/tl-wdr4300-v1)
701 DEVICE_TITLE := Mercury MW4530R v1
702 TPLINK_HWID := 0x45300001
703 endef
704 TARGET_DEVICES += mw4530r-v1
705
706 define Device/tl-wpa8630-v1
707 $(Device/tplink-8mlzma)
708 DEVICE_TITLE := TP-LINK TL-WPA8630 v1
709 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
710 BOARDNAME := TL-WPA8630
711 DEVICE_PROFILE := TL-WPA8630
712 TPLINK_HWID := 0x86300001
713 endef
714 TARGET_DEVICES += tl-wpa8630-v1
715
716 define Device/tl-wr1041n-v2
717 $(Device/tplink-4mlzma)
718 DEVICE_TITLE := TP-LINK TL-WR1041N v2
719 BOARDNAME := TL-WR1041N-v2
720 DEVICE_PROFILE := TLWR1041
721 TPLINK_HWID := 0x10410002
722 endef
723 TARGET_DEVICES += tl-wr1041n-v2
724
725 define Device/tl-wr1043n-v5
726 $(Device/archer-cxx)
727 DEVICE_TITLE := TP-LINK TL-WR1043N v5
728 BOARDNAME := TL-WR1043N-v5
729 SUPPORTED_DEVICES := tl-wr1043n-v5
730 DEVICE_PROFILE := TLWR1043
731 MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,15104k(firmware),128k(product-info)ro,640k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(art)ro
732 IMAGE_SIZE := 15104k
733 TPLINK_BOARD_ID := TLWR1043NV5
734 endef
735 TARGET_DEVICES += tl-wr1043n-v5
736
737 define Device/tl-wr1043nd-v1
738 $(Device/tplink-8m)
739 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
740 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
741 BOARDNAME := TL-WR1043ND
742 DEVICE_PROFILE := TLWR1043
743 TPLINK_HWID := 0x10430001
744 endef
745 TARGET_DEVICES += tl-wr1043nd-v1
746
747 define Device/tl-wr1043nd-v2
748 $(Device/tplink-8mlzma)
749 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
750 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
751 BOARDNAME := TL-WR1043ND-v2
752 DEVICE_PROFILE := TLWR1043
753 TPLINK_HWID := 0x10430002
754 endef
755 TARGET_DEVICES += tl-wr1043nd-v2
756
757 define Device/tl-wr1043nd-v3
758 $(Device/tl-wr1043nd-v2)
759 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
760 TPLINK_HWID := 0x10430003
761 endef
762 TARGET_DEVICES += tl-wr1043nd-v3
763
764 define Device/tl-wr1043nd-v4
765 $(Device/tplink)
766 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
767 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
768 BOARDNAME := TL-WR1043ND-v4
769 DEVICE_PROFILE := TLWR1043
770 TPLINK_HWID := 0x10430004
771 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)
772 IMAGE_SIZE := 15552k
773 TPLINK_BOARD_ID := TLWR1043NDV4
774 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
775 IMAGES := sysupgrade.bin factory.bin
776 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
777 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
778 endef
779 TARGET_DEVICES += tl-wr1043nd-v4
780
781 define Device/tl-wr2543-v1
782 $(Device/tplink-8mlzma)
783 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
784 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
785 BOARDNAME := TL-WR2543N
786 DEVICE_PROFILE := TLWR2543
787 TPLINK_HWID := 0x25430001
788 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
789 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
790 endef
791 TARGET_DEVICES += tl-wr2543-v1
792
793 define Device/tl-wr703n-v1
794 $(Device/tplink-4mlzma)
795 DEVICE_TITLE := TP-LINK TL-WR703N v1
796 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
797 BOARDNAME := TL-WR703N
798 DEVICE_PROFILE := TLWR703
799 TPLINK_HWID := 0x07030101
800 CONSOLE := ttyATH0,115200
801 endef
802 TARGET_DEVICES += tl-wr703n-v1
803
804 define Device/tl-wr710n-v1
805 $(Device/tplink-8mlzma)
806 DEVICE_TITLE := TP-LINK TL-WR710N v1
807 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
808 BOARDNAME := TL-WR710N
809 DEVICE_PROFILE := TLWR710
810 TPLINK_HWID := 0x07100001
811 CONSOLE := ttyATH0,115200
812 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
813 endef
814 TARGET_DEVICES += tl-wr710n-v1
815
816 define Device/tl-wr710n-v2
817 $(Device/tplink-4mlzma)
818 DEVICE_TITLE := TP-LINK TL-WR710N v2
819 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
820 BOARDNAME := TL-WR710N
821 DEVICE_PROFILE := TLWR710
822 TPLINK_HWID := 0x07100002
823 CONSOLE := ttyATH0,115200
824 endef
825 TARGET_DEVICES += tl-wr710n-v2
826
827 define Device/tl-wr710n-v2.1
828 $(Device/tl-wr710n-v1)
829 DEVICE_TITLE := TP-LINK TL-WR710N v2.1
830 TPLINK_HWID := 0x07100002
831 TPLINK_HWREV := 0x00000002
832 endef
833 TARGET_DEVICES += tl-wr710n-v2.1
834
835 define Device/tl-wr720n-v3
836 $(Device/tplink-4mlzma)
837 DEVICE_TITLE := TP-LINK TL-WR720N v3
838 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
839 BOARDNAME := TL-WR720N-v3
840 DEVICE_PROFILE := TLWR720
841 TPLINK_HWID := 0x07200103
842 CONSOLE := ttyATH0,115200
843 endef
844 TARGET_DEVICES += tl-wr720n-v3
845
846 define Device/tl-wr720n-v4
847 $(Device/tl-wr720n-v3)
848 DEVICE_TITLE := TP-LINK TL-WR720N v4
849 TPLINK_HWID := 0x07200104
850 endef
851 TARGET_DEVICES += tl-wr720n-v4
852
853 define Device/tl-wr740n-v1
854 $(Device/tplink-4m)
855 DEVICE_TITLE := TP-LINK TL-WR740N/ND v1
856 BOARDNAME := TL-WR741ND
857 DEVICE_PROFILE := TLWR740
858 TPLINK_HWID := 0x07400001
859 endef
860 TARGET_DEVICES += tl-wr740n-v1
861
862 define Device/tl-wr740n-v3
863 $(Device/tl-wr740n-v1)
864 DEVICE_TITLE := TP-LINK TL-WR740N/ND v3
865 TPLINK_HWID := 0x07400003
866 endef
867 TARGET_DEVICES += tl-wr740n-v3
868
869 define Device/tl-wr740n-v4
870 $(Device/tplink-4mlzma)
871 DEVICE_TITLE := TP-LINK TL-WR740N/ND v4
872 BOARDNAME := TL-WR741ND-v4
873 DEVICE_PROFILE := TLWR740
874 TPLINK_HWID := 0x07400004
875 CONSOLE := ttyATH0,115200
876 endef
877 TARGET_DEVICES += tl-wr740n-v4
878
879 define Device/tl-wr740n-v5
880 $(Device/tl-wr740n-v4)
881 DEVICE_TITLE := TP-LINK TL-WR740N/ND v5
882 TPLINK_HWID := 0x07400005
883 endef
884 TARGET_DEVICES += tl-wr740n-v5
885
886 define Device/tl-wr740n-v6
887 $(Device/tplink-4mlzma)
888 DEVICE_TITLE := TP-LINK TL-WR740N/ND v6
889 BOARDNAME := TL-WR740N-v6
890 DEVICE_PROFILE := TLWR740
891 TPLINK_HWID := 0x07400006
892 endef
893 TARGET_DEVICES += tl-wr740n-v6
894
895 define Device/tl-wr741nd-v1
896 $(Device/tplink-4m)
897 DEVICE_TITLE := TP-LINK TL-WR741N/ND v1
898 BOARDNAME := TL-WR741ND
899 DEVICE_PROFILE := TLWR741
900 TPLINK_HWID := 0x07410001
901 endef
902 TARGET_DEVICES += tl-wr741nd-v1
903
904 define Device/tl-wr741nd-v2
905 $(Device/tl-wr741nd-v1)
906 DEVICE_TITLE := TP-LINK TL-WR741N/ND v2
907 endef
908 TARGET_DEVICES += tl-wr741nd-v2
909
910 define Device/tl-wr741nd-v4
911 $(Device/tplink-4mlzma)
912 DEVICE_TITLE := TP-LINK TL-WR741N/ND v4
913 BOARDNAME := TL-WR741ND-v4
914 DEVICE_PROFILE := TLWR741
915 TPLINK_HWID := 0x07410004
916 CONSOLE := ttyATH0,115200
917 endef
918 TARGET_DEVICES += tl-wr741nd-v4
919
920 define Device/tl-wr741nd-v5
921 $(Device/tl-wr741nd-v4)
922 DEVICE_TITLE := TP-LINK TL-WR741N/ND v5
923 TPLINK_HWID := 0x07400005
924 endef
925 TARGET_DEVICES += tl-wr741nd-v5
926
927 define Device/tl-wr743nd-v1
928 $(Device/tplink-4m)
929 DEVICE_TITLE := TP-LINK TL-WR743N/ND v1
930 BOARDNAME := TL-WR741ND
931 DEVICE_PROFILE := TLWR743
932 TPLINK_HWID := 0x07430001
933 endef
934 TARGET_DEVICES += tl-wr743nd-v1
935
936 define Device/tl-wr743nd-v2
937 $(Device/tl-wr741nd-v4)
938 DEVICE_TITLE := TP-LINK TL-WR743N/ND v2
939 DEVICE_PROFILE := TLWR743
940 TPLINK_HWID := 0x07430002
941 endef
942 TARGET_DEVICES += tl-wr743nd-v2
943
944 define Device/tl-wr802n-v1
945 $(Device/tplink-4mlzma)
946 DEVICE_TITLE := TP-LINK TL-WR802N v1
947 BOARDNAME := TL-WR802N-v1
948 DEVICE_PROFILE := TLWR802
949 TPLINK_HWID := 0x08020001
950 TPLINK_HWREV := 1
951 endef
952 TARGET_DEVICES += tl-wr802n-v1
953
954 define Device/tl-wr802n-v2
955 $(Device/tplink-4mlzma)
956 DEVICE_TITLE := TP-LINK TL-WR802N v2
957 BOARDNAME := TL-WR802N-v2
958 DEVICE_PROFILE := TLWR802
959 TPLINK_HWID := 0x08020002
960 TPLINK_HWREV := 2
961 IMAGES += factory-us.bin factory-eu.bin
962 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
963 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
964 endef
965 TARGET_DEVICES += tl-wr802n-v2
966
967 define Device/tl-wr810n-v1
968 $(Device/tplink-8mlzma)
969 DEVICE_TITLE := TP-LINK TL-WR810N v1
970 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
971 BOARDNAME := TL-WR810N
972 DEVICE_PROFILE := TLWR810
973 TPLINK_HWID := 0x08100001
974 endef
975 TARGET_DEVICES += tl-wr810n-v1
976
977 define Device/tl-wr810n-v2
978 $(Device/tplink-8mlzma)
979 DEVICE_TITLE := TP-LINK TL-WR810N v2
980 BOARDNAME := TL-WR810N-v2
981 DEVICE_PROFILE := TLWR810
982 TPLINK_HWID := 0x08100002
983 endef
984 TARGET_DEVICES += tl-wr810n-v2
985
986 define Device/tl-wr840n-v2
987 $(Device/tplink-4mlzma)
988 DEVICE_TITLE := TP-LINK TL-WR840N v2
989 BOARDNAME := TL-WR840N-v2
990 DEVICE_PROFILE := TLWR840
991 TPLINK_HWID := 0x08400002
992 IMAGES += factory-eu.bin
993 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
994 endef
995 TARGET_DEVICES += tl-wr840n-v2
996
997 define Device/tl-wr840n-v3
998 $(Device/tl-wr840n-v2)
999 DEVICE_TITLE := TP-LINK TL-WR840N v3
1000 BOARDNAME := TL-WR840N-v3
1001 TPLINK_HWID := 0x08400003
1002 endef
1003 TARGET_DEVICES += tl-wr840n-v3
1004
1005 define Device/tl-wr841-v1.5
1006 $(Device/tplink-4m)
1007 DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5
1008 BOARDNAME := TL-WR841N-v1.5
1009 DEVICE_PROFILE := TLWR841
1010 TPLINK_HWID := 0x08410002
1011 TPLINK_HWREV := 2
1012 endef
1013 TARGET_DEVICES += tl-wr841-v1.5
1014
1015 define Device/tl-wr841-v3
1016 $(Device/tplink-4m)
1017 DEVICE_TITLE := TP-LINK TL-WR841N/ND v3
1018 BOARDNAME := TL-WR941ND
1019 DEVICE_PROFILE := TLWR841
1020 TPLINK_HWID := 0x08410003
1021 TPLINK_HWREV := 3
1022 endef
1023 TARGET_DEVICES += tl-wr841-v3
1024
1025 define Device/tl-wr841-v5
1026 $(Device/tplink-4m)
1027 DEVICE_TITLE := TP-LINK TL-WR841N/ND v5
1028 BOARDNAME := TL-WR741ND
1029 DEVICE_PROFILE := TLWR841
1030 TPLINK_HWID := 0x08410005
1031 endef
1032 TARGET_DEVICES += tl-wr841-v5
1033
1034 define Device/tl-wr841-v7
1035 $(Device/tplink-4m)
1036 DEVICE_TITLE := TP-LINK TL-WR841N/ND v7
1037 BOARDNAME := TL-WR841N-v7
1038 DEVICE_PROFILE := TLWR841
1039 TPLINK_HWID := 0x08410007
1040 endef
1041 TARGET_DEVICES += tl-wr841-v7
1042
1043 define Device/tl-wr841-v8
1044 $(Device/tplink-4mlzma)
1045 DEVICE_TITLE := TP-LINK TL-WR841N/ND v8
1046 BOARDNAME := TL-WR841N-v8
1047 DEVICE_PROFILE := TLWR841
1048 TPLINK_HWID := 0x08410008
1049 endef
1050 TARGET_DEVICES += tl-wr841-v8
1051
1052 define Device/tl-wr841-v9
1053 $(Device/tplink-4mlzma)
1054 DEVICE_TITLE := TP-LINK TL-WR841N/ND v9
1055 BOARDNAME := TL-WR841N-v9
1056 DEVICE_PROFILE := TLWR841
1057 TPLINK_HWID := 0x08410009
1058 endef
1059 TARGET_DEVICES += tl-wr841-v9
1060
1061 define Device/tl-wr841-v10
1062 $(Device/tl-wr841-v9)
1063 DEVICE_TITLE := TP-LINK TL-WR841N/ND v10
1064 TPLINK_HWID := 0x08410010
1065 endef
1066 TARGET_DEVICES += tl-wr841-v10
1067
1068 define Device/tl-wr841-v11
1069 $(Device/tplink-4mlzma)
1070 DEVICE_TITLE := TP-LINK TL-WR841N/ND v11
1071 BOARDNAME := TL-WR841N-v11
1072 DEVICE_PROFILE := TLWR841
1073 TPLINK_HWID := 0x08410011
1074 IMAGES += factory-us.bin factory-eu.bin
1075 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
1076 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
1077 endef
1078 TARGET_DEVICES += tl-wr841-v11
1079
1080 define Device/tl-wr841-v12
1081 $(Device/tl-wr841-v11)
1082 DEVICE_TITLE := TP-LINK TL-WR841N/ND v12
1083 TPLINK_HWID := 0x08410012
1084 endef
1085 TARGET_DEVICES += tl-wr841-v12
1086
1087 define Device/tl-wr842n-v1
1088 $(Device/tplink-8m)
1089 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
1090 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1091 BOARDNAME := TL-MR3420
1092 DEVICE_PROFILE := TLWR842
1093 TPLINK_HWID := 0x08420001
1094 endef
1095 TARGET_DEVICES += tl-wr842n-v1
1096
1097 define Device/tl-wr842n-v2
1098 $(Device/tplink-8mlzma)
1099 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
1100 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1101 BOARDNAME := TL-WR842N-v2
1102 DEVICE_PROFILE := TLWR842
1103 TPLINK_HWID := 0x8420002
1104 endef
1105 TARGET_DEVICES += tl-wr842n-v2
1106
1107 define Device/tl-wr842n-v3
1108 $(Device/tplink-16mlzma)
1109 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
1110 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1111 BOARDNAME := TL-WR842N-v3
1112 DEVICE_PROFILE := TLWR842
1113 TPLINK_HWID := 0x08420003
1114 endef
1115 TARGET_DEVICES += tl-wr842n-v3
1116
1117 define Device/tl-wr843nd-v1
1118 $(Device/tplink-4mlzma)
1119 DEVICE_TITLE := TP-LINK TL-WR843N/ND v1
1120 BOARDNAME := TL-WR841N-v8
1121 DEVICE_PROFILE := TLWR843
1122 TPLINK_HWID := 0x08430001
1123 endef
1124 TARGET_DEVICES += tl-wr843nd-v1
1125
1126 define Device/tl-wr847n-v8
1127 $(Device/tplink-4mlzma)
1128 DEVICE_TITLE := TP-LINK TL-WR847N/ND v8
1129 BOARDNAME := TL-WR841N-v8
1130 DEVICE_PROFILE := TLWR841
1131 TPLINK_HWID := 0x08470008
1132 endef
1133 TARGET_DEVICES += tl-wr847n-v8
1134
1135 define Device/tl-wr902ac-v1
1136 DEVICE_TITLE := TP-LINK TL-WR902AC v1
1137 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport \
1138 kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools
1139 BOARDNAME := TL-WR902AC-V1
1140 DEVICE_PROFILE := TLWR902
1141 TPLINK_BOARD_ID := TL-WR902AC-V1
1142 TPLINK_HWID := 0x0
1143 TPLINK_HWREV := 0
1144 TPLINK_HEADER_VERSION := 1
1145 SUPPORTED_DEVICES := tl-wr902ac-v1
1146 IMAGE_SIZE := 7360k
1147 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
1148 IMAGES += factory.bin
1149 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
1150 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
1151 append-metadata | check-size $$$$(IMAGE_SIZE)
1152 MTDPARTS := spi0.0:128k(u-boot)ro,7360k(firmware),640k(tplink)ro,64k(art)ro
1153 endef
1154 TARGET_DEVICES += tl-wr902ac-v1
1155
1156 define Device/tl-wr940n-v4
1157 $(Device/tplink-4mlzma)
1158 DEVICE_TITLE := TP-LINK TL-WR940N v4
1159 BOARDNAME := TL-WR940N-v4
1160 DEVICE_PROFILE := TLWR941
1161 TPLINK_HWID := 0x09400004
1162 IMAGES += factory-us.bin factory-eu.bin factory-br.bin
1163 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
1164 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
1165 IMAGE/factory-br.bin := append-rootfs | mktplinkfw factory -C BR
1166 endef
1167 TARGET_DEVICES += tl-wr940n-v4
1168
1169 define Device/tl-wr941nd-v2
1170 $(Device/tplink-4m)
1171 DEVICE_TITLE := TP-LINK TL-WR941N/ND v2
1172 BOARDNAME := TL-WR941ND
1173 DEVICE_PROFILE := TLWR941
1174 TPLINK_HWID := 0x09410002
1175 TPLINK_HWREV := 2
1176 endef
1177 TARGET_DEVICES += tl-wr941nd-v2
1178
1179 define Device/tl-wr941nd-v3
1180 $(Device/tl-wr941nd-v2)
1181 DEVICE_TITLE := TP-LINK TL-WR941N/ND v3
1182 endef
1183 TARGET_DEVICES += tl-wr941nd-v3
1184
1185 define Device/tl-wr941nd-v4
1186 $(Device/tplink-4m)
1187 DEVICE_TITLE := TP-LINK TL-WR941N/ND v4
1188 BOARDNAME := TL-WR741ND
1189 DEVICE_PROFILE := TLWR941
1190 TPLINK_HWID := 0x09410004
1191 endef
1192 TARGET_DEVICES += tl-wr941nd-v4
1193
1194 define Device/tl-wr941nd-v5
1195 $(Device/tplink-4mlzma)
1196 DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
1197 BOARDNAME := TL-WR941ND-v5
1198 DEVICE_PROFILE := TLWR941
1199 TPLINK_HWID := 0x09410005
1200 endef
1201 TARGET_DEVICES += tl-wr941nd-v5
1202
1203 define Device/tl-wr941nd-v6
1204 $(Device/tplink-4mlzma)
1205 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6
1206 BOARDNAME := TL-WR941ND-v6
1207 DEVICE_PROFILE := TLWR941
1208 TPLINK_HWID := 0x09410006
1209 endef
1210 TARGET_DEVICES += tl-wr941nd-v6
1211
1212 # Chinese version (unlike European) is similar to the TL-WDR3500
1213 define Device/tl-wr941nd-v6-cn
1214 $(Device/tplink-4mlzma)
1215 DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN)
1216 BOARDNAME := TL-WDR3500
1217 DEVICE_PROFILE := TLWR941
1218 TPLINK_HWID := 0x09410006
1219 endef
1220 TARGET_DEVICES += tl-wr941nd-v6-cn
1221
1222 define Device/tl-wr942n-v1
1223 DEVICE_TITLE := TP-LINK TL-WR942N v1
1224 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
1225 BOARDNAME := TL-WR942N-V1
1226 TPLINK_BOARD_ID := TLWR942NV1
1227 DEVICE_PROFILE := TLWR942
1228 IMAGE_SIZE := 14464k
1229 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
1230 IMAGES := sysupgrade.bin factory.bin
1231 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
1232 append-metadata | check-size $$$$(IMAGE_SIZE)
1233 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
1234 MTDPARTS := spi0.0:128k(u-boot)ro,14464k(firmware),64k(product-info)ro,64k(partition-table)ro,256k(oem-config)ro,1344k(oem-vars)ro,64k(ART)ro
1235 SUPPORTED_DEVICES := tl-wr942n-v1
1236 endef
1237 TARGET_DEVICES += tl-wr942n-v1