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_nanobridge-m
252 DEVICE_MODEL
:= NanoBridge M
253 DEVICE_PACKAGES
+= rssileds
254 SUPPORTED_DEVICES
+= bullet-m
256 TARGET_DEVICES
+= ubnt_nanobridge-m
258 define Device
/ubnt_nanostation-ac
260 DEVICE_MODEL
:= Nanostation AC
261 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
263 TARGET_DEVICES
+= ubnt_nanostation-ac
265 define Device
/ubnt_nanostation-ac-loco
267 DEVICE_MODEL
:= Nanostation AC loco
268 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
270 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
272 define Device
/ubnt_nanostation-loco-m
275 DEVICE_MODEL
:= Nanostation Loco M
276 DEVICE_PACKAGES
+= rssileds
277 SUPPORTED_DEVICES
+= bullet-m
279 TARGET_DEVICES
+= ubnt_nanostation-loco-m
281 define Device
/ubnt_nanostation-loco-m-xw
283 DEVICE_MODEL
:= Nanostation Loco M
284 DEVICE_PACKAGES
+= rssileds
285 SUPPORTED_DEVICES
+= loco-m-xw
287 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
289 define Device
/ubnt_nanostation-m
292 DEVICE_MODEL
:= Nanostation M
293 DEVICE_PACKAGES
+= rssileds
294 SUPPORTED_DEVICES
+= nanostation-m
296 TARGET_DEVICES
+= ubnt_nanostation-m
298 define Device
/ubnt_nanostation-m-xw
300 DEVICE_MODEL
:= Nanostation M
301 DEVICE_PACKAGES
+= rssileds
302 SUPPORTED_DEVICES
+= nanostation-m-xw
304 TARGET_DEVICES
+= ubnt_nanostation-m-xw
306 define Device
/ubnt_picostation-m
309 DEVICE_MODEL
:= Picostation M
310 DEVICE_PACKAGES
+= rssileds
311 SUPPORTED_DEVICES
+= bullet-m
313 TARGET_DEVICES
+= ubnt_picostation-m
315 define Device
/ubnt_powerbeam-5ac-500
318 DEVICE_MODEL
:= PowerBeam
5AC
319 DEVICE_VARIANT
:= 500
320 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
322 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
324 define Device
/ubnt_powerbeam-5ac-gen2
326 DEVICE_MODEL
:= PowerBeam
5AC
327 DEVICE_VARIANT
:= Gen2
328 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
330 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
332 define Device
/ubnt_powerbeam-m2-xw
334 DEVICE_MODEL
:= PowerBeam M2
335 DEVICE_PACKAGES
+= rssileds
336 SUPPORTED_DEVICES
+= loco-m-xw
338 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
340 define Device
/ubnt_powerbeam-m5-xw
342 DEVICE_MODEL
:= PowerBeam M5
343 DEVICE_PACKAGES
+= rssileds
344 SUPPORTED_DEVICES
+= loco-m-xw
346 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
348 define Device
/ubnt_powerbridge-m
351 DEVICE_MODEL
:= PowerBridge M
352 DEVICE_PACKAGES
+= rssileds
353 SUPPORTED_DEVICES
+= bullet-m
355 TARGET_DEVICES
+= ubnt_powerbridge-m
357 define Device
/ubnt_rocket-5ac-lite
360 DEVICE_MODEL
:= Rocket
5AC
361 DEVICE_VARIANT
:= Lite
362 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
364 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
366 define Device
/ubnt_rocket-m
369 DEVICE_MODEL
:= Rocket M
370 DEVICE_PACKAGES
+= rssileds
371 SUPPORTED_DEVICES
+= rocket-m
373 TARGET_DEVICES
+= ubnt_rocket-m
375 define Device
/ubnt_routerstation_common
376 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
378 DEVICE_VENDOR
:= Ubiquiti
381 IMAGES
+= factory.bin
382 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
384 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | \
385 check-size | append-metadata
386 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
387 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
390 define Device
/ubnt_routerstation
391 $(Device
/ubnt_routerstation_common
)
392 DEVICE_MODEL
:= RouterStation
396 DEVICE_PACKAGES
+= -swconfig
397 SUPPORTED_DEVICES
+= routerstation
399 TARGET_DEVICES
+= ubnt_routerstation
401 define Device
/ubnt_routerstation-pro
402 $(Device
/ubnt_routerstation_common
)
403 DEVICE_MODEL
:= RouterStation Pro
406 UBNT_CHIP
:= ar7100pro
407 SUPPORTED_DEVICES
+= routerstation-pro
409 TARGET_DEVICES
+= ubnt_routerstation-pro
411 define Device
/ubnt_unifi
413 DEVICE_MODEL
:= UniFi
414 SUPPORTED_DEVICES
+= unifi
416 TARGET_DEVICES
+= ubnt_unifi
418 define Device
/ubnt_unifiac
419 DEVICE_VENDOR
:= Ubiquiti
422 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
425 define Device
/ubnt_unifiac-lite
426 $(Device
/ubnt_unifiac
)
427 DEVICE_MODEL
:= UniFi AC Lite
428 SUPPORTED_DEVICES
+= unifiac-lite
430 TARGET_DEVICES
+= ubnt_unifiac-lite
432 define Device
/ubnt_unifiac-lr
433 $(Device
/ubnt_unifiac
)
434 DEVICE_MODEL
:= UniFi AC LR
435 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
437 TARGET_DEVICES
+= ubnt_unifiac-lr
439 define Device
/ubnt_unifiac-mesh
440 $(Device
/ubnt_unifiac
)
441 DEVICE_MODEL
:= UniFi AC Mesh
442 SUPPORTED_DEVICES
+= unifiac-lite
444 TARGET_DEVICES
+= ubnt_unifiac-mesh
446 define Device
/ubnt_unifiac-mesh-pro
447 $(Device
/ubnt_unifiac
)
448 DEVICE_MODEL
:= UniFi AC Mesh Pro
449 SUPPORTED_DEVICES
+= unifiac-pro
451 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
453 define Device
/ubnt_unifiac-pro
454 $(Device
/ubnt_unifiac
)
455 DEVICE_MODEL
:= UniFi AC Pro
456 DEVICE_PACKAGES
+= kmod-usb2
457 SUPPORTED_DEVICES
+= unifiac-pro
459 TARGET_DEVICES
+= ubnt_unifiac-pro
461 define Device
/ubnt_unifi-ap-outdoor-plus
463 $(Device
/ubnt-unifi-jffs2
)
464 DEVICE_MODEL
:= UniFi AP Outdoor
+
465 SUPPORTED_DEVICES
+= unifi-outdoor-plus
467 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
469 define Device
/ubnt_unifi-ap-pro
470 $(Device
/ubnt-unifi-jffs2
)
472 DEVICE_MODEL
:= UniFi AP Pro
474 SUPPORTED_DEVICES
+= uap-pro
476 TARGET_DEVICES
+= ubnt_unifi-ap-pro