blob: e14c215e96758ee2c4bb0af378f0f0a16423b070 [file] [log] [blame]
developerec4ebe42022-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
developer21ea8132022-07-11 11:52:59 +080014MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode',':gsw','',d)}"
15
developer86fe0612022-10-18 16:32:50 +080016KERNEL_DEVICETREE_mt7988_gsw = " \
17 mediatek/mt7988a-gsw-10g-spim-nand.dtb \
18 "
19
20KERNEL_DEVICETREE_mt7988 = " \
21 mediatek/mt7988a-dsa-10g-spim-nand.dtb \
22 "
23KERNEL_DEVICETREE_mt7986_gsw = " \
developer21ea8132022-07-11 11:52:59 +080024 mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
25 mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
26 "
developer86fe0612022-10-18 16:32:50 +080027KERNEL_DEVICETREE_mt7986 = " \
developer975997b2022-10-24 16:43:53 +080028 mediatek/mt7986a-2500wan-spim-nand-rfb.dtb \
29 mediatek/mt7986b-2500wan-spim-nand-rfb.dtb \
developerec4ebe42022-04-12 11:17:45 +080030 "
31KERNEL_IMAGETYPE = "fitImage"
32KERNEL_CLASSES = "kernel-fitimage"
33
34UBOOT_CONFIG = "mt7622_rfb_defconfig"
35
36UBOOT_ARCH = "arm64"
37UBOOT_LOADADDRESS = "0x48080000"
38UBOOT_ENTRYPOINT = "0x48080000"
39MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
40
41TCLIBC = "glibc"
42
43MACHINEOVERRIDES .= ":broadband:filogic"
44
45PREFERRED_PROVIDER_virtual/kernel = "linux-mediatek"
46PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
47PREFERRED_VERSION_linux-mediatek = "5.4.%"
48PREFERRED_VERSION_linux-libc-headers = "5.4.%"
49
50PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211"
51
developer399ada72022-07-11 18:14:15 +080052IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}"
53IMAGE_FSTYPES_DEBUGFS = ""
54IMAGE_GEN_DEBUGFS = "0"
developerec4ebe42022-04-12 11:17:45 +080055# Parameters for MT7986 RFB1 NAND (byte)
56# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
57# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
58NAND_PAGE_SIZE = "4096"
59NAND_PHY_BLOCK_SIZE = "262144"
60NAND_LOG_BLOCK_SIZE = "253952"
61NAND_PHY_BLOCK_COUNT = "2048"
62NAND_LOG_BLOCK_COUNT = "1920"
63
64UBI_VOLNAME = "rootfs"
65MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
66UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
67IMAGE_CLASSES += "image_types-mtk"
68
69SERIAL_CONSOLE ?= "115200 ttyS0"