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
119 DEVICE_MODEL
:= Bullet-M
120 DEVICE_PACKAGES
+= rssileds
121 SUPPORTED_DEVICES
+= bullet-m
123 TARGET_DEVICES
+= ubnt_bullet-m
125 define Device
/ubnt_bullet-m-xw
127 DEVICE_MODEL
:= Bullet-M
128 DEVICE_PACKAGES
+= rssileds
129 SUPPORTED_DEVICES
+= bullet-m-xw
131 TARGET_DEVICES
+= ubnt_bullet-m-xw
133 define Device
/ubnt_edgeswitch-5xp
135 DEVICE_MODEL
:= EdgeSwitch
5XP
137 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
139 define Device
/ubnt_edgeswitch-8xp
141 DEVICE_MODEL
:= EdgeSwitch
8XP
142 DEVICE_PACKAGES
+= switch-bcm53xx-mdio
144 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
146 define Device
/ubnt_lap-120
148 DEVICE_MODEL
:= LiteAP ac
149 DEVICE_VARIANT
:= LAP-120
150 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
152 TARGET_DEVICES
+= ubnt_lap-120
154 define Device
/ubnt_litebeam-ac-gen2
156 DEVICE_MODEL
:= LiteBeam AC
157 DEVICE_VARIANT
:= Gen2
158 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
160 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
162 define Device
/ubnt_nanobeam-ac
164 DEVICE_MODEL
:= NanoBeam AC
165 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
167 TARGET_DEVICES
+= ubnt_nanobeam-ac
169 define Device
/ubnt_nanostation-ac
171 DEVICE_MODEL
:= Nanostation AC
172 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
174 TARGET_DEVICES
+= ubnt_nanostation-ac
176 define Device
/ubnt_nanostation-ac-loco
178 DEVICE_MODEL
:= Nanostation AC loco
179 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
181 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
183 define Device
/ubnt_nanostation-loco-m
186 DEVICE_MODEL
:= Nanostation Loco M
187 DEVICE_PACKAGES
+= rssileds
188 SUPPORTED_DEVICES
+= bullet-m
190 TARGET_DEVICES
+= ubnt_nanostation-loco-m
192 define Device
/ubnt_nanostation-loco-m-xw
194 DEVICE_MODEL
:= Nanostation Loco M
195 DEVICE_PACKAGES
+= rssileds
196 SUPPORTED_DEVICES
+= loco-m-xw
198 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
200 define Device
/ubnt_nanostation-m
203 DEVICE_MODEL
:= Nanostation M
204 DEVICE_PACKAGES
+= rssileds
205 SUPPORTED_DEVICES
+= nanostation-m
207 TARGET_DEVICES
+= ubnt_nanostation-m
209 define Device
/ubnt_nanostation-m-xw
211 DEVICE_MODEL
:= Nanostation M
212 DEVICE_PACKAGES
+= rssileds
213 SUPPORTED_DEVICES
+= nanostation-m-xw
215 TARGET_DEVICES
+= ubnt_nanostation-m-xw
217 define Device
/ubnt_picostation-m
220 DEVICE_MODEL
:= Picostation M
221 DEVICE_PACKAGES
+= rssileds
222 SUPPORTED_DEVICES
+= bullet-m
224 TARGET_DEVICES
+= ubnt_picostation-m
226 define Device
/ubnt_rocket-m
229 DEVICE_MODEL
:= Rocket-M
230 DEVICE_PACKAGES
+= rssileds
231 SUPPORTED_DEVICES
+= rocket-m
233 TARGET_DEVICES
+= ubnt_rocket-m
235 define Device
/ubnt_routerstation_common
236 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
238 DEVICE_VENDOR
:= Ubiquiti
241 IMAGES
:= factory.bin
242 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
243 check-size
$$$$(IMAGE_SIZE
)
244 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
245 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
248 define Device
/ubnt_routerstation
249 $(Device
/ubnt_routerstation_common
)
250 DEVICE_MODEL
:= RouterStation
254 DEVICE_PACKAGES
+= -swconfig
255 SUPPORTED_DEVICES
+= routerstation
257 TARGET_DEVICES
+= ubnt_routerstation
259 define Device
/ubnt_routerstation-pro
260 $(Device
/ubnt_routerstation_common
)
261 DEVICE_MODEL
:= RouterStation Pro
264 UBNT_CHIP
:= ar7100pro
265 SUPPORTED_DEVICES
+= routerstation-pro
267 TARGET_DEVICES
+= ubnt_routerstation-pro
269 define Device
/ubnt_unifi
271 DEVICE_MODEL
:= UniFi
272 SUPPORTED_DEVICES
+= unifi
274 TARGET_DEVICES
+= ubnt_unifi
276 define Device
/ubnt_unifiac
277 DEVICE_VENDOR
:= Ubiquiti
280 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
283 define Device
/ubnt_unifiac-lite
284 $(Device
/ubnt_unifiac
)
285 DEVICE_MODEL
:= UniFi AC-Lite
286 SUPPORTED_DEVICES
+= unifiac-lite
288 TARGET_DEVICES
+= ubnt_unifiac-lite
290 define Device
/ubnt_unifiac-lr
291 $(Device
/ubnt_unifiac
)
292 DEVICE_MODEL
:= UniFi AC-LR
293 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
295 TARGET_DEVICES
+= ubnt_unifiac-lr
297 define Device
/ubnt_unifiac-mesh
298 $(Device
/ubnt_unifiac
)
299 DEVICE_MODEL
:= UniFi AC-Mesh
300 SUPPORTED_DEVICES
+= unifiac-lite
302 TARGET_DEVICES
+= ubnt_unifiac-mesh
304 define Device
/ubnt_unifiac-mesh-pro
305 $(Device
/ubnt_unifiac
)
306 DEVICE_MODEL
:= UniFi AC-Mesh Pro
307 SUPPORTED_DEVICES
+= unifiac-pro
309 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
311 define Device
/ubnt_unifiac-pro
312 $(Device
/ubnt_unifiac
)
313 DEVICE_MODEL
:= UniFi AC-Pro
314 DEVICE_PACKAGES
+= kmod-usb2
315 SUPPORTED_DEVICES
+= unifiac-pro
317 TARGET_DEVICES
+= ubnt_unifiac-pro