blob: 65031a9538476c408f3cea4365044601f56fd297 [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
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
developer691e73f2021-06-28 19:41:35 +080075define Device/mt7986a-ax6000-2500wan-nor-rfb
76 DEVICE_VENDOR := MediaTek
77 DEVICE_MODEL := mt7986a-ax6000-2500wan-nor-rfb
78 DEVICE_DTS := mt7986a-2500wan-nor-rfb
79 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
80endef
81TARGET_DEVICES += mt7986a-ax6000-2500wan-nor-rfb
82
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
developerbc023af2021-11-01 11:27:36 +0800100define Device/mt7986a-ax8400-2500wan-spim-nand-rfb
101 DEVICE_VENDOR := MediaTek
102 DEVICE_MODEL := mt7986a-ax8400-2500wan-spim-nand-rfb (SPI-NAND,UBI)
103 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
104 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
105 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-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-ax8400-2500wan-spim-nand-rfb
116
developer3395eb42021-06-15 16:01:34 +0800117define Device/mt7986a-ax7800-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800118 DEVICE_VENDOR := MediaTek
developer3395eb42021-06-15 16:01:34 +0800119 DEVICE_MODEL := mt7986a-ax7800-nor-rfb
120 DEVICE_DTS := mt7986a-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800121 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
122endef
developer3395eb42021-06-15 16:01:34 +0800123TARGET_DEVICES += mt7986a-ax7800-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800124
developer565bacb2021-09-28 21:26:32 +0800125define Device/mt7986a-ax7800-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800126 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800127 DEVICE_MODEL := mt7986a-ax7800-spim-nand-rfb (SPI-NAND,UBI)
128 DEVICE_DTS := mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800129 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800130 SUPPORTED_DEVICES := mediatek,mt7986a-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800131 UBINIZE_OPTS := -E 5
132 BLOCKSIZE := 128k
133 PAGESIZE := 2048
134 IMAGE_SIZE := 65536k
135 KERNEL_IN_UBI := 1
136 IMAGES += factory.bin
137 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
138 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
139endef
developer565bacb2021-09-28 21:26:32 +0800140TARGET_DEVICES += mt7986a-ax7800-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800141
developer691e73f2021-06-28 19:41:35 +0800142define Device/mt7986a-ax7800-2500wan-nor-rfb
143 DEVICE_VENDOR := MediaTek
144 DEVICE_MODEL := mt7986a-ax7800-2500wan-nor-rfb
145 DEVICE_DTS := mt7986a-2500wan-nor-rfb
146 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
147endef
148TARGET_DEVICES += mt7986a-ax7800-2500wan-nor-rfb
149
developer565bacb2021-09-28 21:26:32 +0800150define Device/mt7986a-ax7800-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800151 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800152 DEVICE_MODEL := mt7986a-ax7800-2500wan-spim-nand-rfb (SPI-NAND,UBI)
153 DEVICE_DTS := mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800154 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800155 SUPPORTED_DEVICES := mediatek,mt7986a-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800156 UBINIZE_OPTS := -E 5
157 BLOCKSIZE := 128k
158 PAGESIZE := 2048
159 IMAGE_SIZE := 65536k
160 KERNEL_IN_UBI := 1
161 IMAGES += factory.bin
162 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
163 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
164endef
developer565bacb2021-09-28 21:26:32 +0800165TARGET_DEVICES += mt7986a-ax7800-2500wan-spim-nand-rfb
developer691e73f2021-06-28 19:41:35 +0800166
developer3395eb42021-06-15 16:01:34 +0800167define Device/mt7986b-ax6000-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800168 DEVICE_VENDOR := MediaTek
developer3395eb42021-06-15 16:01:34 +0800169 DEVICE_MODEL := mt7986b-ax6000-nor-rfb
170 DEVICE_DTS := mt7986b-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800171 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
172endef
developer3395eb42021-06-15 16:01:34 +0800173TARGET_DEVICES += mt7986b-ax6000-nor-rfb
developerfd40db22021-04-29 10:08:25 +0800174
developer565bacb2021-09-28 21:26:32 +0800175define Device/mt7986b-ax6000-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800176 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800177 DEVICE_MODEL := mt7986b-ax6000-spim-nand-rfb (SPI-NAND,UBI)
178 DEVICE_DTS := mt7986b-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800179 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800180 SUPPORTED_DEVICES := mediatek,mt7986b-spim-nand-rfb
developerfd40db22021-04-29 10:08:25 +0800181 UBINIZE_OPTS := -E 5
182 BLOCKSIZE := 128k
183 PAGESIZE := 2048
184 IMAGE_SIZE := 65536k
185 KERNEL_IN_UBI := 1
186 IMAGES += factory.bin
187 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
188 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
189endef
developer565bacb2021-09-28 21:26:32 +0800190TARGET_DEVICES += mt7986b-ax6000-spim-nand-rfb
191
192define Device/mt7986b-ax6000-snfi-nand-rfb
193 DEVICE_VENDOR := MediaTek
194 DEVICE_MODEL := mt7986b-ax6000-snfi-nand-rfb (SPI-NAND,UBI)
195 DEVICE_DTS := mt7986b-snfi-nand-rfb
196 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
197 SUPPORTED_DEVICES := mediatek,mt7986b-snfi-nand-rfb
198 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
207TARGET_DEVICES += mt7986b-ax6000-snfi-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800208
developerf1422f62021-09-14 13:59:15 +0800209define Device/mt7986b-ax6000-emmc-rfb
210 DEVICE_VENDOR := MediaTek
211 DEVICE_MODEL := mt7986b-ax6000-emmc-rfb
212 DEVICE_DTS := mt7986b-emmc-rfb
213 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer8262b0d2021-11-12 09:02:17 +0800214 SUPPORTED_DEVICES := mediatek,mt7986b-emmc-rfb
215 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
216 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
217 kmod-nls-iso8859-1
218 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developerf1422f62021-09-14 13:59:15 +0800219endef
220TARGET_DEVICES += mt7986b-ax6000-emmc-rfb
221
developer691e73f2021-06-28 19:41:35 +0800222define Device/mt7986b-ax6000-2500wan-nor-rfb
223 DEVICE_VENDOR := MediaTek
224 DEVICE_MODEL := mt7986b-ax6000-2500wan-nor-rfb
225 DEVICE_DTS := mt7986b-2500wan-nor-rfb
226 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
227endef
228TARGET_DEVICES += mt7986b-ax6000-2500wan-nor-rfb
229
developer565bacb2021-09-28 21:26:32 +0800230define Device/mt7986b-ax6000-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800231 DEVICE_VENDOR := MediaTek
developer565bacb2021-09-28 21:26:32 +0800232 DEVICE_MODEL := mt7986b-ax6000-2500wan-spim-nand-rfb (SPI-NAND,UBI)
233 DEVICE_DTS := mt7986b-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800234 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer565bacb2021-09-28 21:26:32 +0800235 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800236 UBINIZE_OPTS := -E 5
237 BLOCKSIZE := 128k
238 PAGESIZE := 2048
239 IMAGE_SIZE := 65536k
240 KERNEL_IN_UBI := 1
241 IMAGES += factory.bin
242 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
243 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
244endef
developer565bacb2021-09-28 21:26:32 +0800245TARGET_DEVICES += mt7986b-ax6000-2500wan-spim-nand-rfb
developerb7fefc12021-06-10 19:36:07 +0800246
developerf9a2c032021-09-30 17:18:10 +0800247define Device/mt7986b-ax6000-2500wan-snfi-nand-rfb
248 DEVICE_VENDOR := MediaTek
249 DEVICE_MODEL := mt7986b-ax6000-2500wan-snfi-nand-rfb (SPI-NAND,UBI)
250 DEVICE_DTS := mt7986b-2500wan-snfi-nand-rfb
251 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
252 SUPPORTED_DEVICES := mediatek,mt7986b-2500wan-snfi-nand-rfb
253 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
262TARGET_DEVICES += mt7986b-ax6000-2500wan-snfi-nand-rfb
263
developerfd40db22021-04-29 10:08:25 +0800264define Device/mediatek_mt7986-fpga
265 DEVICE_VENDOR := MediaTek
266 DEVICE_MODEL := MTK7986 FPGA
267 DEVICE_DTS := mt7986-fpga
268 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
269 IMAGE/sysupgrade.bin := append-kernel | pad-to 256k | \
270 append-rootfs | pad-rootfs | append-metadata
271endef
272TARGET_DEVICES += mediatek_mt7986-fpga
273
274define Device/mediatek_mt7986-fpga-ubi
275 DEVICE_VENDOR := MediaTek
276 DEVICE_MODEL := MTK7986 FPGA (UBI)
277 DEVICE_DTS := mt7986-fpga-ubi
278 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
279 SUPPORTED_DEVICES := mediatek,mt7986-fpga,ubi
280 UBINIZE_OPTS := -E 5
281 BLOCKSIZE := 128k
282 PAGESIZE := 2048
283 IMAGE_SIZE := 65536k
284 KERNEL_IN_UBI := 1
285 IMAGES += factory.bin
286 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
287 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
288endef
289TARGET_DEVICES += mediatek_mt7986-fpga-ubi