6f7d608b01ed3a6ebf90a0fa1754cbed3f2cadff
[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-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/cpe510-520-v1
156 DEVICE_TITLE := TP-LINK CPE510/520 v1
157 DEVICE_PACKAGES := rssileds
158 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)
159 IMAGE_SIZE := 7680k
160 BOARDNAME := CPE510
161 TPLINK_BOARD_ID := CPE510
162 DEVICE_PROFILE := CPE510
163 LOADER_TYPE := elf
164 LOADER_FLASH_OFFS := 0x43000
165 COMPILE := loader-$(1).elf
166 COMPILE/loader-$(1).elf := loader-okli-compile
167 KERNEL := kernel-bin | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 12288
168 IMAGES := sysupgrade.bin factory.bin
169 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
170 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
171 endef
172 TARGET_DEVICES += cpe510-520-v1
173
174 define Device/cpe210-220-v1
175 $(Device/cpe510-520-v1)
176 DEVICE_TITLE := TP-LINK CPE210/220 v1
177 BOARDNAME := CPE210
178 TPLINK_BOARD_ID := CPE210
179 endef
180 TARGET_DEVICES += cpe210-220-v1
181
182 define Device/wbs210-v1
183 $(Device/cpe510-520-v1)
184 DEVICE_TITLE := TP-LINK WBS210 v1
185 BOARDNAME := WBS210
186 TPLINK_BOARD_ID := WBS210
187 endef
188 TARGET_DEVICES += wbs210-v1
189
190 define Device/wbs510-v1
191 $(Device/cpe510-520-v1)
192 DEVICE_TITLE := TP-LINK WBS510 v1
193 BOARDNAME := WBS510
194 TPLINK_BOARD_ID := WBS510
195 endef
196 TARGET_DEVICES += wbs510-v1
197
198 define Device/eap120-v1
199 DEVICE_TITLE := TP-LINK EAP120 v1
200 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)
201 IMAGE_SIZE := 15872k
202 BOARDNAME := EAP120
203 TPLINK_BOARD_ID := EAP120
204 DEVICE_PROFILE := EAP120
205 LOADER_TYPE := elf
206 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
207 IMAGES := sysupgrade.bin factory.bin
208 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
209 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
210 endef
211 TARGET_DEVICES += eap120-v1
212
213 define Device/re355-v1
214 DEVICE_TITLE := TP-LINK RE355 v1
215 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
216 MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro
217 IMAGE_SIZE := 7936k
218 BOARDNAME := RE355
219 TPLINK_BOARD_ID := RE355
220 DEVICE_PROFILE := RE355
221 LOADER_TYPE := elf
222 TPLINK_HWID := 0x0
223 TPLINK_HWREV := 0
224 TPLINK_HEADER_VERSION := 1
225 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
226 IMAGES := sysupgrade.bin factory.bin
227 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
228 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
229 endef
230 TARGET_DEVICES += re355-v1
231
232 define Device/re450-v1
233 DEVICE_TITLE := TP-LINK RE450 v1
234 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
235 MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro
236 IMAGE_SIZE := 7936k
237 BOARDNAME := RE450
238 TPLINK_BOARD_ID := RE450
239 DEVICE_PROFILE := RE450
240 LOADER_TYPE := elf
241 TPLINK_HWID := 0x0
242 TPLINK_HWREV := 0
243 TPLINK_HEADER_VERSION := 1
244 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
245 IMAGES := sysupgrade.bin factory.bin
246 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
247 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
248 endef
249 TARGET_DEVICES += re450-v1
250
251 define Device/tl-mr6400-v1
252 $(Device/tplink-8mlzma)
253 DEVICE_TITLE := TP-LINK TL-MR6400 v1
254 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
255 BOARDNAME := TL-MR6400
256 DEVICE_PROFILE := TLMR6400
257 TPLINK_HWID := 0x64000001
258 endef
259 TARGET_DEVICES += tl-mr6400-v1
260
261 define Device/tl-wdr3500-v1
262 $(Device/tplink-8mlzma)
263 DEVICE_TITLE := TP-LINK TL-WDR3500 v1
264 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
265 BOARDNAME := TL-WDR3500
266 DEVICE_PROFILE := TLWDR4300
267 TPLINK_HWID := 0x35000001
268 endef
269 TARGET_DEVICES += tl-wdr3500-v1
270
271 define Device/tl-wdr3600-v1
272 $(Device/tl-wdr3500-v1)
273 DEVICE_TITLE := TP-LINK TL-WDR3600 v1
274 BOARDNAME := TL-WDR4300
275 TPLINK_HWID := 0x36000001
276 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
277 endef
278 TARGET_DEVICES += tl-wdr3600-v1
279
280 define Device/tl-wdr4300-v1
281 $(Device/tl-wdr3600-v1)
282 DEVICE_TITLE := TP-LINK TL-WDR4300 v1
283 TPLINK_HWID := 0x43000001
284 endef
285 TARGET_DEVICES += tl-wdr4300-v1
286
287 define Device/tl-wdr4300-v1-il
288 $(Device/tl-wdr3500-v1)
289 DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL)
290 BOARDNAME := TL-WDR4300
291 TPLINK_HWID := 0x43008001
292 endef
293 TARGET_DEVICES += tl-wdr4300-v1-il
294
295 define Device/tl-wdr4310-v1
296 $(Device/tl-wdr4300-v1-il)
297 DEVICE_TITLE := TP-LINK TL-WDR4310 v1
298 TPLINK_HWID := 0x43100001
299 endef
300 TARGET_DEVICES += tl-wdr4310-v1
301
302 define Device/tl-wdr4900-v2
303 $(Device/tplink-8mlzma)
304 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
305 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
306 BOARDNAME := TL-WDR4900-v2
307 DEVICE_PROFILE := TLWDR4900V2
308 TPLINK_HWID := 0x49000002
309 endef
310 TARGET_DEVICES += tl-wdr4900-v2
311
312 define Device/tl-wdr6500-v2
313 $(Device/tplink-8mlzma)
314 DEVICE_TITLE := TP-LINK TL-WDR6500 v2
315 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
316 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
317 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | tplink-v1-header
318 BOARDNAME := TL-WDR6500-v2
319 DEVICE_PROFILE := TLWDR6500V2
320 TPLINK_HWID := 0x65000002
321 TPLINK_HEADER_VERSION := 2
322 endef
323 TARGET_DEVICES += tl-wdr6500-v2
324
325 define Device/mw4530r-v1
326 $(Device/tl-wdr4300-v1)
327 DEVICE_TITLE := Mercury MW4530R v1
328 TPLINK_HWID := 0x45300001
329 endef
330 TARGET_DEVICES += mw4530r-v1
331
332 define Device/tl-wpa8630-v1
333 $(Device/tplink-8mlzma)
334 DEVICE_TITLE := TP-LINK TL-WPA8630 v1
335 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
336 BOARDNAME := TL-WPA8630
337 DEVICE_PROFILE := TL-WPA8630
338 TPLINK_HWID := 0x86300001
339 endef
340 TARGET_DEVICES += tl-wpa8630-v1
341
342 define Device/tl-wr1043n-v5
343 $(Device/archer-cxx)
344 DEVICE_TITLE := TP-LINK TL-WR1043N v5
345 BOARDNAME := TL-WR1043N-v5
346 SUPPORTED_DEVICES := tl-wr1043n-v5
347 DEVICE_PROFILE := TLWR1043
348 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
349 IMAGE_SIZE := 15104k
350 TPLINK_BOARD_ID := TLWR1043NV5
351 endef
352 TARGET_DEVICES += tl-wr1043n-v5
353
354 define Device/tl-wr1043nd-v1
355 $(Device/tplink-8m)
356 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
357 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
358 BOARDNAME := TL-WR1043ND
359 DEVICE_PROFILE := TLWR1043
360 TPLINK_HWID := 0x10430001
361 endef
362 TARGET_DEVICES += tl-wr1043nd-v1
363
364 define Device/tl-wr1043nd-v2
365 $(Device/tplink-8mlzma)
366 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
367 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
368 BOARDNAME := TL-WR1043ND-v2
369 DEVICE_PROFILE := TLWR1043
370 TPLINK_HWID := 0x10430002
371 endef
372 TARGET_DEVICES += tl-wr1043nd-v2
373
374 define Device/tl-wr1043nd-v3
375 $(Device/tl-wr1043nd-v2)
376 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
377 TPLINK_HWID := 0x10430003
378 endef
379 TARGET_DEVICES += tl-wr1043nd-v3
380
381 define Device/tl-wr1043nd-v4
382 $(Device/tplink)
383 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
384 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
385 BOARDNAME := TL-WR1043ND-v4
386 DEVICE_PROFILE := TLWR1043
387 TPLINK_HWID := 0x10430004
388 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)
389 IMAGE_SIZE := 15552k
390 TPLINK_BOARD_ID := TLWR1043NDV4
391 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
392 IMAGES := sysupgrade.bin factory.bin
393 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
394 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
395 endef
396 TARGET_DEVICES += tl-wr1043nd-v4
397
398 define Device/tl-wr2543-v1
399 $(Device/tplink-8mlzma)
400 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
401 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
402 BOARDNAME := TL-WR2543N
403 DEVICE_PROFILE := TLWR2543
404 TPLINK_HWID := 0x25430001
405 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
406 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
407 endef
408 TARGET_DEVICES += tl-wr2543-v1
409
410 define Device/tl-wr710n-v1
411 $(Device/tplink-8mlzma)
412 DEVICE_TITLE := TP-LINK TL-WR710N v1
413 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
414 BOARDNAME := TL-WR710N
415 DEVICE_PROFILE := TLWR710
416 TPLINK_HWID := 0x07100001
417 CONSOLE := ttyATH0,115200
418 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
419 endef
420 TARGET_DEVICES += tl-wr710n-v1
421
422 define Device/tl-wr710n-v2.1
423 $(Device/tl-wr710n-v1)
424 DEVICE_TITLE := TP-LINK TL-WR710N v2.1
425 TPLINK_HWID := 0x07100002
426 TPLINK_HWREV := 0x00000002
427 endef
428 TARGET_DEVICES += tl-wr710n-v2.1
429
430 define Device/tl-wr810n-v1
431 $(Device/tplink-8mlzma)
432 DEVICE_TITLE := TP-LINK TL-WR810N v1
433 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
434 BOARDNAME := TL-WR810N
435 DEVICE_PROFILE := TLWR810
436 TPLINK_HWID := 0x08100001
437 endef
438 TARGET_DEVICES += tl-wr810n-v1
439
440 define Device/tl-wr810n-v2
441 $(Device/tplink-8mlzma)
442 DEVICE_TITLE := TP-LINK TL-WR810N v2
443 BOARDNAME := TL-WR810N-v2
444 DEVICE_PROFILE := TLWR810
445 TPLINK_HWID := 0x08100002
446 endef
447 TARGET_DEVICES += tl-wr810n-v2
448
449 define Device/tl-wr842n-v1
450 $(Device/tplink-8m)
451 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
452 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
453 BOARDNAME := TL-MR3420
454 DEVICE_PROFILE := TLWR842
455 TPLINK_HWID := 0x08420001
456 endef
457 TARGET_DEVICES += tl-wr842n-v1
458
459 define Device/tl-wr842n-v2
460 $(Device/tplink-8mlzma)
461 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
462 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
463 BOARDNAME := TL-WR842N-v2
464 DEVICE_PROFILE := TLWR842
465 TPLINK_HWID := 0x8420002
466 endef
467 TARGET_DEVICES += tl-wr842n-v2
468
469 define Device/tl-wr842n-v3
470 $(Device/tplink-16mlzma)
471 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
472 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
473 BOARDNAME := TL-WR842N-v3
474 DEVICE_PROFILE := TLWR842
475 TPLINK_HWID := 0x08420003
476 endef
477 TARGET_DEVICES += tl-wr842n-v3
478
479 define Device/tl-wr902ac-v1
480 DEVICE_TITLE := TP-LINK TL-WR902AC v1
481 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport \
482 kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools
483 BOARDNAME := TL-WR902AC-V1
484 DEVICE_PROFILE := TLWR902
485 TPLINK_BOARD_ID := TL-WR902AC-V1
486 TPLINK_HWID := 0x0
487 TPLINK_HWREV := 0
488 TPLINK_HEADER_VERSION := 1
489 SUPPORTED_DEVICES := tl-wr902ac-v1
490 IMAGE_SIZE := 7360k
491 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
492 IMAGES += factory.bin
493 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
494 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
495 append-metadata | check-size $$$$(IMAGE_SIZE)
496 MTDPARTS := spi0.0:128k(u-boot)ro,7360k(firmware),640k(tplink)ro,64k(art)ro
497 endef
498 TARGET_DEVICES += tl-wr902ac-v1
499
500 define Device/tl-wr942n-v1
501 DEVICE_TITLE := TP-LINK TL-WR942N v1
502 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
503 BOARDNAME := TL-WR942N-V1
504 TPLINK_BOARD_ID := TLWR942NV1
505 DEVICE_PROFILE := TLWR942
506 IMAGE_SIZE := 14464k
507 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
508 IMAGES := sysupgrade.bin factory.bin
509 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
510 append-metadata | check-size $$$$(IMAGE_SIZE)
511 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
512 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
513 SUPPORTED_DEVICES := tl-wr942n-v1
514 endef
515 TARGET_DEVICES += tl-wr942n-v1