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