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
$$$$(IMAGE_SIZE
) | mkubntimage-split
53 DEVICE_PACKAGES
+= kmod-usb-ohci
59 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
75 DEVICE_PACKAGES
+= kmod-usb-ohci
81 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
91 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
96 define Device
/ubnt_acb-isp
99 DEVICE_MODEL
:= airCube ISP
101 UBNT_BOARD
:= ACB-ISP
104 UBNT_VERSION
:= 2.5.0
106 TARGET_DEVICES
+= ubnt_acb-isp
108 define Device
/ubnt_airrouter
111 DEVICE_MODEL
:= AirRouter
112 SUPPORTED_DEVICES
+= airrouter
114 TARGET_DEVICES
+= ubnt_airrouter
116 define Device
/ubnt_bullet-m-ar7241
119 DEVICE_MODEL
:= Bullet-M
120 DEVICE_VARIANT
:= XM
(AR7241
)
121 DEVICE_PACKAGES
+= rssileds
122 SUPPORTED_DEVICES
+= bullet-m ubnt
,bullet-m
124 TARGET_DEVICES
+= ubnt_bullet-m-ar7241
126 define Device
/ubnt_bullet-m-xw
128 DEVICE_MODEL
:= Bullet-M
129 DEVICE_PACKAGES
+= rssileds
130 SUPPORTED_DEVICES
+= bullet-m-xw
132 TARGET_DEVICES
+= ubnt_bullet-m-xw
134 define Device
/ubnt_edgeswitch-5xp
136 DEVICE_MODEL
:= EdgeSwitch
5XP
138 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
140 define Device
/ubnt_edgeswitch-8xp
142 DEVICE_MODEL
:= EdgeSwitch
8XP
143 DEVICE_PACKAGES
+= switch-bcm53xx-mdio
145 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
147 define Device
/ubnt_lap-120
149 DEVICE_MODEL
:= LiteAP ac
150 DEVICE_VARIANT
:= LAP-120
151 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
153 TARGET_DEVICES
+= ubnt_lap-120
155 define Device
/ubnt_litebeam-ac-gen2
157 DEVICE_MODEL
:= LiteBeam AC
158 DEVICE_VARIANT
:= Gen2
159 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
161 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
163 define Device
/ubnt_nanobeam-ac
165 DEVICE_MODEL
:= NanoBeam AC
166 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
168 TARGET_DEVICES
+= ubnt_nanobeam-ac
170 define Device
/ubnt_nanostation-ac
172 DEVICE_MODEL
:= Nanostation AC
173 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
175 TARGET_DEVICES
+= ubnt_nanostation-ac
177 define Device
/ubnt_nanostation-ac-loco
179 DEVICE_MODEL
:= Nanostation AC loco
180 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
182 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
184 define Device
/ubnt_nanostation-loco-m
187 DEVICE_MODEL
:= Nanostation Loco M
188 DEVICE_PACKAGES
+= rssileds
189 SUPPORTED_DEVICES
+= bullet-m
191 TARGET_DEVICES
+= ubnt_nanostation-loco-m
193 define Device
/ubnt_nanostation-loco-m-xw
195 DEVICE_MODEL
:= Nanostation Loco M
196 DEVICE_PACKAGES
+= rssileds
197 SUPPORTED_DEVICES
+= loco-m-xw
199 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
201 define Device
/ubnt_nanostation-m
204 DEVICE_MODEL
:= Nanostation M
205 DEVICE_PACKAGES
+= rssileds
206 SUPPORTED_DEVICES
+= nanostation-m
208 TARGET_DEVICES
+= ubnt_nanostation-m
210 define Device
/ubnt_nanostation-m-xw
212 DEVICE_MODEL
:= Nanostation M
213 DEVICE_PACKAGES
+= rssileds
214 SUPPORTED_DEVICES
+= nanostation-m-xw
216 TARGET_DEVICES
+= ubnt_nanostation-m-xw
218 define Device
/ubnt_picostation-m
221 DEVICE_MODEL
:= Picostation M
222 DEVICE_PACKAGES
+= rssileds
223 SUPPORTED_DEVICES
+= bullet-m
225 TARGET_DEVICES
+= ubnt_picostation-m
227 define Device
/ubnt_rocket-m
230 DEVICE_MODEL
:= Rocket-M
231 DEVICE_PACKAGES
+= rssileds
232 SUPPORTED_DEVICES
+= rocket-m
234 TARGET_DEVICES
+= ubnt_rocket-m
236 define Device
/ubnt_routerstation_common
237 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
239 DEVICE_VENDOR
:= Ubiquiti
242 IMAGES
:= factory.bin
243 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
244 check-size
$$$$(IMAGE_SIZE
)
245 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
246 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
249 define Device
/ubnt_routerstation
250 $(Device
/ubnt_routerstation_common
)
251 DEVICE_MODEL
:= RouterStation
255 DEVICE_PACKAGES
+= -swconfig
256 SUPPORTED_DEVICES
+= routerstation
258 TARGET_DEVICES
+= ubnt_routerstation
260 define Device
/ubnt_routerstation-pro
261 $(Device
/ubnt_routerstation_common
)
262 DEVICE_MODEL
:= RouterStation Pro
265 UBNT_CHIP
:= ar7100pro
266 SUPPORTED_DEVICES
+= routerstation-pro
268 TARGET_DEVICES
+= ubnt_routerstation-pro
270 define Device
/ubnt_unifi
272 DEVICE_MODEL
:= UniFi
273 SUPPORTED_DEVICES
+= unifi
275 TARGET_DEVICES
+= ubnt_unifi
277 define Device
/ubnt_unifiac
278 DEVICE_VENDOR
:= Ubiquiti
281 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
284 define Device
/ubnt_unifiac-lite
285 $(Device
/ubnt_unifiac
)
286 DEVICE_MODEL
:= UniFi AC-Lite
287 SUPPORTED_DEVICES
+= unifiac-lite
289 TARGET_DEVICES
+= ubnt_unifiac-lite
291 define Device
/ubnt_unifiac-lr
292 $(Device
/ubnt_unifiac
)
293 DEVICE_MODEL
:= UniFi AC-LR
294 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
296 TARGET_DEVICES
+= ubnt_unifiac-lr
298 define Device
/ubnt_unifiac-mesh
299 $(Device
/ubnt_unifiac
)
300 DEVICE_MODEL
:= UniFi AC-Mesh
301 SUPPORTED_DEVICES
+= unifiac-lite
303 TARGET_DEVICES
+= ubnt_unifiac-mesh
305 define Device
/ubnt_unifiac-mesh-pro
306 $(Device
/ubnt_unifiac
)
307 DEVICE_MODEL
:= UniFi AC-Mesh Pro
308 SUPPORTED_DEVICES
+= unifiac-pro
310 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
312 define Device
/ubnt_unifiac-pro
313 $(Device
/ubnt_unifiac
)
314 DEVICE_MODEL
:= UniFi AC-Pro
315 DEVICE_PACKAGES
+= kmod-usb2
316 SUPPORTED_DEVICES
+= unifiac-pro
318 TARGET_DEVICES
+= ubnt_unifiac-pro