blob: 782d26523559412a444ed397bb9760458be79982 [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
developer266c5292022-10-18 16:32:50 +080017KERNEL_DEVICETREE_mt7988_gsw = " \
18 mediatek/mt7988a-gsw-10g-spim-nand.dtb \
19 "
20
21KERNEL_DEVICETREE_mt7988 = " \
22 mediatek/mt7988a-dsa-10g-spim-nand.dtb \
23 "
24KERNEL_DEVICETREE_mt7986_gsw = " \
developer880c8292022-07-11 11:52:59 +080025 mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
26 mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
27 "
developer266c5292022-10-18 16:32:50 +080028KERNEL_DEVICETREE_mt7986 = " \
developer158c9ee2022-10-24 16:43:53 +080029 mediatek/mt7986a-2500wan-spim-nand-rfb.dtb \
30 mediatek/mt7986b-2500wan-spim-nand-rfb.dtb \
developerf11ee162022-04-12 11:17:45 +080031 "
developera84877f2023-01-18 09:21:27 +080032
33KERNEL_DEVICETREE_mt7988_emmc = " \
34 mediatek/mt7988a-dsa-10g-emmc.dtb \
35 "
36
37KERNEL_DEVICETREE_mt7986_emmc = " \
38 mediatek/mt7986a-emmc-rfb.dtb \
39 mediatek/mt7986b-emmc-rfb.dtb \
40 "
developerf11ee162022-04-12 11:17:45 +080041KERNEL_IMAGETYPE = "fitImage"
42KERNEL_CLASSES = "kernel-fitimage"
developer5d627592022-12-02 10:26:07 +080043KERNEL_CLASSES += "${@bb.utils.contains('DISTRO_FEATURES','secure_boot',' kernel_secure_boot-filogic','',d)}"
developerf11ee162022-04-12 11:17:45 +080044
45UBOOT_CONFIG = "mt7622_rfb_defconfig"
46
47UBOOT_ARCH = "arm64"
48UBOOT_LOADADDRESS = "0x48080000"
49UBOOT_ENTRYPOINT = "0x48080000"
50MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
51
52TCLIBC = "glibc"
53
54MACHINEOVERRIDES .= ":broadband:filogic"
55
developer3d8c09d2022-07-11 18:14:15 +080056IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}"
57IMAGE_FSTYPES_DEBUGFS = ""
58IMAGE_GEN_DEBUGFS = "0"
developerf11ee162022-04-12 11:17:45 +080059# Parameters for MT7986 RFB1 NAND (byte)
60# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
61# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
62NAND_PAGE_SIZE = "4096"
63NAND_PHY_BLOCK_SIZE = "262144"
64NAND_LOG_BLOCK_SIZE = "253952"
65NAND_PHY_BLOCK_COUNT = "2048"
66NAND_LOG_BLOCK_COUNT = "1920"
67
68UBI_VOLNAME = "rootfs"
69MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
70UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
71IMAGE_CLASSES += "image_types-mtk"
72
73SERIAL_CONSOLE ?= "115200 ttyS0"