1 DEVICE_VARS
+= UBNT_BOARD UBNT_CHIP UBNT_TYPE UBNT_VERSION UBNT_REVISION
3 # On M (XW) devices the U-Boot as of version 1.1.4-s1039 doesn't like
4 # VERSION_DIST being on the place of major(?) version number, so we need to
6 UBNT_REVISION
:= $(VERSION_DIST
)-$(REVISION
)
8 # mkubntimage is using the kernel image direct
9 # routerboard creates partitions out of the ubnt header
10 define Build
/mkubntimage
11 -$(STAGING_DIR_HOST
)/bin
/mkfwimage
-B
$(UBNT_BOARD
) \
12 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
13 -k
$(IMAGE_KERNEL
) -r
$@
-o
$@
16 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
17 # booting the image, the size doesn't matter.
18 define Build
/mkubntimage-split
20 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
21 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
22 $(STAGING_DIR_HOST
)/bin
/mkfwimage
-B
$(UBNT_BOARD
) \
23 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(UBNT_REVISION
) \
24 -k
$@.old1
-r
$@.old2
-o
$@
; \
28 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
29 # UBNT_TYPE e.g. one of (BZ, XM, XW)
30 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
31 # UBNT_VERSION e.g. one of (6.0.0, 8.5.3)
33 DEVICE_VENDOR
:= Ubiquiti
34 DEVICE_PACKAGES
:= kmod-usb2
36 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
37 append-rootfs | pad-rootfs | check-size | mkubntimage-split
53 DEVICE_PACKAGES
+= kmod-usb-ohci
59 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
84 DEVICE_PACKAGES
+= kmod-usb-ohci
90 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
100 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
102 UBNT_VERSION
:= 6.0.4
105 define Device
/ubnt_acb-isp
108 DEVICE_MODEL
:= airCube ISP
110 UBNT_BOARD
:= ACB-ISP
113 UBNT_VERSION
:= 2.5.0
115 TARGET_DEVICES
+= ubnt_acb-isp
117 define Device
/ubnt_airrouter
120 DEVICE_MODEL
:= AirRouter
121 SUPPORTED_DEVICES
+= airrouter
123 TARGET_DEVICES
+= ubnt_airrouter
125 define Device
/ubnt_bullet-m-ar7240
128 DEVICE_MODEL
:= Bullet M
129 DEVICE_VARIANT
:= XM
(AR7240
)
130 DEVICE_PACKAGES
+= rssileds
131 SUPPORTED_DEVICES
+= bullet-m
133 TARGET_DEVICES
+= ubnt_bullet-m-ar7240
135 define Device
/ubnt_bullet-m-ar7241
138 DEVICE_MODEL
:= Bullet M
139 DEVICE_VARIANT
:= XM
(AR7241
)
140 DEVICE_PACKAGES
+= rssileds
141 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
143 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
145 define Device
/ubnt_bullet-m-xw
147 DEVICE_MODEL
:= Bullet M
148 DEVICE_PACKAGES
+= rssileds
149 SUPPORTED_DEVICES
+= bullet-m-xw
151 TARGET_DEVICES
+= ubnt_bullet-m-xw
153 define Device
/ubnt_edgeswitch-5xp
155 DEVICE_MODEL
:= EdgeSwitch
5XP
157 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
159 define Device
/ubnt_edgeswitch-8xp
161 DEVICE_MODEL
:= EdgeSwitch
8XP
162 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
164 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
166 define Device
/ubnt_lap-120
168 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
169 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
171 TARGET_DEVICES
+= ubnt_lap-120
173 define Device
/ubnt_litebeam-ac-gen2
175 DEVICE_MODEL
:= LiteBeam AC
176 DEVICE_VARIANT
:= Gen2
177 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
179 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
181 define Device
/ubnt_nanobeam-ac
183 DEVICE_MODEL
:= NanoBeam AC
184 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
186 TARGET_DEVICES
+= ubnt_nanobeam-ac
188 define Device
/ubnt_nanobridge-m
191 DEVICE_MODEL
:= NanoBridge M
192 DEVICE_PACKAGES
+= rssileds
193 SUPPORTED_DEVICES
+= bullet-m
195 TARGET_DEVICES
+= ubnt_nanobridge-m
197 define Device
/ubnt_nanostation-ac
199 DEVICE_MODEL
:= Nanostation AC
200 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
202 TARGET_DEVICES
+= ubnt_nanostation-ac
204 define Device
/ubnt_nanostation-ac-loco
206 DEVICE_MODEL
:= Nanostation AC loco
207 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
209 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
211 define Device
/ubnt_nanostation-loco-m
214 DEVICE_MODEL
:= Nanostation Loco M
215 DEVICE_PACKAGES
+= rssileds
216 SUPPORTED_DEVICES
+= bullet-m
218 TARGET_DEVICES
+= ubnt_nanostation-loco-m
220 define Device
/ubnt_nanostation-loco-m-xw
222 DEVICE_MODEL
:= Nanostation Loco M
223 DEVICE_PACKAGES
+= rssileds
224 SUPPORTED_DEVICES
+= loco-m-xw
226 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
228 define Device
/ubnt_nanostation-m
231 DEVICE_MODEL
:= Nanostation M
232 DEVICE_PACKAGES
+= rssileds
233 SUPPORTED_DEVICES
+= nanostation-m
235 TARGET_DEVICES
+= ubnt_nanostation-m
237 define Device
/ubnt_nanostation-m-xw
239 DEVICE_MODEL
:= Nanostation M
240 DEVICE_PACKAGES
+= rssileds
241 SUPPORTED_DEVICES
+= nanostation-m-xw
243 TARGET_DEVICES
+= ubnt_nanostation-m-xw
245 define Device
/ubnt_picostation-m
248 DEVICE_MODEL
:= Picostation M
249 DEVICE_PACKAGES
+= rssileds
250 SUPPORTED_DEVICES
+= bullet-m
252 TARGET_DEVICES
+= ubnt_picostation-m
254 define Device
/ubnt_powerbeam-5ac-500
257 DEVICE_MODEL
:= PowerBeam
5AC
258 DEVICE_VARIANT
:= 500
259 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
261 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
263 define Device
/ubnt_powerbeam-5ac-gen2
265 DEVICE_MODEL
:= PowerBeam
5AC
266 DEVICE_VARIANT
:= Gen2
267 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
269 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
271 define Device
/ubnt_powerbridge-m
274 DEVICE_MODEL
:= PowerBridge M
275 DEVICE_PACKAGES
+= rssileds
276 SUPPORTED_DEVICES
+= bullet-m
278 TARGET_DEVICES
+= ubnt_powerbridge-m
280 define Device
/ubnt_rocket-m
283 DEVICE_MODEL
:= Rocket M
284 DEVICE_PACKAGES
+= rssileds
285 SUPPORTED_DEVICES
+= rocket-m
287 TARGET_DEVICES
+= ubnt_rocket-m
289 define Device
/ubnt_routerstation_common
290 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
292 DEVICE_VENDOR
:= Ubiquiti
295 IMAGES
:= factory.bin
296 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
298 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
299 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
302 define Device
/ubnt_routerstation
303 $(Device
/ubnt_routerstation_common
)
304 DEVICE_MODEL
:= RouterStation
308 DEVICE_PACKAGES
+= -swconfig
309 SUPPORTED_DEVICES
+= routerstation
311 TARGET_DEVICES
+= ubnt_routerstation
313 define Device
/ubnt_routerstation-pro
314 $(Device
/ubnt_routerstation_common
)
315 DEVICE_MODEL
:= RouterStation Pro
318 UBNT_CHIP
:= ar7100pro
319 SUPPORTED_DEVICES
+= routerstation-pro
321 TARGET_DEVICES
+= ubnt_routerstation-pro
323 define Device
/ubnt_unifi
325 DEVICE_MODEL
:= UniFi
326 SUPPORTED_DEVICES
+= unifi
328 TARGET_DEVICES
+= ubnt_unifi
330 define Device
/ubnt_unifiac
331 DEVICE_VENDOR
:= Ubiquiti
334 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
337 define Device
/ubnt_unifiac-lite
338 $(Device
/ubnt_unifiac
)
339 DEVICE_MODEL
:= UniFi AC Lite
340 SUPPORTED_DEVICES
+= unifiac-lite
342 TARGET_DEVICES
+= ubnt_unifiac-lite
344 define Device
/ubnt_unifiac-lr
345 $(Device
/ubnt_unifiac
)
346 DEVICE_MODEL
:= UniFi AC LR
347 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
349 TARGET_DEVICES
+= ubnt_unifiac-lr
351 define Device
/ubnt_unifiac-mesh
352 $(Device
/ubnt_unifiac
)
353 DEVICE_MODEL
:= UniFi AC Mesh
354 SUPPORTED_DEVICES
+= unifiac-lite
356 TARGET_DEVICES
+= ubnt_unifiac-mesh
358 define Device
/ubnt_unifiac-mesh-pro
359 $(Device
/ubnt_unifiac
)
360 DEVICE_MODEL
:= UniFi AC Mesh Pro
361 SUPPORTED_DEVICES
+= unifiac-pro
363 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
365 define Device
/ubnt_unifiac-pro
366 $(Device
/ubnt_unifiac
)
367 DEVICE_MODEL
:= UniFi AC Pro
368 DEVICE_PACKAGES
+= kmod-usb2
369 SUPPORTED_DEVICES
+= unifiac-pro
371 TARGET_DEVICES
+= ubnt_unifiac-pro