cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to build from my custom device trees generated by CubeMX and getting this error "fatal error: stm32mp15-m4-srm.dtsi: No such file or directory" at the OP-TEE build stage.

JKell.6
Associate III

I've written a script that basically builds everything based on this wiki - wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package#Updating_the_kernel_device_tree

With the script I can successfully build from the existing DK2 DTS files but not my custom DTS files.

4 REPLIES 4
JKell.6
Associate III

Grep'ing for stm32mp15-m4-srm.dtsi I'm finding that it exists only in two places: the Linux kernel source DTS directory and U-Boot source DTS directory. Not sure if it should exist elsewhere though. I'm going to try copying it over to the OPTEE source DTS directory to see if that resolves the issue.

JKell.6
Associate III

Nope, that failed miserably. Generates a parsing error during OPTEE build now. Back to square one.

JKell.6
Associate III

Well I tried a couple other things and have broken it enough that now it gives this error

make[1]: *** No rule to make target 'core/arch/arm/dts/stm32mp15-m4-srm.dtsi', needed by '/home/...

Looking like its time to just delete the whole SDK and start over

JKell.6
Associate III

Copied a couple m4-srm files into the optee directory which resolved the issue.