2023-09-05 08:00 PM
I am making a board using STM32mp151a.
I want to make Linux OS for this machine.
I refered to the web page below.
https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine
However, Error happened on bitbake process.
Please tell me the cause and countermeasures.
Error message
************************************************** *************
| ERROR: Input tree has errors, aborting (use -f to force output)
| make[1]: *** [/home/chino/STM32MPU_workspace/yct/build-openstlinuxweston-stm32mp1-led_g_test2/tmp-glibc/work-shared/stm32mp1-led_g_test2/kernel-source/scripts/Makefile.lib:414 : arch/arm/boot/dts/stm32mp157f-led_g_test2-mx.dtb] Error 2
| make: *** [/home/chino/STM32MPU_workspace/yct/build-openstlinuxweston-stm32mp1-led_g_test2/tmp-glibc/work-shared/stm32mp1-led_g_test2/kernel-source/Makefile:1471: stm32mp157f-led_g_test2-mx. dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/chino/STM32MPU_workspace/yct/layers/meta-st/meta-st-stm32mp/recipes-kernel/linux/linux-stm32mp_6.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1902 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing build history
NOTE: Writing buildhistory took: 7 seconds
Summary: 1 task failed:
/home/chino/STM32MPU_workspace/yct/layers/meta-st/meta-st-stm32mp/recipes-kernel/linux/linux-stm32mp_6.1.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.
************************************************** *************
stm32mp1-led_g_test2.conf
################################################# ##########################
#
# User machine customization sections
#
################################################# ##########################
# Boot Scheme
# ================================================= ========================
BOOTSCHEME_LABELS += "optee"
# Boot Device Choice
# ================================================= ========================
# Define the boot device supported
BOOTDEVICE_LABELS += "sdcard"
#BOOTDEVICE_LABELS += "emmc"
#BOOTDEVICE_LABELS += "nand-4-256"
#BOOTDEVICE_LABELS += "nor-sdcard"
# Support Feature Choice
# ================================================= ========================
# Define the features to enable on board
#MACHINE_FEATURES += "bluetooth"
#MACHINE_FEATURES += "wifi"
# Specific firmwares and kernel modules configuration
# ================================================= ========================
# Set the list of kernel modules to be auto-loaded during boot
#KERNEL_MODULE_AUTOLOAD += "goodix"
# Set Bluetooth related package list needed when 'bluetooth' feature is enabled
#BLUETOOTH_LIST += ""
# Set Wifi related package list needed when 'wifi' feature is enabled
#WIFI_LIST += ""
# CubeMX Project Config
# ================================================= ========================
# Assign CubeMX Board devicetree and project path name
CUBEMX_DTB = "stm32mp157f-led_g_test2-mx"
CUBEMX_PROJECT = "mx/led_g_test2"
# Indicate which STM32MP package are used: 'A', 'C', 'D' or 'F'
CUBEMX_SOC_PACKAGE = "F"
# Indicate the size of DDR available on BOARD: 512 or 1024 (size in MB unit)
#CUBEMX_BOARD_DDR_SIZE = "1024"
# Indicate if you like to disable the DVFS which are activated by default
#CUBEMX_SOC_DVFS_OFF = "0"
2023-09-07 09:57 AM
Hi @stomo.1 ,
Issue happens during linux device tree compilation. Double check you properly set CUBEMX_PROJECT and CUBEMX_DTB.
From your conf and my understanding you might have the kernel dts under <path of STM32MP1_Distribution_Package>/layers/meta-st/meta-st-stm32mp-addons/mx//led_g_test2//kernel
Don't you any detailed log provided by Yocto ?
Did you use CubeMX version matching your ecosystem version to generate the dts ?
Olivier