177 lines
6.9 KiB
Plaintext
177 lines
6.9 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: ccmp13-dvk
|
|
#@DESCRIPTION: Configuration for Digi ConnectCore MP13 DVK
|
|
#@NEEDED_BSPLAYERS: layers/meta-digi
|
|
|
|
# Include the machine configuration for Digi's ConnectCore MP1.
|
|
include conf/machine/include/ccmp1.inc
|
|
|
|
DIGI_SOM = "ccmp13"
|
|
|
|
# =========================================================================
|
|
# Chip architecture
|
|
# =========================================================================
|
|
DEFAULTTUNE = "cortexa7thf-neon-vfpv4"
|
|
MACHINEOVERRIDES = "arm:armv7ve:stcommon:stm32mpcommon:stm32mp1common:${DIGI_FAMILY}:${DIGI_SOM}:ccmp13-dvk"
|
|
|
|
# =========================================================================
|
|
# boot device
|
|
# =========================================================================
|
|
# Configure the list of boards that enable NAND/SDCARD
|
|
DEVICE_BOARD_ENABLE:NAND += "${STM32MP_DEVICETREE}"
|
|
DEVICE_BOARD_ENABLE:SDCARD += "${@bb.utils.contains('BOOTDEVICE_LABELS', 'sdcard', '${STM32MP_DEVICETREE}', '', d)}"
|
|
|
|
# =========================================================================
|
|
# U-Boot configs
|
|
# =========================================================================
|
|
# Last one is the default (the one the symlinks point at)
|
|
UBOOT_CONFIG = "ccmp13-dvk"
|
|
UBOOT_CONFIG[ccmp13-dvk] = "ccmp13-dvk_defconfig,,u-boot-dtb.${UBOOT_SUFFIX}"
|
|
|
|
# =========================================================================
|
|
# Machine settings
|
|
# =========================================================================
|
|
# Define list of devicetree per board
|
|
STM32MP_DEVICETREE ??= "ccmp13-dvk-256MB"
|
|
# Extra DTB for board - need to specify it with .dtb ...
|
|
STM32MP_KERNEL_DEVICETREE:ccmp13-dvk += " \
|
|
ccmp133-dvk.dtb \
|
|
_ov_board_mikroe-accel2-click_ccmp13-dvk.dtbo \
|
|
_ov_board_mikroe-gyro-click_ccmp13-dvk.dtbo \
|
|
_ov_board_mikroe-i2c-to-spi-click_ccmp13-dvk.dtbo \
|
|
_ov_board_pwm8_ccmp13-dvk.dtbo \
|
|
_ov_board_v2_ccmp13-dvk.dtbo \
|
|
_ov_som_bt_ccmp13.dtbo \
|
|
_ov_som_bt_test_ccmp13.dtbo \
|
|
_ov_som_wifi_ccmp13.dtbo \
|
|
"
|
|
# Set DTB load address to U-Boot fdt_addr_r
|
|
UBOOT_DTB_LOADADDRESS = "0xc4000000"
|
|
# List of U-Boot device tree to use
|
|
UBOOT_DEVICETREE = "${STM32MP_DEVICETREE}"
|
|
|
|
# =========================================================================
|
|
# Machine features
|
|
# =========================================================================
|
|
MACHINE_FEATURES += "bluetooth"
|
|
MACHINE_FEATURES += "wifi"
|
|
|
|
# =========================================================================
|
|
# Firmware
|
|
# =========================================================================
|
|
MACHINE_FIRMWARE:append = " firmware-murata-infineon"
|
|
|
|
MACHINE_EXTRA_RRECOMMENDS += " \
|
|
${MACHINE_FIRMWARE} \
|
|
"
|
|
|
|
# =========================================================================
|
|
# Image
|
|
# =========================================================================
|
|
# Image FS types
|
|
# tar.xz is omitted here because it's already being added via
|
|
# st-machine-common-stm32mp.inc in the meta-st-stm32mp layer
|
|
IMAGE_FSTYPES += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", \
|
|
"boot.ubifs recovery.ubifs squashfs", \
|
|
"ubifs boot.ubifs recovery.ubifs", d)}'
|
|
|
|
# Default image for install scripts
|
|
DEFAULT_IMAGE_NAME ?= "core-image-base"
|
|
|
|
# Wic files
|
|
WKS_FILE += "ccmp1-256MB.wks.in"
|
|
|
|
# For populate_sdk, gcc-arm-none-eabi_9 has a python2 dependency, so we remove it.
|
|
ST_TOOLS_FOR_SDK:remove = "nativesdk-gcc-arm-none-eabi"
|
|
|
|
# =========================================================================
|
|
# flashlayout
|
|
# =========================================================================
|
|
# Define the config labels to use to generate flashlayout file
|
|
|
|
# =========================================================================
|
|
# extlinux configuration
|
|
# =========================================================================
|
|
# As example, modify the default boot config for each target to M4 config
|
|
|
|
# =========================================================================
|
|
# Debug trace
|
|
# =========================================================================
|
|
# activate/deactivate the debug and trace on boot stage
|
|
ST_DEBUG_TRACE = "0"
|
|
|
|
# =========================================================================
|
|
# optee
|
|
# =========================================================================
|
|
# Map OPTEE configuration to device tree list
|
|
OPTEE_CONF = "${STM32MP_DEVICETREE}"
|
|
|
|
# =========================================================================
|
|
# Flashlayouts
|
|
# =========================================================================
|
|
|
|
# =========================================================================
|
|
# Kernel
|
|
# =========================================================================
|
|
KERNEL_IMAGETYPE = "${@bb.utils.contains('TRUSTFENCE_SIGN_FIT_STM', '1', 'fitImage', 'zImage', d)}"
|
|
KERNEL_CLASSES = "kernel-fitimage"
|
|
KERNEL_ALT_IMAGETYPE = "Image vmlinux"
|
|
KERNEL_DEFCONFIG ?= "arch/arm/configs/ccmp1_defconfig"
|
|
|
|
# =========================================================================
|
|
# DEY settings
|
|
# =========================================================================
|
|
IMAGE_CLASSES = "image_types_digi image_types-stubi"
|
|
|
|
# mkfs.ubifs parameters for boot partition (the one holding kernel and device tree files)
|
|
# Max LEB count (-c 255) calculated for a partition of up to 32 MiB considering 128 KiB erase-block size.
|
|
MKUBIFS_BOOT_ARGS ?= "-m 2048 -e 126976 -c 255"
|
|
|
|
# mkfs.ubifs parameters for recovery partition
|
|
# Same parameters as the boot partition, but using zlib compression to reduce image size.
|
|
MKUBIFS_RECOVERY_ARGS ?= "${MKUBIFS_BOOT_ARGS} -x zlib"
|
|
|
|
# mkfs.ubifs parameters for rootfs partition
|
|
# Max LEB count (-c 8191) calculated for a partition of up to 1 GiB considering 128 KiB erase-block size.
|
|
MKUBIFS_ARGS ?= "-m 2048 -e 126976 -c 8191"
|
|
|
|
# Wireless external module
|
|
HAS_WIFI_VIRTWLANS = "true"
|
|
|
|
# Set this platform without graphical support
|
|
IS_HEADLESS = "true"
|
|
|
|
# Remove additional bluetooth packages
|
|
MACHINE_BLUETOOTH_EXTRA_INSTALL = ""
|
|
|
|
# XBee
|
|
XBEE_RESET_N_GPIO ?= "GPIOG@15"
|
|
XBEE_TTY ?= "ttySTM2"
|
|
|
|
# =========================================================================
|
|
# alsa
|
|
# =========================================================================
|
|
ALSA_LIST = ""
|
|
|
|
# Per-machine DISTRO_FEATURES customization
|
|
MACHINE_DISTRO_FEATURES_ADD = "efi optee"
|
|
MACHINE_DISTRO_FEATURES_REMOVE = "gstreamer opengl vulkan wayland x11"
|
|
|
|
# Disable use of vendorfs partition
|
|
ST_VENDORFS = "0"
|
|
|
|
# Boot artifacts to be copied from the deploy dir to the installer ZIP
|
|
BOOTABLE_ARTIFACTS = " \
|
|
arm-trusted-firmware/tf-a-ccmp13-dvk-256MB-nand.stm32 \
|
|
fip/fip-ccmp13-dvk-256MB-optee.bin \
|
|
"
|
|
|
|
# TRUSTFENCE basic support
|
|
# Alternatively, uncommment to enable the console with the specified GPIO
|
|
# TRUSTFENCE_CONSOLE_GPIO_ENABLE_NAME ?= "GPIOA5"
|
|
|
|
# Default overlayfs_etc mount point and type
|
|
OVERLAYFS_ETC_MOUNT_POINT ?= "/mnt/data"
|
|
OVERLAYFS_ETC_DEVICE ?= "ubi1:data"
|
|
OVERLAYFS_ETC_FSTYPE ?= "ubifs"
|