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
92 DEVICE_PACKAGES
+= kmod-usb-ohci
98 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
101 define Device
/ubnt-xw
108 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
110 UBNT_VERSION
:= 6.0.4
113 define Device
/ubnt_aircube-isp
116 DEVICE_MODEL
:= airCube ISP
118 UBNT_BOARD
:= ACB-ISP
121 UBNT_VERSION
:= 2.5.0
122 SUPPORTED_DEVICES
+= ubnt
,acb-isp
124 TARGET_DEVICES
+= ubnt_aircube-isp
126 define Device
/ubnt_airrouter
129 DEVICE_MODEL
:= AirRouter
130 SUPPORTED_DEVICES
+= airrouter
132 TARGET_DEVICES
+= ubnt_airrouter
134 define Device
/ubnt_bullet-m-ar7240
137 DEVICE_MODEL
:= Bullet M
138 DEVICE_VARIANT
:= XM
(AR7240
)
139 DEVICE_PACKAGES
+= rssileds
140 SUPPORTED_DEVICES
+= bullet-m
142 TARGET_DEVICES
+= ubnt_bullet-m-ar7240
144 define Device
/ubnt_bullet-m-ar7241
147 DEVICE_MODEL
:= Bullet M
148 DEVICE_VARIANT
:= XM
(AR7241
)
149 DEVICE_PACKAGES
+= rssileds
150 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
152 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
154 define Device
/ubnt_bullet-m-xw
156 DEVICE_MODEL
:= Bullet M
157 DEVICE_PACKAGES
+= rssileds
158 SUPPORTED_DEVICES
+= bullet-m-xw
160 TARGET_DEVICES
+= ubnt_bullet-m-xw
162 define Device
/ubnt_edgeswitch-5xp
164 DEVICE_MODEL
:= EdgeSwitch
5XP
166 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
168 define Device
/ubnt_edgeswitch-8xp
170 DEVICE_MODEL
:= EdgeSwitch
8XP
171 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
173 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
175 define Device
/ubnt_lap-120
177 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
178 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
180 TARGET_DEVICES
+= ubnt_lap-120
182 define Device
/ubnt_litebeam-ac-gen2
184 DEVICE_MODEL
:= LiteBeam AC
185 DEVICE_VARIANT
:= Gen2
186 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
188 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
190 define Device
/ubnt_nanobeam-ac
192 DEVICE_MODEL
:= NanoBeam AC
193 DEVICE_VARIANT
:= Gen1
194 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
196 TARGET_DEVICES
+= ubnt_nanobeam-ac
198 define Device
/ubnt_nanobeam-ac-gen2
200 DEVICE_MODEL
:= NanoBeam AC
201 DEVICE_VARIANT
:= Gen2
202 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
204 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
206 define Device
/ubnt_nanobridge-m
209 DEVICE_MODEL
:= NanoBridge M
210 DEVICE_PACKAGES
+= rssileds
211 SUPPORTED_DEVICES
+= bullet-m
213 TARGET_DEVICES
+= ubnt_nanobridge-m
215 define Device
/ubnt_nanostation-ac
217 DEVICE_MODEL
:= Nanostation AC
218 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
220 TARGET_DEVICES
+= ubnt_nanostation-ac
222 define Device
/ubnt_nanostation-ac-loco
224 DEVICE_MODEL
:= Nanostation AC loco
225 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
227 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
229 define Device
/ubnt_nanostation-loco-m
232 DEVICE_MODEL
:= Nanostation Loco M
233 DEVICE_PACKAGES
+= rssileds
234 SUPPORTED_DEVICES
+= bullet-m
236 TARGET_DEVICES
+= ubnt_nanostation-loco-m
238 define Device
/ubnt_nanostation-loco-m-xw
240 DEVICE_MODEL
:= Nanostation Loco M
241 DEVICE_PACKAGES
+= rssileds
242 SUPPORTED_DEVICES
+= loco-m-xw
244 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
246 define Device
/ubnt_nanostation-m
249 DEVICE_MODEL
:= Nanostation M
250 DEVICE_PACKAGES
+= rssileds
251 SUPPORTED_DEVICES
+= nanostation-m
253 TARGET_DEVICES
+= ubnt_nanostation-m
255 define Device
/ubnt_nanostation-m-xw
257 DEVICE_MODEL
:= Nanostation M
258 DEVICE_PACKAGES
+= rssileds
259 SUPPORTED_DEVICES
+= nanostation-m-xw
261 TARGET_DEVICES
+= ubnt_nanostation-m-xw
263 define Device
/ubnt_picostation-m
266 DEVICE_MODEL
:= Picostation M
267 DEVICE_PACKAGES
+= rssileds
268 SUPPORTED_DEVICES
+= bullet-m
270 TARGET_DEVICES
+= ubnt_picostation-m
272 define Device
/ubnt_powerbeam-5ac-500
275 DEVICE_MODEL
:= PowerBeam
5AC
276 DEVICE_VARIANT
:= 500
277 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
279 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
281 define Device
/ubnt_powerbeam-5ac-gen2
283 DEVICE_MODEL
:= PowerBeam
5AC
284 DEVICE_VARIANT
:= Gen2
285 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
287 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
289 define Device
/ubnt_powerbridge-m
292 DEVICE_MODEL
:= PowerBridge M
293 DEVICE_PACKAGES
+= rssileds
294 SUPPORTED_DEVICES
+= bullet-m
296 TARGET_DEVICES
+= ubnt_powerbridge-m
298 define Device
/ubnt_rocket-m
301 DEVICE_MODEL
:= Rocket M
302 DEVICE_PACKAGES
+= rssileds
303 SUPPORTED_DEVICES
+= rocket-m
305 TARGET_DEVICES
+= ubnt_rocket-m
307 define Device
/ubnt_routerstation_common
308 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
310 DEVICE_VENDOR
:= Ubiquiti
313 IMAGES
:= factory.bin
314 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
316 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
317 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
320 define Device
/ubnt_routerstation
321 $(Device
/ubnt_routerstation_common
)
322 DEVICE_MODEL
:= RouterStation
326 DEVICE_PACKAGES
+= -swconfig
327 SUPPORTED_DEVICES
+= routerstation
329 TARGET_DEVICES
+= ubnt_routerstation
331 define Device
/ubnt_routerstation-pro
332 $(Device
/ubnt_routerstation_common
)
333 DEVICE_MODEL
:= RouterStation Pro
336 UBNT_CHIP
:= ar7100pro
337 SUPPORTED_DEVICES
+= routerstation-pro
339 TARGET_DEVICES
+= ubnt_routerstation-pro
341 define Device
/ubnt_unifi
343 DEVICE_MODEL
:= UniFi
344 SUPPORTED_DEVICES
+= unifi
346 TARGET_DEVICES
+= ubnt_unifi
348 define Device
/ubnt_unifiac
349 DEVICE_VENDOR
:= Ubiquiti
352 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
355 define Device
/ubnt_unifiac-lite
356 $(Device
/ubnt_unifiac
)
357 DEVICE_MODEL
:= UniFi AC Lite
358 SUPPORTED_DEVICES
+= unifiac-lite
360 TARGET_DEVICES
+= ubnt_unifiac-lite
362 define Device
/ubnt_unifiac-lr
363 $(Device
/ubnt_unifiac
)
364 DEVICE_MODEL
:= UniFi AC LR
365 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
367 TARGET_DEVICES
+= ubnt_unifiac-lr
369 define Device
/ubnt_unifiac-mesh
370 $(Device
/ubnt_unifiac
)
371 DEVICE_MODEL
:= UniFi AC Mesh
372 SUPPORTED_DEVICES
+= unifiac-lite
374 TARGET_DEVICES
+= ubnt_unifiac-mesh
376 define Device
/ubnt_unifiac-mesh-pro
377 $(Device
/ubnt_unifiac
)
378 DEVICE_MODEL
:= UniFi AC Mesh Pro
379 SUPPORTED_DEVICES
+= unifiac-pro
381 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
383 define Device
/ubnt_unifiac-pro
384 $(Device
/ubnt_unifiac
)
385 DEVICE_MODEL
:= UniFi AC Pro
386 DEVICE_PACKAGES
+= kmod-usb2
387 SUPPORTED_DEVICES
+= unifiac-pro
389 TARGET_DEVICES
+= ubnt_unifiac-pro
391 define Device
/ubnt_unifi-ap-pro
393 DEVICE_VENDOR
:= Ubiquiti
394 DEVICE_MODEL
:= UniFi AP Pro
399 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma | jffs2 kernel0
400 IMAGES
:= sysupgrade.bin factory.bin
401 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs |\
402 pad-rootfs | append-metadata | check-size
403 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
404 SUPPORTED_DEVICES
+= uap-pro
406 TARGET_DEVICES
+= ubnt_unifi-ap-pro