2022-02-21 02:18 AM
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
Solved! Go to Solution.
2022-02-25 01:01 AM
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.
How should I configure the cubeMX so that it generate 5.04 version dts?
It seems that everything is hardcoded.
Regards,
Leung
2022-03-02 09:05 AM
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
To my knowledge there is no other way to use an old version of OpenSTLinux.
Regards,
Kevin