78293535f679383c1de79b2be3826bd370603d62
[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 TARGET_DEVICES += omega2
68
69 define Device/omega2p
70 DTS := OMEGA2P
71 IMAGE_SIZE := $(ralink_default_fw_size_32M)
72 DEVICE_TITLE := Onion Omega2+
73 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
74 endef
75 TARGET_DEVICES += omega2p
76
77 define Device/pbr-d1
78 DTS := PBR-D1
79 IMAGE_SIZE := $(ralink_default_fw_size_16M)
80 DEVICE_TITLE := PBR-D1
81 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
82 endef
83 TARGET_DEVICES += pbr-d1
84
85 define Device/tl-wr840n-v4
86 DTS := TL-WR840NV4
87 IMAGE_SIZE := 7808k
88 DEVICE_TITLE := TP-Link TL-WR840N v4
89 TPLINK_FLASHLAYOUT := 8Mmtk
90 TPLINK_HWID := 0x08400004
91 TPLINK_HWREV := 0x1
92 TPLINK_HWREVADD := 0x4
93 TPLINK_HVERSION := 3
94 KERNEL := $(KERNEL_DTB)
95 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
96 IMAGES += tftp-recovery.bin
97 IMAGE/factory.bin := tplink-v2-image -e
98 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
99 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
100 check-size $$$$(IMAGE_SIZE)
101 endef
102 TARGET_DEVICES += tl-wr840n-v4
103
104 define Device/tl-wr840n-v5
105 DTS := TL-WR840NV5
106 IMAGE_SIZE := 3840k
107 DEVICE_TITLE := TP-Link TL-WR840N v5
108 TPLINK_FLASHLAYOUT := 4Mmtk
109 TPLINK_HWID := 0x08400005
110 TPLINK_HWREV := 0x1
111 TPLINK_HWREVADD := 0x5
112 TPLINK_HVERSION := 3
113 KERNEL := $(KERNEL_DTB)
114 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
115 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
116 check-size $$$$(IMAGE_SIZE)
117 endef
118 TARGET_DEVICES += tl-wr840n-v5
119
120 define Device/tl-wr841n-v13
121 $(Device/tl-wr840n-v4)
122 DTS := TL-WR841NV13
123 DEVICE_TITLE := TP-Link TL-WR841N v13
124 TPLINK_HWID := 0x08410013
125 TPLINK_HWREV := 0x268
126 TPLINK_HWREVADD := 0x13
127 endef
128 TARGET_DEVICES += tl-wr841n-v13
129
130 define Device/u7628-01-128M-16M
131 DTS := U7628-01-128M-16M
132 IMAGE_SIZE := 16064k
133 DEVICE_TITLE := UniElec U7628-01 (128M RAM/16M flash)
134 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
135 endef
136 TARGET_DEVICES += u7628-01-128M-16M
137
138 define Device/vocore2
139 DTS := VOCORE2
140 IMAGE_SIZE := $(ralink_default_fw_size_16M)
141 DEVICE_TITLE := VoCore VoCore2
142 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
143 kmod-sdhci-mt7620
144 endef
145 TARGET_DEVICES += vocore2
146
147 define Device/vocore2lite
148 DTS := VOCORE2LITE
149 IMAGE_SIZE := $(ralink_default_fw_size_16M)
150 DEVICE_TITLE := VoCore VoCore2-Lite
151 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
152 kmod-sdhci-mt7620
153 endef
154 TARGET_DEVICES += vocore2lite
155
156 define Device/wcr-1166ds
157 DTS := WCR-1166DS
158 BUFFALO_TAG_PLATFORM := MTK
159 BUFFALO_TAG_VERSION := 9.99
160 BUFFALO_TAG_MINOR := 9.99
161 IMAGES += factory.bin
162 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
163 IMAGE/factory.bin := \
164 trx -M 0x746f435c | pad-rootfs | append-metadata | \
165 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
166 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
167 buffalo-dhp-image
168 DEVICE_TITLE := Buffalo WCR-1166DS
169 endef
170 TARGET_DEVICES += wcr-1166ds
171
172 define Device/wl-wn575a3
173 DTS := WL-WN575A3
174 IMAGE_SIZE := $(ralink_default_fw_size_8M)
175 DEVICE_TITLE := Wavlink WL-WN575A3
176 endef
177 TARGET_DEVICES += wl-wn575a3
178
179 define Device/widora-neo
180 DTS := WIDORA-NEO
181 IMAGE_SIZE := $(ralink_default_fw_size_16M)
182 DEVICE_TITLE := Widora-NEO
183 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
184 endef
185 TARGET_DEVICES += widora-neo
186
187 define Device/wrtnode2p
188 DTS := WRTNODE2P
189 IMAGE_SIZE := $(ralink_default_fw_size_16M)
190 DEVICE_TITLE := WRTnode 2P
191 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
192 endef
193 TARGET_DEVICES += wrtnode2p
194
195 define Device/wrtnode2r
196 DTS := WRTNODE2R
197 IMAGE_SIZE := $(ralink_default_fw_size_16M)
198 DEVICE_TITLE := WRTnode 2R
199 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
200 endef
201 TARGET_DEVICES += wrtnode2r