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