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-8xp
134 DEVICE_MODEL
:= EdgeSwitch
8XP
135 DEVICE_PACKAGES
+= switch-bcm53xx-mdio
137 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
139 define Device
/ubnt_lap-120
141 DEVICE_MODEL
:= LiteAP ac
142 DEVICE_VARIANT
:= LAP-120
143 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
145 TARGET_DEVICES
+= ubnt_lap-120
147 define Device
/ubnt_litebeam-ac-gen2
149 DEVICE_MODEL
:= LiteBeam AC
150 DEVICE_VARIANT
:= Gen2
151 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
153 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
155 define Device
/ubnt_nanobeam-ac
157 DEVICE_MODEL
:= NanoBeam AC
158 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
160 TARGET_DEVICES
+= ubnt_nanobeam-ac
162 define Device
/ubnt_nanostation-ac
164 DEVICE_MODEL
:= Nanostation AC
165 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
167 TARGET_DEVICES
+= ubnt_nanostation-ac
169 define Device
/ubnt_nanostation-ac-loco
171 DEVICE_MODEL
:= Nanostation AC loco
172 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
174 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
176 define Device
/ubnt_nanostation-m
178 DEVICE_MODEL
:= Nanostation M
179 DEVICE_PACKAGES
+= rssileds
180 SUPPORTED_DEVICES
+= nanostation-m
182 TARGET_DEVICES
+= ubnt_nanostation-m
184 define Device
/ubnt_nanostation-m-xw
186 DEVICE_MODEL
:= Nanostation M
187 DEVICE_PACKAGES
+= rssileds
188 SUPPORTED_DEVICES
+= nanostation-m-xw
190 TARGET_DEVICES
+= ubnt_nanostation-m-xw
192 define Device
/ubnt_rocket-m
194 DEVICE_MODEL
:= Rocket-M
195 DEVICE_PACKAGES
+= rssileds
196 SUPPORTED_DEVICES
+= rocket-m
198 TARGET_DEVICES
+= ubnt_rocket-m
200 define Device
/ubnt_routerstation_common
201 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
203 DEVICE_VENDOR
:= Ubiquiti
206 IMAGES
:= factory.bin
207 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
208 check-size
$$$$(IMAGE_SIZE
)
209 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
210 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
213 define Device
/ubnt_routerstation
214 $(Device
/ubnt_routerstation_common
)
215 DEVICE_MODEL
:= RouterStation
219 DEVICE_PACKAGES
+= -swconfig
220 SUPPORTED_DEVICES
+= routerstation
222 TARGET_DEVICES
+= ubnt_routerstation
224 define Device
/ubnt_routerstation-pro
225 $(Device
/ubnt_routerstation_common
)
226 DEVICE_MODEL
:= RouterStation Pro
229 UBNT_CHIP
:= ar7100pro
230 SUPPORTED_DEVICES
+= routerstation-pro
232 TARGET_DEVICES
+= ubnt_routerstation-pro
234 define Device
/ubnt_unifi
236 DEVICE_MODEL
:= UniFi
237 SUPPORTED_DEVICES
+= unifi
239 TARGET_DEVICES
+= ubnt_unifi
241 define Device
/ubnt_unifiac
242 DEVICE_VENDOR
:= Ubiquiti
245 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
248 define Device
/ubnt_unifiac-lite
249 $(Device
/ubnt_unifiac
)
250 DEVICE_MODEL
:= UniFi AC-Lite
251 SUPPORTED_DEVICES
+= unifiac-lite
253 TARGET_DEVICES
+= ubnt_unifiac-lite
255 define Device
/ubnt_unifiac-lr
256 $(Device
/ubnt_unifiac
)
257 DEVICE_MODEL
:= UniFi AC-LR
258 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
260 TARGET_DEVICES
+= ubnt_unifiac-lr
262 define Device
/ubnt_unifiac-mesh
263 $(Device
/ubnt_unifiac
)
264 DEVICE_MODEL
:= UniFi AC-Mesh
265 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh
267 TARGET_DEVICES
+= ubnt_unifiac-mesh
269 define Device
/ubnt_unifiac-mesh-pro
270 $(Device
/ubnt_unifiac
)
271 DEVICE_MODEL
:= UniFi AC-Mesh Pro
272 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh-pro
274 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
276 define Device
/ubnt_unifiac-pro
277 $(Device
/ubnt_unifiac
)
278 DEVICE_MODEL
:= UniFi AC-Pro
279 DEVICE_PACKAGES
+= kmod-usb2
280 SUPPORTED_DEVICES
+= ubnt-unifiac-pro
282 TARGET_DEVICES
+= ubnt_unifiac-pro