ar71xx-generic 10.8 KB
Newer Older
1
2
config('GLUON_SPECIALIZE_KERNEL', true)
config('TARGET_SQUASHFS_BLOCK_SIZE', 64)
3

4
5
6
local ATH10K_PACKAGES = {
	'kmod-ath10k',
	'-kmod-ath10k-ct',
7
	'-kmod-ath10k-ct-smallbuffers',
8
9
10
11
12
13
	'ath10k-firmware-qca988x',
	'-ath10k-firmware-qca988x-ct',
}
local ATH10K_PACKAGES_QCA9887 = {
	'kmod-ath10k',
	'-kmod-ath10k-ct',
14
	'-kmod-ath10k-ct-smallbuffers',
15
16
17
18
19
20
	'ath10k-firmware-qca9887',
	'-ath10k-firmware-qca9887-ct',
}
local ATH10K_PACKAGES_QCA9888 = {
	'kmod-ath10k',
	'-kmod-ath10k-ct',
21
	'-kmod-ath10k-ct-smallbuffers',
22
23
24
	'ath10k-firmware-qca9888',
	'-ath10k-firmware-qca9888-ct',
}
Matthias Schiffer's avatar
Matthias Schiffer committed
25
26


27
-- 8devices
Matthias Schiffer's avatar
Matthias Schiffer committed
28

29
30
31
device('8devices-carambola2-board', 'carambola2', {
	factory = false,
})
Matthias Schiffer's avatar
Matthias Schiffer committed
32
33


34
-- ALFA NETWORK
Matthias Schiffer's avatar
Matthias Schiffer committed
35

36
37
device('alfa-network-ap121f', 'ap121f', {
	factory = false,
David Bauer's avatar
David Bauer committed
38
	class = 'tiny', -- 32M ath9k
39
})
40

Matthias Schiffer's avatar
Matthias Schiffer committed
41

42
-- Allnet
Matthias Schiffer's avatar
Matthias Schiffer committed
43

44
45
46
47
device('allnet-all0315n', 'all0315n', {
	profile = 'ALL0315N',
	factory = false,
})
Matthias Schiffer's avatar
Matthias Schiffer committed
48
49


50
-- AVM
51

52
53
54
device('avm-fritz-box-4020', 'fritz4020', {
	factory = false,
})
55

56
57
58
device('avm-fritz-wlan-repeater-300e', 'fritz300e', {
	factory = false,
})
59

60
61
62
device('avm-fritz-wlan-repeater-450e', 'fritz450e', {
	factory = false,
})
63
64


65
-- Buffalo
Matthias Schiffer's avatar
Matthias Schiffer committed
66

67
68
69
70
71
72
73
74
75
device('buffalo-wzr-hp-g300nh', 'wzr-hp-g300nh', {
	profile = 'WZRHPG300NH',
})
device('buffalo-wzr-hp-g300nh2', 'wzr-hp-g300nh2', {
	profile = 'WZRHPG300NH2',
})
device('buffalo-wzr-hp-g450h', 'wzr-hp-g450h', {
	profile = 'WZRHPG450H',
})
Matthias Schiffer's avatar
Matthias Schiffer committed
76
77


78
79
80
81
82
83
84
85
86
device('buffalo-wzr-hp-ag300h', 'wzr-hp-ag300h', {
	profile = 'WZRHPAG300H',
	sysupgrade = false,
})
device('buffalo-wzr-600dhp', 'wzr-600dhp', {
	profile = 'WZR600DHP',
	sysupgrade = false,
})
sysupgrade_image('buffalo-wzr-hp-ag300h-wzr-600dhp', 'wzr-hp-ag300h-squashfs-sysupgrade', '.bin')
Matthias Schiffer's avatar
Matthias Schiffer committed
87
88


89
-- D-Link
Matthias Schiffer's avatar
Matthias Schiffer committed
90

91
92
93
device('d-link-dap-1330-rev-a1', 'dap-1330-a1', {
	factory_ext = '.img',
})
94

95
96
97
98
device('d-link-dir-505-rev-a1', 'dir-505-a1', {
	profile = 'DIR505A1',
	aliases = {'d-link-dir-505-rev-a2'},
})
Matthias Schiffer's avatar
Matthias Schiffer committed
99

100
101
102
device('d-link-dir-825-rev-b1', 'dir-825-b1', {
	profile = 'DIR825B1',
	factory = false,
103
	class = 'tiny', -- Only 6M of usable Firmware space
104
})
Matthias Schiffer's avatar
Matthias Schiffer committed
105

Nico's avatar
Nico committed
106
107
108
device('d-link-dir-825-rev-c1', 'dir-825-c1', {
	profile = 'DIR825C1'
})
Nico's avatar
Nico committed
109

Matthias Schiffer's avatar
Matthias Schiffer committed
110

111
-- GL.iNet
Matthias Schiffer's avatar
Matthias Schiffer committed
112

113
device('gl-inet-6408a-v1', 'gl-inet-6408A-v1')
114

115
device('gl-inet-6416a-v1', 'gl-inet-6416A-v1')
Matthias Schiffer's avatar
Matthias Schiffer committed
116

117
118
119
120
device('gl.inet-gl-ar150', 'gl-ar150', {
	factory = false,
	manifest_aliases = {'gl-ar150'},
})
121

122
123
124
125
device('gl.inet-gl-ar300m', 'gl-ar300m', {
	factory = false,
	manifest_aliases = {'gl-ar300m'},
})
Matthias Schiffer's avatar
Matthias Schiffer committed
126

127
128
129
device('gl.inet-gl-ar750', 'gl-ar750', {
	factory = false,
	manifest_aliases = {'gl-ar750'},
130
	packages = ATH10K_PACKAGES_QCA9887,
131
})
Matthias Schiffer's avatar
Matthias Schiffer committed
132

133
134
135
136
device('gl.inet-gl-usb150', 'gl-usb150', {
	factory = false,
})

Matthias Schiffer's avatar
Matthias Schiffer committed
137

138
-- Linksys by Cisco
Matthias Schiffer's avatar
Matthias Schiffer committed
139

140
141
device('linksys-wrt160nl', 'wrt160nl', {
	profile = 'WRT160NL',
David Bauer's avatar
David Bauer committed
142
	class = 'tiny', -- 32M ath9k
143
})
Matthias Schiffer's avatar
Matthias Schiffer committed
144
145


146
147
148
149
150
151
-- Meraki
device('meraki-mr12', 'mr12', {
	factory = false,
	aliases = {'meraki-mr62'},
	broken = true, -- MAC address uniqueness issues
})
Matthias Schiffer's avatar
Matthias Schiffer committed
152

153
154
155
156
157
device('meraki-mr16', 'mr16', {
	factory = false,
	aliases = {'meraki-mr66'},
	broken = true, -- MAC address uniqueness issues
})
Matthias Schiffer's avatar
Matthias Schiffer committed
158
159


160
-- Netgear
Matthias Schiffer's avatar
Matthias Schiffer committed
161

162
163
164
device('netgear-wndr3700', 'wndr3700', {
	factory_ext = '.img',
})
Matthias Schiffer's avatar
Matthias Schiffer committed
165

166
167
168
device('netgear-wndr3700v2', 'wndr3700v2', {
	factory_ext = '.img',
})
Matthias Schiffer's avatar
Matthias Schiffer committed
169

170
device('netgear-wndr3800', 'wndr3800', {
171
	aliases = {'netgear-wndr3800chmychart'},
172
173
	factory_ext = '.img',
})
Matthias Schiffer's avatar
Matthias Schiffer committed
174

175
176
177
device('netgear-wndrmacv2', 'wndrmacv2', {
	factory_ext = '.img',
})
Matthias Schiffer's avatar
Matthias Schiffer committed
178

179
180
181
182
device('netgear-wndrmac', 'wndrmac', {
	factory_ext = '.img',
	broken = true, -- untested
})
Matthias Schiffer's avatar
Matthias Schiffer committed
183

184
185
186
187
188
189
-- BROKEN: Untested
device('netgear-wnr2200', 'wnr2200', {
	profile = 'WNR2200',
	factory_ext = '.img',
	broken = true, -- untested
})
Matthias Schiffer's avatar
Matthias Schiffer committed
190
191


192
-- OCEDO
193

194
195
device('ocedo-koala', 'koala', {
	factory = false,
196
	packages = ATH10K_PACKAGES,
197
})
198
199


200
-- Onion
Matthias Schiffer's avatar
Matthias Schiffer committed
201

202
203
204
device('onion-omega', 'onion-omega', {
	broken = true, -- no Ethernet
})
Matthias Schiffer's avatar
Matthias Schiffer committed
205

206
-- OpenMesh
Matthias Schiffer's avatar
Matthias Schiffer committed
207

208
209
210
211
212
device('openmesh-a60', 'a60', {
	profile = 'A60',
	aliases = {'openmesh-a40'},
	packages = ATH10K_PACKAGES,
})
Matthias Schiffer's avatar
Matthias Schiffer committed
213

214
215
216
217
218
device('openmesh-mr1750', 'mr1750', {
	profile = 'MR1750',
	aliases = {'openmesh-mr1750v2'},
	packages = ATH10K_PACKAGES,
})
219

220
221
222
223
device('openmesh-mr600', 'mr600', {
	profile = 'MR600',
	aliases = {'openmesh-mr600v2'},
})
Matthias Schiffer's avatar
Matthias Schiffer committed
224

225
226
227
228
device('openmesh-mr900', 'mr900', {
	profile = 'MR900',
	aliases = {'openmesh-mr900v2'},
})
Matthias Schiffer's avatar
Matthias Schiffer committed
229

230
231
232
233
234
235
236
237
238
239
240
241
device('openmesh-om2p', 'om2p', {
	profile = 'OM2P',
	aliases = {
		'openmesh-om2pv2',
		'openmesh-om2pv4',
		'openmesh-om2p-hs',
		'openmesh-om2p-hsv2',
		'openmesh-om2p-hsv3',
		'openmesh-om2p-hsv4',
		'openmesh-om2p-lc',
	},
})
Matthias Schiffer's avatar
Matthias Schiffer committed
242

243
244
245
246
device('openmesh-om5p', 'om5p', {
	profile = 'OM5P',
	aliases = {'openmesh-om5p-an'},
})
Matthias Schiffer's avatar
Matthias Schiffer committed
247

248
249
250
251
252
device('openmesh-om5p-ac', 'om5pac', {
	profile = 'OM5PAC',
	aliases = {'openmesh-om5p-acv2'},
	packages = ATH10K_PACKAGES,
})
Matthias Schiffer's avatar
Matthias Schiffer committed
253
254


255
-- TP-Link
Matthias Schiffer's avatar
Matthias Schiffer committed
256

257
258
259
260
local tplink_region_suffix = ''
if (env.GLUON_REGION or '') ~= '' then
	tplink_region_suffix = '-' .. env.GLUON_REGION
end
Matthias Schiffer's avatar
Matthias Schiffer committed
261

262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
device('tp-link-cpe210-v1', 'cpe210-220-v1', {
	aliases = {
		'tp-link-cpe220-v1',
	},
	manifest_aliases = {
		'tp-link-cpe210-v1.0',
		'tp-link-cpe210-v1.1',
		'tp-link-cpe220-v1.1',
	},
})
device('tp-link-cpe210-v2', 'cpe210-v2', {
	manifest_aliases = {
		'tp-link-cpe210-v2.0',
	},
})
device('tp-link-cpe210-v3', 'cpe210-v3', {
	manifest_aliases = {
		'tp-link-cpe210-v3.0',
280
281
		'tp-link-cpe210-v3.1',
		'tp-link-cpe210-v3.20',
282
	},
283
})
284

285
286
287
288
289
290
291
292
293
device('tp-link-cpe510-v1', 'cpe510-520-v1', {
	aliases = {
		'tp-link-cpe520-v1',
	},
	manifest_aliases = {
		'tp-link-cpe510-v1.0',
		'tp-link-cpe510-v1.1',
		'tp-link-cpe520-v1.1',
	},
294
})
Matthias Schiffer's avatar
Matthias Schiffer committed
295

296
297
298
299
300
301
302
303
304
305
device('tp-link-wbs210-v1', 'wbs210-v1', {
	manifest_aliases = {
		'tp-link-wbs210-v1.20',
	},
})
device('tp-link-wbs510-v1', 'wbs510-v1', {
	manifest_aliases = {
		'tp-link-wbs510-v1.20',
	},
})
306

307
device('tp-link-tl-wr710n-v1', 'tl-wr710n-v1', {
David Bauer's avatar
David Bauer committed
308
	class = 'tiny', -- 32M ath9k
309
310
311
	packages = { 'zram-swap' },
})
device('tp-link-tl-wr710n-v2.1', 'tl-wr710n-v2.1', {
David Bauer's avatar
David Bauer committed
312
	class = 'tiny', -- 32M ath9k
313
314
	packages = { 'zram-swap' },
})
315
316
317

device('tp-link-tl-wr810n-v1', 'tl-wr810n-v1')

318
device('tp-link-tl-wr842n-nd-v1', 'tl-wr842n-v1', {
David Bauer's avatar
David Bauer committed
319
	class = 'tiny', -- 32M ath9k
320
321
322
	packages = { 'zram-swap' },
})
device('tp-link-tl-wr842n-nd-v2', 'tl-wr842n-v2', {
David Bauer's avatar
David Bauer committed
323
	class = 'tiny', -- 32M ath9k
324
325
	packages = { 'zram-swap' },
})
326
327
device('tp-link-tl-wr842n-nd-v3', 'tl-wr842n-v3')

328
device('tp-link-tl-wr1043n-nd-v1', 'tl-wr1043nd-v1', {
David Bauer's avatar
David Bauer committed
329
	class = 'tiny', -- 32M ath9k
330
331
	packages = { 'zram-swap' },
})
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
device('tp-link-tl-wr1043n-nd-v2', 'tl-wr1043nd-v2')
device('tp-link-tl-wr1043n-nd-v3', 'tl-wr1043nd-v3')
device('tp-link-tl-wr1043n-nd-v4', 'tl-wr1043nd-v4')
device('tp-link-tl-wr1043n-v5', 'tl-wr1043n-v5')

device('tp-link-tl-wdr3500-v1', 'tl-wdr3500-v1')
device('tp-link-tl-wdr3600-v1', 'tl-wdr3600-v1')
device('tp-link-tl-wdr4300-v1', 'tl-wdr4300-v1')

device('tp-link-tl-wr2543n-nd-v1', 'tl-wr2543-v1')

device('tp-link-archer-c5-v1', 'archer-c5-v1', {
	packages = ATH10K_PACKAGES,
})

device('tp-link-archer-c7-v2', 'archer-c7-v2', {
	packages = ATH10K_PACKAGES,
	factory = '-squashfs-factory' .. tplink_region_suffix,
})

device('tp-link-archer-c7-v4', 'archer-c7-v4', {
	packages = ATH10K_PACKAGES,
})

device('tp-link-archer-c7-v5', 'archer-c7-v5', {
	packages = ATH10K_PACKAGES,
})

device('tp-link-archer-c25-v1', 'archer-c25-v1', {
	packages = ATH10K_PACKAGES_QCA9887,
362
	broken = true, -- OOM with 5GHz enabled in most environments
David Bauer's avatar
David Bauer committed
363
	class = 'tiny', -- 64M ath9k + ath10k
364
365
366
})

device('tp-link-archer-c58-v1', 'archer-c58-v1', {
367
	packages = ATH10K_PACKAGES_QCA9888,
368
	broken = true, -- OOM with 5GHz enabled in most environments
David Bauer's avatar
David Bauer committed
369
	class = 'tiny', -- 64M ath9k + ath10k
370
371
372
})

device('tp-link-archer-c59-v1', 'archer-c59-v1', {
373
	packages = ATH10K_PACKAGES_QCA9888,
374
375
376
})

device('tp-link-archer-c60-v1', 'archer-c60-v1', {
377
	packages = ATH10K_PACKAGES_QCA9888,
378
	broken = true, -- OOM with 5GHz enabled in most environments
David Bauer's avatar
David Bauer committed
379
	class = 'tiny', -- 64M ath9k + ath10k
380
381
})

382
device('tp-link-archer-c60-v2', 'archer-c60-v2', {
383
	packages = ATH10K_PACKAGES_QCA9888,
384
	broken = true, -- OOM with 5GHz enabled in most environments
David Bauer's avatar
David Bauer committed
385
	class = 'tiny', -- 64M ath9k + ath10k
386
387
})

388
device('tp-link-re355', 're355-v1', {
389
	packages = ATH10K_PACKAGES,
390
	broken = true, -- OOM with 5GHz enabled in most environments if device is 64M RAM variant
David Bauer's avatar
David Bauer committed
391
	class = 'tiny', -- Only 6M of usable Firmware space
392
393
394
})

device('tp-link-tl-wr902ac-v1', 'tl-wr902ac-v1', {
395
	packages = ATH10K_PACKAGES_QCA9887,
396
	broken = true, -- OOM due to insufficient RAM for ath10k expected
David Bauer's avatar
David Bauer committed
397
	class = 'tiny', -- 64M ath9k + ath10k
398
399
400
401
})

device('tp-link-re450', 're450-v1', {
	packages = ATH10K_PACKAGES,
David Bauer's avatar
David Bauer committed
402
	class = 'tiny', -- Only 6M of usable Firmware space
403
404
405
406
407
408
409
})


-- Ubiquiti

device('ubiquiti-airgateway', 'ubnt-air-gateway', {
	aliases = {'ubiquiti-airgateway-lr'},
David Bauer's avatar
David Bauer committed
410
	class = 'tiny', -- 32M ath9k
411
412
})

David Bauer's avatar
David Bauer committed
413
414
415
device('ubiquiti-airgateway-pro', 'ubnt-air-gateway-pro', {
	class = 'tiny', -- 32M ath9k
})
416

David Bauer's avatar
David Bauer committed
417
418
419
device('ubiquiti-airrouter', 'ubnt-airrouter', {
	class = 'tiny', -- 32M ath9k
})
420
421
422
423
424
425
426
427
428

device('ubiquiti-bullet-m', 'ubnt-bullet-m', {
	aliases = {
		'ubiquiti-nanostation-loco-m2',
		'ubiquiti-nanostation-loco-m5',
		'ubiquiti-bullet-m2',
		'ubiquiti-bullet-m5',
		'ubiquiti-picostation-m2',
	},
429
	packages = { 'zram-swap' },
David Bauer's avatar
David Bauer committed
430
	class = 'tiny', -- 32M ath9k
431
432
433
})

device('ubiquiti-rocket-m', 'ubnt-rocket-m', {
434
435
	aliases = {'ubiquiti-rocket-m2'},
	manifest_aliases = {'ubiquiti-rocket-m5'},
436
437
438
439
440
441
442
})

device('ubiquiti-nanostation-m', 'ubnt-nano-m', {
	aliases = {
		'ubiquiti-nanostation-m2',
		'ubiquiti-nanostation-m5',
	},
443
	packages = { 'zram-swap' },
David Bauer's avatar
David Bauer committed
444
	class = 'tiny', -- 32M ath9k
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
})

device('ubiquiti-loco-m-xw', 'ubnt-loco-m-xw', {
	aliases = {
		'ubiquiti-nanostation-loco-m2-xw',
		'ubiquiti-nanostation-loco-m5-xw',
		-- 'ubiquiti-nanobeam-m5', -- untested
	},
})

device('ubiquiti-nanostation-m-xw', 'ubnt-nano-m-xw', {
	aliases = {
		'ubiquiti-nanostation-m2-xw',
		'ubiquiti-nanostation-m5-xw',
	},
})

device('ubiquiti-rocket-m-xw', 'ubnt-rocket-m-xw', {
	aliases = {
		'ubiquiti-rocket-m2-xw',
		'ubiquiti-rocket-m5-xw',
	},
})

device('ubiquiti-rocket-m-ti', 'ubnt-rocket-m-ti', {
	aliases = {
		'ubiquiti-rocket-m2-ti',
		'ubiquiti-rocket-m5-ti',
	},
})

device('ubiquiti-unifi', 'ubnt-unifi', {
	aliases = {
		'ubiquiti-unifi-ap',
		'ubiquiti-unifi-ap-lr',
	},
})

device('ubiquiti-unifi-ap-pro', 'ubnt-uap-pro')
device('ubiquiti-unifiap-outdoor', 'ubnt-unifi-outdoor')
device('ubiquiti-unifiap-outdoor+', 'ubnt-unifi-outdoor-plus')

device('ubiquiti-ls-sr71', 'ubnt-ls-sr71', {
	broken = true, -- untested
David Bauer's avatar
David Bauer committed
489
	class = 'tiny', -- 32M ath9k
490
491
492
493
494
})

device('ubiquiti-unifi-ac-lite', 'ubnt-unifiac-lite', {
	factory = false,
	packages = ATH10K_PACKAGES,
495
	aliases = {'ubiquiti-unifi-ac-lite-mesh'},
496
497
})

498
499
500
501
502
device('ubiquiti-unifi-ac-lr', 'ubnt-unifiac-lr', {
	factory = false,
	packages = ATH10K_PACKAGES,
})

503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
device('ubiquiti-unifi-ac-pro', 'ubnt-unifiac-pro', {
	factory = false,
	packages = ATH10K_PACKAGES,
})

device('ubiquiti-unifi-ac-mesh', 'ubnt-unifiac-mesh', {
	factory = false,
	packages = ATH10K_PACKAGES,
})

device('ubiquiti-unifi-ac-mesh-pro', 'ubnt-unifiac-mesh-pro', {
	factory = false,
	packages = ATH10K_PACKAGES,
})


-- Western Digital

device('wd-my-net-n600', 'mynet-n600')
device('wd-my-net-n750', 'mynet-n750')

-- ZyXEL
device('zyxel-nbg6616', 'NBG6616', {
	packages = ATH10K_PACKAGES,
})