blob: 7ba9eebdfa444585d199dcae7b15116b34c30437 [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)}"
15
developer266c5292022-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 = " \
developer880c8292022-07-11 11:52:59 +080024 mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \
25 mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \
26 "
developer266c5292022-10-18 16:32:50 +080027KERNEL_DEVICETREE_mt7986 = " \
developer158c9ee2022-10-24 16:43:53 +080028 mediatek/mt7986a-2500wan-spim-nand-rfb.dtb \
29 mediatek/mt7986b-2500wan-spim-nand-rfb.dtb \
developerf11ee162022-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
developerf11ee162022-04-12 11:17:45 +080045PREFERRED_VERSION_linux-libc-headers = "5.4.%"
developerf11ee162022-04-12 11:17:45 +080046PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211"
developer09bd28a2022-11-02 18:10:05 +080047PREFERRED_VERSION_iw_filogic = "5.%"
48PREFERRED_VERSION_hostapd = "2.10"
49PREFERRED_VERSION_wpa-supplicant = "2.10"
developerf11ee162022-04-12 11:17:45 +080050
developer3d8c09d2022-07-11 18:14:15 +080051IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}"
52IMAGE_FSTYPES_DEBUGFS = ""
53IMAGE_GEN_DEBUGFS = "0"
developerf11ee162022-04-12 11:17:45 +080054# Parameters for MT7986 RFB1 NAND (byte)
55# NAND_LOG_BLOCK_SIZE = NAND_PHY_BLOCK_SIZE - 2 Pages
56# NAND_LBLOCK_COUNT = NAND_PHY_BLOCK_COUNT - 53
57NAND_PAGE_SIZE = "4096"
58NAND_PHY_BLOCK_SIZE = "262144"
59NAND_LOG_BLOCK_SIZE = "253952"
60NAND_PHY_BLOCK_COUNT = "2048"
61NAND_LOG_BLOCK_COUNT = "1920"
62
63UBI_VOLNAME = "rootfs"
64MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}"
65UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}"
66IMAGE_CLASSES += "image_types-mtk"
67
68SERIAL_CONSOLE ?= "115200 ttyS0"