Hi all,

I am trying to get Weston working with the GPU SGX530 enabled.
Basically I would like to get the same results described in BeagleBoneBlack/SGX 
+ Qt EGLFS + Weston ( 
https://elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston ) using Yocto.

At the moment I am using:

* meta-ti: branch zeus, commit 1dd4558 (with a fixed .wks see 
https://lists.yoctoproject.org/g/meta-ti/message/12916). I will probably switch 
to tag ti2020.00 or previous if needed
* poky: branch zeus, commit ca9cc50
* meta-openembedded: branch zeus, commit 44e458f
* A very simple patch applied by a ti-sgx-ddk-km_%.bbappend to set 
"$(1)_compiler_preferred_target := arm-linux-gnueabihf" when 
arm-poky-linux-gnueabi is used (Similar to the patch described in 
https://www.yoctoproject.org/pipermail/meta-ti/2019-September/012193.html but 
with arm-poky-linux-gnueabi instead of arm-oe-linux-gnueabi ).

The board seems to boot properly if I use core-image-base but when I run 
bitbake core-image-weston I get some bitbake errors due to libgl.

*First approach*
In my local.conf

IMAGE_INSTALL_append = " ti-sgx-ddk-km ti-sgx-ddk-um libdrm"
PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles1= "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/mesa = "ti-sgx-ddk-um"

After taking a look to https://code.qt.io/cgit/yocto/meta-boot2qt.git 
meta-ti-extras layer dropped with commit 
17747110065d6d1482fb5786773c27d78f7c8bac I added in my ti-sgx-ddk-um_%.bbappend

PROVIDES += "virtual/mesa"

Anyway when I run bitbake core-image-weston, it stops immediately with the 
error:
Nothing PROVIDES 'virtual/libgl' (but 
/home/qem/Yocto/poky-zeus/meta/recipes-graphics/clutter/clutter-1.0_1.26.2.bb, 
/home/qem/Yocto/poky-zeus/meta/recipes-graphics/cairo/cairo_1.16.0.bb, 
/home/qem/Yocto/poky-zeus/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb 
DEPENDS on or otherwise requires it)
mesa-gl PROVIDES virtual/libgl but was skipped: 
PREFERRED_PROVIDER_virtual/libgl set to mesa, not mesa-gl
mesa PROVIDES virtual/libgl but was skipped: 
PREFERRED_PROVIDER_virtual/libgles1 set to ti-sgx-ddk-um, not mesa

*Second approach*
Considering 
https://www.yoctoproject.org/pipermail/meta-ti/2016-October/009100.html I 
deleted the  In my ti-sgx-ddk-um_%.bbappend and modified my local.conf setting

PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles1 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_libgbm = "libgbm"
PREFERRED_PROVIDER_libgbm-dev = "libgbm-dev"

But bitbake stops with the same error of the first approach.

*Doubts about Weston and OpenGL*
Looking for a solution I sow https://patchwork.openembedded.org/patch/152082/ 
and 
http://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-graphics/wayland/weston_4.0.0.imx.bb?h=thud
 and I am wondering if "REQUIRED_DISTRO_FEATURES = "opengl"" is strictly 
required for Weston 7 or if a solution similar to the one implemented for 
Weston 4 would be viable.

Any suggestion or consideration would be much appreciated

Regards

Luca
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12926): 
https://lists.yoctoproject.org/g/meta-ti/message/12926
Mute This Topic: https://lists.yoctoproject.org/mt/74137718/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to