cancel
Showing results for 
Search instead for 
Did you mean: 

STM U-Boot Version Compatibility with Linux 5.15-stm32mp-r2.2

VivekB
Associate III

Hello,

I am currently using Linux kernel version v5.15-stm32mp-r2.tar.gz and U-Boot version v2021.10-stm32mp-r2.tar.gz for my project based on the STM32MP family. I have recently upgraded the Linux kernel to linux-5.15-stm32mp-r2.2.

However, I am unsure which U-Boot version is compatible with linux-5.15-stm32mp-r2.2. I tried using U-Boot version v2022.10-stm32mp-r2 with this kernel, but encountered the following error during compilation:

 

Error: arch/arm/dts/.stm32mp157c-ccb-mx.dtb.pre.tmp:1478.1-6 Label or path sram not found
FATAL ERROR: Syntax error parsing input tree
Check /home/vivekb/workspace/source/NGACEM-269/SSB-buildroot/output/build/uboot-custom/arch/arm/dts/.stm32mp157c-ccb-mx.dtb.pre.tmp for errors
make[4]: *** [scripts/Makefile.lib:336: arch/arm/dts/stm32mp157c-ccb-mx.dtb] Error 1
make[3]: *** [dts/Makefile:44: arch-dtbs] Error 2
make[2]: *** [Makefile:1173: dts/dt.dtb] Error 2
make[1]: *** [package/pkg-generic.mk:293: /home/vivekb/workspace/source/NGACEM-269/SSB-buildroot/output/build/uboot-custom/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2

 

 

The error seems to be related to the device tree (stm32mp157c-ccb-mx.dtb - my top level dts file) and missing labels such as "sram". I noticed the sram label has got changed to sram4 in the new uboot. So I changed the sram label to sram4 in my dts as follows:

 

1478 &sram4{
1479 
1480     dma_pool:dma_pool@0{
1481         reg = <0x50000 0x10000>;
1482         pool;
1483     };
1484 };

 

I am not sure whether this will work or not but just to get it compiled I did it. But unfortunately  

 but then I get into the following error: 

 

  DTC     arch/arm/dts/stm32mp157c-ccb-mx.dtb
arch/arm/dts/stm32mp157c-ccb-mx.dtb: ERROR (phandle_references): /ahb/m4@10000000/m4_system_resources/can@4400e000: Reference to non-existent node or label "scmi_clk"

arch/arm/dts/stm32mp157c-ccb-mx.dtb: ERROR (phandle_references): /ahb/m4@10000000/m4_system_resources/can@4400f000: Reference to non-existent node or label "scmi_clk"

ERROR: Input tree has errors, aborting (use -f to force output)

 

Since I did not encounter any similar issues when upgrading the Linux kernel to linux-5.15-stm32mp-r2.2, I suspect that U-Boot version v2022.10-stm32mp-r2 might not be fully compatible with this updated kernel version.

Could anyone confirm if U-Boot v2022.10-stm32mp-r2 is indeed compatible with linux-5.15-stm32mp-r2.2? Also, I would appreciate any insights or suggestions on how to resolve this issue. Should I be using an earlier or different version of U-Boot that is more compatible with this kernel?

Any help or links to relevant documentation would be greatly appreciated!

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions

Those are minor release (bug fixes/maturation)..

https://wiki.st.com/stm32mpu-ecosystem-v4/wiki/STM32_MPU_OpenSTLinux_release_note_-_v4.1.0#Minor_release_updates

Regards.

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.

View solution in original post

4 REPLIES 4
PatrickF
ST Employee

HI @VivekB 

here is the release note for OpenSTLinux Ecosystem v4 (Linux kernel 5.15)

https://wiki.st.com/stm32mpu-ecosystem-v4/wiki/STM32_MPU_ecosystem_release_note#OpenSTLinux_-28Arm-C2-AE_Cortex-C2-AE-A7-29

 

for reference, latest ecosystem v6 release note (Linux kernel 6.6)

https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ecosystem_release_note#OpenSTLinux_for_Arm-C2-AE_Cortex-C2-AE-A

Regards.

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.
VivekB
Associate III

Hi @PatrickF 

Thank you for your response. I have a follow-up question: the release notes appear to address Linux kernel v5.15-stm32mp-r2 (v5.15.67). However, could you clarify if there is a separate release note available for Linux kernel v5.15-stm32mp-r2.2?

v5.15-stm32mp-r2

v5.15-stm32mp-r2.2

Sorry it is slightly confusing - are the above two separate releases or part of the same release? 

I appreciate your help in resolving this query.

Many thanks,
Regards,
Vivek

Those are minor release (bug fixes/maturation)..

https://wiki.st.com/stm32mpu-ecosystem-v4/wiki/STM32_MPU_OpenSTLinux_release_note_-_v4.1.0#Minor_release_updates

Regards.

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.
VivekB
Associate III

Many thanks @PatrickF for the help, really appreciate.