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
44 IMAGES
:= sysupgrade.bin factory.bin
45 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
46 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
51 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2 kmod-usb-ohci
71 DEVICE_TITLE
:= Ubiquiti RW2458N
74 #TARGET_DEVICES += rw2458n
76 define Device
/ubnt-airrouter
78 DEVICE_TITLE
:= Ubiquiti AirRouter
81 #TARGET_DEVICES += ubnt-airrouter
83 define Device
/ubnt-bullet-m
85 DEVICE_TITLE
:= Ubiquiti Bullet-M
88 TARGET_DEVICES
+= ubnt-bullet-m
90 define Device
/ubnt-rocket-m
92 DEVICE_TITLE
:= Ubiquiti Rocket-M
95 TARGET_DEVICES
+= ubnt-rocket-m
97 define Device
/ubnt-nano-m
99 DEVICE_TITLE
:= Ubiquiti Nano-M
102 TARGET_DEVICES
+= ubnt-nano-m
104 define Device
/ubnt-unifi
107 DEVICE_TITLE
:= Ubiquiti UniFi
109 DEVICE_PROFILE
+= UBNTUNIFI
111 TARGET_DEVICES
+= ubnt-unifi
113 define Device
/ubnt-unifiac
114 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2
115 DEVICE_PROFILE
:= UBNT
117 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
118 IMAGES
:= sysupgrade.bin
119 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
122 define Device
/ubnt-unifiac-lite
123 $(Device
/ubnt-unifiac
)
124 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
125 DEVICE_PACKAGES
:= kmod-ath10k ath10k-firmware-qca988x
126 DEVICE_PROFILE
+= UBNTUNIFIACLITE
127 BOARDNAME
:= UBNT-UF-AC-LITE
129 #TARGET_DEVICES += ubnt-unifiac-lite
131 define Device
/ubnt-unifiac-mesh
132 $(Device
/ubnt-unifiac-lite
)
133 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
135 #TARGET_DEVICES += ubnt-unifiac-mesh
137 define Device
/ubnt-unifiac-pro
138 $(Device
/ubnt-unifiac
)
139 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
140 DEVICE_PACKAGES
+= kmod-ath10k ath10k-firmware-qca988x
141 DEVICE_PROFILE
+= UBNTUNIFIACPRO
142 BOARDNAME
:= UBNT-UF-AC-PRO
144 #TARGET_DEVICES += ubnt-unifiac-pro
146 define Device
/ubnt-unifi-outdoor
148 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor
149 BOARDNAME
:= UBNT-U20
150 DEVICE_PROFILE
+= UBNTUNIFIOUTDOOR
152 #TARGET_DEVICES += ubnt-unifi-outdoor
154 define Device
/ubnt-nano-m-xw
156 DEVICE_TITLE
:= Ubiquiti Nano M XW
157 BOARDNAME
:= UBNT-NM-XW
159 #TARGET_DEVICES += ubnt-nano-m-xw
161 define Device
/ubnt-loco-m-xw
163 DEVICE_TITLE
:= Ubiquiti Loco XW
164 BOARDNAME
:= UBNT-LOCO-XW
166 #TARGET_DEVICES += ubnt-loco-m-xw
168 define Device
/ubnt-rocket-m-xw
170 DEVICE_TITLE
:= Ubiquiti Rocket M XW
171 BOARDNAME
:= UBNT-RM-XW
173 #TARGET_DEVICES += ubnt-rocket-m-xw
175 define Device
/ubnt-rocket-m-ti
177 DEVICE_TITLE
:= Ubiquiti Rocket M TI
178 BOARDNAME
:= UBNT-RM-TI
181 #TARGET_DEVICES += ubnt-rocket-m-ti
183 define Device
/ubnt-air-gateway
185 DEVICE_TITLE
:= Ubiquiti Air Gateway
186 BOARDNAME
:= UBNT-AGW
189 CONSOLE
:= ttyATH0
,115200
191 #TARGET_DEVICES += ubnt-air-gateway
193 define Device
/ubnt-air-gateway-pro
195 DEVICE_TITLE
:= Ubiquiti Air Gateway Pro
196 BOARDNAME
:= UBNT-AGWP
200 #TARGET_DEVICES += ubnt-air-gateway-pro
202 define Device
/ubdev01
204 DEVICE_TITLE
:= Ubiquiti ubDEV01
205 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,7488k
(firmware
),64k
(certs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
207 UBNT_BOARD
:= UBDEV01
209 #TARGET_DEVICES += ubdev01
211 define Device
/ubnt-routerstation
212 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb-ohci kmod-usb2
213 DEVICE_PROFILE
:= UBNT
215 IMAGES
:= sysupgrade.bin factory.bin
216 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage
217 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | check-size
$$$$(IMAGE_SIZE
)
218 KERNEL
:= kernel-bin | patch-cmdline | lzma | pad-to
$$(BLOCKSIZE
)
221 define Device
/ubnt-rs
222 $(Device
/ubnt-routerstation
)
223 DEVICE_TITLE
:= Ubiquiti RouterStation
225 DEVICE_PROFILE
+= UBNTRS
230 #TARGET_DEVICES += ubnt-rs
232 define Device
/ubnt-rspro
233 $(Device
/ubnt-routerstation
)
234 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
235 BOARDNAME
:= UBNT-RSPRO
236 DEVICE_PROFILE
+= UBNTRSPRO
239 UBNT_CHIP
:= ar7100pro
241 #TARGET_DEVICES += ubnt-rspro
243 define Device
/ubnt-ls-sr71
244 $(Device
/ubnt-routerstation
)
245 DEVICE_TITLE
:= Ubiquiti LS-SR71
246 BOARDNAME
:= UBNT-LS-SR71
247 UBNT_BOARD
:= LS-SR71
251 #TARGET_DEVICES += ubnt-ls-sr71
253 define Device
/ubnt-uap-pro
254 DEVICE_TITLE
:= Ubiquiti UAP Pro
257 MTDPARTS
:= spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1536k
(kernel
),14208k
(rootfs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
,15744k@
0x50000(firmware
)
261 DEVICE_PROFILE
:= UBNT UAPPRO
262 KERNEL
:= kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0
263 IMAGES
:= sysupgrade.bin factory.bin
264 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
265 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage2
268 define Device
/ubnt-unifi-outdoor-plus
269 $(Device
/ubnt-uap-pro
)
270 DEVICE_TITLE
:= Ubiquiti UniFi Outdoor Plus
272 BOARDNAME
:= UBNT-UOP
273 DEVICE_PROFILE
:= UBNT