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 device 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 define Build
/mkubntimage2
33 -$(STAGING_DIR_HOST
)/bin
/mkfwimage2
-f
0x9f000000 \
34 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
35 -p jffs2
:0x50000:0xf60000:0:0:$@ \
41 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
42 # UBNT_TYPE e.g. one of (BZ, XM, XW)
43 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
44 # UBNT_VERSION e.g. one of (6.0.0, 8.5.0)
46 DEVICE_PACKAGES
:= kmod-usb2
47 DEVICE_PROFILE
:= UBNT
49 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7552k
(firmware
),256k
(cfg
)ro
,64k
(EEPROM
)ro
52 IMAGES
:= sysupgrade.bin factory.bin
53 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
54 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
59 DEVICE_PACKAGES
+= kmod-usb-ohci rssileds
62 KERNEL
:= kernel-bin | patch-cmdline | relocate-kernel | lzma | uImage lzma
67 DEVICE_PACKAGES
+= rssileds
71 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
82 DEVICE_TITLE
:= Ubiquiti RW2458N
85 TARGET_DEVICES
+= rw2458n
87 define Device
/ubnt-airrouter
89 DEVICE_TITLE
:= Ubiquiti AirRouter
92 TARGET_DEVICES
+= ubnt-airrouter
94 define Device
/ubnt-bullet-m
96 DEVICE_TITLE
:= Ubiquiti Bullet-M
99 TARGET_DEVICES
+= ubnt-bullet-m
101 define Device
/ubnt-rocket-m
103 DEVICE_TITLE
:= Ubiquiti Rocket-M
106 TARGET_DEVICES
+= ubnt-rocket-m
108 define Device
/ubnt-nano-m
110 DEVICE_TITLE
:= Ubiquiti Nano-M
113 TARGET_DEVICES
+= ubnt-nano-m
115 define Device
/ubnt-unifi
117 DEVICE_TITLE
:= Ubiquiti UniFi
119 DEVICE_PROFILE
+= UBNTUNIFI
121 TARGET_DEVICES
+= ubnt-unifi
123 define Device
/ubnt-unifiac
124 DEVICE_PACKAGES
:= kmod-usb2
125 DEVICE_PROFILE
:= UBNT
127 MTDPARTS
:= spi0.0
:384k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7744k
(firmware
),7744k
(ubnt-airos
)ro
,128k
(bs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
128 IMAGES
:= sysupgrade.bin
129 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
132 define Device
/ubnt-unifiac-lite
133 $(Device
/ubnt-unifiac
)
134 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
135 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
136 DEVICE_PROFILE
+= UBNTUNIFIACLITE
137 BOARDNAME
:= UBNT-UF-AC-LITE
139 TARGET_DEVICES
+= ubnt-unifiac-lite
141 define Device
/ubnt-unifiac-lr
142 $(Device
/ubnt-unifiac-lite
)
143 DEVICE_TITLE
:= Ubiquiti UniFi AC-LR
145 TARGET_DEVICES
+= ubnt-unifiac-lr
147 define Device
/ubnt-unifiac-mesh
148 $(Device
/ubnt-unifiac-lite
)
149 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
151 TARGET_DEVICES
+= ubnt-unifiac-mesh
153 define Device
/ubnt-unifiac-pro
154 $(Device
/ubnt-unifiac
)
155 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
156 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
157 DEVICE_PROFILE
+= UBNTUNIFIACPRO
158 BOARDNAME
:= UBNT-UF-AC-PRO
160 TARGET_DEVICES
+= ubnt-unifiac-pro
162 define Device
/ubnt-unifiac-mesh-pro
163 $(Device
/ubnt-unifiac-pro
)
164 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh-Pro
166 TARGET_DEVICES
+= ubnt-unifiac-mesh-pro
168 define Device
/ubnt-unifi-outdoor
170 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor
171 BOARDNAME
:= UBNT-U20
172 DEVICE_PROFILE
+= UBNTUNIFIOUTDOOR
174 TARGET_DEVICES
+= ubnt-unifi-outdoor
176 define Device
/ubnt-nano-m-xw
178 DEVICE_TITLE
:= Ubiquiti Nano M XW
179 BOARDNAME
:= UBNT-NM-XW
181 TARGET_DEVICES
+= ubnt-nano-m-xw
183 define Device
/ubnt-lbe-m5
185 DEVICE_TITLE
:= Ubiquiti Litebeam M5
186 BOARDNAME
:= UBNT-LBE-M5
188 TARGET_DEVICES
+= ubnt-lbe-m5
190 define Device
/ubnt-loco-m-xw
192 DEVICE_TITLE
:= Ubiquiti Loco XW
193 BOARDNAME
:= UBNT-LOCO-XW
195 TARGET_DEVICES
+= ubnt-loco-m-xw
197 define Device
/ubnt-bullet-m-xw
199 DEVICE_TITLE
:= Ubiquiti Bullet-M XW
200 BOARDNAME
:= UBNT-BM-XW
202 TARGET_DEVICES
+= ubnt-bullet-m-xw
204 define Device
/ubnt-rocket-m-xw
206 DEVICE_TITLE
:= Ubiquiti Rocket M XW
207 BOARDNAME
:= UBNT-RM-XW
209 TARGET_DEVICES
+= ubnt-rocket-m-xw
211 define Device
/ubnt-rocket-m-ti
213 DEVICE_TITLE
:= Ubiquiti Rocket M TI
214 BOARDNAME
:= UBNT-RM-TI
217 TARGET_DEVICES
+= ubnt-rocket-m-ti
219 define Device
/ubnt-air-gateway
221 DEVICE_TITLE
:= Ubiquiti Air Gateway
222 BOARDNAME
:= UBNT-AGW
225 CONSOLE
:= ttyATH0
,115200
227 TARGET_DEVICES
+= ubnt-air-gateway
229 define Device
/ubnt-air-gateway-pro
231 DEVICE_TITLE
:= Ubiquiti Air Gateway Pro
232 BOARDNAME
:= UBNT-AGWP
236 TARGET_DEVICES
+= ubnt-air-gateway-pro
238 define Device
/ubdev01
240 DEVICE_TITLE
:= Ubiquiti ubDEV01
241 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7488k
(firmware
),64k
(certs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
243 UBNT_BOARD
:= UBDEV01
245 TARGET_DEVICES
+= ubdev01
247 define Device
/ubnt-routerstation
248 DEVICE_PACKAGES
:= kmod-usb-ohci kmod-usb2
249 DEVICE_PROFILE
:= UBNT
251 IMAGES
:= sysupgrade.bin factory.bin
252 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage
253 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | check-size
$$$$(IMAGE_SIZE
)
254 KERNEL
:= kernel-bin | patch-cmdline | lzma | pad-to
$$(BLOCKSIZE
)
257 define Device
/ubnt-rs
258 $(Device
/ubnt-routerstation
)
259 DEVICE_TITLE
:= Ubiquiti RouterStation
261 DEVICE_PROFILE
+= UBNTRS
266 TARGET_DEVICES
+= ubnt-rs
268 define Device
/ubnt-rspro
269 $(Device
/ubnt-routerstation
)
270 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
271 BOARDNAME
:= UBNT-RSPRO
272 DEVICE_PROFILE
+= UBNTRSPRO
275 UBNT_CHIP
:= ar7100pro
277 TARGET_DEVICES
+= ubnt-rspro
279 define Device
/ubnt-ls-sr71
280 $(Device
/ubnt-routerstation
)
281 DEVICE_TITLE
:= Ubiquiti LS-SR71
282 BOARDNAME
:= UBNT-LS-SR71
283 UBNT_BOARD
:= LS-SR71
287 TARGET_DEVICES
+= ubnt-ls-sr71
289 define Device
/ubnt-uap-pro
290 DEVICE_TITLE
:= Ubiquiti UAP Pro
293 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,2048k
(kernel
),13696k
(rootfs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
,15744k@
0x50000(firmware
)
297 DEVICE_PROFILE
:= UBNT UAPPRO
298 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
299 IMAGES
:= sysupgrade.bin factory.bin
300 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
301 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
303 TARGET_DEVICES
+= ubnt-uap-pro
305 define Device
/ubnt-unifi-outdoor-plus
306 $(Device
/ubnt-uap-pro
)
307 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor Plus
309 BOARDNAME
:= UBNT-UOP
310 DEVICE_PROFILE
:= UBNT
312 TARGET_DEVICES
+= ubnt-unifi-outdoor-plus