Skip to main content
stmdelta
Associate II
March 13, 2019
Solved

What is the process for initializing the OpenEmbedded build environment st-example-image-qt?

  • March 13, 2019
  • 10 replies
  • 5875 views

Hi,

I have followed link...

https://wiki.st.com/stm32mpu/index.php/STM32MP1_Distribution_Package#Checking_the_prerequisites

5.1 Initializing the OpenEmbedded build environment

PC $> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-qt5/script???

Which script has to be executed for Qt?

This topic has been closed for replies.
Best answer by Bernard PUEL

Hello,

I do confirm the build fails with "stm32mp1-disco" machine for this configuration and I have entered an internal ticket for that.

But: you can do the same successfully using the "stm32mp1" machine with the following procedure:

> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

> bitbake st-example-image-qt

"stm32mp1-disco" is building the image for the disco board only whereas "stm32mp1" is building for all ST boards.

Note:

Qt example image is (like the other sample images) an example of Qt integration. It has from far not the level of testing and performance of the Weston/wayland image.

It is an image that will (hopefully) build and boot with no warranty all the features will be there. It is up to ST customers to take it as a starting point (or not) and enhance it to their product level.

10 replies

Bernard PUEL
Technical Moderator
March 14, 2019

You need to launch the same script that will configure your Yocto environment and prepare your build directory:

PC $> source layers/meta-st/scripts/envsetup.sh

The script will ask you to select your distro then your machine.

Or you can launch directly the script with the right arguments:

PC $> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

stmdelta
stmdeltaAuthor
Associate II
March 14, 2019

That works - thank you. A built is done.

A folder "build-openstlinuxeglfs-stm32mp1-disco" was created...

... but where can I found the image, which I can flash with STM32_Programmer_CLI?

The example shows only the "weston-image"...

PC $> STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv

Bernard PUEL
Technical Moderator
March 14, 2019

same as for other build dir... tmp-glibc/deploy/images/stm32mp1-disco/

stmdelta
stmdeltaAuthor
Associate II
March 14, 2019

I can't find a "FlashLayout_sdcard_***.tsv file".

Bernard PUEL
Technical Moderator
March 14, 2019

to build your QT image, you did:

$ bitbake st-example-image-qt

right ? Are you sure you build was successful ?

stmdelta
stmdeltaAuthor
Associate II
March 15, 2019

No - one error report "QtWebkit" was displayed...

Following procedure:

>DISTRO=openstlinux-eglfs MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.sh

>bitbake st-example-image-qt

Bernard PUEL
Technical Moderator
March 15, 2019

ok I will look at it

DenisH
Visitor II
March 15, 2019

Extra questions for you stmdelta:

Do you succeed in building the "default" image st-image-weston?

To do so you need to source layers/meta-st/scripts/envestup.sh anew and select this image

If yes, you can consider that your environment (PC prequesites) is good, and you can move to the second step, compilation of a QT example image.

If still KO, can you share the error message?

Bernard PUEL
Bernard PUELBest answer
Technical Moderator
March 18, 2019

Hello,

I do confirm the build fails with "stm32mp1-disco" machine for this configuration and I have entered an internal ticket for that.

But: you can do the same successfully using the "stm32mp1" machine with the following procedure:

> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

> bitbake st-example-image-qt

"stm32mp1-disco" is building the image for the disco board only whereas "stm32mp1" is building for all ST boards.

Note:

Qt example image is (like the other sample images) an example of Qt integration. It has from far not the level of testing and performance of the Weston/wayland image.

It is an image that will (hopefully) build and boot with no warranty all the features will be there. It is up to ST customers to take it as a starting point (or not) and enhance it to their product level.

Bernard PUEL
Technical Moderator
March 28, 2019

After investigation about "stm32mp1-disco" machine build, there is no pb. The build fails because of host PC resource reaching the limits (even on a powerful PC). So the principle when this kind of problem occurs (generally at the end of the build around the webkit compilation) is to launch again the compilation (with -k bitbake option). After few trials, the build will normally succeed (this is what we can observe on our side).