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-usb-core 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-usb-core 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-mesh
142 $(Device
/ubnt-unifiac-lite
)
143 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
145 TARGET_DEVICES
+= ubnt-unifiac-mesh
147 define Device
/ubnt-unifiac-pro
148 $(Device
/ubnt-unifiac
)
149 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
150 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
151 DEVICE_PROFILE
+= UBNTUNIFIACPRO
152 BOARDNAME
:= UBNT-UF-AC-PRO
154 TARGET_DEVICES
+= ubnt-unifiac-pro
156 define Device
/ubnt-unifiac-mesh-pro
157 $(Device
/ubnt-unifiac-pro
)
158 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh-Pro
160 TARGET_DEVICES
+= ubnt-unifiac-mesh-pro
162 define Device
/ubnt-unifi-outdoor
164 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor
165 BOARDNAME
:= UBNT-U20
166 DEVICE_PROFILE
+= UBNTUNIFIOUTDOOR
168 TARGET_DEVICES
+= ubnt-unifi-outdoor
170 define Device
/ubnt-nano-m-xw
172 DEVICE_TITLE
:= Ubiquiti Nano M XW
173 BOARDNAME
:= UBNT-NM-XW
175 TARGET_DEVICES
+= ubnt-nano-m-xw
177 define Device
/ubnt-lbe-m5
179 DEVICE_TITLE
:= Ubiquiti Litebeam M5
180 BOARDNAME
:= UBNT-LBE-M5
182 TARGET_DEVICES
+= ubnt-lbe-m5
184 define Device
/ubnt-loco-m-xw
186 DEVICE_TITLE
:= Ubiquiti Loco XW
187 BOARDNAME
:= UBNT-LOCO-XW
189 TARGET_DEVICES
+= ubnt-loco-m-xw
191 define Device
/ubnt-rocket-m-xw
193 DEVICE_TITLE
:= Ubiquiti Rocket M XW
194 BOARDNAME
:= UBNT-RM-XW
196 TARGET_DEVICES
+= ubnt-rocket-m-xw
198 define Device
/ubnt-rocket-m-ti
200 DEVICE_TITLE
:= Ubiquiti Rocket M TI
201 BOARDNAME
:= UBNT-RM-TI
204 TARGET_DEVICES
+= ubnt-rocket-m-ti
206 define Device
/ubnt-air-gateway
208 DEVICE_TITLE
:= Ubiquiti Air Gateway
209 BOARDNAME
:= UBNT-AGW
212 CONSOLE
:= ttyATH0
,115200
214 TARGET_DEVICES
+= ubnt-air-gateway
216 define Device
/ubnt-air-gateway-pro
218 DEVICE_TITLE
:= Ubiquiti Air Gateway Pro
219 BOARDNAME
:= UBNT-AGWP
223 TARGET_DEVICES
+= ubnt-air-gateway-pro
225 define Device
/ubdev01
227 DEVICE_TITLE
:= Ubiquiti ubDEV01
228 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7488k
(firmware
),64k
(certs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
230 UBNT_BOARD
:= UBDEV01
232 TARGET_DEVICES
+= ubdev01
234 define Device
/ubnt-routerstation
235 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2
236 DEVICE_PROFILE
:= UBNT
238 IMAGES
:= sysupgrade.bin factory.bin
239 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage
240 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | check-size
$$$$(IMAGE_SIZE
)
241 KERNEL
:= kernel-bin | patch-cmdline | lzma | pad-to
$$(BLOCKSIZE
)
244 define Device
/ubnt-rs
245 $(Device
/ubnt-routerstation
)
246 DEVICE_TITLE
:= Ubiquiti RouterStation
248 DEVICE_PROFILE
+= UBNTRS
253 TARGET_DEVICES
+= ubnt-rs
255 define Device
/ubnt-rspro
256 $(Device
/ubnt-routerstation
)
257 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
258 BOARDNAME
:= UBNT-RSPRO
259 DEVICE_PROFILE
+= UBNTRSPRO
262 UBNT_CHIP
:= ar7100pro
264 TARGET_DEVICES
+= ubnt-rspro
266 define Device
/ubnt-ls-sr71
267 $(Device
/ubnt-routerstation
)
268 DEVICE_TITLE
:= Ubiquiti LS-SR71
269 BOARDNAME
:= UBNT-LS-SR71
270 UBNT_BOARD
:= LS-SR71
274 TARGET_DEVICES
+= ubnt-ls-sr71
276 define Device
/ubnt-uap-pro
277 DEVICE_TITLE
:= Ubiquiti UAP Pro
280 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
)
284 DEVICE_PROFILE
:= UBNT UAPPRO
285 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
286 IMAGES
:= sysupgrade.bin factory.bin
287 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
288 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
290 TARGET_DEVICES
+= ubnt-uap-pro
292 define Device
/ubnt-unifi-outdoor-plus
293 $(Device
/ubnt-uap-pro
)
294 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor Plus
296 BOARDNAME
:= UBNT-UOP
297 DEVICE_PROFILE
:= UBNT
299 TARGET_DEVICES
+= ubnt-unifi-outdoor-plus