1 DEVICE_VARS
+= UBNT_BOARD UBNT_CHIP UBNT_TYPE
3 # mkubntimage is using the kernel image direct
4 # routerboard creates partitions out of the ubnt header
5 define Build
/mkubntimage
6 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
7 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
13 # all UBNT XM device expect the kernel image to have 1024k while flash, when
14 # booting the image, the size doesn't matter.
15 define Build
/mkubntimage-split
17 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
18 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
19 $(STAGING_DIR_HOST
)/bin
/mkfwimage \
20 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
27 define Build
/mkubntimage2
28 -$(STAGING_DIR_HOST
)/bin
/mkfwimage2
-f
0x9f000000 \
29 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
30 -p jffs2
:0x50000:0xf60000:0:0:$@ \
36 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
37 # UBNT_TYPE e.g. one of (BZ, XM, XW)
38 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
40 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2
41 DEVICE_PROFILE
:= UBNT
43 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7552k
(firmware
),256k
(cfg
)ro
,64k
(EEPROM
)ro
45 IMAGES
:= sysupgrade.bin factory.bin
46 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
47 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
52 DEVICE_PACKAGES
+= kmod-usb-ohci rssileds
55 KERNEL
:= kernel-bin | patch-cmdline | relocate-kernel | lzma | uImage lzma
60 DEVICE_PACKAGES
+= rssileds
73 DEVICE_TITLE
:= Ubiquiti RW2458N
76 TARGET_DEVICES
+= rw2458n
78 define Device
/ubnt-airrouter
80 DEVICE_TITLE
:= Ubiquiti AirRouter
83 TARGET_DEVICES
+= ubnt-airrouter
85 define Device
/ubnt-bullet-m
87 DEVICE_TITLE
:= Ubiquiti Bullet-M
90 TARGET_DEVICES
+= ubnt-bullet-m
92 define Device
/ubnt-rocket-m
94 DEVICE_TITLE
:= Ubiquiti Rocket-M
97 TARGET_DEVICES
+= ubnt-rocket-m
99 define Device
/ubnt-nano-m
101 DEVICE_TITLE
:= Ubiquiti Nano-M
104 TARGET_DEVICES
+= ubnt-nano-m
106 define Device
/ubnt-unifi
108 DEVICE_TITLE
:= Ubiquiti UniFi
110 DEVICE_PROFILE
+= UBNTUNIFI
112 TARGET_DEVICES
+= ubnt-unifi
114 define Device
/ubnt-unifiac
115 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2
116 DEVICE_PROFILE
:= UBNT
118 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
119 IMAGES
:= sysupgrade.bin
120 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
123 define Device
/ubnt-unifiac-lite
124 $(Device
/ubnt-unifiac
)
125 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
126 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
127 DEVICE_PROFILE
+= UBNTUNIFIACLITE
128 BOARDNAME
:= UBNT-UF-AC-LITE
130 TARGET_DEVICES
+= ubnt-unifiac-lite
132 define Device
/ubnt-unifiac-mesh
133 $(Device
/ubnt-unifiac-lite
)
134 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
136 TARGET_DEVICES
+= ubnt-unifiac-mesh
138 define Device
/ubnt-unifiac-pro
139 $(Device
/ubnt-unifiac
)
140 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
141 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
142 DEVICE_PROFILE
+= UBNTUNIFIACPRO
143 BOARDNAME
:= UBNT-UF-AC-PRO
145 TARGET_DEVICES
+= ubnt-unifiac-pro
147 define Device
/ubnt-unifiac-mesh-pro
148 $(Device
/ubnt-unifiac-pro
)
149 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh-Pro
151 TARGET_DEVICES
+= ubnt-unifiac-mesh-pro
153 define Device
/ubnt-unifi-outdoor
155 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor
156 BOARDNAME
:= UBNT-U20
157 DEVICE_PROFILE
+= UBNTUNIFIOUTDOOR
159 TARGET_DEVICES
+= ubnt-unifi-outdoor
161 define Device
/ubnt-nano-m-xw
163 DEVICE_TITLE
:= Ubiquiti Nano M XW
164 BOARDNAME
:= UBNT-NM-XW
166 TARGET_DEVICES
+= ubnt-nano-m-xw
168 define Device
/ubnt-lbe-m5
170 DEVICE_TITLE
:= Ubiquiti Litebeam M5
171 BOARDNAME
:= UBNT-LBE-M5
173 TARGET_DEVICES
+= ubnt-lbe-m5
175 define Device
/ubnt-loco-m-xw
177 DEVICE_TITLE
:= Ubiquiti Loco XW
178 BOARDNAME
:= UBNT-LOCO-XW
180 TARGET_DEVICES
+= ubnt-loco-m-xw
182 define Device
/ubnt-rocket-m-xw
184 DEVICE_TITLE
:= Ubiquiti Rocket M XW
185 BOARDNAME
:= UBNT-RM-XW
187 TARGET_DEVICES
+= ubnt-rocket-m-xw
189 define Device
/ubnt-rocket-m-ti
191 DEVICE_TITLE
:= Ubiquiti Rocket M TI
192 BOARDNAME
:= UBNT-RM-TI
195 TARGET_DEVICES
+= ubnt-rocket-m-ti
197 define Device
/ubnt-air-gateway
199 DEVICE_TITLE
:= Ubiquiti Air Gateway
200 BOARDNAME
:= UBNT-AGW
203 CONSOLE
:= ttyATH0
,115200
205 TARGET_DEVICES
+= ubnt-air-gateway
207 define Device
/ubnt-air-gateway-pro
209 DEVICE_TITLE
:= Ubiquiti Air Gateway Pro
210 BOARDNAME
:= UBNT-AGWP
214 TARGET_DEVICES
+= ubnt-air-gateway-pro
216 define Device
/ubdev01
218 DEVICE_TITLE
:= Ubiquiti ubDEV01
219 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7488k
(firmware
),64k
(certs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
221 UBNT_BOARD
:= UBDEV01
223 TARGET_DEVICES
+= ubdev01
225 define Device
/ubnt-routerstation
226 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2
227 DEVICE_PROFILE
:= UBNT
229 IMAGES
:= sysupgrade.bin factory.bin
230 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage
231 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | check-size
$$$$(IMAGE_SIZE
)
232 KERNEL
:= kernel-bin | patch-cmdline | lzma | pad-to
$$(BLOCKSIZE
)
235 define Device
/ubnt-rs
236 $(Device
/ubnt-routerstation
)
237 DEVICE_TITLE
:= Ubiquiti RouterStation
239 DEVICE_PROFILE
+= UBNTRS
244 TARGET_DEVICES
+= ubnt-rs
246 define Device
/ubnt-rspro
247 $(Device
/ubnt-routerstation
)
248 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
249 BOARDNAME
:= UBNT-RSPRO
250 DEVICE_PROFILE
+= UBNTRSPRO
253 UBNT_CHIP
:= ar7100pro
255 TARGET_DEVICES
+= ubnt-rspro
257 define Device
/ubnt-ls-sr71
258 $(Device
/ubnt-routerstation
)
259 DEVICE_TITLE
:= Ubiquiti LS-SR71
260 BOARDNAME
:= UBNT-LS-SR71
261 UBNT_BOARD
:= LS-SR71
265 TARGET_DEVICES
+= ubnt-ls-sr71
267 define Device
/ubnt-uap-pro
268 DEVICE_TITLE
:= Ubiquiti UAP Pro
271 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
)
275 DEVICE_PROFILE
:= UBNT UAPPRO
276 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
277 IMAGES
:= sysupgrade.bin factory.bin
278 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
279 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
281 TARGET_DEVICES
+= ubnt-uap-pro
283 define Device
/ubnt-unifi-outdoor-plus
284 $(Device
/ubnt-uap-pro
)
285 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor Plus
287 BOARDNAME
:= UBNT-UOP
288 DEVICE_PROFILE
:= UBNT
290 TARGET_DEVICES
+= ubnt-unifi-outdoor-plus