Skip to main content
Associate III
July 18, 2024
Solved

Clarifications regarding OpenSTLinux

  • July 18, 2024
  • 2 replies
  • 3076 views

Hello

 

We have built OpenSTLinux(Openstlinux-6.1-yocto-mickledore-mp1-v23.06.21) for stm32mp157f-dk2 Board and I have built st-image-weston image. Iam new to this Yocto,so I request you to help with the following:

  • How to make changes in dts & dtsi files (u-boot & Linux) and source files and build the image.
  • And Iam working on display, I would like to write an application and run it on the display. So hoping to get help regarding how to add Qt (Qt5) packages and the respective libraries so that i could run a GUI on the display.

 

 

Thanks & Regards

Srikanth.R

Best answer by STea

it seems that your executable is trying to link to the dynamic library libatomic.so which cannot be found in you file system default path under /lib so either import it manually to this placement or if you can use a static link method in your QT project to ensure that your executable can run in a standalone mode.

You can list the shared library dependencies which your executable is dependent upon. The ldd <name-of-executable> command does that for you. 
you can add the libatpomic.so by following this guide (see Include a prebuilt shared library) .
Regards

2 replies

ST Employee
July 19, 2024

Hello @Srikanth1 ,

regarding you first request you can do changes and generate the .dts files with CubeMX tool this can be done by following this WIKI article which depict the steps to follow:
STM32 MPU device tree - stm32mpu
How to compile the device tree with the Developer Package - stm32mpu
regarding the second point you can follow the following this GitHub link to add support for QT:

STMicroelectronics/meta-st-x-linux-qt (github.com)
Regards

Srikanth1Author
Associate III
July 26, 2024

 

Hello 

I apologise for the late response

We have changed the version to Openstlinux-5.15-yocto-kirkstone-mp1-v23.07.26  from Openstlinux-6.1-yocto-mickledore-mp1-v23.06.21 for for stm32mp157f-dk2 board.

We have successfully and flashed the image and executed the Qt-examples.But when we are trying to run a custom application(the executable file of Qt).But we get an error message.The error message is mentioned in the attached screenshot. 

 

 

STeaBest answer
ST Employee
August 14, 2024

it seems that your executable is trying to link to the dynamic library libatomic.so which cannot be found in you file system default path under /lib so either import it manually to this placement or if you can use a static link method in your QT project to ensure that your executable can run in a standalone mode.

You can list the shared library dependencies which your executable is dependent upon. The ldd <name-of-executable> command does that for you. 
you can add the libatpomic.so by following this guide (see Include a prebuilt shared library) .
Regards