blob: 689f1f0b084614452843030b2d4ebabb23e9f13e [file] [log] [blame]
developerade6d682021-10-27 17:00:32 +08001KERNEL_LOADADDR := 0x48080000
developerfd40db22021-04-29 10:08:25 +08002
developer765135b2021-12-16 14:14:05 +08003define Device/mt7986a-ax6000-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +08004 DEVICE_VENDOR := MediaTek
developer765135b2021-12-16 14:14:05 +08005 DEVICE_MODEL := mt7986a-ax6000-spim-nor-rfb
6 DEVICE_DTS := mt7986a-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +08007 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
8endef
developer765135b2021-12-16 14:14:05 +08009TARGET_DEVICES += mt7986a-ax6000-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +080010
developer565bacb2021-09-28 21:26:32 +080011define Device/mt7986a-ax6000-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +080012 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +080013 DEVICE_MODEL := mt7986a-ax6000-spim-nand-rfb (SPI-NAND,UBI)
14 DEVICE_DTS := mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +080015 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +080016 SUPPORTED_DEVICES := mediatek,mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +080017 UBINIZE_OPTS := -E 5
18 BLOCKSIZE := 128k
19 PAGESIZE := 2048
20 IMAGE_SIZE := 65536k
21 KERNEL_IN_UBI := 1
22 IMAGES += factory.bin
23 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
24 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
25endef
developer565bacb2021-09-28 21:26:32 +080026TARGET_DEVICES += mt7986a-ax6000-spim-nand-rfb
27
developerbc023af2021-11-01 11:27:36 +080028define Device/mt7986a-ax8400-spim-nand-rfb
29 DEVICE_VENDOR := MediaTek
30 DEVICE_MODEL := mt7986a-ax8400-spim-nand-rfb (SPI-NAND,UBI)
31 DEVICE_DTS := mt7986a-spim-nand-rfb
32 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
33 SUPPORTED_DEVICES := mediatek,mt7986a-spim-nand-rfb
34 UBINIZE_OPTS := -E 5
35 BLOCKSIZE := 128k
36 PAGESIZE := 2048
37 IMAGE_SIZE := 65536k
38 KERNEL_IN_UBI := 1
39 IMAGES += factory.bin
40 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
41 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
42endef
43TARGET_DEVICES += mt7986a-ax8400-spim-nand-rfb
44
developer565bacb2021-09-28 21:26:32 +080045define Device/mt7986a-ax6000-snfi-nand-rfb
46 DEVICE_VENDOR := MediaTek
47 DEVICE_MODEL := mt7986a-ax6000-snfi-nand-rfb (SPI-NAND,UBI)
48 DEVICE_DTS := mt7986a-snfi-nand-rfb
49 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
50 SUPPORTED_DEVICES := mediatek,mt7986a-snfi-nand-rfb
51 UBINIZE_OPTS := -E 5
52 BLOCKSIZE := 128k
53 PAGESIZE := 2048
54 IMAGE_SIZE := 65536k
55 KERNEL_IN_UBI := 1
56 IMAGES += factory.bin
57 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
58 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
59endef
60TARGET_DEVICES += mt7986a-ax6000-snfi-nand-rfb
developerfd40db22021-04-29 10:08:25 +080061
developer19e8ed42021-06-10 19:15:03 +080062define Device/mt7986a-ax6000-emmc-rfb
63 DEVICE_VENDOR := MediaTek
64 DEVICE_MODEL := mt7986a-ax6000-emmc-rfb
65 DEVICE_DTS := mt7986a-emmc-rfb
66 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer8262b0d2021-11-12 09:02:17 +080067 SUPPORTED_DEVICES := mediatek,mt7986a-emmc-rfb
68 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
69 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
70 kmod-nls-iso8859-1
71 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developer19e8ed42021-06-10 19:15:03 +080072endef
73TARGET_DEVICES += mt7986a-ax6000-emmc-rfb
74
developer765135b2021-12-16 14:14:05 +080075define Device/mt7986a-ax6000-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +080076 DEVICE_VENDOR := MediaTek
developer765135b2021-12-16 14:14:05 +080077 DEVICE_MODEL := mt7986a-ax6000-2500wan-spim-nor-rfb
78 DEVICE_DTS := mt7986a-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +080079 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
80endef
developer765135b2021-12-16 14:14:05 +080081TARGET_DEVICES += mt7986a-ax6000-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +080082
developer565bacb2021-09-28 21:26:32 +080083define Device/mt7986a-ax6000-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080084 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +080085 DEVICE_MODEL := mt7986a-ax6000-2500wan-spim-nand-rfb (SPI-NAND,UBI)
86 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080087 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +080088 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080089 UBINIZE_OPTS := -E 5
90 BLOCKSIZE := 128k
91 PAGESIZE := 2048
92 IMAGE_SIZE := 65536k
93 KERNEL_IN_UBI := 1
94 IMAGES += factory.bin
95 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
96 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
97endef
developer565bacb2021-09-28 21:26:32 +080098TARGET_DEVICES += mt7986a-ax6000-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080099
developer1b76b3f2021-12-22 19:53:19 +0800100define Device/mt7986a-ax6000-2500wan-gsw-spim-nand-rfb
101 DEVICE_VENDOR := MediaTek
102 DEVICE_MODEL := mt7986a-ax6000-2500wan-gsw-spim-nand-rfb (SPI-NAND,UBI)
103 DEVICE_DTS := mt7986a-2500wan-gsw-spim-nand-rfb
104 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
105 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-gsw-spim-nand-rfb
106 UBINIZE_OPTS := -E 5
107 BLOCKSIZE := 128k
108 PAGESIZE := 2048
109 IMAGE_SIZE := 65536k
110 KERNEL_IN_UBI := 1
111 IMAGES += factory.bin
112 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
113 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
114endef
115TARGET_DEVICES += mt7986a-ax6000-2500wan-gsw-spim-nand-rfb
116
developerbc023af2021-11-01 11:27:36 +0800117define Device/mt7986a-ax8400-2500wan-spim-nand-rfb
118 DEVICE_VENDOR := MediaTek
119 DEVICE_MODEL := mt7986a-ax8400-2500wan-spim-nand-rfb (SPI-NAND,UBI)
120 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
121 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
122 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
123 UBINIZE_OPTS := -E 5
124 BLOCKSIZE := 128k
125 PAGESIZE := 2048
126 IMAGE_SIZE := 65536k
127 KERNEL_IN_UBI := 1
128 IMAGES += factory.bin
129 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
130 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
131endef
132TARGET_DEVICES += mt7986a-ax8400-2500wan-spim-nand-rfb
133
developer765135b2021-12-16 14:14:05 +0800134define Device/mt7986a-ax7800-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800135 DEVICE_VENDOR := MediaTek
developer765135b2021-12-16 14:14:05 +0800136 DEVICE_MODEL := mt7986a-ax7800-spim-nor-rfb
137 DEVICE_DTS := mt7986a-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800138 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
139endef
developer765135b2021-12-16 14:14:05 +0800140TARGET_DEVICES += mt7986a-ax7800-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800141
developer565bacb2021-09-28 21:26:32 +0800142define Device/mt7986a-ax7800-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800143 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800144 DEVICE_MODEL := mt7986a-ax7800-spim-nand-rfb (SPI-NAND,UBI)
145 DEVICE_DTS := mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800146 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800147 SUPPORTED_DEVICES := mediatek,mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800148 UBINIZE_OPTS := -E 5
149 BLOCKSIZE := 128k
150 PAGESIZE := 2048
151 IMAGE_SIZE := 65536k
152 KERNEL_IN_UBI := 1
153 IMAGES += factory.bin
154 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
155 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
156endef
developer565bacb2021-09-28 21:26:32 +0800157TARGET_DEVICES += mt7986a-ax7800-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800158
developer765135b2021-12-16 14:14:05 +0800159define Device/mt7986a-ax7800-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +0800160 DEVICE_VENDOR := MediaTek
developer765135b2021-12-16 14:14:05 +0800161 DEVICE_MODEL := mt7986a-ax7800-2500wan-spim-nor-rfb
162 DEVICE_DTS := mt7986a-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +0800163 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
164endef
developer765135b2021-12-16 14:14:05 +0800165TARGET_DEVICES += mt7986a-ax7800-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +0800166
developer565bacb2021-09-28 21:26:32 +0800167define Device/mt7986a-ax7800-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800168 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800169 DEVICE_MODEL := mt7986a-ax7800-2500wan-spim-nand-rfb (SPI-NAND,UBI)
170 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800171 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800172 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800173 UBINIZE_OPTS := -E 5
174 BLOCKSIZE := 128k
175 PAGESIZE := 2048
176 IMAGE_SIZE := 65536k
177 KERNEL_IN_UBI := 1
178 IMAGES += factory.bin
179 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
180 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
181endef
developer565bacb2021-09-28 21:26:32 +0800182TARGET_DEVICES += mt7986a-ax7800-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800183
developer765135b2021-12-16 14:14:05 +0800184define Device/mt7986b-ax6000-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800185 DEVICE_VENDOR := MediaTek
developer765135b2021-12-16 14:14:05 +0800186 DEVICE_MODEL := mt7986b-ax6000-spim-nor-rfb
187 DEVICE_DTS := mt7986b-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800188 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
189endef
developer765135b2021-12-16 14:14:05 +0800190TARGET_DEVICES += mt7986b-ax6000-spim-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800191
developer565bacb2021-09-28 21:26:32 +0800192define Device/mt7986b-ax6000-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800193 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800194 DEVICE_MODEL := mt7986b-ax6000-spim-nand-rfb (SPI-NAND,UBI)
195 DEVICE_DTS := mt7986b-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800196 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800197 SUPPORTED_DEVICES := mediatek,mt7986b-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800198 UBINIZE_OPTS := -E 5
199 BLOCKSIZE := 128k
200 PAGESIZE := 2048
201 IMAGE_SIZE := 65536k
202 KERNEL_IN_UBI := 1
203 IMAGES += factory.bin
204 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
205 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
206endef
developer565bacb2021-09-28 21:26:32 +0800207TARGET_DEVICES += mt7986b-ax6000-spim-nand-rfb
208
209define Device/mt7986b-ax6000-snfi-nand-rfb
210 DEVICE_VENDOR := MediaTek
211 DEVICE_MODEL := mt7986b-ax6000-snfi-nand-rfb (SPI-NAND,UBI)
212 DEVICE_DTS := mt7986b-snfi-nand-rfb
213 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
214 SUPPORTED_DEVICES := mediatek,mt7986b-snfi-nand-rfb
215 UBINIZE_OPTS := -E 5
216 BLOCKSIZE := 128k
217 PAGESIZE := 2048
218 IMAGE_SIZE := 65536k
219 KERNEL_IN_UBI := 1
220 IMAGES += factory.bin
221 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
222 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
223endef
224TARGET_DEVICES += mt7986b-ax6000-snfi-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800225
developerf1422f62021-09-14 13:59:15 +0800226define Device/mt7986b-ax6000-emmc-rfb
227 DEVICE_VENDOR := MediaTek
228 DEVICE_MODEL := mt7986b-ax6000-emmc-rfb
229 DEVICE_DTS := mt7986b-emmc-rfb
230 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer8262b0d2021-11-12 09:02:17 +0800231 SUPPORTED_DEVICES := mediatek,mt7986b-emmc-rfb
232 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
233 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
234 kmod-nls-iso8859-1
235 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developerf1422f62021-09-14 13:59:15 +0800236endef
237TARGET_DEVICES += mt7986b-ax6000-emmc-rfb
238
developer765135b2021-12-16 14:14:05 +0800239define Device/mt7986b-ax6000-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +0800240 DEVICE_VENDOR := MediaTek
developer765135b2021-12-16 14:14:05 +0800241 DEVICE_MODEL := mt7986b-ax6000-2500wan-spim-nor-rfb
242 DEVICE_DTS := mt7986b-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +0800243 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
244endef
developer765135b2021-12-16 14:14:05 +0800245TARGET_DEVICES += mt7986b-ax6000-2500wan-spim-nor-rfb
developer691e73f2021-06-28 19:41:35 +0800246
developer565bacb2021-09-28 21:26:32 +0800247define Device/mt7986b-ax6000-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800248 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800249 DEVICE_MODEL := mt7986b-ax6000-2500wan-spim-nand-rfb (SPI-NAND,UBI)
250 DEVICE_DTS := mt7986b-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800251 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800252 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800253 UBINIZE_OPTS := -E 5
254 BLOCKSIZE := 128k
255 PAGESIZE := 2048
256 IMAGE_SIZE := 65536k
257 KERNEL_IN_UBI := 1
258 IMAGES += factory.bin
259 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
260 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
261endef
developer565bacb2021-09-28 21:26:32 +0800262TARGET_DEVICES += mt7986b-ax6000-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800263
developer1b76b3f2021-12-22 19:53:19 +0800264define Device/mt7986b-ax6000-2500wan-gsw-spim-nand-rfb
265 DEVICE_VENDOR := MediaTek
266 DEVICE_MODEL := mt7986b-ax6000-2500wan-gsw-spim-nand-rfb (SPI-NAND,UBI)
267 DEVICE_DTS := mt7986b-2500wan-gsw-spim-nand-rfb
268 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
269 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-gsw-spim-nand-rfb
270 UBINIZE_OPTS := -E 5
271 BLOCKSIZE := 128k
272 PAGESIZE := 2048
273 IMAGE_SIZE := 65536k
274 KERNEL_IN_UBI := 1
275 IMAGES += factory.bin
276 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
277 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
278endef
279TARGET_DEVICES += mt7986b-ax6000-2500wan-gsw-spim-nand-rfb
280
developerf9a2c032021-09-30 17:18:10 +0800281define Device/mt7986b-ax6000-2500wan-snfi-nand-rfb
282 DEVICE_VENDOR := MediaTek
283 DEVICE_MODEL := mt7986b-ax6000-2500wan-snfi-nand-rfb (SPI-NAND,UBI)
284 DEVICE_DTS := mt7986b-2500wan-snfi-nand-rfb
285 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
286 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-snfi-nand-rfb
287 UBINIZE_OPTS := -E 5
288 BLOCKSIZE := 128k
289 PAGESIZE := 2048
290 IMAGE_SIZE := 65536k
291 KERNEL_IN_UBI := 1
292 IMAGES += factory.bin
293 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
294 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
295endef
296TARGET_DEVICES += mt7986b-ax6000-2500wan-snfi-nand-rfb
297
developerfd40db22021-04-29 10:08:25 +0800298define Device/mediatek_mt7986-fpga
299 DEVICE_VENDOR := MediaTek
300 DEVICE_MODEL := MTK7986 FPGA
301 DEVICE_DTS := mt7986-fpga
302 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
303 IMAGE/sysupgrade.bin := append-kernel | pad-to 256k | \
304 append-rootfs | pad-rootfs | append-metadata
305endef
306TARGET_DEVICES += mediatek_mt7986-fpga
307
308define Device/mediatek_mt7986-fpga-ubi
309 DEVICE_VENDOR := MediaTek
310 DEVICE_MODEL := MTK7986 FPGA (UBI)
311 DEVICE_DTS := mt7986-fpga-ubi
312 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
313 SUPPORTED_DEVICES := mediatek,mt7986-fpga,ubi
314 UBINIZE_OPTS := -E 5
315 BLOCKSIZE := 128k
316 PAGESIZE := 2048
317 IMAGE_SIZE := 65536k
318 KERNEL_IN_UBI := 1
319 IMAGES += factory.bin
320 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
321 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
322endef
323TARGET_DEVICES += mediatek_mt7986-fpga-ubi