cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257-DK Compile external device tree fails

edablan
Associate

I've been playing with the STM32MP257-DK, first looking at the start package. I have now delved further with the developer package, and ran into issues while following the README.HOW_TO.txt that is found in the linux kernel directory. I followed the directions exactly, and created the filesystem structure as shown in ST documents. But when I run this line below, I get failures. It seems the external device tree does not have a .dtb file. When Iook at what is present in the external device tree directory it only contains .dts files, but NO .dtb files. The previous instructions place the .dtb files in the following locations. The error seems to be in the <name of external devicetree .dtb> argument.  I tried pointing it to the install_artifact/boot but that does not fix the issues even though there are .dtb files there since MAKE looks for the .dtb files specifically in the KBUILD_EXTDTS="${EXTDT_DIR}/linux" argument. I also tried pointing it to the build/arch/arm64/boot/dts/st since there are .dtb files there that were compiled for the project. But that also does not work

I followed the directions for the external devicetree using the README, and unzipped the tar.gz contains the .dts files, but there are NO .dtb files. The closest .dts file I could find for the stm32mp257f-dk was this stm32mp257f-dk-ca35tdcid-ostl.dts , but it still fails when I use that. What am I doing wrong? It fails with the same error no matter what I choose as a .dtb name?

- $PWD/install_artifact/boot/[uImage|Image.gz]
- $PWD/install_artifact/boot/<stm32-boards>.dtb

Command Ran that causes error:
$ make ${IMAGE_KERNEL} O="${OUTPUT_BUILD_DIR}" KBUILD_EXTDTS="${EXTDT_DIR}/linux" <name of external devicetree .dtb>

Error:
$ make ${IMAGE_KERNEL} O="${OUTPUT_BUILD_DIR}" KBUILD_EXTDTS="${EXTDT_DIR}/linux" stm32mp257f-dk-ca35tdcid-ostl.dts -j 3
make[1]: Entering directory '/home/parallels/STM32MPU-Ecosystem-v6.6/Developer-Package/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/linux-stm32mp-6.6.48-stm32mp-r1-r0/build'
GEN Makefile
make[2]: *** No rule to make target 'stm32mp257f-dk-ca35tdcid-ostl.dts'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/parallels/STM32MPU-Ecosystem-v6.6/Developer-Package/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/linux-stm32mp-6.6.48-stm32mp-r1-r0/linux-6.6.48/Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/home/parallels/STM32MPU-Ecosystem-v6.6/Developer-Package/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/linux-stm32mp-6.6.48-stm32mp-r1-r0/build'
make: *** [Makefile:234: __sub-make] Error 2




0 REPLIES 0