OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | DEVICE_VARS += UBNT_BOARD UBNT_CHIP UBNT_TYPE |
1 | DEVICE_VARS += UBNT_BOARD UBNT_CHIP UBNT_TYPE |
|
2 | |
2 | |
|
3 | # mkubntimage is using the kernel image direct |
3 | # mkubntimage is using the kernel image direct |
|
4 | # routerboard creates partitions out of the ubnt header |
4 | # routerboard creates partitions out of the ubnt header |
|
5 | define Build/mkubntimage |
5 | define Build/mkubntimage |
|
6 | -$(STAGING_DIR_HOST)/bin/mkfwimage \ |
6 | -$(STAGING_DIR_HOST)/bin/mkfwimage \ |
|
7 | -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ |
7 | -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ |
|
8 | -k $(IMAGE_KERNEL) \ |
8 | -k $(IMAGE_KERNEL) \ |
|
9 | -r $@ \ |
9 | -r $@ \ |
|
10 | -o $@ |
10 | -o $@ |
|
11 | endef |
11 | endef |
|
12 | |
12 | |
|
13 | # all UBNT XM device expect the kernel image to have 1024k while flash, when |
13 | # all UBNT XM device expect the kernel image to have 1024k while flash, when |
|
14 | # booting the image, the size doesn't matter. |
14 | # booting the image, the size doesn't matter. |
|
15 | define Build/mkubntimage-split |
15 | define Build/mkubntimage-split |
|
16 | -[ -f $@ ] && ( \ |
16 | -[ -f $@ ] && ( \ |
|
17 | dd if=$@ of=$@.old1 bs=1024k count=1; \ |
17 | dd if=$@ of=$@.old1 bs=1024k count=1; \ |
|
18 | dd if=$@ of=$@.old2 bs=1024k skip=1; \ |
18 | dd if=$@ of=$@.old2 bs=1024k skip=1; \ |
|
19 | $(STAGING_DIR_HOST)/bin/mkfwimage \ |
19 | $(STAGING_DIR_HOST)/bin/mkfwimage \ |
|
20 | -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ |
20 | -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ |
|
21 | -k $@.old1 \ |
21 | -k $@.old1 \ |
|
22 | -r $@.old2 \ |
22 | -r $@.old2 \ |
|
23 | -o $@; \ |
23 | -o $@; \ |
|
24 | rm $@.old1 $@.old2 ) |
24 | rm $@.old1 $@.old2 ) |
|
25 | endef |
25 | endef |
|
26 | |
26 | |
|
27 | define Build/mkubntimage2 |
27 | define Build/mkubntimage2 |
|
28 | -$(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \ |
28 | -$(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \ |
|
29 | -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ |
29 | -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ |
|
30 | -p jffs2:0x50000:0xf60000:0:0:$@ \ |
30 | -p jffs2:0x50000:0xf60000:0:0:$@ \ |
|
31 | -o $@.new |
31 | -o $@.new |
|
32 | @mv $@.new $@ |
32 | @mv $@.new $@ |
|
33 | endef |
33 | endef |
|
34 | |
34 | |
|
35 | |
35 | |
|
36 | # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM) |
36 | # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM) |
|
37 | # UBNT_TYPE e.g. one of (BZ, XM, XW) |
37 | # UBNT_TYPE e.g. one of (BZ, XM, XW) |
|
38 | # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x) |
38 | # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x) |
|
39 | define Device/ubnt |
39 | define Device/ubnt |
|
40 | DEVICE_PACKAGES := kmod-usb-core kmod-usb2 |
40 | DEVICE_PACKAGES := kmod-usb-core kmod-usb2 |
|
41 | DEVICE_PROFILE := UBNT |
41 | DEVICE_PROFILE := UBNT |
|
42 | IMAGE_SIZE := 7552k |
42 | IMAGE_SIZE := 7552k |
|
43 | MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro |
43 | MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro |
|
44 | UBNT_BOARD := XM |
44 | UBNT_BOARD := XM |
|
45 | IMAGES := sysupgrade.bin factory.bin |
45 | IMAGES := sysupgrade.bin factory.bin |
|
46 | IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) |
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 |
47 | IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split |
|
48 | endef |
48 | endef |
|
49 | |
49 | |
|
50 | define Device/ubnt-xm |
50 | define Device/ubnt-xm |
|
51 | $(Device/ubnt) |
51 | $(Device/ubnt) |
|
52 | DEVICE_PACKAGES += kmod-usb-ohci rssileds |
52 | DEVICE_PACKAGES += kmod-usb-ohci |
|
53 | UBNT_TYPE := XM |
53 | UBNT_TYPE := XM |
|
54 | UBNT_CHIP := ar7240 |
54 | UBNT_CHIP := ar7240 |
|
55 | KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma | uImage lzma |
55 | KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma | uImage lzma |
|
56 | endef |
56 | endef |
|
57 | |
57 | |
|
58 | define Device/ubnt-xw |
58 | define Device/ubnt-xw |
|
59 | $(Device/ubnt) |
59 | $(Device/ubnt) |
|
60 | DEVICE_PACKAGES += rssileds |
- | ||
61 | UBNT_TYPE := XW |
60 | UBNT_TYPE := XW |
|
62 | UBNT_CHIP := ar934x |
61 | UBNT_CHIP := ar934x |
|
63 | endef |
62 | endef |
|
64 | |
63 | |
|
65 | define Device/ubnt-bz |
64 | define Device/ubnt-bz |
|
66 | $(Device/ubnt) |
65 | $(Device/ubnt) |
|
67 | UBNT_TYPE := BZ |
66 | UBNT_TYPE := BZ |
|
68 | UBNT_CHIP := ar7240 |
67 | UBNT_CHIP := ar7240 |
|
69 | endef |
68 | endef |
|
70 | |
69 | |
|
71 | define Device/rw2458n |
70 | define Device/rw2458n |
|
72 | $(Device/ubnt-xm) |
71 | $(Device/ubnt-xm) |
|
73 | DEVICE_TITLE := Ubiquiti RW2458N |
72 | DEVICE_TITLE := Ubiquiti RW2458N |
|
74 | BOARDNAME := RW2458N |
73 | BOARDNAME := RW2458N |
|
75 | endef |
74 | endef |
|
76 | TARGET_DEVICES += rw2458n |
75 | TARGET_DEVICES += rw2458n |
|
77 | |
76 | |
|
78 | define Device/ubnt-airrouter |
77 | define Device/ubnt-airrouter |
|
79 | $(Device/ubnt-xm) |
78 | $(Device/ubnt-xm) |
|
80 | DEVICE_TITLE := Ubiquiti AirRouter |
79 | DEVICE_TITLE := Ubiquiti AirRouter |
|
81 | BOARDNAME := UBNT-AR |
80 | BOARDNAME := UBNT-AR |
|
82 | endef |
81 | endef |
|
83 | TARGET_DEVICES += ubnt-airrouter |
82 | TARGET_DEVICES += ubnt-airrouter |
|
84 | |
83 | |
|
85 | define Device/ubnt-bullet-m |
84 | define Device/ubnt-bullet-m |
|
86 | $(Device/ubnt-xm) |
85 | $(Device/ubnt-xm) |
|
87 | DEVICE_TITLE := Ubiquiti Bullet-M |
86 | DEVICE_TITLE := Ubiquiti Bullet-M |
|
88 | BOARDNAME := UBNT-BM |
87 | BOARDNAME := UBNT-BM |
|
89 | endef |
88 | endef |
|
90 | TARGET_DEVICES += ubnt-bullet-m |
89 | TARGET_DEVICES += ubnt-bullet-m |
|
91 | |
90 | |
|
92 | define Device/ubnt-rocket-m |
91 | define Device/ubnt-rocket-m |
|
93 | $(Device/ubnt-xm) |
92 | $(Device/ubnt-xm) |
|
94 | DEVICE_TITLE := Ubiquiti Rocket-M |
93 | DEVICE_TITLE := Ubiquiti Rocket-M |
|
95 | BOARDNAME := UBNT-RM |
94 | BOARDNAME := UBNT-RM |
|
96 | endef |
95 | endef |
|
97 | TARGET_DEVICES += ubnt-rocket-m |
96 | TARGET_DEVICES += ubnt-rocket-m |
|
98 | |
97 | |
|
99 | define Device/ubnt-nano-m |
98 | define Device/ubnt-nano-m |
|
100 | $(Device/ubnt-xm) |
99 | $(Device/ubnt-xm) |
|
101 | DEVICE_TITLE := Ubiquiti Nano-M |
100 | DEVICE_TITLE := Ubiquiti Nano-M |
|
102 | BOARDNAME := UBNT-NM |
101 | BOARDNAME := UBNT-NM |
|
103 | endef |
102 | endef |
|
104 | TARGET_DEVICES += ubnt-nano-m |
103 | TARGET_DEVICES += ubnt-nano-m |
|
105 | |
104 | |
|
106 | define Device/ubnt-unifi |
105 | define Device/ubnt-unifi |
|
107 | $(Device/ubnt-bz) |
106 | $(Device/ubnt-bz) |
|
108 | DEVICE_TITLE := Ubiquiti UniFi |
107 | DEVICE_TITLE := Ubiquiti UniFi |
|
109 | BOARDNAME := UBNT-UF |
108 | BOARDNAME := UBNT-UF |
|
110 | DEVICE_PROFILE += UBNTUNIFI |
109 | DEVICE_PROFILE += UBNTUNIFI |
|
111 | endef |
110 | endef |
|
112 | TARGET_DEVICES += ubnt-unifi |
111 | TARGET_DEVICES += ubnt-unifi |
|
113 | |
112 | |
|
114 | define Device/ubnt-unifiac |
113 | define Device/ubnt-unifiac |
|
115 | DEVICE_PACKAGES := kmod-usb-core kmod-usb2 |
114 | DEVICE_PACKAGES := kmod-usb-core kmod-usb2 |
|
116 | DEVICE_PROFILE := UBNT |
115 | DEVICE_PROFILE := UBNT |
|
117 | IMAGE_SIZE := 7744k |
116 | IMAGE_SIZE := 7744k |
|
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 |
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 |
|
119 | IMAGES := sysupgrade.bin |
118 | IMAGES := sysupgrade.bin |
|
120 | IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) |
119 | IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) |
|
121 | endef |
120 | endef |
|
122 | |
121 | |
|
123 | define Device/ubnt-unifiac-lite |
122 | define Device/ubnt-unifiac-lite |
|
124 | $(Device/ubnt-unifiac) |
123 | $(Device/ubnt-unifiac) |
|
125 | DEVICE_TITLE := Ubiquiti UniFi AC-Lite |
124 | DEVICE_TITLE := Ubiquiti UniFi AC-Lite |
|
126 | DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct |
125 | DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x |
|
127 | DEVICE_PROFILE += UBNTUNIFIACLITE |
126 | DEVICE_PROFILE += UBNTUNIFIACLITE |
|
128 | BOARDNAME := UBNT-UF-AC-LITE |
127 | BOARDNAME := UBNT-UF-AC-LITE |
|
129 | endef |
128 | endef |
|
130 | TARGET_DEVICES += ubnt-unifiac-lite |
129 | TARGET_DEVICES += ubnt-unifiac-lite |
|
131 | |
130 | |
|
132 | define Device/ubnt-unifiac-mesh |
131 | define Device/ubnt-unifiac-mesh |
|
133 | $(Device/ubnt-unifiac-lite) |
132 | $(Device/ubnt-unifiac-lite) |
|
134 | DEVICE_TITLE := Ubiquiti UniFi AC-Mesh |
133 | DEVICE_TITLE := Ubiquiti UniFi AC-Mesh |
|
135 | endef |
134 | endef |
|
136 | TARGET_DEVICES += ubnt-unifiac-mesh |
135 | TARGET_DEVICES += ubnt-unifiac-mesh |
|
137 | |
136 | |
|
138 | define Device/ubnt-unifiac-pro |
137 | define Device/ubnt-unifiac-pro |
|
139 | $(Device/ubnt-unifiac) |
138 | $(Device/ubnt-unifiac) |
|
140 | DEVICE_TITLE := Ubiquiti UniFi AC-Pro |
139 | DEVICE_TITLE := Ubiquiti UniFi AC-Pro |
|
141 | DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct |
140 | DEVICE_PACKAGES += kmod-ath10k ath10k-firmware-qca988x |
|
142 | DEVICE_PROFILE += UBNTUNIFIACPRO |
141 | DEVICE_PROFILE += UBNTUNIFIACPRO |
|
143 | BOARDNAME := UBNT-UF-AC-PRO |
142 | BOARDNAME := UBNT-UF-AC-PRO |
|
144 | endef |
143 | endef |
|
145 | TARGET_DEVICES += ubnt-unifiac-pro |
144 | TARGET_DEVICES += ubnt-unifiac-pro |
|
146 | |
- | ||
147 | define Device/ubnt-unifiac-mesh-pro |
- | ||
148 | $(Device/ubnt-unifiac-pro) |
- | ||
149 | DEVICE_TITLE := Ubiquiti UniFi AC-Mesh-Pro |
- | ||
150 | endef |
- | ||
151 | TARGET_DEVICES += ubnt-unifiac-mesh-pro |
- | ||
152 | |
145 | |
|
153 | define Device/ubnt-unifi-outdoor |
146 | define Device/ubnt-unifi-outdoor |
|
154 | $(Device/ubnt-bz) |
147 | $(Device/ubnt-bz) |
|
155 | DEVICE_TITLE := Ubiquiti UniFi Outdoor |
148 | DEVICE_TITLE := Ubiquiti UniFi Outdoor |
|
156 | BOARDNAME := UBNT-U20 |
149 | BOARDNAME := UBNT-U20 |
|
157 | DEVICE_PROFILE += UBNTUNIFIOUTDOOR |
150 | DEVICE_PROFILE += UBNTUNIFIOUTDOOR |
|
158 | endef |
151 | endef |
|
159 | TARGET_DEVICES += ubnt-unifi-outdoor |
152 | TARGET_DEVICES += ubnt-unifi-outdoor |
|
160 | |
153 | |
|
161 | define Device/ubnt-nano-m-xw |
154 | define Device/ubnt-nano-m-xw |
|
162 | $(Device/ubnt-xw) |
155 | $(Device/ubnt-xw) |
|
163 | DEVICE_TITLE := Ubiquiti Nano M XW |
156 | DEVICE_TITLE := Ubiquiti Nano M XW |
|
164 | BOARDNAME := UBNT-NM-XW |
157 | BOARDNAME := UBNT-NM-XW |
|
165 | endef |
158 | endef |
|
166 | TARGET_DEVICES += ubnt-nano-m-xw |
159 | TARGET_DEVICES += ubnt-nano-m-xw |
|
167 | |
160 | |
|
168 | define Device/ubnt-lbe-m5 |
161 | define Device/ubnt-lbe-m5 |
|
169 | $(Device/ubnt-xw) |
162 | $(Device/ubnt-xw) |
|
170 | DEVICE_TITLE := Ubiquiti Litebeam M5 |
163 | DEVICE_TITLE := Ubiquiti Litebeam M5 |
|
171 | BOARDNAME := UBNT-LBE-M5 |
164 | BOARDNAME := UBNT-LBE-M5 |
|
172 | endef |
165 | endef |
|
173 | TARGET_DEVICES += ubnt-lbe-m5 |
166 | TARGET_DEVICES += ubnt-lbe-m5 |
|
174 | |
167 | |
|
175 | define Device/ubnt-loco-m-xw |
168 | define Device/ubnt-loco-m-xw |
|
176 | $(Device/ubnt-xw) |
169 | $(Device/ubnt-xw) |
|
177 | DEVICE_TITLE := Ubiquiti Loco XW |
170 | DEVICE_TITLE := Ubiquiti Loco XW |
|
178 | BOARDNAME := UBNT-LOCO-XW |
171 | BOARDNAME := UBNT-LOCO-XW |
|
179 | endef |
172 | endef |
|
180 | TARGET_DEVICES += ubnt-loco-m-xw |
173 | TARGET_DEVICES += ubnt-loco-m-xw |
|
181 | |
174 | |
|
182 | define Device/ubnt-rocket-m-xw |
175 | define Device/ubnt-rocket-m-xw |
|
183 | $(Device/ubnt-xw) |
176 | $(Device/ubnt-xw) |
|
184 | DEVICE_TITLE := Ubiquiti Rocket M XW |
177 | DEVICE_TITLE := Ubiquiti Rocket M XW |
|
185 | BOARDNAME := UBNT-RM-XW |
178 | BOARDNAME := UBNT-RM-XW |
|
186 | endef |
179 | endef |
|
187 | TARGET_DEVICES += ubnt-rocket-m-xw |
180 | TARGET_DEVICES += ubnt-rocket-m-xw |
|
188 | |
181 | |
|
189 | define Device/ubnt-rocket-m-ti |
182 | define Device/ubnt-rocket-m-ti |
|
190 | $(Device/ubnt-xw) |
183 | $(Device/ubnt-xw) |
|
191 | DEVICE_TITLE := Ubiquiti Rocket M TI |
184 | DEVICE_TITLE := Ubiquiti Rocket M TI |
|
192 | BOARDNAME := UBNT-RM-TI |
185 | BOARDNAME := UBNT-RM-TI |
|
193 | UBNT_TYPE := TI |
186 | UBNT_TYPE := TI |
|
194 | endef |
187 | endef |
|
195 | TARGET_DEVICES += ubnt-rocket-m-ti |
188 | TARGET_DEVICES += ubnt-rocket-m-ti |
|
196 | |
189 | |
|
197 | define Device/ubnt-air-gateway |
190 | define Device/ubnt-air-gateway |
|
198 | $(Device/ubnt-xm) |
191 | $(Device/ubnt-xm) |
|
199 | DEVICE_TITLE := Ubiquiti Air Gateway |
192 | DEVICE_TITLE := Ubiquiti Air Gateway |
|
200 | BOARDNAME := UBNT-AGW |
193 | BOARDNAME := UBNT-AGW |
|
201 | UBNT_TYPE := AirGW |
194 | UBNT_TYPE := AirGW |
|
202 | UBNT_CHIP := ar933x |
195 | UBNT_CHIP := ar933x |
|
203 | CONSOLE := ttyATH0,115200 |
196 | CONSOLE := ttyATH0,115200 |
|
204 | endef |
197 | endef |
|
205 | TARGET_DEVICES += ubnt-air-gateway |
198 | TARGET_DEVICES += ubnt-air-gateway |
|
206 | |
199 | |
|
207 | define Device/ubnt-air-gateway-pro |
200 | define Device/ubnt-air-gateway-pro |
|
208 | $(Device/ubnt-xm) |
201 | $(Device/ubnt-xm) |
|
209 | DEVICE_TITLE := Ubiquiti Air Gateway Pro |
202 | DEVICE_TITLE := Ubiquiti Air Gateway Pro |
|
210 | BOARDNAME := UBNT-AGWP |
203 | BOARDNAME := UBNT-AGWP |
|
211 | UBNT_TYPE := AirGWP |
204 | UBNT_TYPE := AirGWP |
|
212 | UBNT_CHIP := ar934x |
205 | UBNT_CHIP := ar934x |
|
213 | endef |
206 | endef |
|
214 | TARGET_DEVICES += ubnt-air-gateway-pro |
207 | TARGET_DEVICES += ubnt-air-gateway-pro |
|
215 | |
208 | |
|
216 | define Device/ubdev01 |
209 | define Device/ubdev01 |
|
217 | $(Device/ubnt-xm) |
210 | $(Device/ubnt-xm) |
|
218 | DEVICE_TITLE := Ubiquiti ubDEV01 |
211 | 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 |
212 | MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7488k(firmware),64k(certs),256k(cfg)ro,64k(EEPROM)ro |
|
220 | BOARDNAME := UBNT-UF |
213 | BOARDNAME := UBNT-UF |
|
221 | UBNT_BOARD := UBDEV01 |
214 | UBNT_BOARD := UBDEV01 |
|
222 | endef |
215 | endef |
|
223 | TARGET_DEVICES += ubdev01 |
216 | TARGET_DEVICES += ubdev01 |
|
224 | |
217 | |
|
225 | define Device/ubnt-routerstation |
218 | define Device/ubnt-routerstation |
|
226 | DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 |
219 | DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 |
|
227 | DEVICE_PROFILE := UBNT |
220 | DEVICE_PROFILE := UBNT |
|
228 | IMAGE_SIZE := 16128k |
221 | IMAGE_SIZE := 16128k |
|
229 | IMAGES := sysupgrade.bin factory.bin |
222 | IMAGES := sysupgrade.bin factory.bin |
|
230 | IMAGE/factory.bin := append-rootfs | pad-rootfs | mkubntimage |
223 | IMAGE/factory.bin := append-rootfs | pad-rootfs | mkubntimage |
|
231 | IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE) |
224 | IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE) |
|
232 | KERNEL := kernel-bin | patch-cmdline | lzma | pad-to $$(BLOCKSIZE) |
225 | KERNEL := kernel-bin | patch-cmdline | lzma | pad-to $$(BLOCKSIZE) |
|
233 | endef |
226 | endef |
|
234 | |
227 | |
|
235 | define Device/ubnt-rs |
228 | define Device/ubnt-rs |
|
236 | $(Device/ubnt-routerstation) |
229 | $(Device/ubnt-routerstation) |
|
237 | DEVICE_TITLE := Ubiquiti RouterStation |
230 | DEVICE_TITLE := Ubiquiti RouterStation |
|
238 | BOARDNAME := UBNT-RS |
231 | BOARDNAME := UBNT-RS |
|
239 | DEVICE_PROFILE += UBNTRS |
232 | DEVICE_PROFILE += UBNTRS |
|
240 | UBNT_BOARD := RS |
233 | UBNT_BOARD := RS |
|
241 | UBNT_TYPE := RSx |
234 | UBNT_TYPE := RSx |
|
242 | UBNT_CHIP := ar7100 |
235 | UBNT_CHIP := ar7100 |
|
243 | endef |
236 | endef |
|
244 | TARGET_DEVICES += ubnt-rs |
237 | TARGET_DEVICES += ubnt-rs |
|
245 | |
238 | |
|
246 | define Device/ubnt-rspro |
239 | define Device/ubnt-rspro |
|
247 | $(Device/ubnt-routerstation) |
240 | $(Device/ubnt-routerstation) |
|
248 | DEVICE_TITLE := Ubiquiti RouterStation Pro |
241 | DEVICE_TITLE := Ubiquiti RouterStation Pro |
|
249 | BOARDNAME := UBNT-RSPRO |
242 | BOARDNAME := UBNT-RSPRO |
|
250 | DEVICE_PROFILE += UBNTRSPRO |
243 | DEVICE_PROFILE += UBNTRSPRO |
|
251 | UBNT_BOARD := RSPRO |
244 | UBNT_BOARD := RSPRO |
|
252 | UBNT_TYPE := RSPRO |
245 | UBNT_TYPE := RSPRO |
|
253 | UBNT_CHIP := ar7100pro |
246 | UBNT_CHIP := ar7100pro |
|
254 | endef |
247 | endef |
|
255 | TARGET_DEVICES += ubnt-rspro |
248 | TARGET_DEVICES += ubnt-rspro |
|
256 | |
249 | |
|
257 | define Device/ubnt-ls-sr71 |
250 | define Device/ubnt-ls-sr71 |
|
258 | $(Device/ubnt-routerstation) |
251 | $(Device/ubnt-routerstation) |
|
259 | DEVICE_TITLE := Ubiquiti LS-SR71 |
252 | DEVICE_TITLE := Ubiquiti LS-SR71 |
|
260 | BOARDNAME := UBNT-LS-SR71 |
253 | BOARDNAME := UBNT-LS-SR71 |
|
261 | UBNT_BOARD := LS-SR71 |
254 | UBNT_BOARD := LS-SR71 |
|
262 | UBNT_TYPE := LS-SR71 |
255 | UBNT_TYPE := LS-SR71 |
|
263 | UBNT_CHIP := ar7100 |
256 | UBNT_CHIP := ar7100 |
|
264 | endef |
257 | endef |
|
265 | TARGET_DEVICES += ubnt-ls-sr71 |
258 | TARGET_DEVICES += ubnt-ls-sr71 |
|
266 | |
259 | |
|
267 | define Device/ubnt-uap-pro |
260 | define Device/ubnt-uap-pro |
|
268 | DEVICE_TITLE := Ubiquiti UAP Pro |
261 | DEVICE_TITLE := Ubiquiti UAP Pro |
|
269 | KERNEL_SIZE := 2048k |
262 | KERNEL_SIZE := 1792k |
|
270 | IMAGE_SIZE := 15744k |
263 | IMAGE_SIZE := 15744k |
|
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) |
264 | MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1792k(kernel),13952k(rootfs),256k(cfg)ro,64k(EEPROM)ro,15744k@0x50000(firmware) |
|
272 | UBNT_TYPE := BZ |
265 | UBNT_TYPE := BZ |
|
273 | UBNT_CHIP := ar934x |
266 | UBNT_CHIP := ar934x |
|
274 | BOARDNAME := UAP-PRO |
267 | BOARDNAME := UAP-PRO |
|
275 | DEVICE_PROFILE := UBNT UAPPRO |
268 | DEVICE_PROFILE := UBNT UAPPRO |
|
276 | KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0 |
269 | KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0 |
|
277 | IMAGES := sysupgrade.bin factory.bin |
270 | IMAGES := sysupgrade.bin factory.bin |
|
278 | IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) |
271 | 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 |
272 | IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage2 |
|
280 | endef |
273 | endef |
|
281 | TARGET_DEVICES += ubnt-uap-pro |
274 | TARGET_DEVICES += ubnt-uap-pro |
|
282 | |
275 | |
|
283 | define Device/ubnt-unifi-outdoor-plus |
276 | define Device/ubnt-unifi-outdoor-plus |
|
284 | $(Device/ubnt-uap-pro) |
277 | $(Device/ubnt-uap-pro) |
|
285 | DEVICE_TITLE := Ubiquiti UniFi Outdoor Plus |
278 | DEVICE_TITLE := Ubiquiti UniFi Outdoor Plus |
|
286 | UBNT_CHIP := ar7240 |
279 | UBNT_CHIP := ar7240 |
|
287 | BOARDNAME := UBNT-UOP |
280 | BOARDNAME := UBNT-UOP |
|
288 | DEVICE_PROFILE := UBNT |
281 | DEVICE_PROFILE := UBNT |
|
289 | endef |
282 | endef |
|
290 | TARGET_DEVICES += ubnt-unifi-outdoor-plus |
283 | TARGET_DEVICES += ubnt-unifi-outdoor-plus |
|
291 | |
284 | |