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_acb-isp
116 DEVICE_MODEL
:= airCube ISP
118 UBNT_BOARD
:= ACB-ISP
121 UBNT_VERSION
:= 2.5.0
123 TARGET_DEVICES
+= ubnt_acb-isp
125 define Device
/ubnt_airrouter
128 DEVICE_MODEL
:= AirRouter
129 SUPPORTED_DEVICES
+= airrouter
131 TARGET_DEVICES
+= ubnt_airrouter
133 define Device
/ubnt_bullet-m-ar7240
136 DEVICE_MODEL
:= Bullet M
137 DEVICE_VARIANT
:= XM
(AR7240
)
138 DEVICE_PACKAGES
+= rssileds
139 SUPPORTED_DEVICES
+= bullet-m
141 TARGET_DEVICES
+= ubnt_bullet-m-ar7240
143 define Device
/ubnt_bullet-m-ar7241
146 DEVICE_MODEL
:= Bullet M
147 DEVICE_VARIANT
:= XM
(AR7241
)
148 DEVICE_PACKAGES
+= rssileds
149 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
151 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
153 define Device
/ubnt_bullet-m-xw
155 DEVICE_MODEL
:= Bullet M
156 DEVICE_PACKAGES
+= rssileds
157 SUPPORTED_DEVICES
+= bullet-m-xw
159 TARGET_DEVICES
+= ubnt_bullet-m-xw
161 define Device
/ubnt_edgeswitch-5xp
163 DEVICE_MODEL
:= EdgeSwitch
5XP
165 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
167 define Device
/ubnt_edgeswitch-8xp
169 DEVICE_MODEL
:= EdgeSwitch
8XP
170 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
172 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
174 define Device
/ubnt_lap-120
176 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
177 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
179 TARGET_DEVICES
+= ubnt_lap-120
181 define Device
/ubnt_litebeam-ac-gen2
183 DEVICE_MODEL
:= LiteBeam AC
184 DEVICE_VARIANT
:= Gen2
185 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
187 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
189 define Device
/ubnt_nanobeam-ac
191 DEVICE_MODEL
:= NanoBeam AC
192 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
194 TARGET_DEVICES
+= ubnt_nanobeam-ac
196 define Device
/ubnt_nanobridge-m
199 DEVICE_MODEL
:= NanoBridge M
200 DEVICE_PACKAGES
+= rssileds
201 SUPPORTED_DEVICES
+= bullet-m
203 TARGET_DEVICES
+= ubnt_nanobridge-m
205 define Device
/ubnt_nanostation-ac
207 DEVICE_MODEL
:= Nanostation AC
208 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
210 TARGET_DEVICES
+= ubnt_nanostation-ac
212 define Device
/ubnt_nanostation-ac-loco
214 DEVICE_MODEL
:= Nanostation AC loco
215 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
217 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
219 define Device
/ubnt_nanostation-loco-m
222 DEVICE_MODEL
:= Nanostation Loco M
223 DEVICE_PACKAGES
+= rssileds
224 SUPPORTED_DEVICES
+= bullet-m
226 TARGET_DEVICES
+= ubnt_nanostation-loco-m
228 define Device
/ubnt_nanostation-loco-m-xw
230 DEVICE_MODEL
:= Nanostation Loco M
231 DEVICE_PACKAGES
+= rssileds
232 SUPPORTED_DEVICES
+= loco-m-xw
234 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
236 define Device
/ubnt_nanostation-m
239 DEVICE_MODEL
:= Nanostation M
240 DEVICE_PACKAGES
+= rssileds
241 SUPPORTED_DEVICES
+= nanostation-m
243 TARGET_DEVICES
+= ubnt_nanostation-m
245 define Device
/ubnt_nanostation-m-xw
247 DEVICE_MODEL
:= Nanostation M
248 DEVICE_PACKAGES
+= rssileds
249 SUPPORTED_DEVICES
+= nanostation-m-xw
251 TARGET_DEVICES
+= ubnt_nanostation-m-xw
253 define Device
/ubnt_picostation-m
256 DEVICE_MODEL
:= Picostation M
257 DEVICE_PACKAGES
+= rssileds
258 SUPPORTED_DEVICES
+= bullet-m
260 TARGET_DEVICES
+= ubnt_picostation-m
262 define Device
/ubnt_powerbeam-5ac-500
265 DEVICE_MODEL
:= PowerBeam
5AC
266 DEVICE_VARIANT
:= 500
267 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
269 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
271 define Device
/ubnt_powerbeam-5ac-gen2
273 DEVICE_MODEL
:= PowerBeam
5AC
274 DEVICE_VARIANT
:= Gen2
275 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
277 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
279 define Device
/ubnt_powerbridge-m
282 DEVICE_MODEL
:= PowerBridge M
283 DEVICE_PACKAGES
+= rssileds
284 SUPPORTED_DEVICES
+= bullet-m
286 TARGET_DEVICES
+= ubnt_powerbridge-m
288 define Device
/ubnt_rocket-m
291 DEVICE_MODEL
:= Rocket M
292 DEVICE_PACKAGES
+= rssileds
293 SUPPORTED_DEVICES
+= rocket-m
295 TARGET_DEVICES
+= ubnt_rocket-m
297 define Device
/ubnt_routerstation_common
298 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
300 DEVICE_VENDOR
:= Ubiquiti
303 IMAGES
:= factory.bin
304 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
306 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
307 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
310 define Device
/ubnt_routerstation
311 $(Device
/ubnt_routerstation_common
)
312 DEVICE_MODEL
:= RouterStation
316 DEVICE_PACKAGES
+= -swconfig
317 SUPPORTED_DEVICES
+= routerstation
319 TARGET_DEVICES
+= ubnt_routerstation
321 define Device
/ubnt_routerstation-pro
322 $(Device
/ubnt_routerstation_common
)
323 DEVICE_MODEL
:= RouterStation Pro
326 UBNT_CHIP
:= ar7100pro
327 SUPPORTED_DEVICES
+= routerstation-pro
329 TARGET_DEVICES
+= ubnt_routerstation-pro
331 define Device
/ubnt_unifi
333 DEVICE_MODEL
:= UniFi
334 SUPPORTED_DEVICES
+= unifi
336 TARGET_DEVICES
+= ubnt_unifi
338 define Device
/ubnt_unifiac
339 DEVICE_VENDOR
:= Ubiquiti
342 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
345 define Device
/ubnt_unifiac-lite
346 $(Device
/ubnt_unifiac
)
347 DEVICE_MODEL
:= UniFi AC Lite
348 SUPPORTED_DEVICES
+= unifiac-lite
350 TARGET_DEVICES
+= ubnt_unifiac-lite
352 define Device
/ubnt_unifiac-lr
353 $(Device
/ubnt_unifiac
)
354 DEVICE_MODEL
:= UniFi AC LR
355 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
357 TARGET_DEVICES
+= ubnt_unifiac-lr
359 define Device
/ubnt_unifiac-mesh
360 $(Device
/ubnt_unifiac
)
361 DEVICE_MODEL
:= UniFi AC Mesh
362 SUPPORTED_DEVICES
+= unifiac-lite
364 TARGET_DEVICES
+= ubnt_unifiac-mesh
366 define Device
/ubnt_unifiac-mesh-pro
367 $(Device
/ubnt_unifiac
)
368 DEVICE_MODEL
:= UniFi AC Mesh Pro
369 SUPPORTED_DEVICES
+= unifiac-pro
371 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
373 define Device
/ubnt_unifiac-pro
374 $(Device
/ubnt_unifiac
)
375 DEVICE_MODEL
:= UniFi AC Pro
376 DEVICE_PACKAGES
+= kmod-usb2
377 SUPPORTED_DEVICES
+= unifiac-pro
379 TARGET_DEVICES
+= ubnt_unifiac-pro
381 define Device
/ubnt_unifi-ap-pro
383 DEVICE_VENDOR
:= Ubiquiti
384 DEVICE_MODEL
:= UniFi AP Pro
389 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma | jffs2 kernel0
390 IMAGES
:= sysupgrade.bin factory.bin
391 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs |\
392 pad-rootfs | append-metadata | check-size
393 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
394 SUPPORTED_DEVICES
+= uap-pro
396 TARGET_DEVICES
+= ubnt_unifi-ap-pro