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 ?= "cortexa7" |
| 8 | |
| 9 | require conf/machine/include/tune-cortexa7-soft.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 | |
| 16 | KERNEL_DEVICETREE_gsw = " \ |
developer | 942de76 | 2022-07-22 15:12:22 +0800 | [diff] [blame] | 17 | mt7986a-2500wan-gsw-spim-nand-rfb.dtb \ |
| 18 | mt7986b-2500wan-gsw-spim-nand-rfb.dtb \ |
developer | 880c829 | 2022-07-11 11:52:59 +0800 | [diff] [blame] | 19 | " |
| 20 | |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 21 | KERNEL_DEVICETREE ?= " \ |
developer | 158c9ee | 2022-10-24 16:43:53 +0800 | [diff] [blame] | 22 | mt7986a-2500wan-spim-nand-rfb.dtb \ |
| 23 | mt7986b-2500wan-spim-nand-rfb.dtb \ |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 24 | " |
| 25 | KERNEL_IMAGETYPE = "fitImage" |
| 26 | KERNEL_CLASSES = "kernel-fitimage" |
| 27 | |
| 28 | UBOOT_CONFIG = "mt7629_rfb_defconfig" |
| 29 | |
| 30 | UBOOT_ARCH = "arm" |
| 31 | UBOOT_LOADADDRESS = "0x48008000" |
| 32 | UBOOT_ENTRYPOINT = "0x48008000" |
| 33 | MACHINE_EXTRA_RRECOMMENDS += "kernel-modules" |
| 34 | |
| 35 | TCLIBC = "glibc" |
| 36 | |
| 37 | MACHINEOVERRIDES .= ":broadband:filogic" |
| 38 | |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 39 | PREFERRED_VERSION_linux-libc-headers = "5.4.%" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 40 | PREFERRED_PROVIDER_hal-wifi = "hal-wifi-cfg80211" |
developer | 09bd28a | 2022-11-02 18:10:05 +0800 | [diff] [blame] | 41 | PREFERRED_VERSION_iw_filogic = "5.%" |
| 42 | PREFERRED_VERSION_hostapd = "2.10" |
| 43 | PREFERRED_VERSION_wpa-supplicant = "2.10" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 44 | |
developer | 3d8c09d | 2022-07-11 18:14:15 +0800 | [diff] [blame] | 45 | IMAGE_FSTYPES ="${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi',' squashfs-xz',' ubi',d)}" |
| 46 | IMAGE_FSTYPES_DEBUGFS = "" |
| 47 | IMAGE_GEN_DEBUGFS = "0" |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 48 | # 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 |
| 51 | NAND_PAGE_SIZE = "4096" |
| 52 | NAND_PHY_BLOCK_SIZE = "262144" |
| 53 | NAND_LOG_BLOCK_SIZE = "253952" |
| 54 | NAND_PHY_BLOCK_COUNT = "2048" |
| 55 | NAND_LOG_BLOCK_COUNT = "1920" |
| 56 | |
| 57 | UBI_VOLNAME = "rootfs" |
| 58 | MKUBIFS_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --leb-size ${NAND_LOG_BLOCK_SIZE} --max-leb-cnt ${NAND_LOG_BLOCK_COUNT}" |
| 59 | UBINIZE_ARGS = "--min-io-size ${NAND_PAGE_SIZE} --peb-size ${NAND_PHY_BLOCK_SIZE} --sub-page-size ${NAND_PAGE_SIZE}" |
| 60 | IMAGE_CLASSES += "image_types-mtk" |
| 61 | |
| 62 | SERIAL_CONSOLE ?= "115200 ttyS0" |