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