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