cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting cubeMX generated dts file with yocto

WLeun.3
Associate III

Hi everyone,

I am using stm32mp157f-dk2 with openSTLinux-5.4-dunfell-eglf distribution.

I would like to configure my device tree using cubeMX.

The generated dts file seems OK to me. However, how can I tell yocto to use my newly generated device tree?

The instruction on https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine

didn't mention anything about this.

I have tried to modify the meta-st-stm32mp-addons/classes/cubemx-stm32mp.bbclass but it doesn't work.

It seems to me that the default meta-st-stm32mp-addons/conf/machine/stm32mp1-mx.conf is not used.

​Regards,

Leung

11 REPLIES 11

Hi @Kevin HUBER​ ,

After changing the stm32mp15-m4-srm.dtsi to stm32mp157-m4-srm.dtsi in

mx/qt/CA7/DeviceTree/qt/kernel/stm32mp157f-qt-mx.dts
mx/qt/CA7/DeviceTree/qt/u-boot/stm32mp157f-qt-mx.dts

I am able to compile the image successfully.

However, when I booting up the device, I received

ERROR: Failed to allocate 0x11e99 bytes below 0xd0000000.

After checking, It found that the cubeMX generate the dts assuming that I am using openstlinux5.10.

0693W00000KaWAoQAN.pngHow should I configure the cubeMX so that it generate 5.04 version dts?

It seems that everything is hardcoded.

Regards,

Leung

Hello @WLeun.3​ ,

You have to use the version of CubeMX delivered with your OSTL (5.4) version which is the STM32CubeMX6.1.

Wiki: https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/STM32MP15_ecosystem_release_note_-_v2.1.0#STM32CubeMX

STM32CubeMX v6.1 -> This one generates Device tree compliance with openstlinux-5.4-dunfell-mp1-20-11-12 tag

0693W00000KbAVhQAN.png 

To my knowledge there is no other way to use an old version of OpenSTLinux.

Regards,

Kevin

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.