cancel
Showing results for 
Search instead for 
Did you mean: 

Compile Device Tree

NPal.2
Senior

Hi all,

What is the most correct and easiest way to generate dtb for the STM32MP1?

I tried following this :

https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package

Looks way complicated and I get below error :

/opt/st/stm32mp1/3.1-openstlinux-5.10-dunfell-mp1-21-03-31/sysroots/x86_64-ostl_sdk-linux/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so)

post that came across workshop video which does it in few steps.

https://www.youtube.com/watch?v=XhB0rGLjl_Q&list=PLnMKNibPkDnFeV4sBarnsAtFTg7h6V-9_&index=9

I couldn't seem to get it up and compile file in any case? I mean it exists cleanly but not dtb gets generated?

What i might be missing here?

13 REPLIES 13

Hi @AlexandrShipovsky​ : If you look closely at the error message it says reference to an non-existent node. Are you sure you dts file has correct changes in place?

Hi @Jean-Marc B​ : Works like charm on 20.04. Thanks.

In fact, I did not change this file at all. The file code was supplied in the developer's package. These devices are all present on the STM32MP157A-DK1 board

I found a problem. For some reason, CubeIDE refers to the Makefile and directories of my old project with the same name to another folder. And of course there are no necessary files there. At the same time, the paths in the project settings in CubeIDE are specified correctly. I will understand