blob: 7aac59dbaa9af2e2183230f52a0f6a7f7e224dcc [file] [log] [blame]
developerade6d682021-10-27 17:00:32 +08001KERNEL_LOADADDR := 0x48080000
developerfd40db22021-04-29 10:08:25 +08002
developer3395eb42021-06-15 16:01:34 +08003define Device/mt7986a-ax6000-nor-rfb
developerfd40db22021-04-29 10:08:25 +08004 DEVICE_VENDOR := MediaTek
developer3395eb42021-06-15 16:01:34 +08005 DEVICE_MODEL := mt7986a-ax6000-nor-rfb
6 DEVICE_DTS := mt7986a-nor-rfb
developerfd40db22021-04-29 10:08:25 +08007 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
8endef
developer3395eb42021-06-15 16:01:34 +08009TARGET_DEVICES += mt7986a-ax6000-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
67 DEVICE_PACKAGES := mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc
68 IMAGES := sysupgrade-emmc.bin.gz
developer93b9d082021-09-09 11:16:00 +080069 IMAGE/sysupgrade-emmc.bin.gz := sysupgrade-emmc | gzip | append-metadata
developer19e8ed42021-06-10 19:15:03 +080070endef
71TARGET_DEVICES += mt7986a-ax6000-emmc-rfb
72
developer691e73f2021-06-28 19:41:35 +080073define Device/mt7986a-ax6000-2500wan-nor-rfb
74 DEVICE_VENDOR := MediaTek
75 DEVICE_MODEL := mt7986a-ax6000-2500wan-nor-rfb
76 DEVICE_DTS := mt7986a-2500wan-nor-rfb
77 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
78endef
79TARGET_DEVICES += mt7986a-ax6000-2500wan-nor-rfb
80
developer565bacb2021-09-28 21:26:32 +080081define Device/mt7986a-ax6000-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080082 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +080083 DEVICE_MODEL := mt7986a-ax6000-2500wan-spim-nand-rfb (SPI-NAND,UBI)
84 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080085 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +080086 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080087 UBINIZE_OPTS := -E 5
88 BLOCKSIZE := 128k
89 PAGESIZE := 2048
90 IMAGE_SIZE := 65536k
91 KERNEL_IN_UBI := 1
92 IMAGES += factory.bin
93 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
94 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
95endef
developer565bacb2021-09-28 21:26:32 +080096TARGET_DEVICES += mt7986a-ax6000-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +080097
developerbc023af2021-11-01 11:27:36 +080098define Device/mt7986a-ax8400-2500wan-spim-nand-rfb
99 DEVICE_VENDOR := MediaTek
100 DEVICE_MODEL := mt7986a-ax8400-2500wan-spim-nand-rfb (SPI-NAND,UBI)
101 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
102 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
103 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
104 UBINIZE_OPTS := -E 5
105 BLOCKSIZE := 128k
106 PAGESIZE := 2048
107 IMAGE_SIZE := 65536k
108 KERNEL_IN_UBI := 1
109 IMAGES += factory.bin
110 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
111 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
112endef
113TARGET_DEVICES += mt7986a-ax8400-2500wan-spim-nand-rfb
114
developer3395eb42021-06-15 16:01:34 +0800115define Device/mt7986a-ax7800-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800116 DEVICE_VENDOR := MediaTek
developer3395eb42021-06-15 16:01:34 +0800117 DEVICE_MODEL := mt7986a-ax7800-nor-rfb
118 DEVICE_DTS := mt7986a-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800119 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
120endef
developer3395eb42021-06-15 16:01:34 +0800121TARGET_DEVICES += mt7986a-ax7800-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800122
developer565bacb2021-09-28 21:26:32 +0800123define Device/mt7986a-ax7800-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800124 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800125 DEVICE_MODEL := mt7986a-ax7800-spim-nand-rfb (SPI-NAND,UBI)
126 DEVICE_DTS := mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800127 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800128 SUPPORTED_DEVICES := mediatek,mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800129 UBINIZE_OPTS := -E 5
130 BLOCKSIZE := 128k
131 PAGESIZE := 2048
132 IMAGE_SIZE := 65536k
133 KERNEL_IN_UBI := 1
134 IMAGES += factory.bin
135 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
136 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
137endef
developer565bacb2021-09-28 21:26:32 +0800138TARGET_DEVICES += mt7986a-ax7800-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800139
developer691e73f2021-06-28 19:41:35 +0800140define Device/mt7986a-ax7800-2500wan-nor-rfb
141 DEVICE_VENDOR := MediaTek
142 DEVICE_MODEL := mt7986a-ax7800-2500wan-nor-rfb
143 DEVICE_DTS := mt7986a-2500wan-nor-rfb
144 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
145endef
146TARGET_DEVICES += mt7986a-ax7800-2500wan-nor-rfb
147
developer565bacb2021-09-28 21:26:32 +0800148define Device/mt7986a-ax7800-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800149 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800150 DEVICE_MODEL := mt7986a-ax7800-2500wan-spim-nand-rfb (SPI-NAND,UBI)
151 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800152 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800153 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800154 UBINIZE_OPTS := -E 5
155 BLOCKSIZE := 128k
156 PAGESIZE := 2048
157 IMAGE_SIZE := 65536k
158 KERNEL_IN_UBI := 1
159 IMAGES += factory.bin
160 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
161 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
162endef
developer565bacb2021-09-28 21:26:32 +0800163TARGET_DEVICES += mt7986a-ax7800-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800164
developer3395eb42021-06-15 16:01:34 +0800165define Device/mt7986b-ax6000-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800166 DEVICE_VENDOR := MediaTek
developer3395eb42021-06-15 16:01:34 +0800167 DEVICE_MODEL := mt7986b-ax6000-nor-rfb
168 DEVICE_DTS := mt7986b-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800169 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
170endef
developer3395eb42021-06-15 16:01:34 +0800171TARGET_DEVICES += mt7986b-ax6000-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800172
developer565bacb2021-09-28 21:26:32 +0800173define Device/mt7986b-ax6000-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800174 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800175 DEVICE_MODEL := mt7986b-ax6000-spim-nand-rfb (SPI-NAND,UBI)
176 DEVICE_DTS := mt7986b-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800177 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800178 SUPPORTED_DEVICES := mediatek,mt7986b-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800179 UBINIZE_OPTS := -E 5
180 BLOCKSIZE := 128k
181 PAGESIZE := 2048
182 IMAGE_SIZE := 65536k
183 KERNEL_IN_UBI := 1
184 IMAGES += factory.bin
185 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
186 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
187endef
developer565bacb2021-09-28 21:26:32 +0800188TARGET_DEVICES += mt7986b-ax6000-spim-nand-rfb
189
190define Device/mt7986b-ax6000-snfi-nand-rfb
191 DEVICE_VENDOR := MediaTek
192 DEVICE_MODEL := mt7986b-ax6000-snfi-nand-rfb (SPI-NAND,UBI)
193 DEVICE_DTS := mt7986b-snfi-nand-rfb
194 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
195 SUPPORTED_DEVICES := mediatek,mt7986b-snfi-nand-rfb
196 UBINIZE_OPTS := -E 5
197 BLOCKSIZE := 128k
198 PAGESIZE := 2048
199 IMAGE_SIZE := 65536k
200 KERNEL_IN_UBI := 1
201 IMAGES += factory.bin
202 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
203 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
204endef
205TARGET_DEVICES += mt7986b-ax6000-snfi-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800206
developerf1422f62021-09-14 13:59:15 +0800207define Device/mt7986b-ax6000-emmc-rfb
208 DEVICE_VENDOR := MediaTek
209 DEVICE_MODEL := mt7986b-ax6000-emmc-rfb
210 DEVICE_DTS := mt7986b-emmc-rfb
211 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
212 DEVICE_PACKAGES := mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc
213 IMAGES := sysupgrade-emmc.bin.gz
214 IMAGE/sysupgrade-emmc.bin.gz := sysupgrade-emmc | gzip | append-metadata
215endef
216TARGET_DEVICES += mt7986b-ax6000-emmc-rfb
217
developer691e73f2021-06-28 19:41:35 +0800218define Device/mt7986b-ax6000-2500wan-nor-rfb
219 DEVICE_VENDOR := MediaTek
220 DEVICE_MODEL := mt7986b-ax6000-2500wan-nor-rfb
221 DEVICE_DTS := mt7986b-2500wan-nor-rfb
222 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
223endef
224TARGET_DEVICES += mt7986b-ax6000-2500wan-nor-rfb
225
developer565bacb2021-09-28 21:26:32 +0800226define Device/mt7986b-ax6000-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800227 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800228 DEVICE_MODEL := mt7986b-ax6000-2500wan-spim-nand-rfb (SPI-NAND,UBI)
229 DEVICE_DTS := mt7986b-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800230 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800231 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800232 UBINIZE_OPTS := -E 5
233 BLOCKSIZE := 128k
234 PAGESIZE := 2048
235 IMAGE_SIZE := 65536k
236 KERNEL_IN_UBI := 1
237 IMAGES += factory.bin
238 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
239 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
240endef
developer565bacb2021-09-28 21:26:32 +0800241TARGET_DEVICES += mt7986b-ax6000-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800242
developerf9a2c032021-09-30 17:18:10 +0800243define Device/mt7986b-ax6000-2500wan-snfi-nand-rfb
244 DEVICE_VENDOR := MediaTek
245 DEVICE_MODEL := mt7986b-ax6000-2500wan-snfi-nand-rfb (SPI-NAND,UBI)
246 DEVICE_DTS := mt7986b-2500wan-snfi-nand-rfb
247 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
248 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-snfi-nand-rfb
249 UBINIZE_OPTS := -E 5
250 BLOCKSIZE := 128k
251 PAGESIZE := 2048
252 IMAGE_SIZE := 65536k
253 KERNEL_IN_UBI := 1
254 IMAGES += factory.bin
255 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
256 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
257endef
258TARGET_DEVICES += mt7986b-ax6000-2500wan-snfi-nand-rfb
259
developerfd40db22021-04-29 10:08:25 +0800260define Device/mediatek_mt7986-fpga
261 DEVICE_VENDOR := MediaTek
262 DEVICE_MODEL := MTK7986 FPGA
263 DEVICE_DTS := mt7986-fpga
264 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
265 IMAGE/sysupgrade.bin := append-kernel | pad-to 256k | \
266 append-rootfs | pad-rootfs | append-metadata
267endef
268TARGET_DEVICES += mediatek_mt7986-fpga
269
270define Device/mediatek_mt7986-fpga-ubi
271 DEVICE_VENDOR := MediaTek
272 DEVICE_MODEL := MTK7986 FPGA (UBI)
273 DEVICE_DTS := mt7986-fpga-ubi
274 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
275 SUPPORTED_DEVICES := mediatek,mt7986-fpga,ubi
276 UBINIZE_OPTS := -E 5
277 BLOCKSIZE := 128k
278 PAGESIZE := 2048
279 IMAGE_SIZE := 65536k
280 KERNEL_IN_UBI := 1
281 IMAGES += factory.bin
282 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
283 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
284endef
285TARGET_DEVICES += mediatek_mt7986-fpga-ubi