blob: d0d01d1d32286c89be2200bcc7c7082fab7a6b1b [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
16KERNEL_DEVICETREE_gsw = " \
17 mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
18 mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
19 "
developerec4ebe42022-04-12 11:17:45 +080020KERNEL_DEVICETREE ?= " \
21 mediatek/mt7986a-spim-nand-rfb.dtb \
22 mediatek/mt7986b-spim-nand-rfb.dtb \
23 "
24KERNEL_IMAGETYPE = "fitImage"
25KERNEL_CLASSES = "kernel-fitimage"
26
27UBOOT_CONFIG = "mt7622_rfb_defconfig"
28
29UBOOT_ARCH = "arm64"
30UBOOT_LOADADDRESS = "0x48080000"
31UBOOT_ENTRYPOINT = "0x48080000"
32MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
33
34TCLIBC = "glibc"
35
36MACHINEOVERRIDES .= ":broadband:filogic"
37
38PREFERRED_PROVIDER_virtual/kernel = "linux-mediatek"
39PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
40PREFERRED_VERSION_linux-mediatek = "5.4.%"
41PREFERRED_VERSION_linux-libc-headers = "5.4.%"
42
43PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211"
44
developer75572322022-06-01 19:25:09 +080045IMAGE_FSTYPES += "ubi squashfs-xz ${INITRAMFS_FSTYPES}"
developerec4ebe42022-04-12 11:17:45 +080046# Parameters for MT7986 RFB1 NAND (byte)
47# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
48# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
49NAND_PAGE_SIZE = "4096"
50NAND_PHY_BLOCK_SIZE = "262144"
51NAND_LOG_BLOCK_SIZE = "253952"
52NAND_PHY_BLOCK_COUNT = "2048"
53NAND_LOG_BLOCK_COUNT = "1920"
54
55UBI_VOLNAME = "rootfs"
56MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
57UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
58IMAGE_CLASSES += "image_types-mtk"
59
60SERIAL_CONSOLE ?= "115200 ttyS0"