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_nanobridge-m
261 DEVICE_MODEL
:= NanoBridge M
262 DEVICE_PACKAGES
+= rssileds
263 SUPPORTED_DEVICES
+= bullet-m
265 TARGET_DEVICES
+= ubnt_nanobridge-m
267 define Device
/ubnt_nanostation-ac
269 DEVICE_MODEL
:= Nanostation AC
270 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
272 TARGET_DEVICES
+= ubnt_nanostation-ac
274 define Device
/ubnt_nanostation-ac-loco
276 DEVICE_MODEL
:= Nanostation AC loco
277 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
279 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
281 define Device
/ubnt_nanostation-loco-m
284 DEVICE_MODEL
:= Nanostation Loco M
285 DEVICE_PACKAGES
+= rssileds
286 SUPPORTED_DEVICES
+= bullet-m
288 TARGET_DEVICES
+= ubnt_nanostation-loco-m
290 define Device
/ubnt_nanostation-loco-m-xw
292 DEVICE_MODEL
:= Nanostation Loco M
293 DEVICE_PACKAGES
+= rssileds
294 SUPPORTED_DEVICES
+= loco-m-xw
296 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
298 define Device
/ubnt_nanostation-m
301 DEVICE_MODEL
:= Nanostation M
302 DEVICE_PACKAGES
+= rssileds
303 SUPPORTED_DEVICES
+= nanostation-m
305 TARGET_DEVICES
+= ubnt_nanostation-m
307 define Device
/ubnt_nanostation-m-xw
309 DEVICE_MODEL
:= Nanostation M
310 DEVICE_PACKAGES
+= rssileds
311 SUPPORTED_DEVICES
+= nanostation-m-xw
313 TARGET_DEVICES
+= ubnt_nanostation-m-xw
315 define Device
/ubnt_picostation-m
318 DEVICE_MODEL
:= Picostation M
319 DEVICE_PACKAGES
+= rssileds
320 SUPPORTED_DEVICES
+= bullet-m
322 TARGET_DEVICES
+= ubnt_picostation-m
324 define Device
/ubnt_powerbeam-5ac-500
327 DEVICE_MODEL
:= PowerBeam
5AC
328 DEVICE_VARIANT
:= 500
329 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
331 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
333 define Device
/ubnt_powerbeam-5ac-gen2
335 DEVICE_MODEL
:= PowerBeam
5AC
336 DEVICE_VARIANT
:= Gen2
337 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
339 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
341 define Device
/ubnt_powerbeam-m2-xw
343 DEVICE_MODEL
:= PowerBeam M2
344 DEVICE_PACKAGES
+= rssileds
345 SUPPORTED_DEVICES
+= loco-m-xw
347 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
349 define Device
/ubnt_powerbeam-m5-xw
351 DEVICE_MODEL
:= PowerBeam M5
352 DEVICE_PACKAGES
+= rssileds
353 SUPPORTED_DEVICES
+= loco-m-xw
355 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
357 define Device
/ubnt_powerbridge-m
360 DEVICE_MODEL
:= PowerBridge M
361 DEVICE_PACKAGES
+= rssileds
362 SUPPORTED_DEVICES
+= bullet-m
364 TARGET_DEVICES
+= ubnt_powerbridge-m
366 define Device
/ubnt_rocket-5ac-lite
369 DEVICE_MODEL
:= Rocket
5AC
370 DEVICE_VARIANT
:= Lite
371 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
373 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
375 define Device
/ubnt_rocket-m
378 DEVICE_MODEL
:= Rocket M
379 DEVICE_PACKAGES
+= rssileds
380 SUPPORTED_DEVICES
+= rocket-m
382 TARGET_DEVICES
+= ubnt_rocket-m
384 define Device
/ubnt_routerstation_common
385 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
387 DEVICE_VENDOR
:= Ubiquiti
390 IMAGES
+= factory.bin
391 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
393 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | \
394 check-size | append-metadata
395 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
396 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
399 define Device
/ubnt_routerstation
400 $(Device
/ubnt_routerstation_common
)
401 DEVICE_MODEL
:= RouterStation
405 DEVICE_PACKAGES
+= -swconfig
406 SUPPORTED_DEVICES
+= routerstation
408 TARGET_DEVICES
+= ubnt_routerstation
410 define Device
/ubnt_routerstation-pro
411 $(Device
/ubnt_routerstation_common
)
412 DEVICE_MODEL
:= RouterStation Pro
415 UBNT_CHIP
:= ar7100pro
416 SUPPORTED_DEVICES
+= routerstation-pro
418 TARGET_DEVICES
+= ubnt_routerstation-pro
420 define Device
/ubnt_unifi
422 DEVICE_MODEL
:= UniFi AP
423 SUPPORTED_DEVICES
+= unifi
425 TARGET_DEVICES
+= ubnt_unifi
427 define Device
/ubnt_unifiac
428 DEVICE_VENDOR
:= Ubiquiti
431 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
434 define Device
/ubnt_unifiac-lite
435 $(Device
/ubnt_unifiac
)
436 DEVICE_MODEL
:= UniFi AC Lite
437 DEVICE_PACKAGES
+= -swconfig
438 SUPPORTED_DEVICES
+= unifiac-lite
440 TARGET_DEVICES
+= ubnt_unifiac-lite
442 define Device
/ubnt_unifiac-lr
443 $(Device
/ubnt_unifiac
)
444 DEVICE_MODEL
:= UniFi AC LR
445 DEVICE_PACKAGES
+= -swconfig
446 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
448 TARGET_DEVICES
+= ubnt_unifiac-lr
450 define Device
/ubnt_unifiac-mesh
451 $(Device
/ubnt_unifiac
)
452 DEVICE_MODEL
:= UniFi AC Mesh
453 DEVICE_PACKAGES
+= -swconfig
454 SUPPORTED_DEVICES
+= unifiac-lite
456 TARGET_DEVICES
+= ubnt_unifiac-mesh
458 define Device
/ubnt_unifiac-mesh-pro
459 $(Device
/ubnt_unifiac
)
460 DEVICE_MODEL
:= UniFi AC Mesh Pro
461 SUPPORTED_DEVICES
+= unifiac-pro
463 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
465 define Device
/ubnt_unifiac-pro
466 $(Device
/ubnt_unifiac
)
467 DEVICE_MODEL
:= UniFi AC Pro
468 DEVICE_PACKAGES
+= kmod-usb2
469 SUPPORTED_DEVICES
+= unifiac-pro
471 TARGET_DEVICES
+= ubnt_unifiac-pro
473 define Device
/ubnt_unifi-ap-outdoor-plus
475 $(Device
/ubnt-unifi-jffs2
)
476 DEVICE_MODEL
:= UniFi AP Outdoor
+
477 SUPPORTED_DEVICES
+= unifi-outdoor-plus
479 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
481 define Device
/ubnt_unifi-ap-pro
482 $(Device
/ubnt-unifi-jffs2
)
484 DEVICE_MODEL
:= UniFi AP Pro
486 SUPPORTED_DEVICES
+= uap-pro
488 TARGET_DEVICES
+= ubnt_unifi-ap-pro