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
76 DEVICE_PACKAGES
+= kmod-usb-ohci
82 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
92 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
97 define Device
/ubnt_acb-isp
100 DEVICE_MODEL
:= airCube ISP
102 UBNT_BOARD
:= ACB-ISP
105 UBNT_VERSION
:= 2.5.0
107 TARGET_DEVICES
+= ubnt_acb-isp
109 define Device
/ubnt_airrouter
111 DEVICE_MODEL
:= AirRouter
112 SUPPORTED_DEVICES
+= airrouter
114 TARGET_DEVICES
+= ubnt_airrouter
116 define Device
/ubnt_bullet-m
118 DEVICE_MODEL
:= Bullet-M
119 DEVICE_PACKAGES
+= rssileds
120 SUPPORTED_DEVICES
+= bullet-m
122 TARGET_DEVICES
+= ubnt_bullet-m
124 define Device
/ubnt_bullet-m-xw
126 DEVICE_MODEL
:= Bullet-M
127 DEVICE_PACKAGES
+= rssileds
128 SUPPORTED_DEVICES
+= bullet-m-xw
130 TARGET_DEVICES
+= ubnt_bullet-m-xw
132 define Device
/ubnt_edgeswitch-5xp
134 DEVICE_MODEL
:= EdgeSwitch
5XP
136 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
138 define Device
/ubnt_edgeswitch-8xp
140 DEVICE_MODEL
:= EdgeSwitch
8XP
141 DEVICE_PACKAGES
+= switch-bcm53xx-mdio
143 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
145 define Device
/ubnt_lap-120
147 DEVICE_MODEL
:= LiteAP ac
148 DEVICE_VARIANT
:= LAP-120
149 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
151 TARGET_DEVICES
+= ubnt_lap-120
153 define Device
/ubnt_litebeam-ac-gen2
155 DEVICE_MODEL
:= LiteBeam AC
156 DEVICE_VARIANT
:= Gen2
157 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
159 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
161 define Device
/ubnt_nanobeam-ac
163 DEVICE_MODEL
:= NanoBeam AC
164 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
166 TARGET_DEVICES
+= ubnt_nanobeam-ac
168 define Device
/ubnt_nanostation-ac
170 DEVICE_MODEL
:= Nanostation AC
171 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
173 TARGET_DEVICES
+= ubnt_nanostation-ac
175 define Device
/ubnt_nanostation-ac-loco
177 DEVICE_MODEL
:= Nanostation AC loco
178 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
180 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
182 define Device
/ubnt_nanostation-loco-m
184 DEVICE_MODEL
:= Nanostation Loco M
185 DEVICE_PACKAGES
+= rssileds
186 SUPPORTED_DEVICES
+= bullet-m
188 TARGET_DEVICES
+= ubnt_nanostation-loco-m
190 define Device
/ubnt_nanostation-loco-m-xw
192 DEVICE_MODEL
:= Nanostation Loco M
193 DEVICE_PACKAGES
+= rssileds
194 SUPPORTED_DEVICES
+= loco-m-xw
196 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
198 define Device
/ubnt_nanostation-m
200 DEVICE_MODEL
:= Nanostation M
201 DEVICE_PACKAGES
+= rssileds
202 SUPPORTED_DEVICES
+= nanostation-m
204 TARGET_DEVICES
+= ubnt_nanostation-m
206 define Device
/ubnt_nanostation-m-xw
208 DEVICE_MODEL
:= Nanostation M
209 DEVICE_PACKAGES
+= rssileds
210 SUPPORTED_DEVICES
+= nanostation-m-xw
212 TARGET_DEVICES
+= ubnt_nanostation-m-xw
214 define Device
/ubnt_picostation-m
216 DEVICE_MODEL
:= Picostation M
217 DEVICE_PACKAGES
+= rssileds
218 SUPPORTED_DEVICES
+= bullet-m
220 TARGET_DEVICES
+= ubnt_picostation-m
222 define Device
/ubnt_rocket-m
224 DEVICE_MODEL
:= Rocket-M
225 DEVICE_PACKAGES
+= rssileds
226 SUPPORTED_DEVICES
+= rocket-m
228 TARGET_DEVICES
+= ubnt_rocket-m
230 define Device
/ubnt_routerstation_common
231 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
233 DEVICE_VENDOR
:= Ubiquiti
236 IMAGES
:= factory.bin
237 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
238 check-size
$$$$(IMAGE_SIZE
)
239 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
240 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
243 define Device
/ubnt_routerstation
244 $(Device
/ubnt_routerstation_common
)
245 DEVICE_MODEL
:= RouterStation
249 DEVICE_PACKAGES
+= -swconfig
250 SUPPORTED_DEVICES
+= routerstation
252 TARGET_DEVICES
+= ubnt_routerstation
254 define Device
/ubnt_routerstation-pro
255 $(Device
/ubnt_routerstation_common
)
256 DEVICE_MODEL
:= RouterStation Pro
259 UBNT_CHIP
:= ar7100pro
260 SUPPORTED_DEVICES
+= routerstation-pro
262 TARGET_DEVICES
+= ubnt_routerstation-pro
264 define Device
/ubnt_unifi
266 DEVICE_MODEL
:= UniFi
267 SUPPORTED_DEVICES
+= unifi
269 TARGET_DEVICES
+= ubnt_unifi
271 define Device
/ubnt_unifiac
272 DEVICE_VENDOR
:= Ubiquiti
275 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
278 define Device
/ubnt_unifiac-lite
279 $(Device
/ubnt_unifiac
)
280 DEVICE_MODEL
:= UniFi AC-Lite
281 SUPPORTED_DEVICES
+= unifiac-lite
283 TARGET_DEVICES
+= ubnt_unifiac-lite
285 define Device
/ubnt_unifiac-lr
286 $(Device
/ubnt_unifiac
)
287 DEVICE_MODEL
:= UniFi AC-LR
288 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
290 TARGET_DEVICES
+= ubnt_unifiac-lr
292 define Device
/ubnt_unifiac-mesh
293 $(Device
/ubnt_unifiac
)
294 DEVICE_MODEL
:= UniFi AC-Mesh
295 SUPPORTED_DEVICES
+= unifiac-lite
297 TARGET_DEVICES
+= ubnt_unifiac-mesh
299 define Device
/ubnt_unifiac-mesh-pro
300 $(Device
/ubnt_unifiac
)
301 DEVICE_MODEL
:= UniFi AC-Mesh Pro
302 SUPPORTED_DEVICES
+= unifiac-pro
304 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
306 define Device
/ubnt_unifiac-pro
307 $(Device
/ubnt_unifiac
)
308 DEVICE_MODEL
:= UniFi AC-Pro
309 DEVICE_PACKAGES
+= kmod-usb2
310 SUPPORTED_DEVICES
+= unifiac-pro
312 TARGET_DEVICES
+= ubnt_unifiac-pro