cancel
Showing results for 
Search instead for 
Did you mean: 

How to compile device tree for board ODYSSEY-STM32MP157C on arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0

EtAntonio EtAntonio
Associate II

Hi,

I'm using your wiki

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel

to add some device threes that belongs to a different board using stm32mp1, the other board is

https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/

and here are the device tree source I want to use:

https://github.com/Seeed-Studio/seeed-linux-dtoverlays/tree/master/overlays/stm32mp1

so I just copy these files inside

/home/developer/STM32MPU_workspace/STM32MP15-Ecosystem-v2.0.0/Developer-Package/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0/linux-5.4.31/arch/arm/boot/dts

compiling the kernel using:

make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040

do not create the dtb files for seed dts.

I've also added a row to the makefile:

dtb-$(CONFIG_ARCH_STM32) += \

...

   stm32mp157a-avenger96.dtb \

   stm32mp1-seeed-i2c4-overlay \

...

but the result is the following error:

make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040

 CALL   scripts/checksyscalls.sh

 CALL   scripts/atomic/check-atomics.sh

 CHK    include/generated/compile.h

 Kernel: arch/arm/boot/Image is ready

 Kernel: arch/arm/boot/zImage is ready

 Kernel: arch/arm/boot/uImage is ready

make: 'vmlinux' is up to date.

make[1]: *** No rule to make target 'arch/arm/boot/dts/stm32mp1-seeed-i2c4-overlay', needed by '__build'. Stop.

Makefile:1242: recipe for target 'dtbs' failed

make: *** [dtbs] Error 2

can you suggest me how to compile such DTS? I woud be happy to use CubeMX but the

ODYSSEY-STM32MP157C

is not recognized.

Thanks,

Antonio

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @EtAntonio EtAntonio​ 

Seeed company looks to provide their ODYSSEY board with integrated software solution.

Seems they use few tuning on top of our delivery I'm not mastering.

I guess it could be more efficient to ask some support from this company about the proper way to move on new kernel.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
EtAntonio EtAntonio
Associate II

I'm using STM32MP1-DK2 but there's a big problem with it concerning our project, it is not provided an on-board emmc.

It is just available with EV1 that is completely another price, sorry about this.