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