ramips: mt7621: disable images for gehua_ghl-r-001
[openwrt/openwrt.git] / target / linux / ramips / image / mt7621.mk
1 #
2 # MT7621 Profiles
3 #
4
5 KERNEL_DTB += -d21
6 DEVICE_VARS += TPLINK_BOARD_ID TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV
7
8 define Build/elecom-gst-factory
9 $(eval product=$(word 1,$(1)))
10 $(eval version=$(word 2,$(1)))
11 ( $(STAGING_DIR_HOST)/bin/mkhash md5 $@ | tr -d '\n' ) >> $@
12 ( \
13 echo -n "ELECOM $(product) v$(version)" | \
14 dd bs=32 count=1 conv=sync; \
15 dd if=$@; \
16 ) > $@.new
17 mv $@.new $@
18 echo -n "MT7621_ELECOM_$(product)" >> $@
19 endef
20
21 define Build/elecom-wrc-factory
22 $(eval product=$(word 1,$(1)))
23 $(eval version=$(word 2,$(1)))
24 $(STAGING_DIR_HOST)/bin/mkhash md5 $@ >> $@
25 ( \
26 echo -n "ELECOM $(product) v$(version)" | \
27 dd bs=32 count=1 conv=sync; \
28 dd if=$@; \
29 ) > $@.new
30 mv $@.new $@
31 endef
32
33 define Build/iodata-factory
34 $(eval fw_size=$(word 1,$(1)))
35 $(eval fw_type=$(word 2,$(1)))
36 $(eval product=$(word 3,$(1)))
37 $(eval factory_bin=$(word 4,$(1)))
38 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(fw_size)" ]; then \
39 $(CP) $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) $(factory_bin); \
40 $(STAGING_DIR_HOST)/bin/mksenaofw \
41 -r 0x30a -p $(product) -t $(fw_type) \
42 -e $(factory_bin) -o $(factory_bin).new; \
43 mv $(factory_bin).new $(factory_bin); \
44 $(CP) $(factory_bin) $(BIN_DIR)/; \
45 else \
46 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
47 fi
48 endef
49
50 # The OEM webinterface expects an kernel with initramfs which has the uImage
51 # header field ih_name.
52 # We don't wan't to set the header name field for the kernel include in the
53 # sysupgrade image as well, as this image shouldn't be accepted by the OEM
54 # webinterface. It will soft-brick the board.
55 define Build/wr1201-factory-header
56 mkimage -A $(LINUX_KARCH) \
57 -O linux -T kernel \
58 -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
59 -n 'WR1201_8_128' -d $@ $@.new
60 mv $@.new $@
61 endef
62
63 define Build/ubnt-erx-factory-image
64 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
65 echo '21001:6' > $(1).compat; \
66 $(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
67 \
68 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
69 mkhash md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
70 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
71 \
72 echo "dummy" > $(1).rootfs; \
73 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
74 \
75 mkhash md5 $(1).rootfs > $(1).md5; \
76 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
77 \
78 echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
79 $(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
80 \
81 $(CP) $(1) $(BIN_DIR)/; \
82 else \
83 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
84 fi
85 endef
86
87 define Device/11acnas
88 DTS := 11ACNAS
89 IMAGE_SIZE := $(ralink_default_fw_size_16M)
90 UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
91 DEVICE_TITLE := WeVO 11AC NAS Router
92 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
93 endef
94 TARGET_DEVICES += 11acnas
95
96 define Device/alfa-network_quad-e4g
97 DTS := QUAD-E4G
98 IMAGE_SIZE := 16064k
99 DEVICE_TITLE := ALFA Network Quad-E4G
100 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 \
101 uboot-envtools
102 endef
103 TARGET_DEVICES += alfa-network_quad-e4g
104
105 define Device/asus_rt-ac57u
106 DTS := RT-AC57U
107 DEVICE_TITLE := ASUS RT-AC57U
108 IMAGE_SIZE := 16064k
109 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
110 endef
111 TARGET_DEVICES += asus_rt-ac57u
112
113 define Device/dir-860l-b1
114 $(Device/seama)
115 DTS := DIR-860L-B1
116 BLOCKSIZE := 64k
117 SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
118 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
119 IMAGE_SIZE := $(ralink_default_fw_size_16M)
120 DEVICE_TITLE := D-Link DIR-860L B1
121 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
122 endef
123 TARGET_DEVICES += dir-860l-b1
124
125 define Device/mediatek_ap-mt7621a-v60
126 DTS := AP-MT7621A-V60
127 IMAGE_SIZE := $(ralink_default_fw_size_8M)
128 DEVICE_TITLE := Mediatek AP-MT7621A-V60 EVB
129 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
130 endef
131 TARGET_DEVICES += mediatek_ap-mt7621a-v60
132
133 define Device/xzwifi_creativebox-v1
134 DTS := CreativeBox-v1
135 IMAGE_SIZE := $(ralink_default_fw_size_32M)
136 DEVICE_TITLE := CreativeBox v1
137 DEVICE_PACKAGES := \
138 kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
139 kmod-usb3
140 endef
141 TARGET_DEVICES += xzwifi_creativebox-v1
142
143 define Device/elecom_wrc-1167ghbk2-s
144 DTS := WRC-1167GHBK2-S
145 IMAGE_SIZE := 15488k
146 DEVICE_TITLE := ELECOM WRC-1167GHBK2-S
147 IMAGES += factory.bin
148 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
149 elecom-wrc-factory WRC-1167GHBK2-S 0.00
150 endef
151 TARGET_DEVICES += elecom_wrc-1167ghbk2-s
152
153 define Device/elecom_wrc-2533gst
154 DTS := WRC-2533GST
155 IMAGE_SIZE := 11264k
156 DEVICE_TITLE := ELECOM WRC-2533GST
157 IMAGES += factory.bin
158 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
159 elecom-gst-factory WRC-2533GST 0.00
160 endef
161 TARGET_DEVICES += elecom_wrc-2533gst
162
163 define Device/elecom_wrc-1900gst
164 DTS := WRC-1900GST
165 IMAGE_SIZE := 11264k
166 DEVICE_TITLE := ELECOM WRC-1900GST
167 IMAGES += factory.bin
168 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
169 elecom-gst-factory WRC-1900GST 0.00
170 endef
171 TARGET_DEVICES += elecom_wrc-1900gst
172
173 define Device/ew1200
174 DTS := EW1200
175 IMAGE_SIZE := $(ralink_default_fw_size_16M)
176 DEVICE_TITLE := AFOUNDRY EW1200
177 DEVICE_PACKAGES := \
178 kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
179 kmod-usb-ledtrig-usbport wpad-basic
180 endef
181 TARGET_DEVICES += ew1200
182
183 define Device/firewrt
184 DTS := FIREWRT
185 IMAGE_SIZE := $(ralink_default_fw_size_16M)
186 DEVICE_TITLE := Firefly FireWRT
187 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
188 endef
189 TARGET_DEVICES += firewrt
190
191 define Device/gehua_ghl-r-001
192 DTS := GHL-R-001
193 IMAGE_SIZE := $(ralink_default_fw_size_32M)
194 DEVICE_TITLE := GeHua GHL-R-001
195 DEVICE_PACKAGES := \
196 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
197 DEFAULT := n
198 endef
199 TARGET_DEVICES += gehua_ghl-r-001
200
201 define Device/gnubee_gb-pc1
202 DTS := GB-PC1
203 DEVICE_TITLE := GnuBee Personal Cloud One
204 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
205 IMAGE_SIZE := $(ralink_default_fw_size_32M)
206 endef
207 TARGET_DEVICES += gnubee_gb-pc1
208
209 define Device/gnubee_gb-pc2
210 DTS := GB-PC2
211 DEVICE_TITLE := GnuBee Personal Cloud Two
212 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
213 IMAGE_SIZE := $(ralink_default_fw_size_32M)
214 endef
215 TARGET_DEVICES += gnubee_gb-pc2
216
217 define Device/hc5962
218 DTS := HC5962
219 BLOCKSIZE := 128k
220 PAGESIZE := 2048
221 KERNEL_SIZE := 2097152
222 UBINIZE_OPTS := -E 5
223 IMAGE_SIZE := $(ralink_default_fw_size_32M)
224 IMAGES += factory.bin
225 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
226 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
227 DEVICE_TITLE := HiWiFi HC5962
228 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
229 endef
230 TARGET_DEVICES += hc5962
231
232 define Device/iodata_wn-ax1167gr
233 DTS := WN-AX1167GR
234 IMAGE_SIZE := 15552k
235 KERNEL_INITRAMFS := $$(KERNEL) | \
236 iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
237 DEVICE_TITLE := I-O DATA WN-AX1167GR
238 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
239 endef
240 TARGET_DEVICES += iodata_wn-ax1167gr
241
242 define Device/iodata_wn-gx300gr
243 DTS := WN-GX300GR
244 IMAGE_SIZE := 7798784
245 DEVICE_TITLE := I-O DATA WN-GX300GR
246 DEVICE_PACKAGES := kmod-mt7603 wpad-basic
247 endef
248 TARGET_DEVICES += iodata_wn-gx300gr
249
250 define Device/k2p
251 DTS := K2P
252 IMAGE_SIZE := $(ralink_default_fw_size_16M)
253 DEVICE_TITLE := Phicomm K2P
254 endef
255 TARGET_DEVICES += k2p
256
257 define Device/xiaomi_mir3p
258 DTS := MIR3P
259 BLOCKSIZE := 128k
260 PAGESIZE := 2048
261 KERNEL_SIZE:= 4096k
262 UBINIZE_OPTS := -E 5
263 IMAGE_SIZE := $(ralink_default_fw_size_32M)
264 DEVICE_TITLE := Xiaomi Mi Router 3 Pro
265 IMAGES += factory.bin
266 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
267 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
268 DEVICE_PACKAGES := \
269 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
270 endef
271 TARGET_DEVICES += xiaomi_mir3p
272
273 define Device/xiaomi_mir3g
274 DTS := MIR3G
275 BLOCKSIZE := 128k
276 PAGESIZE := 2048
277 KERNEL_SIZE := 4096k
278 IMAGE_SIZE := 32768k
279 UBINIZE_OPTS := -E 5
280 BOARD_NAME := mir3g
281 IMAGES += kernel1.bin rootfs0.bin
282 IMAGE/kernel1.bin := append-kernel
283 IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
284 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
285 DEVICE_TITLE := Xiaomi Mi Router 3G
286 SUPPORTED_DEVICES += R3G
287 SUPPORTED_DEVICES += mir3g
288 DEVICE_PACKAGES := \
289 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic \
290 uboot-envtools
291 endef
292 TARGET_DEVICES += xiaomi_mir3g
293
294 define Device/mt7621
295 DTS := MT7621
296 BLOCKSIZE := 64k
297 IMAGE_SIZE := $(ralink_default_fw_size_4M)
298 DEVICE_TITLE := MediaTek MT7621 EVB
299 endef
300 TARGET_DEVICES += mt7621
301
302 define Device/newifi-d1
303 DTS := Newifi-D1
304 IMAGE_SIZE := $(ralink_default_fw_size_32M)
305 DEVICE_TITLE := Newifi D1
306 DEVICE_PACKAGES := \
307 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
308 endef
309 TARGET_DEVICES += newifi-d1
310
311 define Device/d-team_newifi-d2
312 DTS := Newifi-D2
313 IMAGE_SIZE := $(ralink_default_fw_size_32M)
314 DEVICE_TITLE := Newifi D2
315 DEVICE_PACKAGES := \
316 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
317 endef
318 TARGET_DEVICES += d-team_newifi-d2
319
320 define Device/pbr-m1
321 DTS := PBR-M1
322 IMAGE_SIZE := $(ralink_default_fw_size_16M)
323 DEVICE_TITLE := PBR-M1
324 DEVICE_PACKAGES := \
325 kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
326 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
327 endef
328 TARGET_DEVICES += pbr-m1
329
330 define Device/r6220
331 DTS := R6220
332 BLOCKSIZE := 128k
333 PAGESIZE := 2048
334 KERNEL_SIZE := 4096k
335 IMAGE_SIZE := 28672k
336 UBINIZE_OPTS := -E 5
337 SERCOMM_HWID := AYA
338 SERCOMM_HWVER := A001
339 SERCOMM_SWVER := 0x0086
340 IMAGES += factory.img kernel.bin rootfs.bin
341 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | append-ubi | \
342 pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip R6220.bin | sercom-seal
343 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
344 IMAGE/kernel.bin := append-kernel
345 IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
346 DEVICE_TITLE := Netgear R6220
347 DEVICE_PACKAGES := \
348 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
349 endef
350 TARGET_DEVICES += r6220
351
352 define Device/netgear_ex6150
353 DTS := EX6150
354 DEVICE_TITLE := Netgear EX6150
355 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
356 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
357 IMAGE_SIZE := 14848k
358 IMAGES += factory.chk
359 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
360 endef
361 TARGET_DEVICES += netgear_ex6150
362
363 define Device/netgear_r6350
364 DTS := R6350
365 BLOCKSIZE := 128k
366 PAGESIZE := 2048
367 KERNEL_SIZE := 4096k
368 IMAGE_SIZE := 40960k
369 UBINIZE_OPTS := -E 5
370 IMAGES += kernel.bin rootfs.bin
371 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
372 IMAGE/kernel.bin := append-kernel
373 IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
374 DEVICE_TITLE := Netgear R6350
375 DEVICE_PACKAGES := \
376 kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
377 endef
378 TARGET_DEVICES += netgear_r6350
379
380 define Device/MikroTik
381 BLOCKSIZE := 64k
382 IMAGE_SIZE := 16128k
383 DEVICE_PACKAGES := kmod-usb3
384 LOADER_TYPE := elf
385 PLATFORM := mt7621
386 KERNEL := $(KERNEL_DTB) | loader-kernel
387 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \
388 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
389 endef
390
391 define Device/mikrotik_rb750gr3
392 $(Device/MikroTik)
393 DTS := RB750Gr3
394 DEVICE_TITLE := MikroTik RouterBOARD RB750Gr3
395 DEVICE_PACKAGES += kmod-gpio-beeper
396 endef
397 TARGET_DEVICES += mikrotik_rb750gr3
398
399 define Device/mikrotik_rbm33g
400 $(Device/MikroTik)
401 DTS := RBM33G
402 DEVICE_TITLE := MikroTik RouterBOARD M33G
403 endef
404 TARGET_DEVICES += mikrotik_rbm33g
405
406 define Device/mikrotik_rbm11g
407 $(Device/MikroTik)
408 DTS := RBM11G
409 DEVICE_TITLE := MikroTik RouterBOARD M11G
410 endef
411 TARGET_DEVICES += mikrotik_rbm11g
412
413 define Device/mtc_wr1201
414 DTS := WR1201
415 IMAGE_SIZE := 16000k
416 DEVICE_TITLE := MTC Wireless Router WR1201
417 KERNEL_INITRAMFS := $(KERNEL_DTB) | wr1201-factory-header
418 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
419 kmod-usb-ledtrig-usbport wpad-basic
420 endef
421 TARGET_DEVICES += mtc_wr1201
422
423 define Device/re350-v1
424 DTS := RE350
425 DEVICE_TITLE := TP-LINK RE350 v1
426 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
427 TPLINK_BOARD_ID := RE350-V1
428 TPLINK_HWID := 0x0
429 TPLINK_HWREV := 0
430 TPLINK_HEADER_VERSION := 1
431 IMAGE_SIZE := 6016k
432 KERNEL := $(KERNEL_DTB) | tplink-v1-header -e -O
433 IMAGES += factory.bin
434 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | append-metadata | check-size $$$$(IMAGE_SIZE)
435 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
436 endef
437 TARGET_DEVICES += re350-v1
438
439 define Device/re6500
440 DTS := RE6500
441 DEVICE_TITLE := Linksys RE6500
442 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
443 endef
444 TARGET_DEVICES += re6500
445
446 define Device/sap-g3200u3
447 DTS := SAP-G3200U3
448 DEVICE_TITLE := STORYLiNK SAP-G3200U3
449 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
450 endef
451 TARGET_DEVICES += sap-g3200u3
452
453 define Device/sk-wb8
454 DTS := SK-WB8
455 IMAGE_SIZE := $(ralink_default_fw_size_16M)
456 DEVICE_TITLE := SamKnows Whitebox 8
457 DEVICE_PACKAGES := \
458 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport \
459 uboot-envtools wpad-basic
460 endef
461 TARGET_DEVICES += sk-wb8
462
463 define Device/telco-electronics_x1
464 DTS := Telco-Electronics-X1
465 IMAGE_SIZE := 16064k
466 DEVICE_TITLE := Telco Electronics X1
467 DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
468 endef
469 TARGET_DEVICES += telco-electronics_x1
470
471 define Device/timecloud
472 DTS := Timecloud
473 DEVICE_TITLE := Thunder Timecloud
474 DEVICE_PACKAGES := kmod-usb3
475 endef
476 TARGET_DEVICES += timecloud
477
478 define Device/ubnt-erx
479 DTS := UBNT-ERX
480 FILESYSTEMS := squashfs
481 KERNEL_SIZE := 3145728
482 KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
483 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
484 DEVICE_TITLE := Ubiquiti EdgeRouter X
485 endef
486 TARGET_DEVICES += ubnt-erx
487
488 define Device/ubnt-erx-sfp
489 $(Device/ubnt-erx)
490 DTS := UBNT-ERX-SFP
491 DEVICE_TITLE := Ubiquiti EdgeRouter X-SFP
492 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-i2c-gpio-custom
493 endef
494 TARGET_DEVICES += ubnt-erx-sfp
495
496 define Device/unielec_u7621-06-256m-16m
497 DTS := U7621-06-256M-16M
498 IMAGE_SIZE := 16064k
499 DEVICE_TITLE := UniElec U7621-06 (256M RAM/16M flash)
500 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
501 SUPPORTED_DEVICES += u7621-06-256M-16M
502 endef
503 TARGET_DEVICES += unielec_u7621-06-256m-16m
504
505 define Device/unielec_u7621-06-512m-64m
506 DTS := U7621-06-512M-64M
507 IMAGE_SIZE := 65216k
508 DEVICE_TITLE := UniElec U7621-06 (512M RAM/64M flash)
509 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
510 endef
511 TARGET_DEVICES += unielec_u7621-06-512m-64m
512
513 define Device/vr500
514 DTS := VR500
515 IMAGE_SIZE := 66453504
516 DEVICE_TITLE := Planex VR500
517 DEVICE_PACKAGES := kmod-usb3
518 endef
519 TARGET_DEVICES += vr500
520
521 define Device/w2914nsv2
522 DTS := W2914NSV2
523 IMAGE_SIZE := $(ralink_default_fw_size_16M)
524 UIMAGE_NAME := W2914NS-V2(0.0.0)
525 DEVICE_TITLE := WeVO W2914NS v2
526 DEVICE_PACKAGES := \
527 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
528 endef
529 TARGET_DEVICES += w2914nsv2
530
531 define Device/wf-2881
532 DTS := WF-2881
533 BLOCKSIZE := 128k
534 PAGESIZE := 2048
535 FILESYSTEMS := squashfs
536 IMAGE_SIZE := 129280k
537 KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
538 UBINIZE_OPTS := -E 5
539 IMAGE/sysupgrade.bin := append-kernel | append-ubi | append-metadata | check-size $$$$(IMAGE_SIZE)
540 DEVICE_TITLE := NETIS WF-2881
541 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
542 endef
543 TARGET_DEVICES += wf-2881
544
545 define Device/mqmaker_witi-256m
546 DTS := WITI-256M
547 IMAGE_SIZE := $(ralink_default_fw_size_16M)
548 DEVICE_TITLE := MQmaker WiTi (256MB RAM)
549 DEVICE_PACKAGES := \
550 kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
551 kmod-usb-ledtrig-usbport wpad-basic
552 SUPPORTED_DEVICES += witi
553 endef
554 TARGET_DEVICES += mqmaker_witi-256m
555
556 define Device/mqmaker_witi-512m
557 DTS := WITI-512M
558 IMAGE_SIZE := $(ralink_default_fw_size_16M)
559 DEVICE_TITLE := MQmaker WiTi (512MB RAM)
560 DEVICE_PACKAGES := \
561 kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
562 kmod-usb-ledtrig-usbport wpad-basic
563 endef
564 TARGET_DEVICES += mqmaker_witi-512m
565
566 define Device/wndr3700v5
567 DTS := WNDR3700V5
568 BLOCKSIZE := 64k
569 IMAGE_SIZE := 15232k
570 SERCOMM_HWID := AYB
571 SERCOMM_HWVER := A001
572 SERCOMM_SWVER := 0x1054
573 IMAGES += factory.img
574 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
575 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
576 IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | pad-to $$$$(BLOCKSIZE) | \
577 sercom-footer | pad-to 128 | zip WNDR3700v5.bin | sercom-seal
578 DEVICE_TITLE := Netgear WNDR3700v5
579 DEVICE_PACKAGES := \
580 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
581 endef
582 TARGET_DEVICES += wndr3700v5
583
584 define Device/youhua_wr1200js
585 DTS := WR1200JS
586 IMAGE_SIZE := 16064k
587 DEVICE_TITLE := YouHua WR1200JS
588 DEVICE_PACKAGES := \
589 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
590 endef
591 TARGET_DEVICES += youhua_wr1200js
592
593 define Device/youku_yk-l2
594 DTS := YOUKU-YK2
595 IMAGE_SIZE := $(ralink_default_fw_size_16M)
596 DEVICE_TITLE := Youku YK-L2
597 DEVICE_PACKAGES := \
598 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
599 endef
600 TARGET_DEVICES += youku_yk-l2
601
602 define Device/wsr-1166
603 DTS := WSR-1166
604 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
605 IMAGE_SIZE := $(ralink_default_fw_size_16M)
606 DEVICE_TITLE := Buffalo WSR-1166
607 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
608 endef
609 TARGET_DEVICES += wsr-1166
610
611 define Device/wsr-600
612 DTS := WSR-600
613 IMAGE_SIZE := $(ralink_default_fw_size_16M)
614 DEVICE_TITLE := Buffalo WSR-600
615 DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
616 endef
617 TARGET_DEVICES += wsr-600
618
619 define Device/zbt-we1326
620 DTS := ZBT-WE1326
621 IMAGE_SIZE := $(ralink_default_fw_size_16M)
622 DEVICE_TITLE := ZBT WE1326
623 DEVICE_PACKAGES := \
624 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 wpad-basic
625 endef
626 TARGET_DEVICES += zbt-we1326
627
628 define Device/zbtlink_zbt-we3526
629 DTS := ZBT-WE3526
630 IMAGE_SIZE := $(ralink_default_fw_size_16M)
631 DEVICE_TITLE := ZBT WE3526
632 DEVICE_PACKAGES := \
633 kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
634 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
635 endef
636 TARGET_DEVICES += zbtlink_zbt-we3526
637
638 define Device/zbt-wg2626
639 DTS := ZBT-WG2626
640 IMAGE_SIZE := $(ralink_default_fw_size_16M)
641 DEVICE_TITLE := ZBT WG2626
642 DEVICE_PACKAGES := \
643 kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
644 kmod-usb-ledtrig-usbport wpad-basic
645 endef
646 TARGET_DEVICES += zbt-wg2626
647
648 define Device/zbt-wg3526-16M
649 DTS := ZBT-WG3526-16M
650 IMAGE_SIZE := $(ralink_default_fw_size_16M)
651 SUPPORTED_DEVICES += zbt-wg3526
652 DEVICE_TITLE := ZBT WG3526 (16MB flash)
653 DEVICE_PACKAGES := \
654 kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
655 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
656 endef
657 TARGET_DEVICES += zbt-wg3526-16M
658
659 define Device/zbt-wg3526-32M
660 DTS := ZBT-WG3526-32M
661 IMAGE_SIZE := $(ralink_default_fw_size_32M)
662 SUPPORTED_DEVICES += ac1200pro
663 DEVICE_TITLE := ZBT WG3526 (32MB flash)
664 DEVICE_PACKAGES := \
665 kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
666 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
667 endef
668 TARGET_DEVICES += zbt-wg3526-32M