338b2db2d65f0e80b2dfb3d710991c41813bd649
[openwrt/openwrt.git] / target / linux / ar71xx / image / generic-tp-link.mk
1 include ./common-tp-link.mk
2
3
4 define Device/archer-cxx
5 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
6 IMAGES := sysupgrade.bin factory.bin
7 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
8 append-metadata | check-size $$$$(IMAGE_SIZE)
9 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
10 endef
11
12 define Device/archer-c25-v1
13 $(Device/archer-cxx)
14 DEVICE_TITLE := TP-LINK Archer C25 v1
15 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887
16 BOARDNAME := ARCHER-C25-V1
17 TPLINK_BOARD_ID := ARCHER-C25-V1
18 DEVICE_PROFILE := ARCHERC25V1
19 IMAGE_SIZE := 7808k
20 LOADER_TYPE := elf
21 MTDPARTS := spi0.0:128k(factory-uboot)ro,64k(u-boot)ro,1536k(kernel),6272k(rootfs),128k(config)ro,64k(art)ro,7808k@0x30000(firmware)
22 SUPPORTED_DEVICES := archer-c25-v1
23 endef
24 TARGET_DEVICES += archer-c25-v1
25
26 define Device/archer-c58-v1
27 $(Device/archer-cxx)
28 DEVICE_TITLE := TP-LINK Archer C58 v1
29 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
30 BOARDNAME := ARCHER-C58-V1
31 TPLINK_BOARD_ID := ARCHER-C58-V1
32 DEVICE_PROFILE := ARCHERC58V1
33 IMAGE_SIZE := 7936k
34 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
35 SUPPORTED_DEVICES := archer-c58-v1
36 endef
37 TARGET_DEVICES += archer-c58-v1
38
39 define Device/archer-c59-v1
40 $(Device/archer-cxx)
41 DEVICE_TITLE := TP-LINK Archer C59 v1
42 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888
43 BOARDNAME := ARCHER-C59-V1
44 TPLINK_BOARD_ID := ARCHER-C59-V1
45 DEVICE_PROFILE := ARCHERC59V1
46 IMAGE_SIZE := 14528k
47 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware)
48 SUPPORTED_DEVICES := archer-c59-v1
49 endef
50 TARGET_DEVICES += archer-c59-v1
51
52 define Device/archer-c60-v1
53 $(Device/archer-cxx)
54 DEVICE_TITLE := TP-LINK Archer C60 v1
55 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
56 BOARDNAME := ARCHER-C60-V1
57 TPLINK_BOARD_ID := ARCHER-C60-V1
58 DEVICE_PROFILE := ARCHERC60V1
59 IMAGE_SIZE := 7936k
60 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
61 SUPPORTED_DEVICES := archer-c60-v1
62 endef
63 TARGET_DEVICES += archer-c60-v1
64
65 define Device/archer-c60-v2
66 $(Device/archer-c60-v1)
67 DEVICE_TITLE := TP-LINK Archer C60 v2
68 BOARDNAME := ARCHER-C60-V2
69 TPLINK_BOARD_ID := ARCHER-C60-V2
70 DEVICE_PROFILE := ARCHERC60V2
71 IMAGE_SIZE := 7808k
72 MTDPARTS := spi0.0:192k(u-boot)ro,7808k(firmware),128k(tplink)ro,64k(art)ro
73 SUPPORTED_DEVICES := archer-c60-v2
74 endef
75 TARGET_DEVICES += archer-c60-v2
76
77 define Device/archer-c5-v1
78 $(Device/tplink-16mlzma)
79 DEVICE_TITLE := TP-LINK Archer C5 v1
80 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
81 BOARDNAME := ARCHER-C5
82 DEVICE_PROFILE := ARCHERC7
83 TPLINK_HWID := 0xc5000001
84 endef
85 TARGET_DEVICES += archer-c5-v1
86
87 define Device/archer-c7-v1
88 $(Device/tplink-8mlzma)
89 DEVICE_TITLE := TP-LINK Archer C7 v1
90 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
91 BOARDNAME := ARCHER-C7
92 DEVICE_PROFILE := ARCHERC7
93 TPLINK_HWID := 0x75000001
94 endef
95 TARGET_DEVICES += archer-c7-v1
96
97 define Device/archer-c7-v2
98 $(Device/tplink-16mlzma)
99 DEVICE_TITLE := TP-LINK Archer C7 v2
100 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
101 BOARDNAME := ARCHER-C7-V2
102 DEVICE_PROFILE := ARCHERC7
103 TPLINK_HWID := 0xc7000002
104 IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
105 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
106 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
107 endef
108 TARGET_DEVICES += archer-c7-v2
109
110 define Device/archer-c7-v2-il
111 $(Device/tplink-16mlzma)
112 DEVICE_TITLE := TP-LINK Archer C7 v2 (IL)
113 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
114 BOARDNAME := ARCHER-C7-V2
115 DEVICE_PROFILE := ARCHERC7
116 TPLINK_HWID := 0xc7000002
117 TPLINK_HWREV := 0x494c0001
118 endef
119 TARGET_DEVICES += archer-c7-v2-il
120
121 define Device/tl-wdr7500-v3
122 $(Device/tplink-8mlzma)
123 DEVICE_TITLE := TP-LINK Archer C7 v3
124 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
125 BOARDNAME := ARCHER-C7
126 DEVICE_PROFILE := ARCHERC7
127 TPLINK_HWID := 0x75000003
128 endef
129 TARGET_DEVICES += tl-wdr7500-v3
130
131 define Device/archer-c7-v4
132 $(Device/archer-cxx)
133 DEVICE_TITLE := TP-LINK Archer C7 v4
134 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
135 BOARDNAME := ARCHER-C7-V4
136 TPLINK_BOARD_ID := ARCHER-C7-V4
137 IMAGE_SIZE := 15104k
138 LOADER_TYPE := elf
139 MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,1536k(kernel),13568k(rootfs),960k(config)ro,64k(art)ro,15104k@0x40000(firmware)
140 SUPPORTED_DEVICES := archer-c7-v4
141 endef
142 TARGET_DEVICES += archer-c7-v4
143
144 define Device/archer-c7-v5
145 $(Device/archer-c7-v4)
146 DEVICE_TITLE := TP-LINK Archer C7 v5
147 BOARDNAME := ARCHER-C7-V5
148 TPLINK_BOARD_ID := ARCHER-C7-V5
149 IMAGE_SIZE := 15104k
150 MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,64k@0x50000(art)ro,1536k@0xc0000(kernel),13824k(rootfs),15360k@0xc0000(firmware)
151 SUPPORTED_DEVICES := archer-c7-v5
152 endef
153 TARGET_DEVICES += archer-c7-v5
154
155 define Device/cpexxx
156 DEVICE_PACKAGES := rssileds
157 MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1792k(kernel),5888k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware)
158 IMAGE_SIZE := 7680k
159 DEVICE_PROFILE := CPE510
160 LOADER_TYPE := elf
161 IMAGES := sysupgrade.bin factory.bin
162 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
163 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
164 endef
165
166 define Device/cpe510-520-v1
167 $(Device/cpexxx)
168 DEVICE_TITLE := TP-LINK CPE510/520 v1
169 BOARDNAME := CPE510
170 TPLINK_BOARD_ID := CPE510
171 LOADER_FLASH_OFFS := 0x43000
172 COMPILE := loader-$(1).elf
173 COMPILE/loader-$(1).elf := loader-okli-compile
174 KERNEL := kernel-bin | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 12288
175 endef
176 TARGET_DEVICES += cpe510-520-v1
177
178 define Device/cpe210-220-v1
179 $(Device/cpe510-520-v1)
180 DEVICE_TITLE := TP-LINK CPE210/220 v1
181 BOARDNAME := CPE210
182 TPLINK_BOARD_ID := CPE210
183 endef
184 TARGET_DEVICES += cpe210-220-v1
185
186 define Device/cpe210-v2
187 $(Device/cpexxx)
188 DEVICE_TITLE := TP-LINK CPE210 v2
189 BOARDNAME := CPE210V2
190 TPLINK_BOARD_ID := CPE210V2
191 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
192 TPLINK_HWID := 0x0
193 TPLINK_HWREV := 0
194 TPLINK_HEADER_VERSION := 1
195 endef
196 TARGET_DEVICES += cpe210-v2
197
198 define Device/wbs210-v1
199 $(Device/cpe510-520-v1)
200 DEVICE_TITLE := TP-LINK WBS210 v1
201 BOARDNAME := WBS210
202 TPLINK_BOARD_ID := WBS210
203 endef
204 TARGET_DEVICES += wbs210-v1
205
206 define Device/wbs510-v1
207 $(Device/cpe510-520-v1)
208 DEVICE_TITLE := TP-LINK WBS510 v1
209 BOARDNAME := WBS510
210 TPLINK_BOARD_ID := WBS510
211 endef
212 TARGET_DEVICES += wbs510-v1
213
214 define Device/eap120-v1
215 DEVICE_TITLE := TP-LINK EAP120 v1
216 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)
217 IMAGE_SIZE := 15872k
218 BOARDNAME := EAP120
219 TPLINK_BOARD_ID := EAP120
220 DEVICE_PROFILE := EAP120
221 LOADER_TYPE := elf
222 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
223 IMAGES := sysupgrade.bin factory.bin
224 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
225 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
226 endef
227 TARGET_DEVICES += eap120-v1
228
229 define Device/re355-v1
230 DEVICE_TITLE := TP-LINK RE355 v1
231 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
232 MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro
233 IMAGE_SIZE := 7936k
234 BOARDNAME := RE355
235 TPLINK_BOARD_ID := RE355
236 DEVICE_PROFILE := RE355
237 LOADER_TYPE := elf
238 TPLINK_HWID := 0x0
239 TPLINK_HWREV := 0
240 TPLINK_HEADER_VERSION := 1
241 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
242 IMAGES := sysupgrade.bin factory.bin
243 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
244 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
245 endef
246 TARGET_DEVICES += re355-v1
247
248 define Device/re450-v1
249 DEVICE_TITLE := TP-LINK RE450 v1
250 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
251 MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro
252 IMAGE_SIZE := 7936k
253 BOARDNAME := RE450
254 TPLINK_BOARD_ID := RE450
255 DEVICE_PROFILE := RE450
256 LOADER_TYPE := elf
257 TPLINK_HWID := 0x0
258 TPLINK_HWREV := 0
259 TPLINK_HEADER_VERSION := 1
260 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
261 IMAGES := sysupgrade.bin factory.bin
262 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
263 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
264 endef
265 TARGET_DEVICES += re450-v1
266
267 define Device/tl-mr6400-v1
268 $(Device/tplink-8mlzma)
269 DEVICE_TITLE := TP-LINK TL-MR6400 v1
270 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
271 BOARDNAME := TL-MR6400
272 DEVICE_PROFILE := TLMR6400
273 TPLINK_HWID := 0x64000001
274 endef
275 TARGET_DEVICES += tl-mr6400-v1
276
277 define Device/tl-wdr3500-v1
278 $(Device/tplink-8mlzma)
279 DEVICE_TITLE := TP-LINK TL-WDR3500 v1
280 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
281 BOARDNAME := TL-WDR3500
282 DEVICE_PROFILE := TLWDR4300
283 TPLINK_HWID := 0x35000001
284 endef
285 TARGET_DEVICES += tl-wdr3500-v1
286
287 define Device/tl-wdr3600-v1
288 $(Device/tl-wdr3500-v1)
289 DEVICE_TITLE := TP-LINK TL-WDR3600 v1
290 BOARDNAME := TL-WDR4300
291 TPLINK_HWID := 0x36000001
292 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
293 endef
294 TARGET_DEVICES += tl-wdr3600-v1
295
296 define Device/tl-wdr4300-v1
297 $(Device/tl-wdr3600-v1)
298 DEVICE_TITLE := TP-LINK TL-WDR4300 v1
299 TPLINK_HWID := 0x43000001
300 endef
301 TARGET_DEVICES += tl-wdr4300-v1
302
303 define Device/tl-wdr4300-v1-il
304 $(Device/tl-wdr3500-v1)
305 DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL)
306 BOARDNAME := TL-WDR4300
307 TPLINK_HWID := 0x43008001
308 endef
309 TARGET_DEVICES += tl-wdr4300-v1-il
310
311 define Device/tl-wdr4310-v1
312 $(Device/tl-wdr4300-v1-il)
313 DEVICE_TITLE := TP-LINK TL-WDR4310 v1
314 TPLINK_HWID := 0x43100001
315 endef
316 TARGET_DEVICES += tl-wdr4310-v1
317
318 define Device/tl-wdr4900-v2
319 $(Device/tplink-8mlzma)
320 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
321 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
322 BOARDNAME := TL-WDR4900-v2
323 DEVICE_PROFILE := TLWDR4900V2
324 TPLINK_HWID := 0x49000002
325 endef
326 TARGET_DEVICES += tl-wdr4900-v2
327
328 define Device/tl-wdr6500-v2
329 $(Device/tplink-8mlzma)
330 DEVICE_TITLE := TP-LINK TL-WDR6500 v2
331 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
332 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
333 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | tplink-v1-header
334 BOARDNAME := TL-WDR6500-v2
335 DEVICE_PROFILE := TLWDR6500V2
336 TPLINK_HWID := 0x65000002
337 TPLINK_HEADER_VERSION := 2
338 endef
339 TARGET_DEVICES += tl-wdr6500-v2
340
341 define Device/mw4530r-v1
342 $(Device/tl-wdr4300-v1)
343 DEVICE_TITLE := Mercury MW4530R v1
344 TPLINK_HWID := 0x45300001
345 endef
346 TARGET_DEVICES += mw4530r-v1
347
348 define Device/tl-wpa8630-v1
349 $(Device/tplink-8mlzma)
350 DEVICE_TITLE := TP-LINK TL-WPA8630 v1
351 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
352 BOARDNAME := TL-WPA8630
353 DEVICE_PROFILE := TL-WPA8630
354 TPLINK_HWID := 0x86300001
355 endef
356 TARGET_DEVICES += tl-wpa8630-v1
357
358 define Device/tl-wr1043n-v5
359 $(Device/archer-cxx)
360 DEVICE_TITLE := TP-LINK TL-WR1043N v5
361 BOARDNAME := TL-WR1043N-v5
362 SUPPORTED_DEVICES := tl-wr1043n-v5
363 DEVICE_PROFILE := TLWR1043
364 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
365 IMAGE_SIZE := 15104k
366 TPLINK_BOARD_ID := TLWR1043NV5
367 endef
368 TARGET_DEVICES += tl-wr1043n-v5
369
370 define Device/tl-wr1043nd-v1
371 $(Device/tplink-8m)
372 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
373 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
374 BOARDNAME := TL-WR1043ND
375 DEVICE_PROFILE := TLWR1043
376 TPLINK_HWID := 0x10430001
377 endef
378 TARGET_DEVICES += tl-wr1043nd-v1
379
380 define Device/tl-wr1043nd-v2
381 $(Device/tplink-8mlzma)
382 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
383 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
384 BOARDNAME := TL-WR1043ND-v2
385 DEVICE_PROFILE := TLWR1043
386 TPLINK_HWID := 0x10430002
387 endef
388 TARGET_DEVICES += tl-wr1043nd-v2
389
390 define Device/tl-wr1043nd-v3
391 $(Device/tl-wr1043nd-v2)
392 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
393 TPLINK_HWID := 0x10430003
394 endef
395 TARGET_DEVICES += tl-wr1043nd-v3
396
397 define Device/tl-wr1043nd-v4
398 $(Device/tplink)
399 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
400 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
401 BOARDNAME := TL-WR1043ND-v4
402 DEVICE_PROFILE := TLWR1043
403 TPLINK_HWID := 0x10430004
404 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)
405 IMAGE_SIZE := 15552k
406 TPLINK_BOARD_ID := TLWR1043NDV4
407 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
408 IMAGES := sysupgrade.bin factory.bin
409 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
410 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
411 endef
412 TARGET_DEVICES += tl-wr1043nd-v4
413
414 define Device/tl-wr2543-v1
415 $(Device/tplink-8mlzma)
416 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
417 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
418 BOARDNAME := TL-WR2543N
419 DEVICE_PROFILE := TLWR2543
420 TPLINK_HWID := 0x25430001
421 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
422 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
423 endef
424 TARGET_DEVICES += tl-wr2543-v1
425
426 define Device/tl-wr710n-v1
427 $(Device/tplink-8mlzma)
428 DEVICE_TITLE := TP-LINK TL-WR710N v1
429 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
430 BOARDNAME := TL-WR710N
431 DEVICE_PROFILE := TLWR710
432 TPLINK_HWID := 0x07100001
433 CONSOLE := ttyATH0,115200
434 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
435 endef
436 TARGET_DEVICES += tl-wr710n-v1
437
438 define Device/tl-wr710n-v2.1
439 $(Device/tl-wr710n-v1)
440 DEVICE_TITLE := TP-LINK TL-WR710N v2.1
441 TPLINK_HWID := 0x07100002
442 TPLINK_HWREV := 0x00000002
443 endef
444 TARGET_DEVICES += tl-wr710n-v2.1
445
446 define Device/tl-wr810n-v1
447 $(Device/tplink-8mlzma)
448 DEVICE_TITLE := TP-LINK TL-WR810N v1
449 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
450 BOARDNAME := TL-WR810N
451 DEVICE_PROFILE := TLWR810
452 TPLINK_HWID := 0x08100001
453 endef
454 TARGET_DEVICES += tl-wr810n-v1
455
456 define Device/tl-wr810n-v2
457 $(Device/tplink-8mlzma)
458 DEVICE_TITLE := TP-LINK TL-WR810N v2
459 BOARDNAME := TL-WR810N-v2
460 DEVICE_PROFILE := TLWR810
461 TPLINK_HWID := 0x08100002
462 endef
463 TARGET_DEVICES += tl-wr810n-v2
464
465 define Device/tl-wr842n-v1
466 $(Device/tplink-8m)
467 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
468 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
469 BOARDNAME := TL-MR3420
470 DEVICE_PROFILE := TLWR842
471 TPLINK_HWID := 0x08420001
472 endef
473 TARGET_DEVICES += tl-wr842n-v1
474
475 define Device/tl-wr842n-v2
476 $(Device/tplink-8mlzma)
477 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
478 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
479 BOARDNAME := TL-WR842N-v2
480 DEVICE_PROFILE := TLWR842
481 TPLINK_HWID := 0x8420002
482 endef
483 TARGET_DEVICES += tl-wr842n-v2
484
485 define Device/tl-wr842n-v3
486 $(Device/tplink-16mlzma)
487 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
488 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
489 BOARDNAME := TL-WR842N-v3
490 DEVICE_PROFILE := TLWR842
491 TPLINK_HWID := 0x08420003
492 endef
493 TARGET_DEVICES += tl-wr842n-v3
494
495 define Device/tl-wr902ac-v1
496 DEVICE_TITLE := TP-LINK TL-WR902AC v1
497 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport \
498 kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools
499 BOARDNAME := TL-WR902AC-V1
500 DEVICE_PROFILE := TLWR902
501 TPLINK_BOARD_ID := TL-WR902AC-V1
502 TPLINK_HWID := 0x0
503 TPLINK_HWREV := 0
504 TPLINK_HEADER_VERSION := 1
505 SUPPORTED_DEVICES := tl-wr902ac-v1
506 IMAGE_SIZE := 7360k
507 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
508 IMAGES += factory.bin
509 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
510 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
511 append-metadata | check-size $$$$(IMAGE_SIZE)
512 MTDPARTS := spi0.0:128k(u-boot)ro,7360k(firmware),640k(tplink)ro,64k(art)ro
513 endef
514 TARGET_DEVICES += tl-wr902ac-v1
515
516 define Device/tl-wr942n-v1
517 DEVICE_TITLE := TP-LINK TL-WR942N v1
518 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
519 BOARDNAME := TL-WR942N-V1
520 TPLINK_BOARD_ID := TLWR942NV1
521 DEVICE_PROFILE := TLWR942
522 IMAGE_SIZE := 14464k
523 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
524 IMAGES := sysupgrade.bin factory.bin
525 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
526 append-metadata | check-size $$$$(IMAGE_SIZE)
527 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
528 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
529 SUPPORTED_DEVICES := tl-wr942n-v1
530 endef
531 TARGET_DEVICES += tl-wr942n-v1