Skip to main content
MBassi
Associate III
June 16, 2025
Question

Issue Compiling U-boot for STM32MP25 using Developer Package + X-LINUX-RT expansion package

  • June 16, 2025
  • 0 replies
  • 293 views

Hello,

I'm trying compiling OpenSTLinux 6.6 for STM32MP257-EV1 using developer package + X-LINUX-RT expansion package. I've followed X-LINUX-RT expansion package guide at par. 7.2 and compiled linux kernel and optee successfully.

Now I'm trying to compile u-boot but the process stops with following errors:

 LD u-boot
 OBJCOPY u-boot.srec
 OBJCOPY u-boot-nodtb.bin
 RELOC u-boot-nodtb.bin
make[4]: *** No rule to make target 'arch/arm/dts/stm32mp257f-ev1-rt.dtb', needed by 'dtbs'. Stop.
make[3]: *** [/home/marco/MP257_Ecosystem6/en.SOURCES-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06_X-LINUX-RT/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/u-boot-stm32mp-v2023.10-stm32mp-r1-r0/u-boot-stm32mp-v2023.10-stm32mp-r1/dts/Makefile:44: arch-dtbs] Error 2
make[2]: *** [/home/marco/MP257_Ecosystem6/en.SOURCES-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06_X-LINUX-RT/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/u-boot-stm32mp-v2023.10-stm32mp-r1-r0/u-boot-stm32mp-v2023.10-stm32mp-r1/Makefile:1162: dts/dt.dtb] Error 2
make[2]: Leaving directory '/home/marco/MP257_Ecosystem6/MP2_X-LINUX-RT_build/u-boot-v2023.10/stm32mp25_defconfig'
make[1]: *** [Makefile:177: sub-make] Error 2
make[1]: Leaving directory '/home/marco/MP257_Ecosystem6/en.SOURCES-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06_X-LINUX-RT/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/u-boot-stm32mp-v2023.10-stm32mp-r1-r0/u-boot-stm32mp-v2023.10-stm32mp-r1'
make: *** [/home/marco/MP257_Ecosystem6/en.SOURCES-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06_X-LINUX-RT/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/u-boot-stm32mp-v2023.10-stm32mp-r1-r0/u-boot-stm32mp-v2023.10-stm32mp-r1/../Makefile.sdk:175: uboot-stm32mp25_defconfig] Error 1

This is the command I used: 

make -f $PWD/../Makefile.sdk -j12 BLD_PATH=$BLD_PATH_UBOOT UBOOT_CONFIG="default" UBOOT_DEFCONFIG="stm32mp25_defconfig" UBOOT_BINARY=u-boot.dtb DEPLOYDIR="${FIP_DEPLOYDIR_ROOT}/u-boot" DEVICE_TREE=stm32mp257f-ev1-rt uboot

It's taken from one suggested in the guide (par. 7.2.4.2 in u-boot section for stm32mp257f-ev1-rt.dts) I only added the param BLD_PATH=$BLD_PATH_UBOOT to compile outside source code tree. 
I attached the complete compile log if needed.

Can someone help me, please

Regards

Marco.