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