blob: 5c2f4322d6c337172788569934d79a57e60eb2fd [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
developerf11ee162022-04-12 11:17:45 +08009include conf/machine/include/soc-family.inc
10
11SOC_FAMILY = "mediatek"
12
developer880c8292022-07-11 11:52:59 +080013MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode',':gsw','',d)}"
developera84877f2023-01-18 09:21:27 +080014MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','emmc',':emmc','',d)}"
developer880c8292022-07-11 11:52:59 +080015
developerde7341a2023-10-17 17:59:50 +080016KERNEL_DEVICETREE_mt7988_mt7988d_gsw = " \
17 mediatek/mt7988d-gsw-10g-spim-nand.dtb \
18 "
19
20KERNEL_DEVICETREE_mt7988_mt7988d = " \
21 mediatek/mt7988d-dsa-10g-spim-nand.dtb \
22 "
23
developer266c5292022-10-18 16:32:50 +080024KERNEL_DEVICETREE_mt7988_gsw = " \
25 mediatek/mt7988a-gsw-10g-spim-nand.dtb \
26 "
27
28KERNEL_DEVICETREE_mt7988 = " \
29 mediatek/mt7988a-dsa-10g-spim-nand.dtb \
30 "
developer965804d2024-04-30 09:49:41 +080031
32KERNEL_DEVICETREE_mt7988_bpi4 = " \
33 mediatek/mt7988a-bananapi-bpi-r4-nand.dtb \
34 "
developer87a78c32024-10-17 17:04:30 +080035KERNEL_DEVICETREE_mt7987 = " \
36 mediatek/mt7987a-spim-nand.dtb \
37 "
developer266c5292022-10-18 16:32:50 +080038KERNEL_DEVICETREE_mt7986_gsw = " \
developer880c8292022-07-11 11:52:59 +080039 mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
40 mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
41 "
developer266c5292022-10-18 16:32:50 +080042KERNEL_DEVICETREE_mt7986 = " \
developer158c9ee2022-10-24 16:43:53 +080043 mediatek/mt7986a-2500wan-spim-nand-rfb.dtb \
44 mediatek/mt7986b-2500wan-spim-nand-rfb.dtb \
developerf11ee162022-04-12 11:17:45 +080045 "
developera84877f2023-01-18 09:21:27 +080046
47KERNEL_DEVICETREE_mt7988_emmc = " \
48 mediatek/mt7988a-dsa-10g-emmc.dtb \
49 "
50
developer965804d2024-04-30 09:49:41 +080051KERNEL_DEVICETREE_mt7988_bpi4_emmc = " \
52 mediatek/mt7988a-bananapi-bpi-r4-emmc.dtb \
53 "
54
developera84877f2023-01-18 09:21:27 +080055KERNEL_DEVICETREE_mt7986_emmc = " \
56 mediatek/mt7986a-emmc-rfb.dtb \
57 mediatek/mt7986b-emmc-rfb.dtb \
58 "
developerf11ee162022-04-12 11:17:45 +080059KERNEL_IMAGETYPE = "fitImage"
60KERNEL_CLASSES = "kernel-fitimage"
developer5d627592022-12-02 10:26:07 +080061KERNEL_CLASSES += "${@bb.utils.contains('DISTRO_FEATURES','secure_boot',' kernel_secure_boot-filogic','',d)}"
developerf11ee162022-04-12 11:17:45 +080062
63UBOOT_CONFIG = "mt7622_rfb_defconfig"
64
65UBOOT_ARCH = "arm64"
66UBOOT_LOADADDRESS = "0x48080000"
67UBOOT_ENTRYPOINT = "0x48080000"
developerd3eb5f52024-10-18 15:35:30 +080068UBOOT_LOADADDRESS_mt7987 = "0x40080000"
69UBOOT_ENTRYPOINT_mt7987 = "0x40080000"
developerf11ee162022-04-12 11:17:45 +080070MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
71
72TCLIBC = "glibc"
73
74MACHINEOVERRIDES .= ":broadband:filogic"
75
developer3d8c09d2022-07-11 18:14:15 +080076IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}"
77IMAGE_FSTYPES_DEBUGFS = ""
78IMAGE_GEN_DEBUGFS = "0"
developerf11ee162022-04-12 11:17:45 +080079# Parameters for MT7986 RFB1 NAND (byte)
80# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
81# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
82NAND_PAGE_SIZE = "4096"
83NAND_PHY_BLOCK_SIZE = "262144"
84NAND_LOG_BLOCK_SIZE = "253952"
85NAND_PHY_BLOCK_COUNT = "2048"
86NAND_LOG_BLOCK_COUNT = "1920"
87
88UBI_VOLNAME = "rootfs"
89MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
90UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
91IMAGE_CLASSES += "image_types-mtk"
92
93SERIAL_CONSOLE ?= "115200 ttyS0"
developer93e97202024-01-17 12:29:44 +080094
95