8eeaa8de3e46acd9e712550d67b86a2224ca4145
[openwrt/openwrt.git] / target / linux / ath79 / image / generic-ubnt.mk
1 include ./common-ubnt.mk
2
3 define Device/ubnt_aircube-ac
4 $(Device/ubnt-acb)
5 SOC := ar9342
6 DEVICE_MODEL := airCube AC
7 UBNT_CHIP := ar9342
8 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
9 endef
10 TARGET_DEVICES += ubnt_aircube-ac
11
12 define Device/ubnt_aircube-isp
13 $(Device/ubnt-acb)
14 SOC := qca9533
15 DEVICE_MODEL := airCube ISP
16 UBNT_CHIP := qca9533
17 SUPPORTED_DEVICES += ubnt,acb-isp
18 endef
19 TARGET_DEVICES += ubnt_aircube-isp
20
21 define Device/ubnt_bullet-ac
22 $(Device/ubnt-2wa)
23 DEVICE_MODEL := Bullet AC
24 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
25 endef
26 TARGET_DEVICES += ubnt_bullet-ac
27
28 define Device/ubnt_bullet-m-xw
29 $(Device/ubnt-xw)
30 DEVICE_MODEL := Bullet M
31 DEVICE_PACKAGES += rssileds
32 SUPPORTED_DEVICES += bullet-m-xw
33 endef
34 TARGET_DEVICES += ubnt_bullet-m-xw
35
36 define Device/ubnt_edgeswitch-5xp
37 $(Device/ubnt-sw)
38 DEVICE_MODEL := EdgeSwitch 5XP
39 endef
40 TARGET_DEVICES += ubnt_edgeswitch-5xp
41
42 define Device/ubnt_edgeswitch-8xp
43 $(Device/ubnt-sw)
44 DEVICE_MODEL := EdgeSwitch 8XP
45 DEVICE_PACKAGES += kmod-switch-bcm53xx-mdio
46 DEFAULT := n
47 endef
48 TARGET_DEVICES += ubnt_edgeswitch-8xp
49
50 define Device/ubnt_lap-120
51 $(Device/ubnt-wa)
52 DEVICE_MODEL := LiteAP ac (LAP-120)
53 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
54 endef
55 TARGET_DEVICES += ubnt_lap-120
56
57 define Device/ubnt_litebeam-ac-gen2
58 $(Device/ubnt-wa)
59 DEVICE_MODEL := LiteBeam AC
60 DEVICE_VARIANT := Gen2
61 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
62 endef
63 TARGET_DEVICES += ubnt_litebeam-ac-gen2
64
65 define Device/ubnt_nanobeam-ac
66 $(Device/ubnt-wa)
67 DEVICE_MODEL := NanoBeam AC
68 DEVICE_VARIANT := Gen1
69 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
70 endef
71 TARGET_DEVICES += ubnt_nanobeam-ac
72
73 define Device/ubnt_nanobeam-ac-gen2
74 $(Device/ubnt-wa)
75 DEVICE_MODEL := NanoBeam AC
76 DEVICE_VARIANT := Gen2
77 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
78 endef
79 TARGET_DEVICES += ubnt_nanobeam-ac-gen2
80
81 define Device/ubnt_nanobeam-ac-xc
82 $(Device/ubnt-xc)
83 SOC := qca9558
84 DEVICE_MODEL := NanoBeam AC
85 DEVICE_VARIANT := Gen1 (XC)
86 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
87 endef
88 TARGET_DEVICES += ubnt_nanobeam-ac-xc
89
90 define Device/ubnt_nanobeam-m5-xw
91 $(Device/ubnt-xw)
92 DEVICE_MODEL := NanoBeam M5
93 DEVICE_PACKAGES += rssileds
94 SUPPORTED_DEVICES += loco-m-xw
95 endef
96 TARGET_DEVICES += ubnt_nanobeam-m5-xw
97
98 define Device/ubnt_nanostation-ac
99 $(Device/ubnt-wa)
100 DEVICE_MODEL := Nanostation AC
101 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
102 endef
103 TARGET_DEVICES += ubnt_nanostation-ac
104
105 define Device/ubnt_nanostation-ac-loco
106 $(Device/ubnt-wa)
107 DEVICE_MODEL := Nanostation AC loco
108 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
109 endef
110 TARGET_DEVICES += ubnt_nanostation-ac-loco
111
112 define Device/ubnt_nanostation-loco-m-xw
113 $(Device/ubnt-xw)
114 DEVICE_MODEL := Nanostation Loco M
115 DEVICE_PACKAGES += rssileds
116 SUPPORTED_DEVICES += loco-m-xw
117 endef
118 TARGET_DEVICES += ubnt_nanostation-loco-m-xw
119
120 define Device/ubnt_nanostation-m-xw
121 $(Device/ubnt-xw)
122 DEVICE_MODEL := Nanostation M
123 DEVICE_PACKAGES += rssileds
124 SUPPORTED_DEVICES += nanostation-m-xw
125 endef
126 TARGET_DEVICES += ubnt_nanostation-m-xw
127
128 define Device/ubnt_powerbeam-5ac-500
129 $(Device/ubnt-xc)
130 SOC := qca9558
131 DEVICE_MODEL := PowerBeam 5AC
132 DEVICE_VARIANT := 500
133 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
134 endef
135 TARGET_DEVICES += ubnt_powerbeam-5ac-500
136
137 define Device/ubnt_powerbeam-5ac-gen2
138 $(Device/ubnt-wa)
139 DEVICE_MODEL := PowerBeam 5AC
140 DEVICE_VARIANT := Gen2
141 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
142 endef
143 TARGET_DEVICES += ubnt_powerbeam-5ac-gen2
144
145 define Device/ubnt_powerbeam-m2-xw
146 $(Device/ubnt-xw)
147 DEVICE_MODEL := PowerBeam M2
148 DEVICE_PACKAGES += rssileds
149 SUPPORTED_DEVICES += loco-m-xw
150 endef
151 TARGET_DEVICES += ubnt_powerbeam-m2-xw
152
153 define Device/ubnt_powerbeam-m5-xw
154 $(Device/ubnt-xw)
155 DEVICE_MODEL := PowerBeam M5
156 DEVICE_PACKAGES += rssileds
157 SUPPORTED_DEVICES += loco-m-xw
158 endef
159 TARGET_DEVICES += ubnt_powerbeam-m5-xw
160
161 define Device/ubnt_rocket-5ac-lite
162 $(Device/ubnt-xc)
163 SOC := qca9558
164 DEVICE_MODEL := Rocket 5AC
165 DEVICE_VARIANT := Lite
166 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
167 endef
168 TARGET_DEVICES += ubnt_rocket-5ac-lite
169
170 define Device/ubnt_routerstation_common
171 DEVICE_PACKAGES := -kmod-ath9k -wpad-basic-wolfssl -uboot-envtools kmod-usb-ohci \
172 kmod-usb2 fconfig
173 DEVICE_VENDOR := Ubiquiti
174 SOC := ar7161
175 LOADER_TYPE := bin
176 LOADER_FLASH_OFFS := 0x50000
177 COMPILE := loader-$(1).bin
178 COMPILE/loader-$(1).bin := loader-okli-compile | lzma | pad-to 128k
179 IMAGE_SIZE := 16000k
180 IMAGES += factory.bin
181 IMAGE/factory.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
182 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | \
183 mkubntimage $$$$(KDIR)/loader-$(1).bin | check-size
184 IMAGE/sysupgrade.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
185 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | check-size | \
186 sysupgrade-tar kernel=$$$$(KDIR)/loader-$(1).bin rootfs=$$$$@ | append-metadata
187 KERNEL := kernel-bin | append-dtb | lzma
188 KERNEL_INITRAMFS := kernel-bin | append-dtb
189 DEVICE_COMPAT_VERSION := 2.0
190 DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (19.07 and 21.02) \
191 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
192 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
193 endef
194
195 define Device/ubnt_routerstation
196 $(Device/ubnt_routerstation_common)
197 DEVICE_MODEL := RouterStation
198 UBNT_BOARD := RS
199 UBNT_TYPE := RSx
200 UBNT_CHIP := ar7100
201 DEVICE_PACKAGES += -swconfig
202 endef
203 TARGET_DEVICES += ubnt_routerstation
204
205 define Device/ubnt_routerstation-pro
206 $(Device/ubnt_routerstation_common)
207 DEVICE_MODEL := RouterStation Pro
208 UBNT_BOARD := RSPRO
209 UBNT_TYPE := RSPRO
210 UBNT_CHIP := ar7100pro
211 endef
212 TARGET_DEVICES += ubnt_routerstation-pro
213
214 define Device/ubnt_unifi-ap
215 $(Device/ubnt-bz)
216 DEVICE_MODEL := UniFi AP
217 SUPPORTED_DEVICES += unifi ubnt,unifi
218 endef
219 TARGET_DEVICES += ubnt_unifi-ap
220
221 define Device/ubnt_unifi-ap-lr
222 $(Device/ubnt-bz)
223 DEVICE_MODEL := UniFi AP
224 DEVICE_VARIANT := LR
225 SUPPORTED_DEVICES += unifi ubnt,unifi ubnt,unifi-ap
226 endef
227 TARGET_DEVICES += ubnt_unifi-ap-lr
228
229 define Device/ubnt_unifiac
230 DEVICE_VENDOR := Ubiquiti
231 SOC := qca9563
232 IMAGE_SIZE := 15488k
233 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
234 endef
235
236 define Device/ubnt_unifiac-lite
237 $(Device/ubnt_unifiac)
238 DEVICE_MODEL := UniFi AC Lite
239 DEVICE_PACKAGES += -swconfig
240 SUPPORTED_DEVICES += unifiac-lite
241 endef
242 TARGET_DEVICES += ubnt_unifiac-lite
243
244 define Device/ubnt_unifiac-lr
245 $(Device/ubnt_unifiac)
246 DEVICE_MODEL := UniFi AC LR
247 DEVICE_PACKAGES += -swconfig
248 SUPPORTED_DEVICES += unifiac-lite ubnt,unifiac-lite
249 endef
250 TARGET_DEVICES += ubnt_unifiac-lr
251
252 define Device/ubnt_unifiac-mesh
253 $(Device/ubnt_unifiac)
254 DEVICE_MODEL := UniFi AC Mesh
255 DEVICE_PACKAGES += -swconfig
256 SUPPORTED_DEVICES += unifiac-lite
257 endef
258 TARGET_DEVICES += ubnt_unifiac-mesh
259
260 define Device/ubnt_unifiac-mesh-pro
261 $(Device/ubnt_unifiac)
262 DEVICE_MODEL := UniFi AC Mesh Pro
263 SUPPORTED_DEVICES += unifiac-pro
264 endef
265 TARGET_DEVICES += ubnt_unifiac-mesh-pro
266
267 define Device/ubnt_unifiac-pro
268 $(Device/ubnt_unifiac)
269 DEVICE_MODEL := UniFi AC Pro
270 DEVICE_PACKAGES += kmod-usb2
271 SUPPORTED_DEVICES += unifiac-pro
272 endef
273 TARGET_DEVICES += ubnt_unifiac-pro
274
275 define Device/ubnt_unifi-ap-outdoor-plus
276 $(Device/ubnt-bz)
277 $(Device/ubnt-unifi-jffs2)
278 DEVICE_MODEL := UniFi AP Outdoor+
279 SUPPORTED_DEVICES += unifi-outdoor-plus
280 endef
281 TARGET_DEVICES += ubnt_unifi-ap-outdoor-plus
282
283 define Device/ubnt_unifi-ap-pro
284 $(Device/ubnt-unifi-jffs2)
285 SOC := ar9344
286 DEVICE_MODEL := UniFi AP Pro
287 UBNT_CHIP := ar934x
288 SUPPORTED_DEVICES += uap-pro
289 endef
290 TARGET_DEVICES += ubnt_unifi-ap-pro