ath79: create common definition tplink-loader-okli
[openwrt/openwrt.git] / target / linux / ath79 / image / generic-tp-link.mk
1 include ./common-tp-link.mk
2
3 define Device/tplink_archer-a7-v5
4 $(Device/tplink-safeloader-uimage)
5 ATH_SOC := qca9563
6 IMAGE_SIZE := 15104k
7 DEVICE_MODEL := Archer A7
8 DEVICE_VARIANT := v5
9 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
10 TPLINK_BOARD_ID := ARCHER-A7-V5
11 BOARDNAME := ARCHER-A7-V5
12 SUPPORTED_DEVICES += archer-a7-v5
13 endef
14 TARGET_DEVICES += tplink_archer-a7-v5
15
16 define Device/tplink_archer-c2-v3
17 $(Device/tplink-safeloader-uimage)
18 ATH_SOC := qca9563
19 IMAGE_SIZE := 7808k
20 DEVICE_MODEL := Archer C2
21 DEVICE_VARIANT := v3
22 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
23 TPLINK_BOARD_ID := ARCHER-C2-V3
24 endef
25 TARGET_DEVICES += tplink_archer-c2-v3
26
27 define Device/tplink_archer-c25-v1
28 $(Device/tplink-safeloader-uimage)
29 ATH_SOC := qca9561
30 IMAGE_SIZE := 7808k
31 DEVICE_MODEL := Archer C25
32 DEVICE_VARIANT := v1
33 TPLINK_BOARD_ID := ARCHER-C25-V1
34 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
35 SUPPORTED_DEVICES += archer-c25-v1
36 endef
37 TARGET_DEVICES += tplink_archer-c25-v1
38
39 define Device/tplink_archer-c58-v1
40 $(Device/tplink-safeloader-uimage)
41 ATH_SOC := qca9561
42 IMAGE_SIZE := 7936k
43 DEVICE_MODEL := Archer C58
44 DEVICE_VARIANT := v1
45 TPLINK_BOARD_ID := ARCHER-C58-V1
46 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
47 SUPPORTED_DEVICES += archer-c58-v1
48 endef
49 TARGET_DEVICES += tplink_archer-c58-v1
50
51 define Device/tplink_archer-c59-v1
52 $(Device/tplink-safeloader-uimage)
53 ATH_SOC := qca9561
54 IMAGE_SIZE := 14528k
55 DEVICE_MODEL := Archer C59
56 DEVICE_VARIANT := v1
57 TPLINK_BOARD_ID := ARCHER-C59-V1
58 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca9888-ct
59 SUPPORTED_DEVICES += archer-c59-v1
60 endef
61 TARGET_DEVICES += tplink_archer-c59-v1
62
63 define Device/tplink_archer-c60-v1
64 $(Device/tplink-safeloader-uimage)
65 ATH_SOC := qca9561
66 IMAGE_SIZE := 7936k
67 DEVICE_MODEL := Archer C60
68 DEVICE_VARIANT := v1
69 TPLINK_BOARD_ID := ARCHER-C60-V1
70 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
71 SUPPORTED_DEVICES += archer-c60-v1
72 endef
73 TARGET_DEVICES += tplink_archer-c60-v1
74
75 define Device/tplink_archer-c60-v2
76 $(Device/tplink-safeloader-uimage)
77 ATH_SOC := qca9561
78 IMAGE_SIZE := 7808k
79 DEVICE_MODEL := Archer C60
80 DEVICE_VARIANT := v2
81 TPLINK_BOARD_ID := ARCHER-C60-V2
82 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
83 SUPPORTED_DEVICES += archer-c60-v2
84 endef
85 TARGET_DEVICES += tplink_archer-c60-v2
86
87 define Device/tplink_archer-c6-v2
88 $(Device/tplink-safeloader-uimage)
89 ATH_SOC := qca9563
90 IMAGE_SIZE := 7808k
91 DEVICE_MODEL := Archer C6
92 DEVICE_VARIANT := v2
93 TPLINK_BOARD_ID := ARCHER-C6-V2
94 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
95 endef
96 TARGET_DEVICES += tplink_archer-c6-v2
97
98 define Device/tplink_archer-c5-v1
99 $(Device/tplink-16mlzma)
100 ATH_SOC := qca9558
101 DEVICE_MODEL := Archer C5
102 DEVICE_VARIANT := v1
103 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
104 TPLINK_HWID := 0xc5000001
105 SUPPORTED_DEVICES += archer-c5
106 endef
107 TARGET_DEVICES += tplink_archer-c5-v1
108
109 define Device/tplink_archer-c7-v1
110 $(Device/tplink-8mlzma)
111 ATH_SOC := qca9558
112 DEVICE_MODEL := Archer C7
113 DEVICE_VARIANT := v1
114 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
115 TPLINK_HWID := 0x75000001
116 SUPPORTED_DEVICES += archer-c7
117 endef
118 TARGET_DEVICES += tplink_archer-c7-v1
119
120 define Device/tplink_archer-c7-v2
121 $(Device/tplink-16mlzma)
122 ATH_SOC := qca9558
123 DEVICE_MODEL := Archer C7
124 DEVICE_VARIANT := v2
125 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
126 TPLINK_HWID := 0xc7000002
127 SUPPORTED_DEVICES += archer-c7
128 IMAGES += factory-us.bin factory-eu.bin
129 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
130 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
131 endef
132 TARGET_DEVICES += tplink_archer-c7-v2
133
134 define Device/tplink_archer-c7-v4
135 $(Device/tplink-safeloader-uimage)
136 ATH_SOC := qca9563
137 IMAGE_SIZE := 15104k
138 DEVICE_MODEL := Archer C7
139 DEVICE_VARIANT := v4
140 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
141 TPLINK_BOARD_ID := ARCHER-C7-V4
142 BOARDNAME := ARCHER-C7-V4
143 SUPPORTED_DEVICES += archer-c7-v4
144 endef
145 TARGET_DEVICES += tplink_archer-c7-v4
146
147 define Device/tplink_archer-c7-v5
148 $(Device/tplink-safeloader-uimage)
149 ATH_SOC := qca9563
150 IMAGE_SIZE := 15360k
151 DEVICE_MODEL := Archer C7
152 DEVICE_VARIANT := v5
153 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
154 TPLINK_BOARD_ID := ARCHER-C7-V5
155 BOARDNAME := ARCHER-C7-V5
156 SUPPORTED_DEVICES += archer-c7-v5
157 endef
158 TARGET_DEVICES += tplink_archer-c7-v5
159
160 define Device/tplink_cpe210-v2
161 $(Device/tplink-safeloader)
162 ATH_SOC := qca9533
163 IMAGE_SIZE := 7680k
164 DEVICE_MODEL := CPE210
165 DEVICE_VARIANT := v2
166 TPLINK_BOARD_ID := CPE210V2
167 DEVICE_PACKAGES := rssileds
168 LOADER_TYPE := elf
169 SUPPORTED_DEVICES += cpe210-v2
170 endef
171 TARGET_DEVICES += tplink_cpe210-v2
172
173 define Device/tplink_cpe210-v3
174 $(Device/tplink-safeloader)
175 ATH_SOC := qca9533
176 IMAGE_SIZE := 7680k
177 DEVICE_MODEL := CPE210
178 DEVICE_VARIANT := v3
179 DEVICE_PACKAGES := rssileds
180 TPLINK_BOARD_ID := CPE210V3
181 LOADER_TYPE := elf
182 SUPPORTED_DEVICES += cpe210-v3
183 endef
184 TARGET_DEVICES += tplink_cpe210-v3
185
186 define Device/tplink_cpe510-v2
187 $(Device/tplink-loader-okli)
188 ATH_SOC := ar9344
189 IMAGE_SIZE := 7680k
190 DEVICE_MODEL := CPE510
191 DEVICE_VARIANT := v2
192 DEVICE_PACKAGES := rssileds
193 TPLINK_BOARD_ID := CPE510V2
194 SUPPORTED_DEVICES += cpe510-v2
195 endef
196 TARGET_DEVICES += tplink_cpe510-v2
197
198 define Device/tplink_cpe510-v3
199 $(Device/tplink-loader-okli)
200 ATH_SOC := ar9344
201 IMAGE_SIZE := 7680k
202 DEVICE_MODEL := CPE510
203 DEVICE_VARIANT := v3
204 DEVICE_PACKAGES := rssileds
205 TPLINK_BOARD_ID := CPE510V3
206 SUPPORTED_DEVICES += cpe510-v3
207 endef
208 TARGET_DEVICES += tplink_cpe510-v3
209
210 define Device/tplink_cpe610-v1
211 $(Device/tplink-loader-okli)
212 ATH_SOC := ar9344
213 IMAGE_SIZE := 7680k
214 DEVICE_MODEL := CPE610
215 DEVICE_VARIANT := v1
216 TPLINK_BOARD_ID := CPE610V1
217 endef
218 TARGET_DEVICES += tplink_cpe610-v1
219
220 define Device/tplink_archer-d50-v1
221 ATH_SOC := qca9531
222 DEVICE_VENDOR := TP-Link
223 DEVICE_MODEL := Archer D50
224 DEVICE_VARIANT := v1
225 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
226 BOARDNAME := ARCHER-D50-V1
227 IMAGE_SIZE := 7808k
228 TPLINK_HWID := 0xC1200001
229 TPLINK_HWREV := 0x00000046
230 TPLINK_FLASHLAYOUT := 8Mqca
231 TPLINK_HWREVADD := 0x00000000
232 TPLINK_HVERSION := 3
233 KERNEL := kernel-bin | append-dtb | lzma
234 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | \
235 tplink-v2-header -s -V "ver. 1.0"
236 IMAGES := sysupgrade.bin
237 IMAGE/sysupgrade.bin := tplink-v2-image -s -V "ver. 2.0" | \
238 append-metadata | check-size $$$$(IMAGE_SIZE)
239 SUPPORTED_DEVICES += archer-d50-v1
240 endef
241 TARGET_DEVICES += tplink_archer-d50-v1
242
243 define Device/tplink_re350k-v1
244 $(Device/tplink-safeloader)
245 ATH_SOC := qca9558
246 IMAGE_SIZE := 13760k
247 DEVICE_MODEL := RE350K
248 DEVICE_VARIANT := v1
249 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
250 TPLINK_BOARD_ID := RE350K-V1
251 TPLINK_HWID := 0x0
252 TPLINK_HWREV := 0
253 endef
254 TARGET_DEVICES += tplink_re350k-v1
255
256 define Device/tplink_rex5x-v1
257 $(Device/tplink-safeloader)
258 ATH_SOC := qca9558
259 IMAGE_SIZE := 6016k
260 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
261 TPLINK_HWID := 0x0
262 TPLINK_HWREV := 0
263 endef
264
265 define Device/tplink_re355-v1
266 $(Device/tplink_rex5x-v1)
267 DEVICE_MODEL := RE355
268 DEVICE_VARIANT := v1
269 TPLINK_BOARD_ID := RE355
270 SUPPORTED_DEVICES += re355
271 endef
272 TARGET_DEVICES += tplink_re355-v1
273
274 define Device/tplink_re450-v1
275 $(Device/tplink_rex5x-v1)
276 DEVICE_MODEL := RE450
277 DEVICE_VARIANT := v1
278 TPLINK_BOARD_ID := RE450
279 SUPPORTED_DEVICES += re450
280 endef
281 TARGET_DEVICES += tplink_re450-v1
282
283 define Device/tplink_re450-v2
284 $(Device/tplink-safeloader)
285 ATH_SOC := qca9563
286 IMAGE_SIZE := 6016k
287 DEVICE_MODEL := RE450
288 DEVICE_VARIANT := v2
289 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
290 TPLINK_HWID := 0x0
291 TPLINK_HWREV := 0
292 TPLINK_BOARD_ID := RE450-V2
293 LOADER_TYPE := elf
294 endef
295 TARGET_DEVICES += tplink_re450-v2
296
297 define Device/tplink_tl-wdr3600-v1
298 $(Device/tplink-8mlzma)
299 ATH_SOC := ar9344
300 DEVICE_MODEL := TL-WDR3600
301 DEVICE_VARIANT := v1
302 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
303 TPLINK_HWID := 0x36000001
304 SUPPORTED_DEVICES += tl-wdr4300
305 endef
306 TARGET_DEVICES += tplink_tl-wdr3600-v1
307
308 define Device/tplink_tl-wdr4300-v1
309 $(Device/tplink-8mlzma)
310 ATH_SOC := ar9344
311 DEVICE_MODEL := TL-WDR4300
312 DEVICE_VARIANT := v1
313 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
314 TPLINK_HWID := 0x43000001
315 SUPPORTED_DEVICES += tl-wdr4300
316 endef
317 TARGET_DEVICES += tplink_tl-wdr4300-v1
318
319 define Device/tplink_tl-wdr4900-v2
320 $(Device/tplink-8mlzma)
321 ATH_SOC := qca9558
322 DEVICE_MODEL := TL-WDR4900
323 DEVICE_VARIANT := v2
324 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
325 TPLINK_HWID := 0x49000002
326 endef
327 TARGET_DEVICES += tplink_tl-wdr4900-v2
328
329 define Device/tplink_tl-wr810n-v1
330 $(Device/tplink-8mlzma)
331 ATH_SOC := qca9531
332 DEVICE_MODEL := TL-WR810N
333 DEVICE_VARIANT := v1
334 TPLINK_HWID := 0x8100001
335 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
336 endef
337 TARGET_DEVICES += tplink_tl-wr810n-v1
338
339 define Device/tplink_tl-wr810n-v2
340 $(Device/tplink-8mlzma)
341 ATH_SOC := qca9533
342 DEVICE_MODEL := TL-WR810N
343 DEVICE_VARIANT := v2
344 TPLINK_HWID := 0x8100002
345 endef
346 TARGET_DEVICES += tplink_tl-wr810n-v2
347
348 define Device/tplink_tl-wr710n-v1
349 $(Device/tplink-8mlzma)
350 ATH_SOC := ar9331
351 DEVICE_MODEL := TL-WR710N
352 DEVICE_VARIANT := v1
353 DEVICE_PACKAGES := kmod-usb-core kmod-usb-chipidea2 kmod-usb-ledtrig-usbport
354 TPLINK_HWID := 0x07100001
355 SUPPORTED_DEVICES += tl-wr710n
356 endef
357 TARGET_DEVICES += tplink_tl-wr710n-v1
358
359 define Device/tplink_tl-wr842n-v1
360 $(Device/tplink-8m)
361 ATH_SOC := ar7241
362 DEVICE_MODEL := TL-WR842N/ND
363 DEVICE_VARIANT := v1
364 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
365 TPLINK_HWID := 0x8420001
366 endef
367 TARGET_DEVICES += tplink_tl-wr842n-v1
368
369 define Device/tplink_tl-wr842n-v2
370 $(Device/tplink-8mlzma)
371 ATH_SOC := ar9341
372 DEVICE_MODEL := TL-WR842N/ND
373 DEVICE_VARIANT := v2
374 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
375 TPLINK_HWID := 0x8420002
376 SUPPORTED_DEVICES += tl-wr842n-v2
377 endef
378 TARGET_DEVICES += tplink_tl-wr842n-v2
379
380 define Device/tplink_tl-wr842n-v3
381 $(Device/tplink-16mlzma)
382 ATH_SOC := qca9533
383 DEVICE_MODEL := TL-WR842N
384 DEVICE_VARIANT := v3
385 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
386 TPLINK_HWID := 0x8420003
387 SUPPORTED_DEVICES += tl-wr842n-v3
388 endef
389 TARGET_DEVICES += tplink_tl-wr842n-v3
390
391 define Device/tplink_tl-wr1043nd-v1
392 $(Device/tplink-8m)
393 ATH_SOC := ar9132
394 DEVICE_MODEL := TL-WR1043N/ND
395 DEVICE_VARIANT := v1
396 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
397 TPLINK_HWID := 0x10430001
398 SUPPORTED_DEVICES += tl-wr1043nd
399 endef
400 TARGET_DEVICES += tplink_tl-wr1043nd-v1
401
402 define Device/tplink_tl-wr1043nd-v2
403 $(Device/tplink-8mlzma)
404 ATH_SOC := qca9558
405 DEVICE_MODEL := TL-WR1043N/ND
406 DEVICE_VARIANT := v2
407 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
408 TPLINK_HWID := 0x10430002
409 SUPPORTED_DEVICES += tl-wr1043nd-v2
410 endef
411 TARGET_DEVICES += tplink_tl-wr1043nd-v2
412
413 define Device/tplink_tl-wr1043nd-v3
414 $(Device/tplink-8mlzma)
415 ATH_SOC := qca9558
416 DEVICE_MODEL := TL-WR1043N/ND
417 DEVICE_VARIANT := v3
418 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
419 TPLINK_HWID := 0x10430003
420 SUPPORTED_DEVICES += tl-wr1043nd-v3
421 endef
422 TARGET_DEVICES += tplink_tl-wr1043nd-v3
423
424 define Device/tplink_tl-wr1043nd-v4
425 $(Device/tplink-safeloader)
426 ATH_SOC := qca9563
427 IMAGE_SIZE := 15552k
428 DEVICE_MODEL := TL-WR1043N/ND
429 DEVICE_VARIANT := v4
430 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
431 TPLINK_HWID := 0x10430004
432 TPLINK_BOARD_ID := TLWR1043NDV4
433 SUPPORTED_DEVICES += tl-wr1043nd-v4
434 endef
435 TARGET_DEVICES += tplink_tl-wr1043nd-v4
436
437 define Device/tplink_tl-wr1043n-v5
438 $(Device/tplink-safeloader-uimage)
439 ATH_SOC := qca9563
440 IMAGE_SIZE := 15104k
441 DEVICE_MODEL := TL-WR1043N
442 DEVICE_VARIANT := v5
443 TPLINK_BOARD_ID := TLWR1043NV5
444 SUPPORTED_DEVICES += tl-wr1043n-v5
445 endef
446 TARGET_DEVICES += tplink_tl-wr1043n-v5
447
448 define Device/tplink_tl-wr2543-v1
449 $(Device/tplink-8mlzma)
450 ATH_SOC := ar7242
451 DEVICE_MODEL := TL-WR2543N/ND
452 DEVICE_VARIANT := v1
453 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
454 TPLINK_HWID := 0x25430001
455 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 | \
456 append-metadata | check-size $$$$(IMAGE_SIZE)
457 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
458 SUPPORTED_DEVICES += tl-wr2543-v1
459 endef
460 TARGET_DEVICES += tplink_tl-wr2543-v1