56da7b104908e5f764e93ea5805c3a27e03f89d0
[openwrt/openwrt.git] / target / linux / ramips / image / mt76x8.mk
1 #
2 # MT76x8 Profiles
3 #
4
5 DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
6
7 define Device/duzun-dm06
8 DTS := DUZUN-DM06
9 DEVICE_TITLE := DuZun DM06
10 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
11 endef
12 TARGET_DEVICES += duzun-dm06
13
14 define Device/gl-mt300n-v2
15 DTS := GL-MT300N-V2
16 IMAGE_SIZE := 16064k
17 DEVICE_TITLE := GL-iNet GL-MT300N-V2
18 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
19 endef
20 TARGET_DEVICES += gl-mt300n-v2
21
22 define Device/hc5661a
23 DTS := HC5661A
24 IMAGE_SIZE := $(ralink_default_fw_size_16M)
25 DEVICE_TITLE := HiWiFi HC5661A
26 endef
27 TARGET_DEVICES += hc5661a
28
29 define Device/LinkIt7688
30 DTS := LINKIT7688
31 IMAGE_SIZE := $(ralink_default_fw_size_32M)
32 SUPPORTED_DEVICES := linkits7688 linkits7688d
33 DEVICE_TITLE := MediaTek LinkIt Smart 7688
34 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
35 endef
36 TARGET_DEVICES += LinkIt7688
37
38 define Device/mac1200r-v2
39 DTS := MAC1200RV2
40 DEVICE_TITLE := Mercury MAC1200R v2.0
41 SUPPORTED_DEVICES := mac1200rv2
42 endef
43 TARGET_DEVICES += mac1200r-v2
44
45 define Device/miwifi-nano
46 DTS := MIWIFI-NANO
47 IMAGE_SIZE := $(ralink_default_fw_size_16M)
48 DEVICE_TITLE := Xiaomi MiWiFi Nano
49 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
50 endef
51 TARGET_DEVICES += miwifi-nano
52
53 define Device/mt7628
54 DTS := MT7628
55 BLOCKSIZE := 64k
56 IMAGE_SIZE := $(ralink_default_fw_size_4M)
57 DEVICE_TITLE := MediaTek MT7628 EVB
58 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
59 endef
60
61 define Device/omega2
62 DTS := OMEGA2
63 IMAGE_SIZE := $(ralink_default_fw_size_16M)
64 DEVICE_TITLE := Onion Omega2
65 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
66 endef
67
68 define Device/omega2p
69 DTS := OMEGA2P
70 IMAGE_SIZE := $(ralink_default_fw_size_32M)
71 DEVICE_TITLE := Onion Omega2+
72 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
73 endef
74 TARGET_DEVICES += omega2 omega2p
75
76 define Device/pbr-d1
77 DTS := PBR-D1
78 IMAGE_SIZE := $(ralink_default_fw_size_16M)
79 DEVICE_TITLE := PBR-D1
80 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
81 endef
82 TARGET_DEVICES += pbr-d1
83
84 define Device/tl-wr840n-v4
85 DTS := TL-WR840NV4
86 IMAGE_SIZE := 7808k
87 DEVICE_TITLE := TP-Link TL-WR840N v4
88 TPLINK_FLASHLAYOUT := 8Mmtk
89 TPLINK_HWID := 0x08400004
90 TPLINK_HWREV := 0x1
91 TPLINK_HWREVADD := 0x4
92 TPLINK_HVERSION := 3
93 KERNEL := $(KERNEL_DTB)
94 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
95 IMAGES += tftp-recovery.bin
96 IMAGE/factory.bin := tplink-v2-image -e
97 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
98 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
99 check-size $$$$(IMAGE_SIZE)
100 endef
101
102 define Device/tl-wr841n-v13
103 $(Device/tl-wr840n-v4)
104 DTS := TL-WR841NV13
105 DEVICE_TITLE := TP-Link TL-WR841N v13
106 TPLINK_HWID := 0x08410013
107 TPLINK_HWREV := 0x268
108 TPLINK_HWREVADD := 0x13
109 endef
110 TARGET_DEVICES += tl-wr840n-v4 tl-wr841n-v13
111
112 define Device/vocore2
113 DTS := VOCORE2
114 IMAGE_SIZE := $(ralink_default_fw_size_16M)
115 DEVICE_TITLE := VoCore VoCore2
116 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
117 kmod-sdhci-mt7620
118 endef
119
120 define Device/vocore2lite
121 DTS := VOCORE2LITE
122 IMAGE_SIZE := $(ralink_default_fw_size_16M)
123 DEVICE_TITLE := VoCore VoCore2-Lite
124 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
125 kmod-sdhci-mt7620
126 endef
127 TARGET_DEVICES += vocore2 vocore2lite
128
129 define Device/wcr-1166ds
130 DTS := WCR-1166DS
131 BUFFALO_TAG_PLATFORM := MTK
132 BUFFALO_TAG_VERSION := 9.99
133 BUFFALO_TAG_MINOR := 9.99
134 IMAGES += factory.bin
135 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
136 IMAGE/factory.bin := \
137 trx -M 0x746f435c | pad-rootfs | append-metadata | \
138 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
139 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
140 buffalo-dhp-image
141 DEVICE_TITLE := Buffalo WCR-1166DS
142 endef
143 TARGET_DEVICES += wcr-1166ds
144
145 define Device/wl-wn575a3
146 DTS := WL-WN575A3
147 IMAGE_SIZE := $(ralink_default_fw_size_8M)
148 DEVICE_TITLE := Wavlink WL-WN575A3
149 endef
150 TARGET_DEVICES += wl-wn575a3
151
152 define Device/widora-neo
153 DTS := WIDORA-NEO
154 IMAGE_SIZE := $(ralink_default_fw_size_16M)
155 DEVICE_TITLE := Widora-NEO
156 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
157 endef
158 TARGET_DEVICES += widora-neo
159
160 define Device/wrtnode2p
161 DTS := WRTNODE2P
162 IMAGE_SIZE := $(ralink_default_fw_size_16M)
163 DEVICE_TITLE := WRTnode 2P
164 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
165 endef
166
167 define Device/wrtnode2r
168 DTS := WRTNODE2R
169 IMAGE_SIZE := $(ralink_default_fw_size_16M)
170 DEVICE_TITLE := WRTnode 2R
171 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
172 endef
173 TARGET_DEVICES += wrtnode2p wrtnode2r