Disable Renesas R-Car H3 OpenGLES support

Hi,

I am building Renesas Yocto image by using this tutorial: https://elinux.org/R-Car/Boards/Yocto-Gen3/v3.21.0. During building, it automatically installs OpenGL ES 3.1 graphics rendering API. I want to know whether it is possible to disable this graphics so that we don't have OpenGL ES included in the final image?

I would highly appreciate some quick support.

Thanks & Regards,

Asad Javed

Parents
  • Hi Asad,

    "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/mmp/*.conf" is used as default configuration on https://elinux.org/R-Car/Boards/Yocto-Gen3/v3.21.0#Build_using_script.

    Instead of that, you can use "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf"

    This configuration doesn't use OpenGL library.

    Then, you can use local.conf (without Wayland/Weston) and local-wayland.conf (with Wayland/Weston by cpu rendering).

    If you want to use local.conf, you need to disable "cp conf/local-wayland.conf conf/local.conf" in build script (https://elinux.org/R-Car/Boards/Yocto-Gen3/v3.21.0#Build_using_script)

    Best regards,

  • Hi,

    Thanks for your quick response.

    Actually, I used "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf" file and then I also added 'mesa-demos' in the image to check the graphics rendering API. Then on the renesas, I run 'glxinfo' and it was still showing OpenGL ES. Did I miss anything?

    Our requirement is to use wayland but not OpenGL ES 3.1 library. 

    Can you also tell me the purpose of this option: DISTRO_FEATURES_append = " use_eva_pkg"? How about if we don't add this option to local.conf?


    Thanks & Regards,

    Asad Javed

  • Hi,

    "libGLESv1_CM.so.1" is installed to rootfs by Mesa if "mesa-demos"  is added to IMAGE_INSTALL.
    So, this is occurred by your modification (just my assumption)

    Then, you can skip following steps in this case.

    "use_eva_pkg" is a option to use proprietary libraries of evaluation version.
    But proprietary libraries are NOT required if you use "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf".

    sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh -f $WORK/../proprietary
    echo 'DISTRO_FEATURES_append = " use_eva_pkg"' >> $WORK/build/conf/local.conf
  • Hi,

    Okay, I can skip those steps. I'll update you. Thanks


    Best Regards,

    Asad

  • Hi,

    So I built the image again using $WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf" file. I have skipped the above steps as suggested by you and I also removed mesa-demos from IMAGE_INSTALL. 

    On the Renesas, we still have "libGL.so.1, ibGL.so.1.2.0, libGLESv2.so.2, libGLESv2.so.2.0.0" in /usr/lib directory. Does this mean that the image still has OpenGL ES v2?


    Thanks & Regards,

    Asad Javed

  • Hi, 

    I apologize you that I have a misunderstanding.

    OpenGL libraries are included in rootfs which is based on Mesa instead of Renesas's library even if you use "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf".

    And I think it is not easy to divide them and tell you the way on here.

    Because there are a lot of build dependency related Wayland, Mesa and etc.

    Our requirement is to use wayland but not OpenGL ES 3.1 library. 

    Which backend / renderer do you want to use for it ? fbdev-backend ? or pixman-renderer on drm-backend ?

    Best regards,

  • Hi,

    Sorry for not getting back to you sooner.

    We want to build Yocto image without any backend, as we're using a custom driver stack that includes its own backend. What do you suggest now?

    How about building "core-image-minimal" or "core-image-sato" using "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf"?


    Thanks & Regards,

    Asad Javed

  • Hi,

    How about building "core-image-minimal" or "core-image-sato" using "$WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/bsp/*.conf"?

    It will not include any OpenGL libraries. But wayland will not be included too.

    >> Our requirement is to use wayland but not OpenGL ES 3.1 library. 

    So, you need to create your own recipe for wayland.

    Best regards,

  • Hi Asad,

    Do you have any updates?

Reply Children