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