blob: 985ec9b5e737be9ba27f555550fca09ad4397347 [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 ?= "cortexa7"
8
9require conf/machine/include/tune-cortexa7-soft.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)}"
15
16KERNEL_DEVICETREE_gsw = " \
developer942de762022-07-22 15:12:22 +080017 mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
18 mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
developer880c8292022-07-11 11:52:59 +080019 "
20
developerf11ee162022-04-12 11:17:45 +080021KERNEL_DEVICETREE ?= " \
developer158c9ee2022-10-24 16:43:53 +080022 mt7986a-2500wan-spim-nand-rfb.dtb \
23 mt7986b-2500wan-spim-nand-rfb.dtb \
developerf11ee162022-04-12 11:17:45 +080024 "
25KERNEL_IMAGETYPE = "fitImage"
26KERNEL_CLASSES = "kernel-fitimage"
27
28UBOOT_CONFIG = "mt7629_rfb_defconfig"
29
30UBOOT_ARCH = "arm"
31UBOOT_LOADADDRESS = "0x48008000"
32UBOOT_ENTRYPOINT = "0x48008000"
33MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
34
35TCLIBC = "glibc"
36
37MACHINEOVERRIDES .= ":broadband:filogic"
38
developerf11ee162022-04-12 11:17:45 +080039PREFERRED_VERSION_linux-libc-headers = "5.4.%"
developerf11ee162022-04-12 11:17:45 +080040PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211"
developer09bd28a2022-11-02 18:10:05 +080041PREFERRED_VERSION_iw_filogic = "5.%"
42PREFERRED_VERSION_hostapd = "2.10"
43PREFERRED_VERSION_wpa-supplicant = "2.10"
developerf11ee162022-04-12 11:17:45 +080044
developer3d8c09d2022-07-11 18:14:15 +080045IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}"
46IMAGE_FSTYPES_DEBUGFS = ""
47IMAGE_GEN_DEBUGFS = "0"
developerf11ee162022-04-12 11:17:45 +080048# Parameters for MT7986 RFB1 NAND (byte)
49# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
50# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
51NAND_PAGE_SIZE = "4096"
52NAND_PHY_BLOCK_SIZE = "262144"
53NAND_LOG_BLOCK_SIZE = "253952"
54NAND_PHY_BLOCK_COUNT = "2048"
55NAND_LOG_BLOCK_COUNT = "1920"
56
57UBI_VOLNAME = "rootfs"
58MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
59UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
60IMAGE_CLASSES += "image_types-mtk"
61
62SERIAL_CONSOLE ?= "115200 ttyS0"