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 define Build
/mkubntimage2
17 -$(STAGING_DIR_HOST
)/bin
/mkfwimage2
-f
0x9f000000 \
18 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
19 -p jffs2
:0x50000:0xf60000:0:0:$@ \
24 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
25 # booting the image, the size doesn't matter.
26 define Build
/mkubntimage-split
28 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
29 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
30 $(STAGING_DIR_HOST
)/bin
/mkfwimage
-B
$(UBNT_BOARD
) \
31 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(UBNT_REVISION
) \
32 -k
$@.old1
-r
$@.old2
-o
$@
; \
36 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
37 # UBNT_TYPE e.g. one of (BZ, XM, XW)
38 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
39 # UBNT_VERSION e.g. one of (6.0.0, 8.5.3)
41 DEVICE_VENDOR
:= Ubiquiti
42 DEVICE_PACKAGES
:= kmod-usb2
44 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
45 append-rootfs | pad-rootfs | check-size | mkubntimage-split
61 DEVICE_PACKAGES
+= kmod-usb-ohci
67 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
70 define Device
/ubnt-2wa
102 DEVICE_PACKAGES
+= kmod-usb-ohci
106 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
108 UBNT_VERSION
:= 6.0.0
109 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
112 define Device
/ubnt-xw
119 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
121 UBNT_VERSION
:= 6.0.4
124 define Device
/ubnt-unifi-jffs2
129 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma | jffs2 kernel0
130 IMAGES
:= sysupgrade.bin factory.bin
131 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs |\
132 pad-rootfs | check-size | append-metadata
133 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
136 define Device
/ubnt-acb
141 UBNT_VERSION
:= 2.5.0
144 define Device
/ubnt_aircube-ac
147 DEVICE_MODEL
:= airCube AC
149 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
151 TARGET_DEVICES
+= ubnt_aircube-ac
153 define Device
/ubnt_aircube-isp
156 DEVICE_MODEL
:= airCube ISP
158 SUPPORTED_DEVICES
+= ubnt
,acb-isp
160 TARGET_DEVICES
+= ubnt_aircube-isp
162 define Device
/ubnt_airrouter
165 DEVICE_MODEL
:= AirRouter
166 SUPPORTED_DEVICES
+= airrouter
168 TARGET_DEVICES
+= ubnt_airrouter
170 define Device
/ubnt_bullet-ac
172 DEVICE_MODEL
:= Bullet AC
173 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
175 TARGET_DEVICES
+= ubnt_bullet-ac
177 define Device
/ubnt_bullet-m-ar7240
180 DEVICE_MODEL
:= Bullet M
181 DEVICE_VARIANT
:= XM
(AR7240
)
182 DEVICE_PACKAGES
+= rssileds
183 SUPPORTED_DEVICES
+= bullet-m
185 TARGET_DEVICES
+= ubnt_bullet-m-ar7240
187 define Device
/ubnt_bullet-m-ar7241
190 DEVICE_MODEL
:= Bullet M
191 DEVICE_VARIANT
:= XM
(AR7241
)
192 DEVICE_PACKAGES
+= rssileds
193 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
195 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
197 define Device
/ubnt_bullet-m-xw
199 DEVICE_MODEL
:= Bullet M
200 DEVICE_PACKAGES
+= rssileds
201 SUPPORTED_DEVICES
+= bullet-m-xw
203 TARGET_DEVICES
+= ubnt_bullet-m-xw
205 define Device
/ubnt_edgeswitch-5xp
207 DEVICE_MODEL
:= EdgeSwitch
5XP
209 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
211 define Device
/ubnt_edgeswitch-8xp
213 DEVICE_MODEL
:= EdgeSwitch
8XP
214 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
216 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
218 define Device
/ubnt_lap-120
220 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
221 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
223 TARGET_DEVICES
+= ubnt_lap-120
225 define Device
/ubnt_litebeam-ac-gen2
227 DEVICE_MODEL
:= LiteBeam AC
228 DEVICE_VARIANT
:= Gen2
229 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
231 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
233 define Device
/ubnt_nanobeam-ac
235 DEVICE_MODEL
:= NanoBeam AC
236 DEVICE_VARIANT
:= Gen1
237 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
239 TARGET_DEVICES
+= ubnt_nanobeam-ac
241 define Device
/ubnt_nanobeam-ac-gen2
243 DEVICE_MODEL
:= NanoBeam AC
244 DEVICE_VARIANT
:= Gen2
245 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
247 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
249 define Device
/ubnt_nanobeam-ac-xc
252 DEVICE_MODEL
:= NanoBeam AC
253 DEVICE_VARIANT
:= Gen1
(XC
)
254 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
256 TARGET_DEVICES
+= ubnt_nanobeam-ac-xc
258 define Device
/ubnt_nanobeam-m5
260 DEVICE_MODEL
:= NanoBeam M5
261 DEVICE_PACKAGES
+= rssileds
262 SUPPORTED_DEVICES
+= loco-m-xw
264 TARGET_DEVICES
+= ubnt_nanobeam-m5
266 define Device
/ubnt_nanobridge-m
269 DEVICE_MODEL
:= NanoBridge M
270 DEVICE_PACKAGES
+= rssileds
271 SUPPORTED_DEVICES
+= bullet-m
273 TARGET_DEVICES
+= ubnt_nanobridge-m
275 define Device
/ubnt_nanostation-ac
277 DEVICE_MODEL
:= Nanostation AC
278 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
280 TARGET_DEVICES
+= ubnt_nanostation-ac
282 define Device
/ubnt_nanostation-ac-loco
284 DEVICE_MODEL
:= Nanostation AC loco
285 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
287 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
289 define Device
/ubnt_nanostation-loco-m
292 DEVICE_MODEL
:= Nanostation Loco M
293 DEVICE_PACKAGES
+= rssileds
294 SUPPORTED_DEVICES
+= bullet-m
296 TARGET_DEVICES
+= ubnt_nanostation-loco-m
298 define Device
/ubnt_nanostation-loco-m-xw
300 DEVICE_MODEL
:= Nanostation Loco M
301 DEVICE_PACKAGES
+= rssileds
302 SUPPORTED_DEVICES
+= loco-m-xw
304 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
306 define Device
/ubnt_nanostation-m
309 DEVICE_MODEL
:= Nanostation M
310 DEVICE_PACKAGES
+= rssileds
311 SUPPORTED_DEVICES
+= nanostation-m
313 TARGET_DEVICES
+= ubnt_nanostation-m
315 define Device
/ubnt_nanostation-m-xw
317 DEVICE_MODEL
:= Nanostation M
318 DEVICE_PACKAGES
+= rssileds
319 SUPPORTED_DEVICES
+= nanostation-m-xw
321 TARGET_DEVICES
+= ubnt_nanostation-m-xw
323 define Device
/ubnt_picostation-m
326 DEVICE_MODEL
:= Picostation M
327 DEVICE_PACKAGES
+= rssileds
328 SUPPORTED_DEVICES
+= bullet-m
330 TARGET_DEVICES
+= ubnt_picostation-m
332 define Device
/ubnt_powerbeam-5ac-500
335 DEVICE_MODEL
:= PowerBeam
5AC
336 DEVICE_VARIANT
:= 500
337 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
339 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
341 define Device
/ubnt_powerbeam-5ac-gen2
343 DEVICE_MODEL
:= PowerBeam
5AC
344 DEVICE_VARIANT
:= Gen2
345 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
347 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
349 define Device
/ubnt_powerbeam-m2-xw
351 DEVICE_MODEL
:= PowerBeam M2
352 DEVICE_PACKAGES
+= rssileds
353 SUPPORTED_DEVICES
+= loco-m-xw
355 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
357 define Device
/ubnt_powerbeam-m5-xw
359 DEVICE_MODEL
:= PowerBeam M5
360 DEVICE_PACKAGES
+= rssileds
361 SUPPORTED_DEVICES
+= loco-m-xw
363 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
365 define Device
/ubnt_powerbridge-m
368 DEVICE_MODEL
:= PowerBridge M
369 DEVICE_PACKAGES
+= rssileds
370 SUPPORTED_DEVICES
+= bullet-m
372 TARGET_DEVICES
+= ubnt_powerbridge-m
374 define Device
/ubnt_rocket-5ac-lite
377 DEVICE_MODEL
:= Rocket
5AC
378 DEVICE_VARIANT
:= Lite
379 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
381 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
383 define Device
/ubnt_rocket-m
386 DEVICE_MODEL
:= Rocket M
387 DEVICE_PACKAGES
+= rssileds
388 SUPPORTED_DEVICES
+= rocket-m
390 TARGET_DEVICES
+= ubnt_rocket-m
392 define Device
/ubnt_routerstation_common
393 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
395 DEVICE_VENDOR
:= Ubiquiti
398 IMAGES
+= factory.bin
399 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
401 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | \
402 check-size | append-metadata
403 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
404 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
407 define Device
/ubnt_routerstation
408 $(Device
/ubnt_routerstation_common
)
409 DEVICE_MODEL
:= RouterStation
413 DEVICE_PACKAGES
+= -swconfig
414 SUPPORTED_DEVICES
+= routerstation
416 TARGET_DEVICES
+= ubnt_routerstation
418 define Device
/ubnt_routerstation-pro
419 $(Device
/ubnt_routerstation_common
)
420 DEVICE_MODEL
:= RouterStation Pro
423 UBNT_CHIP
:= ar7100pro
424 SUPPORTED_DEVICES
+= routerstation-pro
426 TARGET_DEVICES
+= ubnt_routerstation-pro
428 define Device
/ubnt_unifi
430 DEVICE_MODEL
:= UniFi AP
431 SUPPORTED_DEVICES
+= unifi
433 TARGET_DEVICES
+= ubnt_unifi
435 define Device
/ubnt_unifiac
436 DEVICE_VENDOR
:= Ubiquiti
439 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
442 define Device
/ubnt_unifiac-lite
443 $(Device
/ubnt_unifiac
)
444 DEVICE_MODEL
:= UniFi AC Lite
445 DEVICE_PACKAGES
+= -swconfig
446 SUPPORTED_DEVICES
+= unifiac-lite
448 TARGET_DEVICES
+= ubnt_unifiac-lite
450 define Device
/ubnt_unifiac-lr
451 $(Device
/ubnt_unifiac
)
452 DEVICE_MODEL
:= UniFi AC LR
453 DEVICE_PACKAGES
+= -swconfig
454 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
456 TARGET_DEVICES
+= ubnt_unifiac-lr
458 define Device
/ubnt_unifiac-mesh
459 $(Device
/ubnt_unifiac
)
460 DEVICE_MODEL
:= UniFi AC Mesh
461 DEVICE_PACKAGES
+= -swconfig
462 SUPPORTED_DEVICES
+= unifiac-lite
464 TARGET_DEVICES
+= ubnt_unifiac-mesh
466 define Device
/ubnt_unifiac-mesh-pro
467 $(Device
/ubnt_unifiac
)
468 DEVICE_MODEL
:= UniFi AC Mesh Pro
469 SUPPORTED_DEVICES
+= unifiac-pro
471 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
473 define Device
/ubnt_unifiac-pro
474 $(Device
/ubnt_unifiac
)
475 DEVICE_MODEL
:= UniFi AC Pro
476 DEVICE_PACKAGES
+= kmod-usb2
477 SUPPORTED_DEVICES
+= unifiac-pro
479 TARGET_DEVICES
+= ubnt_unifiac-pro
481 define Device
/ubnt_unifi-ap-outdoor-plus
483 $(Device
/ubnt-unifi-jffs2
)
484 DEVICE_MODEL
:= UniFi AP Outdoor
+
485 SUPPORTED_DEVICES
+= unifi-outdoor-plus
487 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
489 define Device
/ubnt_unifi-ap-pro
490 $(Device
/ubnt-unifi-jffs2
)
492 DEVICE_MODEL
:= UniFi AP Pro
494 SUPPORTED_DEVICES
+= uap-pro
496 TARGET_DEVICES
+= ubnt_unifi-ap-pro