blob: 6278e7c31ed9ecc1c59e56820852afe7535f0df4 [file] [log] [blame]
developerf11ee162022-04-12 11:17:45 +08001#@TYPE: Machine
2#@NAME: mediatek filogic
3#@NEEDED_BSPLAYERS: meta-filogic
4#@DESCRIPTION: Machine configuration for running a RDK broadband on mediatek filogic
5#@RDK_FLAVOR: rdkb
6
7DEFAULTTUNE ?= "cortexa53"
8
9require conf/machine/include/tune-cortexa53.inc
10include conf/machine/include/soc-family.inc
11
12SOC_FAMILY = "mediatek"
13
developer880c8292022-07-11 11:52:59 +080014MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode',':gsw','',d)}"
developera84877f2023-01-18 09:21:27 +080015MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','emmc',':emmc','',d)}"
developer880c8292022-07-11 11:52:59 +080016
developerde7341a2023-10-17 17:59:50 +080017KERNEL_DEVICETREE_mt7988_mt7988d_gsw = " \
18 mediatek/mt7988d-gsw-10g-spim-nand.dtb \
19 "
20
21KERNEL_DEVICETREE_mt7988_mt7988d = " \
22 mediatek/mt7988d-dsa-10g-spim-nand.dtb \
23 "
24
developer266c5292022-10-18 16:32:50 +080025KERNEL_DEVICETREE_mt7988_gsw = " \
26 mediatek/mt7988a-gsw-10g-spim-nand.dtb \
27 "
28
29KERNEL_DEVICETREE_mt7988 = " \
30 mediatek/mt7988a-dsa-10g-spim-nand.dtb \
31 "
32KERNEL_DEVICETREE_mt7986_gsw = " \
developer880c8292022-07-11 11:52:59 +080033 mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
34 mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
35 "
developer266c5292022-10-18 16:32:50 +080036KERNEL_DEVICETREE_mt7986 = " \
developer158c9ee2022-10-24 16:43:53 +080037 mediatek/mt7986a-2500wan-spim-nand-rfb.dtb \
38 mediatek/mt7986b-2500wan-spim-nand-rfb.dtb \
developerf11ee162022-04-12 11:17:45 +080039 "
developera84877f2023-01-18 09:21:27 +080040
41KERNEL_DEVICETREE_mt7988_emmc = " \
42 mediatek/mt7988a-dsa-10g-emmc.dtb \
43 "
44
45KERNEL_DEVICETREE_mt7986_emmc = " \
46 mediatek/mt7986a-emmc-rfb.dtb \
47 mediatek/mt7986b-emmc-rfb.dtb \
48 "
developerf11ee162022-04-12 11:17:45 +080049KERNEL_IMAGETYPE = "fitImage"
50KERNEL_CLASSES = "kernel-fitimage"
developer5d627592022-12-02 10:26:07 +080051KERNEL_CLASSES += "${@bb.utils.contains('DISTRO_FEATURES','secure_boot',' kernel_secure_boot-filogic','',d)}"
developerf11ee162022-04-12 11:17:45 +080052
53UBOOT_CONFIG = "mt7622_rfb_defconfig"
54
55UBOOT_ARCH = "arm64"
56UBOOT_LOADADDRESS = "0x48080000"
57UBOOT_ENTRYPOINT = "0x48080000"
58MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
59
60TCLIBC = "glibc"
61
62MACHINEOVERRIDES .= ":broadband:filogic"
63
developer3d8c09d2022-07-11 18:14:15 +080064IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}"
65IMAGE_FSTYPES_DEBUGFS = ""
66IMAGE_GEN_DEBUGFS = "0"
developerf11ee162022-04-12 11:17:45 +080067# Parameters for MT7986 RFB1 NAND (byte)
68# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
69# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
70NAND_PAGE_SIZE = "4096"
71NAND_PHY_BLOCK_SIZE = "262144"
72NAND_LOG_BLOCK_SIZE = "253952"
73NAND_PHY_BLOCK_COUNT = "2048"
74NAND_LOG_BLOCK_COUNT = "1920"
75
76UBI_VOLNAME = "rootfs"
77MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
78UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
79IMAGE_CLASSES += "image_types-mtk"
80
81SERIAL_CONSOLE ?= "115200 ttyS0"