developer | f11ee16 | 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 | 880c829 | 2022-07-11 11:52:59 +0800 | [diff] [blame] | 14 | MACHINEOVERRIDES .="${@bb.utils.contains('DISTRO_FEATURES','switch_gsw_mode',':gsw','',d)}" |
| 15 | |
developer | 266c529 | 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 | 880c829 | 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 | 266c529 | 2022-10-18 16:32:50 +0800 | [diff] [blame] | 27 | KERNEL_DEVICETREE_mt7986 = " \ |
developer | 158c9ee | 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 | f11ee16 | 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 | |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 45 | PREFERRED_VERSION_linux-libc-headers = "5.4.%" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 46 | PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211" |
developer | 09bd28a | 2022-11-02 18:10:05 +0800 | [diff] [blame] | 47 | PREFERRED_VERSION_iw_filogic = "5.%" |
| 48 | PREFERRED_VERSION_hostapd = "2.10" |
| 49 | PREFERRED_VERSION_wpa-supplicant = "2.10" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 50 | |
developer | 3d8c09d | 2022-07-11 18:14:15 +0800 | [diff] [blame] | 51 | IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}" |
| 52 | IMAGE_FSTYPES_DEBUGFS = "" |
| 53 | IMAGE_GEN_DEBUGFS = "0" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 54 | # 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 |
| 57 | NAND_PAGE_SIZE = "4096" |
| 58 | NAND_PHY_BLOCK_SIZE = "262144" |
| 59 | NAND_LOG_BLOCK_SIZE = "253952" |
| 60 | NAND_PHY_BLOCK_COUNT = "2048" |
| 61 | NAND_LOG_BLOCK_COUNT = "1920" |
| 62 | |
| 63 | UBI_VOLNAME = "rootfs" |
| 64 | MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}" |
| 65 | UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}" |
| 66 | IMAGE_CLASSES += "image_types-mtk" |
| 67 | |
| 68 | SERIAL_CONSOLE ?= "115200 ttyS0" |