ramips: add support for Tama W06
[openwrt/openwrt.git] / target / linux / ramips / image / mt76x8.mk
1 #
2 # MT76x8 Profiles
3 #
4
5 define Device/tplink
6 TPLINK_FLASHLAYOUT :=
7 TPLINK_HWID :=
8 TPLINK_HWREV :=
9 TPLINK_HWREVADD :=
10 TPLINK_HVERSION :=
11 KERNEL := $(KERNEL_DTB)
12 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
13 IMAGES += tftp-recovery.bin
14 IMAGE/factory.bin := tplink-v2-image -e
15 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
16 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
17 check-size $$$$(IMAGE_SIZE)
18 endef
19 DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
20
21
22 define Device/tama_w06
23 DTS := W06
24 IMAGE_SIZE := 15040k
25 DEVICE_TITLE := Tama W06
26 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
27 endef
28 TARGET_DEVICES += tama_w06
29
30 define Device/duzun-dm06
31 DTS := DUZUN-DM06
32 DEVICE_TITLE := DuZun DM06
33 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
34 endef
35 TARGET_DEVICES += duzun-dm06
36
37 define Device/gl-mt300n-v2
38 DTS := GL-MT300N-V2
39 IMAGE_SIZE := 16064k
40 DEVICE_TITLE := GL-iNet GL-MT300N-V2
41 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
42 endef
43 TARGET_DEVICES += gl-mt300n-v2
44
45 define Device/hc5661a
46 DTS := HC5661A
47 IMAGE_SIZE := $(ralink_default_fw_size_16M)
48 DEVICE_TITLE := HiWiFi HC5661A
49 endef
50 TARGET_DEVICES += hc5661a
51
52 define Device/LinkIt7688
53 DTS := LINKIT7688
54 IMAGE_SIZE := $(ralink_default_fw_size_32M)
55 SUPPORTED_DEVICES := linkits7688 linkits7688d
56 DEVICE_TITLE := MediaTek LinkIt Smart 7688
57 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
58 endef
59 TARGET_DEVICES += LinkIt7688
60
61 define Device/mac1200r-v2
62 DTS := MAC1200RV2
63 DEVICE_TITLE := Mercury MAC1200R v2.0
64 SUPPORTED_DEVICES := mac1200rv2
65 endef
66 TARGET_DEVICES += mac1200r-v2
67
68 define Device/miwifi-nano
69 DTS := MIWIFI-NANO
70 IMAGE_SIZE := $(ralink_default_fw_size_16M)
71 DEVICE_TITLE := Xiaomi MiWiFi Nano
72 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
73 endef
74 TARGET_DEVICES += miwifi-nano
75
76 define Device/mt7628
77 DTS := MT7628
78 BLOCKSIZE := 64k
79 IMAGE_SIZE := $(ralink_default_fw_size_4M)
80 DEVICE_TITLE := MediaTek MT7628 EVB
81 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
82 endef
83
84 define Device/omega2
85 DTS := OMEGA2
86 IMAGE_SIZE := $(ralink_default_fw_size_16M)
87 DEVICE_TITLE := Onion Omega2
88 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
89 endef
90 TARGET_DEVICES += omega2
91
92 define Device/omega2p
93 DTS := OMEGA2P
94 IMAGE_SIZE := $(ralink_default_fw_size_32M)
95 DEVICE_TITLE := Onion Omega2+
96 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
97 endef
98 TARGET_DEVICES += omega2p
99
100 define Device/pbr-d1
101 DTS := PBR-D1
102 IMAGE_SIZE := $(ralink_default_fw_size_16M)
103 DEVICE_TITLE := PBR-D1
104 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
105 endef
106 TARGET_DEVICES += pbr-d1
107
108 define Device/tl-wr840n-v4
109 $(Device/tplink)
110 DTS := TL-WR840NV4
111 IMAGE_SIZE := 7808k
112 DEVICE_TITLE := TP-Link TL-WR840N v4
113 TPLINK_FLASHLAYOUT := 8Mmtk
114 TPLINK_HWID := 0x08400004
115 TPLINK_HWREV := 0x1
116 TPLINK_HWREVADD := 0x4
117 TPLINK_HVERSION := 3
118 endef
119 TARGET_DEVICES += tl-wr840n-v4
120
121 define Device/tl-wr840n-v5
122 DTS := TL-WR840NV5
123 IMAGE_SIZE := 3904k
124 DEVICE_TITLE := TP-Link TL-WR840N v5
125 TPLINK_FLASHLAYOUT := 4Mmtk
126 TPLINK_HWID := 0x08400005
127 TPLINK_HWREV := 0x1
128 TPLINK_HWREVADD := 0x5
129 TPLINK_HVERSION := 3
130 KERNEL := $(KERNEL_DTB)
131 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
132 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
133 check-size $$$$(IMAGE_SIZE)
134 endef
135 TARGET_DEVICES += tl-wr840n-v5
136
137 define Device/tl-wr841n-v13
138 $(Device/tplink)
139 DTS := TL-WR841NV13
140 IMAGE_SIZE := 7808k
141 DEVICE_TITLE := TP-Link TL-WR841N v13
142 TPLINK_FLASHLAYOUT := 8Mmtk
143 TPLINK_HWID := 0x08410013
144 TPLINK_HWREV := 0x268
145 TPLINK_HWREVADD := 0x13
146 TPLINK_HVERSION := 3
147 endef
148 TARGET_DEVICES += tl-wr841n-v13
149
150 define Device/tplink_c20-v4
151 $(Device/tplink)
152 DTS := ArcherC20v4
153 IMAGE_SIZE := 7808k
154 DEVICE_TITLE := TP-Link ArcherC20 v4
155 TPLINK_FLASHLAYOUT := 8Mmtk
156 TPLINK_HWID := 0xc200004
157 TPLINK_HWREV := 0x1
158 TPLINK_HWREVADD := 0x4
159 TPLINK_HVERSION := 3
160 endef
161 TARGET_DEVICES += tplink_c20-v4
162
163 define Device/tplink_c50-v3
164 $(Device/tplink)
165 DTS := ArcherC50V3
166 IMAGE_SIZE := 7808k
167 DEVICE_TITLE := TP-Link ArcherC50 v3
168 TPLINK_FLASHLAYOUT := 8Mmtk
169 TPLINK_HWID := 0x001D9BA4
170 TPLINK_HWREV := 0x79
171 TPLINK_HWREVADD := 0x1
172 TPLINK_HVERSION := 3
173 endef
174 TARGET_DEVICES += tplink_c50-v3
175
176 define Device/tplink_tl-mr3420-v5
177 $(Device/tplink)
178 DTS := TL-MR3420V5
179 IMAGE_SIZE := 7808k
180 DEVICE_TITLE := TP-Link TL-MR3420 v5
181 TPLINK_FLASHLAYOUT := 8Mmtk
182 TPLINK_HWID := 0x34200005
183 TPLINK_HWREV := 0x5
184 TPLINK_HWREVADD := 0x5
185 TPLINK_HVERSION := 3
186 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
187 endef
188 TARGET_DEVICES += tplink_tl-mr3420-v5
189
190 define Device/u7628-01-128M-16M
191 DTS := U7628-01-128M-16M
192 IMAGE_SIZE := 16064k
193 DEVICE_TITLE := UniElec U7628-01 (128M RAM/16M flash)
194 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
195 endef
196 TARGET_DEVICES += u7628-01-128M-16M
197
198 define Device/vocore2
199 DTS := VOCORE2
200 IMAGE_SIZE := $(ralink_default_fw_size_16M)
201 DEVICE_TITLE := VoCore VoCore2
202 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
203 kmod-sdhci-mt7620
204 endef
205 TARGET_DEVICES += vocore2
206
207 define Device/vocore2lite
208 DTS := VOCORE2LITE
209 IMAGE_SIZE := $(ralink_default_fw_size_16M)
210 DEVICE_TITLE := VoCore VoCore2-Lite
211 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
212 kmod-sdhci-mt7620
213 endef
214 TARGET_DEVICES += vocore2lite
215
216 define Device/wcr-1166ds
217 DTS := WCR-1166DS
218 BUFFALO_TAG_PLATFORM := MTK
219 BUFFALO_TAG_VERSION := 9.99
220 BUFFALO_TAG_MINOR := 9.99
221 IMAGES += factory.bin
222 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
223 IMAGE/factory.bin := \
224 trx -M 0x746f435c | pad-rootfs | append-metadata | \
225 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
226 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
227 buffalo-dhp-image
228 DEVICE_TITLE := Buffalo WCR-1166DS
229 endef
230 TARGET_DEVICES += wcr-1166ds
231
232 define Device/wl-wn575a3
233 DTS := WL-WN575A3
234 IMAGE_SIZE := $(ralink_default_fw_size_8M)
235 DEVICE_TITLE := Wavlink WL-WN575A3
236 endef
237 TARGET_DEVICES += wl-wn575a3
238
239 define Device/widora_neo-16m
240 DTS := WIDORA-NEO-16M
241 IMAGE_SIZE := $(ralink_default_fw_size_16M)
242 DEVICE_TITLE := Widora-NEO (16M)
243 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
244 SUPPORTED_DEVICES += widora-neo
245 endef
246 TARGET_DEVICES += widora_neo-16m
247
248 define Device/widora_neo-32m
249 DTS := WIDORA-NEO-32M
250 IMAGE_SIZE := $(ralink_default_fw_size_32M)
251 DEVICE_TITLE := Widora-NEO (32M)
252 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
253 endef
254 TARGET_DEVICES += widora_neo-32m
255
256 define Device/wrtnode2p
257 DTS := WRTNODE2P
258 IMAGE_SIZE := $(ralink_default_fw_size_16M)
259 DEVICE_TITLE := WRTnode 2P
260 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
261 endef
262 TARGET_DEVICES += wrtnode2p
263
264 define Device/wrtnode2r
265 DTS := WRTNODE2R
266 IMAGE_SIZE := $(ralink_default_fw_size_16M)
267 DEVICE_TITLE := WRTnode 2R
268 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
269 endef
270 TARGET_DEVICES += wrtnode2r
271
272 define Device/zbtlink_zbt-we1226
273 DTS := ZBT-WE1226
274 IMAGE_SIZE := $(ralink_default_fw_size_8M)
275 DEVICE_TITLE := ZBTlink ZBT-WE1226
276 endef
277 TARGET_DEVICES += zbtlink_zbt-we1226