ramips: set uImage name of WeVO 11AC NAS and W2914NS v2
[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/asus_rt-ac57u
97 DTS := RT-AC57U
98 DEVICE_TITLE := ASUS RT-AC57U
99 IMAGE_SIZE := 16064k
100 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
101 endef
102 TARGET_DEVICES += asus_rt-ac57u
103
104 define Device/dir-860l-b1
105 $(Device/seama)
106 DTS := DIR-860L-B1
107 BLOCKSIZE := 64k
108 SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
109 KERNEL := kernel-bin | patch-dtb | relocate-kernel | lzma | uImage lzma
110 IMAGE_SIZE := $(ralink_default_fw_size_16M)
111 DEVICE_TITLE := D-Link DIR-860L B1
112 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
113 endef
114 TARGET_DEVICES += dir-860l-b1
115
116 define Device/mediatek_ap-mt7621a-v60
117 DTS := AP-MT7621A-V60
118 IMAGE_SIZE := $(ralink_default_fw_size_8M)
119 DEVICE_TITLE := Mediatek AP-MT7621A-V60 EVB
120 DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
121 endef
122 TARGET_DEVICES += mediatek_ap-mt7621a-v60
123
124 define Device/xzwifi_creativebox-v1
125 DTS := CreativeBox-v1
126 IMAGE_SIZE := $(ralink_default_fw_size_32M)
127 DEVICE_TITLE := CreativeBox v1
128 DEVICE_PACKAGES := \
129 kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
130 kmod-usb3
131 endef
132 TARGET_DEVICES += xzwifi_creativebox-v1
133
134 define Device/elecom_wrc-1167ghbk2-s
135 DTS := WRC-1167GHBK2-S
136 IMAGE_SIZE := 15488k
137 DEVICE_TITLE := ELECOM WRC-1167GHBK2-S
138 IMAGES += factory.bin
139 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
140 elecom-wrc-factory WRC-1167GHBK2-S 0.00
141 endef
142 TARGET_DEVICES += elecom_wrc-1167ghbk2-s
143
144 define Device/elecom_wrc-2533gst
145 DTS := WRC-2533GST
146 IMAGE_SIZE := 11264k
147 DEVICE_TITLE := ELECOM WRC-2533GST
148 IMAGES += factory.bin
149 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
150 elecom-gst-factory WRC-2533GST 0.00
151 endef
152 TARGET_DEVICES += elecom_wrc-2533gst
153
154 define Device/elecom_wrc-1900gst
155 DTS := WRC-1900GST
156 IMAGE_SIZE := 11264k
157 DEVICE_TITLE := ELECOM WRC-1900GST
158 IMAGES += factory.bin
159 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
160 elecom-gst-factory WRC-1900GST 0.00
161 endef
162 TARGET_DEVICES += elecom_wrc-1900gst
163
164 define Device/ew1200
165 DTS := EW1200
166 IMAGE_SIZE := $(ralink_default_fw_size_16M)
167 DEVICE_TITLE := AFOUNDRY EW1200
168 DEVICE_PACKAGES := \
169 kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
170 kmod-usb-ledtrig-usbport wpad-basic
171 endef
172 TARGET_DEVICES += ew1200
173
174 define Device/firewrt
175 DTS := FIREWRT
176 IMAGE_SIZE := $(ralink_default_fw_size_16M)
177 DEVICE_TITLE := Firefly FireWRT
178 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
179 endef
180 TARGET_DEVICES += firewrt
181
182 define Device/gehua_ghl-r-001
183 DTS := GHL-R-001
184 IMAGE_SIZE := $(ralink_default_fw_size_32M)
185 DEVICE_TITLE := GeHua GHL-R-001
186 DEVICE_PACKAGES := \
187 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
188 endef
189 TARGET_DEVICES += gehua_ghl-r-001
190
191 define Device/gnubee_gb-pc1
192 DTS := GB-PC1
193 DEVICE_TITLE := GnuBee Personal Cloud One
194 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
195 IMAGE_SIZE := $(ralink_default_fw_size_32M)
196 endef
197 TARGET_DEVICES += gnubee_gb-pc1
198
199 define Device/gnubee_gb-pc2
200 DTS := GB-PC2
201 DEVICE_TITLE := GnuBee Personal Cloud Two
202 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
203 IMAGE_SIZE := $(ralink_default_fw_size_32M)
204 endef
205 TARGET_DEVICES += gnubee_gb-pc2
206
207 define Device/hc5962
208 DTS := HC5962
209 BLOCKSIZE := 128k
210 PAGESIZE := 2048
211 KERNEL_SIZE := 2097152
212 UBINIZE_OPTS := -E 5
213 IMAGE_SIZE := $(ralink_default_fw_size_32M)
214 IMAGES += factory.bin
215 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
216 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
217 DEVICE_TITLE := HiWiFi HC5962
218 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
219 endef
220 TARGET_DEVICES += hc5962
221
222 define Device/iodata_wn-ax1167gr
223 DTS := WN-AX1167GR
224 IMAGE_SIZE := 15552k
225 KERNEL_INITRAMFS := $$(KERNEL) | \
226 iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
227 DEVICE_TITLE := I-O DATA WN-AX1167GR
228 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
229 endef
230 TARGET_DEVICES += iodata_wn-ax1167gr
231
232 define Device/iodata_wn-gx300gr
233 DTS := WN-GX300GR
234 IMAGE_SIZE := 7798784
235 DEVICE_TITLE := I-O DATA WN-GX300GR
236 DEVICE_PACKAGES := kmod-mt7603 wpad-basic
237 endef
238 TARGET_DEVICES += iodata_wn-gx300gr
239
240 define Device/k2p
241 DTS := K2P
242 IMAGE_SIZE := $(ralink_default_fw_size_16M)
243 DEVICE_TITLE := Phicomm K2P
244 endef
245 TARGET_DEVICES += k2p
246
247 define Device/xiaomi_mir3p
248 DTS := MIR3P
249 BLOCKSIZE := 128k
250 PAGESIZE := 2048
251 KERNEL_SIZE:= 4096k
252 UBINIZE_OPTS := -E 5
253 IMAGE_SIZE := $(ralink_default_fw_size_32M)
254 DEVICE_TITLE := Xiaomi Mi Router 3 Pro
255 IMAGES += factory.bin
256 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
257 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
258 DEVICE_PACKAGES := \
259 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
260 endef
261 TARGET_DEVICES += xiaomi_mir3p
262
263 define Device/xiaomi_mir3g
264 DTS := MIR3G
265 BLOCKSIZE := 128k
266 PAGESIZE := 2048
267 KERNEL_SIZE := 4096k
268 IMAGE_SIZE := 32768k
269 UBINIZE_OPTS := -E 5
270 IMAGES += kernel1.bin rootfs0.bin
271 IMAGE/kernel1.bin := append-kernel
272 IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
273 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
274 DEVICE_TITLE := Xiaomi Mi Router 3G
275 SUPPORTED_DEVICES += R3G
276 SUPPORTED_DEVICES += mir3g
277 DEVICE_PACKAGES := \
278 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic \
279 uboot-envtools
280 endef
281 TARGET_DEVICES += xiaomi_mir3g
282
283 define Device/mt7621
284 DTS := MT7621
285 BLOCKSIZE := 64k
286 IMAGE_SIZE := $(ralink_default_fw_size_4M)
287 DEVICE_TITLE := MediaTek MT7621 EVB
288 endef
289 TARGET_DEVICES += mt7621
290
291 define Device/newifi-d1
292 DTS := Newifi-D1
293 IMAGE_SIZE := $(ralink_default_fw_size_32M)
294 DEVICE_TITLE := Newifi D1
295 DEVICE_PACKAGES := \
296 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
297 endef
298 TARGET_DEVICES += newifi-d1
299
300 define Device/d-team_newifi-d2
301 DTS := Newifi-D2
302 IMAGE_SIZE := $(ralink_default_fw_size_32M)
303 DEVICE_TITLE := Newifi D2
304 DEVICE_PACKAGES := \
305 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
306 endef
307 TARGET_DEVICES += d-team_newifi-d2
308
309 define Device/pbr-m1
310 DTS := PBR-M1
311 IMAGE_SIZE := $(ralink_default_fw_size_16M)
312 DEVICE_TITLE := PBR-M1
313 DEVICE_PACKAGES := \
314 kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
315 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
316 endef
317 TARGET_DEVICES += pbr-m1
318
319 define Device/r6220
320 DTS := R6220
321 BLOCKSIZE := 128k
322 PAGESIZE := 2048
323 KERNEL_SIZE := 4096k
324 IMAGE_SIZE := 28672k
325 UBINIZE_OPTS := -E 5
326 SERCOMM_HWID := AYA
327 SERCOMM_HWVER := A001
328 SERCOMM_SWVER := 0x0086
329 IMAGES += factory.img kernel.bin rootfs.bin
330 IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | append-ubi | \
331 pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip R6220.bin | sercom-seal
332 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
333 IMAGE/kernel.bin := append-kernel
334 IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
335 DEVICE_TITLE := Netgear R6220
336 DEVICE_PACKAGES := \
337 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
338 endef
339 TARGET_DEVICES += r6220
340
341 define Device/netgear_ex6150
342 DTS := EX6150
343 DEVICE_TITLE := Netgear EX6150
344 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
345 NETGEAR_BOARD_ID := U12H318T00_NETGEAR
346 IMAGE_SIZE := 14848k
347 IMAGES += factory.chk
348 IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
349 endef
350 TARGET_DEVICES += netgear_ex6150
351
352 define Device/netgear_r6350
353 DTS := R6350
354 BLOCKSIZE := 128k
355 PAGESIZE := 2048
356 KERNEL_SIZE := 4096k
357 IMAGE_SIZE := 40960k
358 UBINIZE_OPTS := -E 5
359 IMAGES += kernel.bin rootfs.bin
360 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
361 IMAGE/kernel.bin := append-kernel
362 IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
363 DEVICE_TITLE := Netgear R6350
364 DEVICE_PACKAGES := \
365 kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
366 endef
367 TARGET_DEVICES += netgear_r6350
368
369 define Device/MikroTik
370 BLOCKSIZE := 64k
371 IMAGE_SIZE := 16128k
372 DEVICE_PACKAGES := kmod-usb3
373 LOADER_TYPE := elf
374 PLATFORM := mt7621
375 KERNEL := $(KERNEL_DTB) | loader-kernel
376 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \
377 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
378 endef
379
380 define Device/mikrotik_rb750gr3
381 $(Device/MikroTik)
382 DTS := RB750Gr3
383 DEVICE_TITLE := MikroTik RouterBOARD RB750Gr3
384 DEVICE_PACKAGES += kmod-gpio-beeper
385 endef
386 TARGET_DEVICES += mikrotik_rb750gr3
387
388 define Device/mikrotik_rbm33g
389 $(Device/MikroTik)
390 DTS := RBM33G
391 DEVICE_TITLE := MikroTik RouterBOARD M33G
392 endef
393 TARGET_DEVICES += mikrotik_rbm33g
394
395 define Device/mikrotik_rbm11g
396 $(Device/MikroTik)
397 DTS := RBM11G
398 DEVICE_TITLE := MikroTik RouterBOARD M11G
399 endef
400 TARGET_DEVICES += mikrotik_rbm11g
401
402 define Device/mtc_wr1201
403 DTS := WR1201
404 IMAGE_SIZE := 16000k
405 DEVICE_TITLE := MTC Wireless Router WR1201
406 KERNEL_INITRAMFS := $(KERNEL_DTB) | wr1201-factory-header
407 DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
408 kmod-usb-ledtrig-usbport wpad-basic
409 endef
410 TARGET_DEVICES += mtc_wr1201
411
412 define Device/re350-v1
413 DTS := RE350
414 DEVICE_TITLE := TP-LINK RE350 v1
415 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
416 TPLINK_BOARD_ID := RE350-V1
417 TPLINK_HWID := 0x0
418 TPLINK_HWREV := 0
419 TPLINK_HEADER_VERSION := 1
420 IMAGE_SIZE := 6016k
421 KERNEL := $(KERNEL_DTB) | tplink-v1-header -e -O
422 IMAGES += factory.bin
423 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | append-metadata | check-size $$$$(IMAGE_SIZE)
424 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
425 endef
426 TARGET_DEVICES += re350-v1
427
428 define Device/re6500
429 DTS := RE6500
430 DEVICE_TITLE := Linksys RE6500
431 DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
432 endef
433 TARGET_DEVICES += re6500
434
435 define Device/sap-g3200u3
436 DTS := SAP-G3200U3
437 DEVICE_TITLE := STORYLiNK SAP-G3200U3
438 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
439 endef
440 TARGET_DEVICES += sap-g3200u3
441
442 define Device/sk-wb8
443 DTS := SK-WB8
444 IMAGE_SIZE := $(ralink_default_fw_size_16M)
445 DEVICE_TITLE := SamKnows Whitebox 8
446 DEVICE_PACKAGES := \
447 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport \
448 uboot-envtools wpad-basic
449 endef
450 TARGET_DEVICES += sk-wb8
451
452 define Device/telco-electronics_x1
453 DTS := Telco-Electronics-X1
454 IMAGE_SIZE := 16064k
455 DEVICE_TITLE := Telco Electronics X1
456 DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
457 endef
458 TARGET_DEVICES += telco-electronics_x1
459
460 define Device/timecloud
461 DTS := Timecloud
462 DEVICE_TITLE := Thunder Timecloud
463 DEVICE_PACKAGES := kmod-usb3
464 endef
465 TARGET_DEVICES += timecloud
466
467 define Device/ubnt-erx
468 DTS := UBNT-ERX
469 FILESYSTEMS := squashfs
470 KERNEL_SIZE := 3145728
471 KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
472 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
473 DEVICE_TITLE := Ubiquiti EdgeRouter X
474 endef
475 TARGET_DEVICES += ubnt-erx
476
477 define Device/ubnt-erx-sfp
478 $(Device/ubnt-erx)
479 DTS := UBNT-ERX-SFP
480 DEVICE_TITLE := Ubiquiti EdgeRouter X-SFP
481 DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-i2c-gpio-custom
482 endef
483 TARGET_DEVICES += ubnt-erx-sfp
484
485 define Device/unielec_u7621-06-256m-16m
486 DTS := U7621-06-256M-16M
487 IMAGE_SIZE := 16064k
488 DEVICE_TITLE := UniElec U7621-06 (256M RAM/16M flash)
489 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
490 SUPPORTED_DEVICES += u7621-06-256M-16M
491 endef
492 TARGET_DEVICES += unielec_u7621-06-256m-16m
493
494 define Device/unielec_u7621-06-512m-64m
495 DTS := U7621-06-512M-64M
496 IMAGE_SIZE := 65216k
497 DEVICE_TITLE := UniElec U7621-06 (512M RAM/64M flash)
498 DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
499 endef
500 TARGET_DEVICES += unielec_u7621-06-512m-64m
501
502 define Device/vr500
503 DTS := VR500
504 IMAGE_SIZE := 66453504
505 DEVICE_TITLE := Planex VR500
506 DEVICE_PACKAGES := kmod-usb3
507 endef
508 TARGET_DEVICES += vr500
509
510 define Device/w2914nsv2
511 DTS := W2914NSV2
512 IMAGE_SIZE := $(ralink_default_fw_size_16M)
513 UIMAGE_NAME := W2914NS-V2(0.0.0)
514 DEVICE_TITLE := WeVO W2914NS v2
515 DEVICE_PACKAGES := \
516 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
517 endef
518 TARGET_DEVICES += w2914nsv2
519
520 define Device/wf-2881
521 DTS := WF-2881
522 BLOCKSIZE := 128k
523 PAGESIZE := 2048
524 FILESYSTEMS := squashfs
525 IMAGE_SIZE := 129280k
526 KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
527 UBINIZE_OPTS := -E 5
528 IMAGE/sysupgrade.bin := append-kernel | append-ubi | append-metadata | check-size $$$$(IMAGE_SIZE)
529 DEVICE_TITLE := NETIS WF-2881
530 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
531 endef
532 TARGET_DEVICES += wf-2881
533
534 define Device/mqmaker_witi-256m
535 DTS := WITI-256M
536 IMAGE_SIZE := $(ralink_default_fw_size_16M)
537 DEVICE_TITLE := MQmaker WiTi (256MB RAM)
538 DEVICE_PACKAGES := \
539 kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
540 kmod-usb-ledtrig-usbport wpad-basic
541 SUPPORTED_DEVICES += witi
542 endef
543 TARGET_DEVICES += mqmaker_witi-256m
544
545 define Device/mqmaker_witi-512m
546 DTS := WITI-512M
547 IMAGE_SIZE := $(ralink_default_fw_size_16M)
548 DEVICE_TITLE := MQmaker WiTi (512MB 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 endef
553 TARGET_DEVICES += mqmaker_witi-512m
554
555 define Device/wndr3700v5
556 DTS := WNDR3700V5
557 BLOCKSIZE := 64k
558 IMAGE_SIZE := 15232k
559 SERCOMM_HWID := AYB
560 SERCOMM_HWVER := A001
561 SERCOMM_SWVER := 0x1054
562 IMAGES += factory.img
563 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
564 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
565 IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | pad-to $$$$(BLOCKSIZE) | \
566 sercom-footer | pad-to 128 | zip WNDR3700v5.bin | sercom-seal
567 DEVICE_TITLE := Netgear WNDR3700v5
568 DEVICE_PACKAGES := \
569 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
570 endef
571 TARGET_DEVICES += wndr3700v5
572
573 define Device/youhua_wr1200js
574 DTS := WR1200JS
575 IMAGE_SIZE := 16064k
576 DEVICE_TITLE := YouHua WR1200JS
577 DEVICE_PACKAGES := \
578 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
579 endef
580 TARGET_DEVICES += youhua_wr1200js
581
582 define Device/youku_yk-l2
583 DTS := YOUKU-YK2
584 IMAGE_SIZE := $(ralink_default_fw_size_16M)
585 DEVICE_TITLE := Youku YK-L2
586 DEVICE_PACKAGES := \
587 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
588 endef
589 TARGET_DEVICES += youku_yk-l2
590
591 define Device/wsr-1166
592 DTS := WSR-1166
593 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
594 IMAGE_SIZE := $(ralink_default_fw_size_16M)
595 DEVICE_TITLE := Buffalo WSR-1166
596 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
597 endef
598 TARGET_DEVICES += wsr-1166
599
600 define Device/wsr-600
601 DTS := WSR-600
602 IMAGE_SIZE := $(ralink_default_fw_size_16M)
603 DEVICE_TITLE := Buffalo WSR-600
604 DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
605 endef
606 TARGET_DEVICES += wsr-600
607
608 define Device/zbt-we1326
609 DTS := ZBT-WE1326
610 IMAGE_SIZE := $(ralink_default_fw_size_16M)
611 DEVICE_TITLE := ZBT WE1326
612 DEVICE_PACKAGES := \
613 kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 wpad-basic
614 endef
615 TARGET_DEVICES += zbt-we1326
616
617 define Device/zbtlink_zbt-we3526
618 DTS := ZBT-WE3526
619 IMAGE_SIZE := $(ralink_default_fw_size_16M)
620 DEVICE_TITLE := ZBT WE3526
621 DEVICE_PACKAGES := \
622 kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
623 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
624 endef
625 TARGET_DEVICES += zbtlink_zbt-we3526
626
627 define Device/zbt-wg2626
628 DTS := ZBT-WG2626
629 IMAGE_SIZE := $(ralink_default_fw_size_16M)
630 DEVICE_TITLE := ZBT WG2626
631 DEVICE_PACKAGES := \
632 kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
633 kmod-usb-ledtrig-usbport wpad-basic
634 endef
635 TARGET_DEVICES += zbt-wg2626
636
637 define Device/zbt-wg3526-16M
638 DTS := ZBT-WG3526-16M
639 IMAGE_SIZE := $(ralink_default_fw_size_16M)
640 SUPPORTED_DEVICES += zbt-wg3526
641 DEVICE_TITLE := ZBT WG3526 (16MB flash)
642 DEVICE_PACKAGES := \
643 kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
644 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
645 endef
646 TARGET_DEVICES += zbt-wg3526-16M
647
648 define Device/zbt-wg3526-32M
649 DTS := ZBT-WG3526-32M
650 IMAGE_SIZE := $(ralink_default_fw_size_32M)
651 SUPPORTED_DEVICES += ac1200pro
652 DEVICE_TITLE := ZBT WG3526 (32MB 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-32M