mt7621.mk 27.6 KB
Newer Older
1
2
3
4
#
# MT7621 Profiles
#

5
6
include ./common-tp-link.mk

7
8
DEFAULT_SOC := mt7621

9
KERNEL_DTB += -d21
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DEVICE_VARS += UIMAGE_MAGIC

# The OEM webinterface expects an kernel with initramfs which has the uImage
# header field ih_name.
# We don't want to set the header name field for the kernel include in the
# sysupgrade image as well, as this image shouldn't be accepted by the OEM
# webinterface. It will soft-brick the board.
define Build/custom-initramfs-uimage
	mkimage -A $(LINUX_KARCH) \
		-O linux -T kernel \
		-C lzma -a $(KERNEL_LOADADDR) $(if $(UIMAGE_MAGIC),-M $(UIMAGE_MAGIC),) \
		-e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
		-n '$(1)' -d $@ $@.new
	mv $@.new $@
endef
25

26
27
28
29
30
31
32
33
34
35
36
37
38
define Build/elecom-gst-factory
  $(eval product=$(word 1,$(1)))
  $(eval version=$(word 2,$(1)))
  ( $(STAGING_DIR_HOST)/bin/mkhash md5 $@ | tr -d '\n' ) >> $@
  ( \
    echo -n "ELECOM $(product) v$(version)" | \
      dd bs=32 count=1 conv=sync; \
    dd if=$@; \
  ) > $@.new
  mv $@.new $@
  echo -n "MT7621_ELECOM_$(product)" >> $@
endef

39
40
41
42
43
44
45
46
47
48
49
50
define Build/elecom-wrc-factory
  $(eval product=$(word 1,$(1)))
  $(eval version=$(word 2,$(1)))
  $(STAGING_DIR_HOST)/bin/mkhash md5 $@ >> $@
  ( \
    echo -n "ELECOM $(product) v$(version)" | \
      dd bs=32 count=1 conv=sync; \
    dd if=$@; \
  ) > $@.new
  mv $@.new $@
endef

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
define Build/iodata-factory
  $(eval fw_size=$(word 1,$(1)))
  $(eval fw_type=$(word 2,$(1)))
  $(eval product=$(word 3,$(1)))
  $(eval factory_bin=$(word 4,$(1)))
  if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(fw_size)" ]; then \
    $(CP) $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) $(factory_bin); \
    $(STAGING_DIR_HOST)/bin/mksenaofw \
      -r 0x30a -p $(product) -t $(fw_type) \
      -e $(factory_bin) -o $(factory_bin).new; \
    mv $(factory_bin).new $(factory_bin); \
    $(CP) $(factory_bin) $(BIN_DIR)/; \
	else \
		echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
	fi
endef

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
define Build/iodata-mstc-header
  ( \
    data_size_crc="$$(dd if=$@ ibs=64 skip=1 2>/dev/null | \
      gzip -c | tail -c 8 | od -An -tx8 --endian little | tr -d ' \n')"; \
    echo -ne "$$(echo $$data_size_crc | sed 's/../\\x&/g')" | \
      dd of=$@ bs=8 count=1 seek=7 conv=notrunc 2>/dev/null; \
  )
  dd if=/dev/zero of=$@ bs=4 count=1 seek=1 conv=notrunc 2>/dev/null
  ( \
    header_crc="$$(dd if=$@ bs=64 count=1 2>/dev/null | \
      gzip -c | tail -c 8 | od -An -N4 -tx4 --endian little | tr -d ' \n')"; \
    echo -ne "$$(echo $$header_crc | sed 's/../\\x&/g')" | \
      dd of=$@ bs=4 count=1 seek=1 conv=notrunc 2>/dev/null; \
  )
endef

84
85
86
87
88
89
define Build/netis-tail
	echo -n $(1) >> $@
	echo -n $(UIMAGE_NAME)-yun | $(STAGING_DIR_HOST)/bin/mkhash md5 | \
		sed 's/../\\\\x&/g' | xargs echo -ne >> $@
endef

90
define Build/ubnt-erx-factory-image
91
	if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
92
93
94
95
		echo '21001:6' > $(1).compat; \
		$(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
		\
		$(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
96
		mkhash md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
97
98
99
100
		$(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
		\
		echo "dummy" > $(1).rootfs; \
		$(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
101
		\
102
		mkhash md5 $(1).rootfs > $(1).md5; \
103
104
105
106
107
108
		$(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
		\
		echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
		$(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
		\
		$(CP) $(1) $(BIN_DIR)/; \
109
110
	else \
		echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
111
112
113
	fi
endef

114
define Device/afoundry_ew1200
115
  IMAGE_SIZE := 16064k
116
117
  DEVICE_VENDOR := AFOUNDRY
  DEVICE_MODEL := EW1200
118
119
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-mt7603 \
	kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
120
  SUPPORTED_DEVICES += ew1200
121
endef
122
123
TARGET_DEVICES += afoundry_ew1200

124
125
126
127
128
129
130
131
132
define Device/alfa-network_quad-e4g
  IMAGE_SIZE := 16064k
  DEVICE_VENDOR := ALFA Network
  DEVICE_MODEL := Quad-E4G
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 \
	uboot-envtools
endef
TARGET_DEVICES += alfa-network_quad-e4g

133
define Device/asiarf_ap7621-001
134
  IMAGE_SIZE := 16000k
135
136
  DEVICE_VENDOR := AsiaRF
  DEVICE_MODEL := AP7621-001
137
  DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
138
139
140
endef
TARGET_DEVICES += asiarf_ap7621-001

141
142
143
144
define Device/asiarf_ap7621-nv1
  IMAGE_SIZE := 16000k
  DEVICE_VENDOR := AsiaRF
  DEVICE_MODEL := AP7621-NV1
145
  DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
146
147
148
endef
TARGET_DEVICES += asiarf_ap7621-nv1

149
150
151
152
define Device/asus_rt-ac57u
  DEVICE_VENDOR := ASUS
  DEVICE_MODEL := RT-AC57U
  IMAGE_SIZE := 16064k
153
154
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
155
156
157
endef
TARGET_DEVICES += asus_rt-ac57u

158
159
160
161
162
163
164
165
166
167
define Device/asus_rt-ac65p
  DEVICE_VENDOR := ASUS
  DEVICE_MODEL := RT-AC65P
  IMAGE_SIZE := 51200k
  UBINIZE_OPTS := -E 5
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  KERNEL_SIZE := 4096k
  IMAGES += factory.bin
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
168
169
  IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
	check-size $$$$(IMAGE_SIZE)
170
171
172
173
  DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
endef
TARGET_DEVICES += asus_rt-ac65p

174
175
176
177
178
179
180
181
182
183
define Device/asus_rt-ac85p
  DEVICE_VENDOR := ASUS
  DEVICE_MODEL := RT-AC85P
  IMAGE_SIZE := 51200k
  UBINIZE_OPTS := -E 5
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  KERNEL_SIZE := 4096k
  IMAGES += factory.bin
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
184
185
  IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
	check-size $$$$(IMAGE_SIZE)
186
187
188
189
  DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e wpad-basic uboot-envtools
endef
TARGET_DEVICES += asus_rt-ac85p

190
191
define Device/buffalo_wsr-1166dhp
  IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
192
  IMAGE_SIZE := 15936k
193
194
195
196
197
198
199
200
  DEVICE_VENDOR := Buffalo
  DEVICE_MODEL := WSR-1166DHP
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
  SUPPORTED_DEVICES += wsr-1166
endef
TARGET_DEVICES += buffalo_wsr-1166dhp

define Device/buffalo_wsr-600dhp
201
  IMAGE_SIZE := 16064k
202
203
204
205
206
207
  DEVICE_VENDOR := Buffalo
  DEVICE_MODEL := WSR-600DHP
  DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
  SUPPORTED_DEVICES += wsr-600
endef
TARGET_DEVICES += buffalo_wsr-600dhp
208

209
define Device/dlink_dir-860l-b1
210
  $(Device/seama)
Mathias Kresin's avatar
Mathias Kresin committed
211
  BLOCKSIZE := 64k
212
  SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
213
  KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
214
  IMAGE_SIZE := 16064k
215
216
217
  DEVICE_VENDOR := D-Link
  DEVICE_MODEL := DIR-860L
  DEVICE_VARIANT := B1
218
  DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
219
  SUPPORTED_DEVICES += dir-860l-b1
220
endef
221
TARGET_DEVICES += dlink_dir-860l-b1
222

223
define Device/d-team_newifi-d2
224
  IMAGE_SIZE := 32448k
225
226
  DEVICE_VENDOR := Newifi
  DEVICE_MODEL := D2
227
228
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
229
endef
230
TARGET_DEVICES += d-team_newifi-d2
231

232
define Device/d-team_pbr-m1
233
  IMAGE_SIZE := 16064k
234
235
  DEVICE_VENDOR := PandoraBox
  DEVICE_MODEL := PBR-M1
236
237
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 \
	kmod-sdhci-mt7620 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
238
  SUPPORTED_DEVICES += pbr-m1
239
endef
240
TARGET_DEVICES += d-team_pbr-m1
241

242
243
244
245
246
247
248
249
250
251
252
253
254
define Device/edimax_ra21s
  IMAGE_SIZE := 16064k
  DEVICE_VENDOR := Edimax
  DEVICE_MODEL := RA21S
  DEVICE_ALT0_VENDOR := Edimax
  DEVICE_ALT0_MODEL := Gemini RA21S
  IMAGES += factory.bin
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	elx-header 02020040 8844A2D168B45A2D
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
endef
TARGET_DEVICES += edimax_ra21s

255
256
257
258
259
define Device/edimax_rg21s
  IMAGE_SIZE := 16064k
  DEVICE_VENDOR := Edimax
  DEVICE_MODEL := Gemini AC2600 RG21S
  IMAGES += factory.bin
260
261
262
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	elx-header 02020038 8844A2D168B45A2D
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
263
264
265
endef
TARGET_DEVICES += edimax_rg21s

266
267
define Device/elecom_wrc-1167ghbk2-s
  IMAGE_SIZE := 15488k
268
269
  DEVICE_VENDOR := ELECOM
  DEVICE_MODEL := WRC-1167GHBK2-S
270
  IMAGES += factory.bin
271
272
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	elecom-wrc-factory WRC-1167GHBK2-S 0.00
273
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
274
275
276
endef
TARGET_DEVICES += elecom_wrc-1167ghbk2-s

277
278
define Device/elecom_wrc-1900gst
  IMAGE_SIZE := 11264k
279
280
  DEVICE_VENDOR := ELECOM
  DEVICE_MODEL := WRC-1900GST
281
  IMAGES += factory.bin
282
283
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	elecom-gst-factory WRC-1900GST 0.00
284
285
286
endef
TARGET_DEVICES += elecom_wrc-1900gst

287
288
289
290
291
define Device/elecom_wrc-2533gst
  IMAGE_SIZE := 11264k
  DEVICE_VENDOR := ELECOM
  DEVICE_MODEL := WRC-2533GST
  IMAGES += factory.bin
292
293
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	elecom-gst-factory WRC-2533GST 0.00
294
endef
295
TARGET_DEVICES += elecom_wrc-2533gst
296

297
define Device/firefly_firewrt
298
  IMAGE_SIZE := 16064k
299
300
  DEVICE_VENDOR := Firefly
  DEVICE_MODEL := FireWRT
301
  DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
302
  SUPPORTED_DEVICES += firewrt
303
endef
304
TARGET_DEVICES += firefly_firewrt
305

306
define Device/gehua_ghl-r-001
307
  IMAGE_SIZE := 32448k
308
309
  DEVICE_VENDOR := GeHua
  DEVICE_MODEL := GHL-R-001
310
311
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
312
  DEFAULT := n
313
314
315
endef
TARGET_DEVICES += gehua_ghl-r-001

316
define Device/gnubee_gb-pc1
317
318
  DEVICE_VENDOR := GnuBee
  DEVICE_MODEL := Personal Cloud One
319
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
320
  IMAGE_SIZE := 32448k
321
endef
322
TARGET_DEVICES += gnubee_gb-pc1
323

324
define Device/gnubee_gb-pc2
325
326
  DEVICE_VENDOR := GnuBee
  DEVICE_MODEL := Personal Cloud Two
327
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
328
  IMAGE_SIZE := 32448k
329
endef
330
TARGET_DEVICES += gnubee_gb-pc2
331

332
define Device/hiwifi_hc5962
333
334
335
336
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  KERNEL_SIZE := 2097152
  UBINIZE_OPTS := -E 5
337
  IMAGE_SIZE := 32768k
338
339
  IMAGES += factory.bin
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
340
341
  IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
	check-size $$$$(IMAGE_SIZE)
342
343
  DEVICE_VENDOR := HiWiFi
  DEVICE_MODEL := HC5962
344
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
345
  SUPPORTED_DEVICES += hc5962
346
347
  # Kernel partition too small
  DEFAULT := n
348
endef
349
TARGET_DEVICES += hiwifi_hc5962
350

351
352
353
define Device/iodata_wn-ax1167gr
  IMAGE_SIZE := 15552k
  KERNEL_INITRAMFS := $$(KERNEL) | \
354
	iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
355
356
  DEVICE_VENDOR := I-O DATA
  DEVICE_MODEL := WN-AX1167GR
357
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
358
359
360
endef
TARGET_DEVICES += iodata_wn-ax1167gr

361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
define Device/iodata_wn-ax1167gr2
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  UBINIZE_OPTS := -E 5
  UIMAGE_MAGIC := 0x434f4d42
  KERNEL_SIZE := 4096k
  IMAGE_SIZE := 51200k
  DEVICE_VENDOR := I-O DATA
  DEVICE_MODEL := WN-AX1167GR2
  KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage 3.10(XBC.1)b10 | \
	iodata-mstc-header
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
endef
TARGET_DEVICES += iodata_wn-ax1167gr2

377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
define Device/iodata_wn-dx1167r
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  UBINIZE_OPTS := -E 5
  UIMAGE_MAGIC := 0x434f4d43
  KERNEL_SIZE := 4096k
  IMAGE_SIZE := 51200k
  DEVICE_VENDOR := I-O DATA
  DEVICE_MODEL := WN-DX1167R
  KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage 3.10(XIK.1)b10 | \
	iodata-mstc-header
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
endef
TARGET_DEVICES += iodata_wn-dx1167r

393
define Device/iodata_wn-gx300gr
394
  IMAGE_SIZE := 7616k
395
396
  DEVICE_VENDOR := I-O DATA
  DEVICE_MODEL := WN-GX300GR
397
  DEVICE_PACKAGES := kmod-mt7603 wpad-basic
398
399
400
endef
TARGET_DEVICES += iodata_wn-gx300gr

401
402
403
404
405
define Device/iodata_wnpr2600g
  DEVICE_VENDOR := I-O DATA
  DEVICE_MODEL := WNPR2600G
  IMAGE_SIZE := 13952k
  IMAGES += factory.bin
406
407
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	elx-header 0104003a 8844A2D168B45A2D
408
409
410
411
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
endef
TARGET_DEVICES += iodata_wnpr2600g

412
413
414
415
416
417
418
419
420
define Device/iptime_a6ns-m
  IMAGE_SIZE := 16128k
  UIMAGE_NAME := a6nm
  DEVICE_VENDOR := ipTIME
  DEVICE_MODEL := A6ns-M
  DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
endef
TARGET_DEVICES += iptime_a6ns-m

421
422
423
424
425
426
427
428
429
define Device/iptime_a8004t
  IMAGE_SIZE := 16128k
  UIMAGE_NAME := a8004t
  DEVICE_VENDOR := ipTIME
  DEVICE_MODEL := A8004T
  DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 wpad-basic
endef
TARGET_DEVICES += iptime_a8004t

430
431
432
define Device/jcg_jhr-ac876m
  IMAGE_SIZE := 16064k
  IMAGES += factory.bin
433
434
  IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	jcg-header 89.1
435
436
437
438
439
440
441
  JCG_MAXSIZE := 16064k
  DEVICE_VENDOR := JCG
  DEVICE_MODEL := JHR-AC876M
  DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
endef
TARGET_DEVICES += jcg_jhr-ac876m

442
define Device/lenovo_newifi-d1
443
  IMAGE_SIZE := 32448k
444
445
  DEVICE_VENDOR := Newifi
  DEVICE_MODEL := D1
446
447
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
	kmod-usb-ledtrig-usbport wpad-basic
448
  SUPPORTED_DEVICES += newifi-d1
449
endef
450
TARGET_DEVICES += lenovo_newifi-d1
451

452
define Device/linksys_re6500
453
  IMAGE_SIZE := 7872k
454
455
456
457
  DEVICE_VENDOR := Linksys
  DEVICE_MODEL := RE6500
  DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
  SUPPORTED_DEVICES += re6500
458
endef
459
TARGET_DEVICES += linksys_re6500
460

461
define Device/mediatek_ap-mt7621a-v60
462
  IMAGE_SIZE := 7872k
463
464
465
  DEVICE_VENDOR := Mediatek
  DEVICE_MODEL := AP-MT7621A-V60 EVB
  DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
466
endef
467
TARGET_DEVICES += mediatek_ap-mt7621a-v60
468

469
define Device/mediatek_mt7621-eval-board
470
  BLOCKSIZE := 64k
471
  IMAGE_SIZE := 15104k
472
473
  DEVICE_VENDOR := MediaTek
  DEVICE_MODEL := MT7621 EVB
474
  SUPPORTED_DEVICES += mt7621
475
endef
476
TARGET_DEVICES += mediatek_mt7621-eval-board
477

478
479
480
481
482
483
484
485
define Device/MikroTik
  DEVICE_VENDOR := MikroTik
  BLOCKSIZE := 64k
  IMAGE_SIZE := 16128k
  DEVICE_PACKAGES := kmod-usb3
  LOADER_TYPE := elf
  PLATFORM := mt7621
  KERNEL := $(KERNEL_DTB) | loader-kernel
486
487
488
  IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
	pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata | \
	check-size $$$$(IMAGE_SIZE)
489
490
endef

491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
define Device/mikrotik_rb750gr3
  $(Device/MikroTik)
  DEVICE_MODEL := RouterBOARD RB750G
  DEVICE_VARIANT := r3
  DEVICE_PACKAGES += kmod-gpio-beeper
endef
TARGET_DEVICES += mikrotik_rb750gr3

define Device/mikrotik_rbm11g
  $(Device/MikroTik)
  DEVICE_MODEL := RouterBOARD M11G
endef
TARGET_DEVICES += mikrotik_rbm11g

define Device/mikrotik_rbm33g
  $(Device/MikroTik)
  DEVICE_MODEL := RouterBOARD M33G
endef
TARGET_DEVICES += mikrotik_rbm33g

511
define Device/mqmaker_witi
512
  IMAGE_SIZE := 16064k
513
514
  DEVICE_VENDOR := MQmaker
  DEVICE_MODEL := WiTi
515
516
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt76x2 \
	kmod-sdhci-mt7620 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
517
  SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
518
endef
519
TARGET_DEVICES += mqmaker_witi
520

521
522
523
524
define Device/mtc_wr1201
  IMAGE_SIZE := 16000k
  DEVICE_VENDOR := MTC
  DEVICE_MODEL := Wireless Router WR1201
525
  KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage WR1201_8_128
526
527
  DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
528
endef
529
TARGET_DEVICES += mtc_wr1201
530

David Bauer's avatar
David Bauer committed
531
define Device/netgear_ex6150
532
533
  DEVICE_VENDOR := NETGEAR
  DEVICE_MODEL := EX6150
David Bauer's avatar
David Bauer committed
534
535
536
537
  DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
  NETGEAR_BOARD_ID := U12H318T00_NETGEAR
  IMAGE_SIZE := 14848k
  IMAGES += factory.chk
538
539
  IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
	netgear-chk
David Bauer's avatar
David Bauer committed
540
541
542
endef
TARGET_DEVICES += netgear_ex6150

543
define Device/netgear_sercomm_nand
544
545
546
547
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  KERNEL_SIZE := 4096k
  UBINIZE_OPTS := -E 5
548
  IMAGES += factory.img kernel.bin rootfs.bin
549
550
  IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | \
	append-ubi | pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
551
	zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
552
553
554
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  IMAGE/kernel.bin := append-kernel
  IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
555
  DEVICE_VENDOR := NETGEAR
556
557
558
559
560
561
  DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
endef
DEVICE_VARS += SERCOMM_HWNAME SERCOMM_HWID SERCOMM_HWVER SERCOMM_SWVER

define Device/netgear_r6220
  $(Device/netgear_sercomm_nand)
562
  DEVICE_MODEL := R6220
563
564
565
566
567
568
  SERCOMM_HWNAME := R6220
  SERCOMM_HWID := AYA
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0086
  IMAGE_SIZE := 28672k
  DEVICE_PACKAGES += kmod-mt76x2
569
  SUPPORTED_DEVICES += r6220
570
endef
571
TARGET_DEVICES += netgear_r6220
572

573
574

define Device/netgear_r6260
575
  $(Device/netgear_sercomm_nand)
576
  DEVICE_MODEL := R6260
577
578
579
580
581
582
  SERCOMM_HWNAME := R6260
  SERCOMM_HWID := CHJ
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0052
  IMAGE_SIZE := 40960k
  DEVICE_PACKAGES += kmod-mt7615e
583
584
585
586
endef
TARGET_DEVICES += netgear_r6260

define Device/netgear_r6350
587
  $(Device/netgear_sercomm_nand)
588
  DEVICE_MODEL := R6350
589
590
591
592
593
594
  SERCOMM_HWNAME := R6350
  SERCOMM_HWID := CHJ
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0052
  IMAGE_SIZE := 40960k
  DEVICE_PACKAGES += kmod-mt7615e
595
endef
596
TARGET_DEVICES += netgear_r6350
597

598
599
600
601
602
603
604
605
606
607
608
609
define Device/netgear_r6800
  $(Device/netgear_sercomm_nand)
  DEVICE_MODEL := R6800
  SERCOMM_HWNAME := R6950
  SERCOMM_HWID := BZV
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0062
  IMAGE_SIZE := 40960k
  DEVICE_PACKAGES += kmod-mt7615e
endef
TARGET_DEVICES += netgear_r6800

610
define Device/netgear_r6850
611
  $(Device/netgear_sercomm_nand)
612
  DEVICE_MODEL := R6850
613
614
615
616
617
618
  SERCOMM_HWNAME := R6850
  SERCOMM_HWID := CHJ
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0052
  IMAGE_SIZE := 40960k
  DEVICE_PACKAGES += kmod-mt7615e
619
620
621
endef
TARGET_DEVICES += netgear_r6850

622
623
624
625
626
627
628
define Device/netgear_wndr3700-v5
  BLOCKSIZE := 64k
  IMAGE_SIZE := 15232k
  SERCOMM_HWID := AYB
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x1054
  IMAGES += factory.img
629
630
631
632
633
634
635
  IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
	pad-rootfs
  IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
	check-size $$$$(IMAGE_SIZE)
  IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | \
	pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
	zip WNDR3700v5.bin | sercom-seal
636
637
638
  DEVICE_VENDOR := NETGEAR
  DEVICE_MODEL := WNDR3700
  DEVICE_VARIANT := v5
639
640
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
641
  SUPPORTED_DEVICES += wndr3700v5
642
endef
643
TARGET_DEVICES += netgear_wndr3700-v5
644

645
define Device/netis_wf2881
646
647
648
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  FILESYSTEMS := squashfs
649
  KERNEL_SIZE := 4096k
650
651
  IMAGE_SIZE := 129280k
  UBINIZE_OPTS := -E 5
652
653
  UIMAGE_NAME := WF2881_0.0.00
  KERNEL_INITRAMFS := $(KERNEL_DTB) | netis-tail WF2881 | uImage lzma
654
655
656
  IMAGES += factory.bin
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
657
	check-size $$$$(IMAGE_SIZE)
658
  DEVICE_VENDOR := NETIS
659
  DEVICE_MODEL := WF2881
660
  DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
661
endef
662
TARGET_DEVICES += netis_wf2881
663

664
define Device/phicomm_k2p
665
  IMAGE_SIZE := 15744k
666
667
  DEVICE_VENDOR := Phicomm
  DEVICE_MODEL := K2P
668
669
  DEVICE_ALT0_VENDOR := Phicomm
  DEVICE_ALT0_MODEL := KE 2P
670
  SUPPORTED_DEVICES += k2p
671
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
672
endef
673
TARGET_DEVICES += phicomm_k2p
674

675
define Device/planex_vr500
676
  IMAGE_SIZE := 65216k
677
678
679
680
  DEVICE_VENDOR := Planex
  DEVICE_MODEL := VR500
  DEVICE_PACKAGES := kmod-usb3
  SUPPORTED_DEVICES += vr500
681
endef
682
TARGET_DEVICES += planex_vr500
683

684
define Device/samknows_whitebox-v8
685
  IMAGE_SIZE := 16064k
686
687
  DEVICE_VENDOR := SamKnows
  DEVICE_MODEL := Whitebox 8
688
689
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
690
  SUPPORTED_DEVICES += sk-wb8
691
endef
692
TARGET_DEVICES += samknows_whitebox-v8
693

694
define Device/storylink_sap-g3200u3
695
  IMAGE_SIZE := 7872k
696
697
698
699
700
701
702
  DEVICE_VENDOR := STORYLiNK
  DEVICE_MODEL := SAP-G3200U3
  DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
  SUPPORTED_DEVICES += sap-g3200u3
endef
TARGET_DEVICES += storylink_sap-g3200u3

703
704
define Device/telco-electronics_x1
  IMAGE_SIZE := 16064k
705
706
  DEVICE_VENDOR := Telco Electronics
  DEVICE_MODEL := X1
707
708
709
710
  DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
endef
TARGET_DEVICES += telco-electronics_x1

711
define Device/thunder_timecloud
712
  IMAGE_SIZE := 16064k
713
714
  DEVICE_VENDOR := Thunder
  DEVICE_MODEL := Timecloud
715
  DEVICE_PACKAGES := kmod-usb3
716
  SUPPORTED_DEVICES += timecloud
717
endef
718
TARGET_DEVICES += thunder_timecloud
719

720
721
722
723
724
725
726
727
728
define Device/totolink_a7000r
  IMAGE_SIZE := 16064k
  UIMAGE_NAME := C8340R1C-9999
  DEVICE_VENDOR := TOTOLINK
  DEVICE_MODEL := A7000R
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
endef
TARGET_DEVICES += totolink_a7000r

729
730
731
732
733
734
735
736
define Device/adslr_g7
  IMAGE_SIZE := 16064k
  DEVICE_VENDOR := ADSLR
  DEVICE_MODEL := G7
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
endef
TARGET_DEVICES += adslr_g7

737
738
739
740
741
742
743
define Device/tplink_re350-v1
  $(Device/tplink-safeloader)
  DEVICE_MODEL := RE350
  DEVICE_VARIANT := v1
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
  TPLINK_BOARD_ID := RE350-V1
  IMAGE_SIZE := 6016k
744
745
746
747
  SUPPORTED_DEVICES += re350-v1
endef
TARGET_DEVICES += tplink_re350-v1

748
749
750
751
752
753
754
755
756
757
define Device/tplink_re650-v1
  $(Device/tplink-safeloader)
  DEVICE_MODEL := RE650
  DEVICE_VARIANT := v1
  DEVICE_PACKAGES := kmod-mt7615e wpad-basic
  TPLINK_BOARD_ID := RE650-V1
  IMAGE_SIZE := 14208k
endef
TARGET_DEVICES += tplink_re650-v1

758
define Device/ubiquiti_edgerouterx
759
  IMAGE_SIZE := 256768k
760
761
  FILESYSTEMS := squashfs
  KERNEL_SIZE := 3145728
762
763
  KERNEL_INITRAMFS := $$(KERNEL) | \
	ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
764
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
765
766
  DEVICE_VENDOR := Ubiquiti
  DEVICE_MODEL := EdgeRouter X
767
  SUPPORTED_DEVICES += ubnt-erx
768
endef
769
TARGET_DEVICES += ubiquiti_edgerouterx
770

771
772
define Device/ubiquiti_edgerouterx-sfp
  $(Device/ubiquiti_edgerouterx)
773
774
  DEVICE_VENDOR := Ubiquiti
  DEVICE_MODEL := EdgeRouter X-SFP
775
  DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-i2c-gpio-custom
776
  SUPPORTED_DEVICES += ubnt-erx-sfp
777
endef
778
TARGET_DEVICES += ubiquiti_edgerouterx-sfp
779

780
define Device/unielec_u7621-06-16m
781
  IMAGE_SIZE := 16064k
782
783
  DEVICE_VENDOR := UniElec
  DEVICE_MODEL := U7621-06
784
  DEVICE_VARIANT := 16M
785
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
786
  SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
787
endef
788
TARGET_DEVICES += unielec_u7621-06-16m
789

790
define Device/unielec_u7621-06-64m
791
  IMAGE_SIZE := 65216k
792
793
  DEVICE_VENDOR := UniElec
  DEVICE_MODEL := U7621-06
794
  DEVICE_VARIANT := 64M
795
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
796
  SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
797
endef
798
TARGET_DEVICES += unielec_u7621-06-64m
799

800
define Device/wevo_11acnas
801
  IMAGE_SIZE := 16064k
802
  UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
803
804
  DEVICE_VENDOR := WeVO
  DEVICE_MODEL := 11AC NAS Router
805
806
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
807
  SUPPORTED_DEVICES += 11acnas
808
endef
809
TARGET_DEVICES += wevo_11acnas
810

811
define Device/wevo_w2914ns-v2
812
  IMAGE_SIZE := 16064k
813
  UIMAGE_NAME := W2914NS-V2(0.0.0)
814
815
816
  DEVICE_VENDOR := WeVO
  DEVICE_MODEL := W2914NS
  DEVICE_VARIANT := v2
817
818
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
819
  SUPPORTED_DEVICES += w2914nsv2
820
endef
821
TARGET_DEVICES += wevo_w2914ns-v2
822

823
define Device/xiaomi_mir3g
824
  BLOCKSIZE := 128k
825
  PAGESIZE := 2048
826
  KERNEL_SIZE := 4096k
827
  IMAGE_SIZE := 124416k
828
  UBINIZE_OPTS := -E 5
829
830
831
832
833
834
835
836
  IMAGES += kernel1.bin rootfs0.bin
  IMAGE/kernel1.bin := append-kernel
  IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  DEVICE_VENDOR := Xiaomi
  DEVICE_MODEL := Mi Router 3G
  SUPPORTED_DEVICES += R3G
  SUPPORTED_DEVICES += mir3g
837
838
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
839
endef
840
TARGET_DEVICES += xiaomi_mir3g
841

842
843
844
845
846
847
848
849
850
851
852
853
define Device/xiaomi_mir3g-v2
  IMAGE_SIZE := 14848k
  DEVICE_VENDOR := Xiaomi
  DEVICE_MODEL := Mi Router 3G
  DEVICE_VARIANT := v2
  DEVICE_ALT0_VENDOR := Xiaomi
  DEVICE_ALT0_MODEL := Mi Router 4A
  DEVICE_ALT0_VARIANT := Gigabit Edition
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
endef
TARGET_DEVICES += xiaomi_mir3g-v2

854
855
856
857
858
define Device/xiaomi_mir3p
  BLOCKSIZE := 128k
  PAGESIZE := 2048
  KERNEL_SIZE:= 4096k
  UBINIZE_OPTS := -E 5
859
  IMAGE_SIZE := 255488k
860
861
862
863
  DEVICE_VENDOR := Xiaomi
  DEVICE_MODEL := Mi Router 3 Pro
  IMAGES += factory.bin
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
864
865
866
867
  IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
	check-size $$$$(IMAGE_SIZE)
  DEVICE_PACKAGES := kmod-mt7615e kmod-usb3 kmod-usb-ledtrig-usbport \
	wpad-basic uboot-envtools
868
endef
869
TARGET_DEVICES += xiaomi_mir3p
870

871
872
873
874
875
876
877
878
define Device/xiaoyu_xy-c5
  IMAGE_SIZE := 32448k
  DEVICE_VENDOR := XiaoYu
  DEVICE_MODEL := XY-C5
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3
endef
TARGET_DEVICES += xiaoyu_xy-c5

879
define Device/xzwifi_creativebox-v1
880
  IMAGE_SIZE := 32448k
881
882
  DEVICE_VENDOR := CreativeBox
  DEVICE_MODEL := v1
883
884
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 \
	kmod-sdhci-mt7620 kmod-usb3
885
endef
886
TARGET_DEVICES += xzwifi_creativebox-v1
887

888
889
define Device/youhua_wr1200js
  IMAGE_SIZE := 16064k
890
891
  DEVICE_VENDOR := YouHua
  DEVICE_MODEL := WR1200JS
892
893
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
894
895
896
endef
TARGET_DEVICES += youhua_wr1200js

Zhao Yu's avatar
Zhao Yu committed
897
define Device/youku_yk-l2
898
  IMAGE_SIZE := 16064k
899
900
  DEVICE_VENDOR := Youku
  DEVICE_MODEL := YK-L2
901
902
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
Zhao Yu's avatar
Zhao Yu committed
903
904
905
endef
TARGET_DEVICES += youku_yk-l2

906
define Device/zbtlink_zbt-we1326
907
  IMAGE_SIZE := 16064k
908
  DEVICE_VENDOR := Zbtlink
909
  DEVICE_MODEL := ZBT-WE1326
910
911
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
	wpad-basic
912
  SUPPORTED_DEVICES += zbt-we1326
913
endef
914
TARGET_DEVICES += zbtlink_zbt-we1326
915

916
define Device/zbtlink_zbt-we3526
917
  IMAGE_SIZE := 16064k
918
  DEVICE_VENDOR := Zbtlink
919
  DEVICE_MODEL := ZBT-WE3526
920
921
  DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
922
endef
923
TARGET_DEVICES += zbtlink_zbt-we3526
924

925
define Device/zbtlink_zbt-wg2626
926
  IMAGE_SIZE := 16064k
927
  DEVICE_VENDOR := Zbtlink
928
  DEVICE_MODEL := ZBT-WG2626
929
930
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 \
	kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
931
  SUPPORTED_DEVICES += zbt-wg2626
932
endef
933
TARGET_DEVICES += zbtlink_zbt-wg2626
934

935
define Device/zbtlink_zbt-wg3526-16m
936
  IMAGE_SIZE := 16064k
937
  DEVICE_VENDOR := Zbtlink
938
939
  DEVICE_MODEL := ZBT-WG3526
  DEVICE_VARIANT := 16M
940
941
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 \
	kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
942
  SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
943
endef
944
TARGET_DEVICES += zbtlink_zbt-wg3526-16m
945

946
define Device/zbtlink_zbt-wg3526-32m
947
  IMAGE_SIZE := 32448k
948
  DEVICE_VENDOR := Zbtlink
949
950
  DEVICE_MODEL := ZBT-WG3526
  DEVICE_VARIANT := 32M
951
952
  DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 \
	kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
953
  SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
954
endef
955
TARGET_DEVICES += zbtlink_zbt-wg3526-32m
956
957
958
959
960

define Device/zio_freezio
  IMAGE_SIZE := 16064k
  DEVICE_VENDOR := ZIO
  DEVICE_MODEL := FREEZIO
961
962
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport wpad-basic
963
964
endef
TARGET_DEVICES += zio_freezio