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 \
12 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
18 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
19 # booting the image, the size doesn't matter.
20 define Build
/mkubntimage-split
22 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
23 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
24 $(STAGING_DIR_HOST
)/bin
/mkfwimage \
25 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(UBNT_REVISION
) \
32 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
33 # UBNT_TYPE e.g. one of (BZ, XM, XW)
34 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
35 # UBNT_VERSION e.g. one of (6.0.0, 8.5.3)
37 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2
42 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
43 append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | mkubntimage-split
48 DEVICE_PACKAGES
+= kmod-usb-ohci
52 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
77 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
81 define Device
/ubnt_airrouter
83 DEVICE_TITLE
:= Ubiquiti AirRouter
84 SUPPORTED_DEVICES
+= airrouter
86 TARGET_DEVICES
+= ubnt_airrouter
88 define Device
/ubnt_bullet-m
90 DEVICE_TITLE
:= Ubiquiti Bullet-M
91 DEVICE_PACKAGES
+= rssileds
92 SUPPORTED_DEVICES
+= bullet-m
94 TARGET_DEVICES
+= ubnt_bullet-m
96 define Device
/ubnt_bullet-m-xw
98 DEVICE_TITLE
:= Ubiquiti Bullet-M
(XW
)
99 DEVICE_PACKAGES
+= rssileds
100 SUPPORTED_DEVICES
+= bullet-m-xw
102 TARGET_DEVICES
+= ubnt_bullet-m-xw
104 define Device
/ubnt_picostation-m
106 DEVICE_TITLE
:= Ubiquiti Picostation M
107 DEVICE_PACKAGES
+= rssileds
108 SUPPORTED_DEVICES
+= bullet-m
110 TARGET_DEVICES
+= ubnt_picostation-m
112 define Device
/ubnt_rocket-m
114 DEVICE_TITLE
:= Ubiquiti Rocket-M
115 DEVICE_PACKAGES
+= rssileds
116 SUPPORTED_DEVICES
+= rocket-m
118 TARGET_DEVICES
+= ubnt_rocket-m
120 define Device
/ubnt_nanostation-loco-m
122 DEVICE_TITLE
:= Ubiquiti Nanostation Loco M
123 DEVICE_PACKAGES
+= rssileds
124 SUPPORTED_DEVICES
+= bullet-m
126 TARGET_DEVICES
+= ubnt_nanostation-loco-m
128 define Device
/ubnt_nanostation-loco-m-xw
130 DEVICE_TITLE
:= Ubiquiti Nanostation Loco M
(XW
)
131 DEVICE_PACKAGES
+= rssileds
132 SUPPORTED_DEVICES
+= loco-m-xw
134 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
136 define Device
/ubnt_nanostation-m
138 DEVICE_TITLE
:= Ubiquiti Nanostation M
139 DEVICE_PACKAGES
+= rssileds
140 SUPPORTED_DEVICES
+= nanostation-m
142 TARGET_DEVICES
+= ubnt_nanostation-m
144 define Device
/ubnt_nanostation-m-xw
146 DEVICE_TITLE
:= Ubiquiti Nanostation M
(XW
)
147 DEVICE_PACKAGES
+= rssileds
148 SUPPORTED_DEVICES
+= nanostation-m-xw
150 TARGET_DEVICES
+= ubnt_nanostation-m-xw
152 define Device
/ubnt_lap-120
154 DEVICE_TITLE
:= Ubiquiti LiteAP ac
(LAP-120
)
155 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
157 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
159 TARGET_DEVICES
+= ubnt_lap-120
161 define Device
/ubnt_nanobeam-ac
163 DEVICE_TITLE
:= Ubiquiti NanoBeam AC
164 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
166 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
168 TARGET_DEVICES
+= ubnt_nanobeam-ac
170 define Device
/ubnt_nanostation-ac
172 DEVICE_TITLE
:= Ubiquiti Nanostation AC
173 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
175 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
177 TARGET_DEVICES
+= ubnt_nanostation-ac
179 define Device
/ubnt_nanostation-ac-loco
181 DEVICE_TITLE
:= Ubiquiti Nanostation AC loco
182 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
184 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
186 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
188 define Device
/ubnt_unifi
190 DEVICE_TITLE
:= Ubiquiti UniFi
191 SUPPORTED_DEVICES
+= unifi
193 TARGET_DEVICES
+= ubnt_unifi
195 define Device
/ubnt_unifiac
198 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
202 define Device
/ubnt_unifiac-lite
203 $(Device
/ubnt_unifiac
)
204 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
205 SUPPORTED_DEVICES
+= unifiac-lite
207 TARGET_DEVICES
+= ubnt_unifiac-lite
209 define Device
/ubnt_unifiac-lr
210 $(Device
/ubnt_unifiac
)
211 DEVICE_TITLE
:= Ubiquiti UniFi AC-LR
212 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
214 TARGET_DEVICES
+= ubnt_unifiac-lr
216 define Device
/ubnt_unifiac-mesh
217 $(Device
/ubnt_unifiac
)
218 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
219 SUPPORTED_DEVICES
+= unifiac-lite
221 TARGET_DEVICES
+= ubnt_unifiac-mesh
223 define Device
/ubnt_unifiac-mesh-pro
224 $(Device
/ubnt_unifiac
)
225 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh Pro
226 SUPPORTED_DEVICES
+= unifiac-pro
228 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
230 define Device
/ubnt_unifiac-pro
231 $(Device
/ubnt_unifiac
)
232 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
233 DEVICE_PACKAGES
+= kmod-usb-core kmod-usb2
234 SUPPORTED_DEVICES
+= unifiac-pro
236 TARGET_DEVICES
+= ubnt_unifiac-pro
238 define Device
/ubnt_routerstation_common
239 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci kmod-usb2 fconfig
242 IMAGES
+= factory.bin
243 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | check-size
$$$$(IMAGE_SIZE
)
244 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | append-metadata | check-size
$$$$(IMAGE_SIZE
)
245 # IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
246 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
247 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
250 define Device
/ubnt_routerstation
251 $(Device
/ubnt_routerstation_common
)
252 DEVICE_TITLE
:= Ubiquiti RouterStation
256 DEVICE_PACKAGES
+= -swconfig
257 SUPPORTED_DEVICES
+= routerstation
259 TARGET_DEVICES
+= ubnt_routerstation
261 define Device
/ubnt_routerstation-pro
262 $(Device
/ubnt_routerstation_common
)
263 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
266 UBNT_CHIP
:= ar7100pro
267 SUPPORTED_DEVICES
+= routerstation-pro
269 TARGET_DEVICES
+= ubnt_routerstation-pro
271 define Device
/ubnt_acb-isp
275 DEVICE_TITLE
:= Ubiquiti airCube ISP
276 UBNT_BOARD
:= ACB-ISP
279 IMAGES
:= sysupgrade.bin
281 TARGET_DEVICES
+= ubnt_acb-isp