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
107 UBNT_VERSION
:= 6.0.0
108 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
111 define Device
/ubnt-xw
118 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
120 UBNT_VERSION
:= 6.0.4
123 define Device
/ubnt-unifi-jffs2
128 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma | jffs2 kernel0
129 IMAGES
:= sysupgrade.bin factory.bin
130 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs |\
131 pad-rootfs | append-metadata | check-size
132 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
135 define Device
/ubnt-acb
140 UBNT_VERSION
:= 2.5.0
143 define Device
/ubnt_aircube-ac
146 DEVICE_MODEL
:= airCube AC
148 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
150 TARGET_DEVICES
+= ubnt_aircube-ac
152 define Device
/ubnt_aircube-isp
155 DEVICE_MODEL
:= airCube ISP
157 SUPPORTED_DEVICES
+= ubnt
,acb-isp
159 TARGET_DEVICES
+= ubnt_aircube-isp
161 define Device
/ubnt_airrouter
164 DEVICE_MODEL
:= AirRouter
165 SUPPORTED_DEVICES
+= airrouter
167 TARGET_DEVICES
+= ubnt_airrouter
169 define Device
/ubnt_bullet-ac
171 DEVICE_MODEL
:= Bullet AC
172 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
174 TARGET_DEVICES
+= ubnt_bullet-ac
176 define Device
/ubnt_bullet-m-ar7240
179 DEVICE_MODEL
:= Bullet M
180 DEVICE_VARIANT
:= XM
(AR7240
)
181 DEVICE_PACKAGES
+= rssileds
182 SUPPORTED_DEVICES
+= bullet-m
184 TARGET_DEVICES
+= ubnt_bullet-m-ar7240
186 define Device
/ubnt_bullet-m-ar7241
189 DEVICE_MODEL
:= Bullet M
190 DEVICE_VARIANT
:= XM
(AR7241
)
191 DEVICE_PACKAGES
+= rssileds
192 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
194 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
196 define Device
/ubnt_bullet-m-xw
198 DEVICE_MODEL
:= Bullet M
199 DEVICE_PACKAGES
+= rssileds
200 SUPPORTED_DEVICES
+= bullet-m-xw
202 TARGET_DEVICES
+= ubnt_bullet-m-xw
204 define Device
/ubnt_edgeswitch-5xp
206 DEVICE_MODEL
:= EdgeSwitch
5XP
208 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
210 define Device
/ubnt_edgeswitch-8xp
212 DEVICE_MODEL
:= EdgeSwitch
8XP
213 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
215 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
217 define Device
/ubnt_lap-120
219 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
220 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
222 TARGET_DEVICES
+= ubnt_lap-120
224 define Device
/ubnt_litebeam-ac-gen2
226 DEVICE_MODEL
:= LiteBeam AC
227 DEVICE_VARIANT
:= Gen2
228 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
230 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
232 define Device
/ubnt_nanobeam-ac
234 DEVICE_MODEL
:= NanoBeam AC
235 DEVICE_VARIANT
:= Gen1
236 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
238 TARGET_DEVICES
+= ubnt_nanobeam-ac
240 define Device
/ubnt_nanobeam-ac-gen2
242 DEVICE_MODEL
:= NanoBeam AC
243 DEVICE_VARIANT
:= Gen2
244 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
246 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
248 define Device
/ubnt_nanobridge-m
251 DEVICE_MODEL
:= NanoBridge M
252 DEVICE_PACKAGES
+= rssileds
253 SUPPORTED_DEVICES
+= bullet-m
255 TARGET_DEVICES
+= ubnt_nanobridge-m
257 define Device
/ubnt_nanostation-ac
259 DEVICE_MODEL
:= Nanostation AC
260 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
262 TARGET_DEVICES
+= ubnt_nanostation-ac
264 define Device
/ubnt_nanostation-ac-loco
266 DEVICE_MODEL
:= Nanostation AC loco
267 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
269 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
271 define Device
/ubnt_nanostation-loco-m
274 DEVICE_MODEL
:= Nanostation Loco M
275 DEVICE_PACKAGES
+= rssileds
276 SUPPORTED_DEVICES
+= bullet-m
278 TARGET_DEVICES
+= ubnt_nanostation-loco-m
280 define Device
/ubnt_nanostation-loco-m-xw
282 DEVICE_MODEL
:= Nanostation Loco M
283 DEVICE_PACKAGES
+= rssileds
284 SUPPORTED_DEVICES
+= loco-m-xw
286 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
288 define Device
/ubnt_nanostation-m
291 DEVICE_MODEL
:= Nanostation M
292 DEVICE_PACKAGES
+= rssileds
293 SUPPORTED_DEVICES
+= nanostation-m
295 TARGET_DEVICES
+= ubnt_nanostation-m
297 define Device
/ubnt_nanostation-m-xw
299 DEVICE_MODEL
:= Nanostation M
300 DEVICE_PACKAGES
+= rssileds
301 SUPPORTED_DEVICES
+= nanostation-m-xw
303 TARGET_DEVICES
+= ubnt_nanostation-m-xw
305 define Device
/ubnt_picostation-m
308 DEVICE_MODEL
:= Picostation M
309 DEVICE_PACKAGES
+= rssileds
310 SUPPORTED_DEVICES
+= bullet-m
312 TARGET_DEVICES
+= ubnt_picostation-m
314 define Device
/ubnt_powerbeam-5ac-500
317 DEVICE_MODEL
:= PowerBeam
5AC
318 DEVICE_VARIANT
:= 500
319 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
321 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
323 define Device
/ubnt_powerbeam-5ac-gen2
325 DEVICE_MODEL
:= PowerBeam
5AC
326 DEVICE_VARIANT
:= Gen2
327 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
329 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
331 define Device
/ubnt_powerbridge-m
334 DEVICE_MODEL
:= PowerBridge M
335 DEVICE_PACKAGES
+= rssileds
336 SUPPORTED_DEVICES
+= bullet-m
338 TARGET_DEVICES
+= ubnt_powerbridge-m
340 define Device
/ubnt_rocket-m
343 DEVICE_MODEL
:= Rocket M
344 DEVICE_PACKAGES
+= rssileds
345 SUPPORTED_DEVICES
+= rocket-m
347 TARGET_DEVICES
+= ubnt_rocket-m
349 define Device
/ubnt_routerstation_common
350 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
352 DEVICE_VENDOR
:= Ubiquiti
355 IMAGES
+= factory.bin
356 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
358 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | \
359 append-metadata | check-size
360 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
361 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
364 define Device
/ubnt_routerstation
365 $(Device
/ubnt_routerstation_common
)
366 DEVICE_MODEL
:= RouterStation
370 DEVICE_PACKAGES
+= -swconfig
371 SUPPORTED_DEVICES
+= routerstation
373 TARGET_DEVICES
+= ubnt_routerstation
375 define Device
/ubnt_routerstation-pro
376 $(Device
/ubnt_routerstation_common
)
377 DEVICE_MODEL
:= RouterStation Pro
380 UBNT_CHIP
:= ar7100pro
381 SUPPORTED_DEVICES
+= routerstation-pro
383 TARGET_DEVICES
+= ubnt_routerstation-pro
385 define Device
/ubnt_unifi
387 DEVICE_MODEL
:= UniFi
388 SUPPORTED_DEVICES
+= unifi
390 TARGET_DEVICES
+= ubnt_unifi
392 define Device
/ubnt_unifiac
393 DEVICE_VENDOR
:= Ubiquiti
396 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
399 define Device
/ubnt_unifiac-lite
400 $(Device
/ubnt_unifiac
)
401 DEVICE_MODEL
:= UniFi AC Lite
402 SUPPORTED_DEVICES
+= unifiac-lite
404 TARGET_DEVICES
+= ubnt_unifiac-lite
406 define Device
/ubnt_unifiac-lr
407 $(Device
/ubnt_unifiac
)
408 DEVICE_MODEL
:= UniFi AC LR
409 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
411 TARGET_DEVICES
+= ubnt_unifiac-lr
413 define Device
/ubnt_unifiac-mesh
414 $(Device
/ubnt_unifiac
)
415 DEVICE_MODEL
:= UniFi AC Mesh
416 SUPPORTED_DEVICES
+= unifiac-lite
418 TARGET_DEVICES
+= ubnt_unifiac-mesh
420 define Device
/ubnt_unifiac-mesh-pro
421 $(Device
/ubnt_unifiac
)
422 DEVICE_MODEL
:= UniFi AC Mesh Pro
423 SUPPORTED_DEVICES
+= unifiac-pro
425 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
427 define Device
/ubnt_unifiac-pro
428 $(Device
/ubnt_unifiac
)
429 DEVICE_MODEL
:= UniFi AC Pro
430 DEVICE_PACKAGES
+= kmod-usb2
431 SUPPORTED_DEVICES
+= unifiac-pro
433 TARGET_DEVICES
+= ubnt_unifiac-pro
435 define Device
/ubnt_unifi-ap-outdoor-plus
437 $(Device
/ubnt-unifi-jffs2
)
438 DEVICE_MODEL
:= UniFi AP Outdoor
+
439 SUPPORTED_DEVICES
+= unifi-outdoor-plus
441 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
443 define Device
/ubnt_unifi-ap-pro
444 $(Device
/ubnt-unifi-jffs2
)
446 DEVICE_MODEL
:= UniFi AP Pro
448 SUPPORTED_DEVICES
+= uap-pro
450 TARGET_DEVICES
+= ubnt_unifi-ap-pro