developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 1 | #@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 | |
| 7 | DEFAULTTUNE ?= "cortexa53" |
| 8 | |
| 9 | require conf/machine/include/tune-cortexa53.inc |
| 10 | include conf/machine/include/soc-family.inc |
| 11 | |
| 12 | SOC_FAMILY = "mediatek" |
| 13 | |
developer | 21ea813 | 2022-07-11 11:52:59 +0800 | [diff] [blame] | 14 | MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode',':gsw','',d)}" |
| 15 | |
developer | 86fe061 | 2022-10-18 16:32:50 +0800 | [diff] [blame] | 16 | KERNEL_DEVICETREE_mt7988_gsw = " \ |
| 17 | mediatek/mt7988a-gsw-10g-spim-nand.dtb \ |
| 18 | " |
| 19 | |
| 20 | KERNEL_DEVICETREE_mt7988 = " \ |
| 21 | mediatek/mt7988a-dsa-10g-spim-nand.dtb \ |
| 22 | " |
| 23 | KERNEL_DEVICETREE_mt7986_gsw = " \ |
developer | 21ea813 | 2022-07-11 11:52:59 +0800 | [diff] [blame] | 24 | mediatek/mt7986a-2500wan-gsw-spim-nand-rfb.dtb \ |
| 25 | mediatek/mt7986b-2500wan-gsw-spim-nand-rfb.dtb \ |
| 26 | " |
developer | 86fe061 | 2022-10-18 16:32:50 +0800 | [diff] [blame] | 27 | KERNEL_DEVICETREE_mt7986 = " \ |
developer | 975997b | 2022-10-24 16:43:53 +0800 | [diff] [blame^] | 28 | mediatek/mt7986a-2500wan-spim-nand-rfb.dtb \ |
| 29 | mediatek/mt7986b-2500wan-spim-nand-rfb.dtb \ |
developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 30 | " |
| 31 | KERNEL_IMAGETYPE = "fitImage" |
| 32 | KERNEL_CLASSES = "kernel-fitimage" |
| 33 | |
| 34 | UBOOT_CONFIG = "mt7622_rfb_defconfig" |
| 35 | |
| 36 | UBOOT_ARCH = "arm64" |
| 37 | UBOOT_LOADADDRESS = "0x48080000" |
| 38 | UBOOT_ENTRYPOINT = "0x48080000" |
| 39 | MACHINE_EXTRA_RRECOMMENDS += "kernel-modules" |
| 40 | |
| 41 | TCLIBC = "glibc" |
| 42 | |
| 43 | MACHINEOVERRIDES .= ":broadband:filogic" |
| 44 | |
| 45 | PREFERRED_PROVIDER_virtual/kernel = "linux-mediatek" |
| 46 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" |
| 47 | PREFERRED_VERSION_linux-mediatek = "5.4.%" |
| 48 | PREFERRED_VERSION_linux-libc-headers = "5.4.%" |
| 49 | |
| 50 | PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211" |
| 51 | |
developer | 399ada7 | 2022-07-11 18:14:15 +0800 | [diff] [blame] | 52 | IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}" |
| 53 | IMAGE_FSTYPES_DEBUGFS = "" |
| 54 | IMAGE_GEN_DEBUGFS = "0" |
developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 55 | # 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 |
| 58 | NAND_PAGE_SIZE = "4096" |
| 59 | NAND_PHY_BLOCK_SIZE = "262144" |
| 60 | NAND_LOG_BLOCK_SIZE = "253952" |
| 61 | NAND_PHY_BLOCK_COUNT = "2048" |
| 62 | NAND_LOG_BLOCK_COUNT = "1920" |
| 63 | |
| 64 | UBI_VOLNAME = "rootfs" |
| 65 | MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}" |
| 66 | UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}" |
| 67 | IMAGE_CLASSES += "image_types-mtk" |
| 68 | |
| 69 | SERIAL_CONSOLE ?= "115200 ttyS0" |