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.0)
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_rocket-m
106 DEVICE_TITLE
:= Ubiquiti Rocket-M
107 DEVICE_PACKAGES
+= rssileds
108 SUPPORTED_DEVICES
+= rocket-m
110 TARGET_DEVICES
+= ubnt_rocket-m
112 define Device
/ubnt_nanostation-loco-m
114 DEVICE_TITLE
:= Ubiquiti Nanostation Loco M
115 DEVICE_PACKAGES
+= rssileds
116 SUPPORTED_DEVICES
+= bullet-m
118 TARGET_DEVICES
+= ubnt_nanostation-loco-m
120 define Device
/ubnt_nanostation-m
122 DEVICE_TITLE
:= Ubiquiti Nanostation M
123 DEVICE_PACKAGES
+= rssileds
124 SUPPORTED_DEVICES
+= nanostation-m
126 TARGET_DEVICES
+= ubnt_nanostation-m
128 define Device
/ubnt_nanostation-m-xw
130 DEVICE_TITLE
:= Ubiquiti Nanostation M
(XW
)
131 DEVICE_PACKAGES
+= rssileds
132 SUPPORTED_DEVICES
+= nanostation-m-xw
134 TARGET_DEVICES
+= ubnt_nanostation-m-xw
136 define Device
/ubnt_lap-120
138 DEVICE_TITLE
:= Ubiquiti LiteAP ac
(LAP-120
)
139 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
141 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
143 TARGET_DEVICES
+= ubnt_lap-120
145 define Device
/ubnt_nanobeam-ac
147 DEVICE_TITLE
:= Ubiquiti NanoBeam AC
148 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
150 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
152 TARGET_DEVICES
+= ubnt_nanobeam-ac
154 define Device
/ubnt_nanostation-ac
156 DEVICE_TITLE
:= Ubiquiti Nanostation AC
157 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
159 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
161 TARGET_DEVICES
+= ubnt_nanostation-ac
163 define Device
/ubnt_nanostation-ac-loco
165 DEVICE_TITLE
:= Ubiquiti Nanostation AC loco
166 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
168 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
170 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
172 define Device
/ubnt_unifi
174 DEVICE_TITLE
:= Ubiquiti UniFi
175 SUPPORTED_DEVICES
+= unifi
177 TARGET_DEVICES
+= ubnt_unifi
179 define Device
/ubnt_unifiac
182 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
186 define Device
/ubnt_unifiac-lite
187 $(Device
/ubnt_unifiac
)
188 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
189 SUPPORTED_DEVICES
+= unifiac-lite
191 TARGET_DEVICES
+= ubnt_unifiac-lite
193 define Device
/ubnt_unifiac-lr
194 $(Device
/ubnt_unifiac
)
195 DEVICE_TITLE
:= Ubiquiti UniFi AC-LR
196 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
198 TARGET_DEVICES
+= ubnt_unifiac-lr
200 define Device
/ubnt_unifiac-mesh
201 $(Device
/ubnt_unifiac
)
202 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
203 SUPPORTED_DEVICES
+= unifiac-lite
205 TARGET_DEVICES
+= ubnt_unifiac-mesh
207 define Device
/ubnt_unifiac-mesh-pro
208 $(Device
/ubnt_unifiac
)
209 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh Pro
210 SUPPORTED_DEVICES
+= unifiac-pro
212 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
214 define Device
/ubnt_unifiac-pro
215 $(Device
/ubnt_unifiac
)
216 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
217 DEVICE_PACKAGES
+= kmod-usb-core kmod-usb2
218 SUPPORTED_DEVICES
+= unifiac-pro
220 TARGET_DEVICES
+= ubnt_unifiac-pro
222 define Device
/ubnt_routerstation_common
223 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci kmod-usb2 fconfig
226 IMAGES
+= factory.bin
227 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | check-size
$$$$(IMAGE_SIZE
)
228 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | append-metadata | check-size
$$$$(IMAGE_SIZE
)
229 # IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
230 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
231 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
234 define Device
/ubnt_routerstation
235 $(Device
/ubnt_routerstation_common
)
236 DEVICE_TITLE
:= Ubiquiti RouterStation
240 DEVICE_PACKAGES
+= -swconfig
241 SUPPORTED_DEVICES
+= routerstation
243 TARGET_DEVICES
+= ubnt_routerstation
245 define Device
/ubnt_routerstation-pro
246 $(Device
/ubnt_routerstation_common
)
247 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
250 UBNT_CHIP
:= ar7100pro
251 SUPPORTED_DEVICES
+= routerstation-pro
253 TARGET_DEVICES
+= ubnt_routerstation-pro
255 define Device
/ubnt_acb-isp
259 DEVICE_TITLE
:= Ubiquiti airCube ISP
260 UBNT_BOARD
:= ACB-ISP
263 IMAGES
:= sysupgrade.bin
265 TARGET_DEVICES
+= ubnt_acb-isp