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 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
17 # booting the image, the size doesn't matter.
18 define Build
/mkubntimage-split
20 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
21 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
22 $(STAGING_DIR_HOST
)/bin
/mkfwimage
-B
$(UBNT_BOARD
) \
23 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(UBNT_REVISION
) \
24 -k
$@.old1
-r
$@.old2
-o
$@
; \
28 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
29 # UBNT_TYPE e.g. one of (BZ, XM, XW)
30 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
31 # UBNT_VERSION e.g. one of (6.0.0, 8.5.0)
33 DEVICE_VENDOR
:= Ubiquiti
34 DEVICE_PACKAGES
:= kmod-usb2
36 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
37 append-rootfs | pad-rootfs | check-size | mkubntimage-split
53 DEVICE_PACKAGES
+= kmod-usb-ohci
59 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
84 DEVICE_PACKAGES
+= kmod-usb-ohci
90 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
100 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
102 UBNT_VERSION
:= 6.0.4
105 define Device
/ubnt_acb-isp
108 DEVICE_MODEL
:= airCube ISP
110 UBNT_BOARD
:= ACB-ISP
113 UBNT_VERSION
:= 2.5.0
115 TARGET_DEVICES
+= ubnt_acb-isp
117 define Device
/ubnt_airrouter
120 DEVICE_MODEL
:= AirRouter
121 SUPPORTED_DEVICES
+= airrouter
123 TARGET_DEVICES
+= ubnt_airrouter
125 define Device
/ubnt_bullet-m-ar7240
128 DEVICE_MODEL
:= Bullet-M
129 DEVICE_VARIANT
:= XM
(AR7240
)
130 DEVICE_PACKAGES
+= rssileds
131 SUPPORTED_DEVICES
+= bullet-m
133 TARGET_DEVICES
+= ubnt_bullet-m-ar7240
135 define Device
/ubnt_bullet-m-ar7241
138 DEVICE_MODEL
:= Bullet-M
139 DEVICE_VARIANT
:= XM
(AR7241
)
140 DEVICE_PACKAGES
+= rssileds
141 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
143 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
145 define Device
/ubnt_bullet-m-xw
147 DEVICE_MODEL
:= Bullet-M
148 DEVICE_PACKAGES
+= rssileds
149 SUPPORTED_DEVICES
+= bullet-m-xw
151 TARGET_DEVICES
+= ubnt_bullet-m-xw
153 define Device
/ubnt_edgeswitch-5xp
155 DEVICE_MODEL
:= EdgeSwitch
5XP
157 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
159 define Device
/ubnt_edgeswitch-8xp
161 DEVICE_MODEL
:= EdgeSwitch
8XP
162 DEVICE_PACKAGES
+= switch-bcm53xx-mdio
164 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
166 define Device
/ubnt_lap-120
168 DEVICE_MODEL
:= LiteAP ac
169 DEVICE_VARIANT
:= LAP-120
170 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
172 TARGET_DEVICES
+= ubnt_lap-120
174 define Device
/ubnt_litebeam-ac-gen2
176 DEVICE_MODEL
:= LiteBeam AC
177 DEVICE_VARIANT
:= Gen2
178 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
180 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
182 define Device
/ubnt_nanobeam-ac
184 DEVICE_MODEL
:= NanoBeam AC
185 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
187 TARGET_DEVICES
+= ubnt_nanobeam-ac
189 define Device
/ubnt_nanobridge-m
192 DEVICE_MODEL
:= NanoBridge M
193 DEVICE_PACKAGES
+= rssileds
194 SUPPORTED_DEVICES
+= bullet-m
196 TARGET_DEVICES
+= ubnt_nanobridge-m
198 define Device
/ubnt_nanostation-ac
200 DEVICE_MODEL
:= Nanostation AC
201 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
203 TARGET_DEVICES
+= ubnt_nanostation-ac
205 define Device
/ubnt_nanostation-ac-loco
207 DEVICE_MODEL
:= Nanostation AC loco
208 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
210 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
212 define Device
/ubnt_nanostation-loco-m
215 DEVICE_MODEL
:= Nanostation Loco M
216 DEVICE_PACKAGES
+= rssileds
217 SUPPORTED_DEVICES
+= bullet-m
219 TARGET_DEVICES
+= ubnt_nanostation-loco-m
221 define Device
/ubnt_nanostation-loco-m-xw
223 DEVICE_MODEL
:= Nanostation Loco M
224 DEVICE_PACKAGES
+= rssileds
225 SUPPORTED_DEVICES
+= loco-m-xw
227 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
229 define Device
/ubnt_nanostation-m
232 DEVICE_MODEL
:= Nanostation M
233 DEVICE_PACKAGES
+= rssileds
234 SUPPORTED_DEVICES
+= nanostation-m
236 TARGET_DEVICES
+= ubnt_nanostation-m
238 define Device
/ubnt_nanostation-m-xw
240 DEVICE_MODEL
:= Nanostation M
241 DEVICE_PACKAGES
+= rssileds
242 SUPPORTED_DEVICES
+= nanostation-m-xw
244 TARGET_DEVICES
+= ubnt_nanostation-m-xw
246 define Device
/ubnt_picostation-m
249 DEVICE_MODEL
:= Picostation M
250 DEVICE_PACKAGES
+= rssileds
251 SUPPORTED_DEVICES
+= bullet-m
253 TARGET_DEVICES
+= ubnt_picostation-m
255 define Device
/ubnt_powerbeam-5ac-500
258 DEVICE_MODEL
:= PowerBeam
5AC
259 DEVICE_VARIANT
:= 500
260 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
262 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
264 define Device
/ubnt_powerbeam-5ac-gen2
266 DEVICE_MODEL
:= PowerBeam
5AC
267 DEVICE_VARIANT
:= Gen2
268 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
270 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
272 define Device
/ubnt_rocket-m
275 DEVICE_MODEL
:= Rocket-M
276 DEVICE_PACKAGES
+= rssileds
277 SUPPORTED_DEVICES
+= rocket-m
279 TARGET_DEVICES
+= ubnt_rocket-m
281 define Device
/ubnt_routerstation_common
282 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
284 DEVICE_VENDOR
:= Ubiquiti
287 IMAGES
:= factory.bin
288 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
290 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
291 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
294 define Device
/ubnt_routerstation
295 $(Device
/ubnt_routerstation_common
)
296 DEVICE_MODEL
:= RouterStation
300 DEVICE_PACKAGES
+= -swconfig
301 SUPPORTED_DEVICES
+= routerstation
303 TARGET_DEVICES
+= ubnt_routerstation
305 define Device
/ubnt_routerstation-pro
306 $(Device
/ubnt_routerstation_common
)
307 DEVICE_MODEL
:= RouterStation Pro
310 UBNT_CHIP
:= ar7100pro
311 SUPPORTED_DEVICES
+= routerstation-pro
313 TARGET_DEVICES
+= ubnt_routerstation-pro
315 define Device
/ubnt_unifi
317 DEVICE_MODEL
:= UniFi
318 SUPPORTED_DEVICES
+= unifi
320 TARGET_DEVICES
+= ubnt_unifi
322 define Device
/ubnt_unifiac
323 DEVICE_VENDOR
:= Ubiquiti
326 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
329 define Device
/ubnt_unifiac-lite
330 $(Device
/ubnt_unifiac
)
331 DEVICE_MODEL
:= UniFi AC-Lite
332 SUPPORTED_DEVICES
+= unifiac-lite
334 TARGET_DEVICES
+= ubnt_unifiac-lite
336 define Device
/ubnt_unifiac-lr
337 $(Device
/ubnt_unifiac
)
338 DEVICE_MODEL
:= UniFi AC-LR
339 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
341 TARGET_DEVICES
+= ubnt_unifiac-lr
343 define Device
/ubnt_unifiac-mesh
344 $(Device
/ubnt_unifiac
)
345 DEVICE_MODEL
:= UniFi AC-Mesh
346 SUPPORTED_DEVICES
+= unifiac-lite
348 TARGET_DEVICES
+= ubnt_unifiac-mesh
350 define Device
/ubnt_unifiac-mesh-pro
351 $(Device
/ubnt_unifiac
)
352 DEVICE_MODEL
:= UniFi AC-Mesh Pro
353 SUPPORTED_DEVICES
+= unifiac-pro
355 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
357 define Device
/ubnt_unifiac-pro
358 $(Device
/ubnt_unifiac
)
359 DEVICE_MODEL
:= UniFi AC-Pro
360 DEVICE_PACKAGES
+= kmod-usb2
361 SUPPORTED_DEVICES
+= unifiac-pro
363 TARGET_DEVICES
+= ubnt_unifiac-pro