This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/BEAGLEBK: Arago with Qt5 and OpenGL questions

Part Number: BEAGLEBK

Tool/software: Linux

Hello,

I'm trying to build an image for BeagleBone Black with Qt5 and opengl using arago.

Q1: Which is the prefered way doing this?

I'm following Setting Up Build Environment

Q2: The link to gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf is deprecated. Should I use exactly this toolchain (already found it elsewhere), or should I use the latest gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf toolchain?

Q3: Which is the preferred layersetup? configs/amsdk/amsdk-08.00.00.00-config.txt or configs/arago-krogoth-config.txt?

Q4: Which is an appropriate (minimalistic) bitbake target to build an image with a QT5 opengl example, i.e. cinematicexperience?

Q5: How do I start this example? Is "Qt5_CinematicExperience -platform eglfs" correct?

Q6: Currently I'm working with the following setup: configs/arago-krogoth-config.txt and arago-base-tisdk-image bitbake target. Additionally I added packagegroup-arago-tisdk-qte and cinematicexperience to IMAGE_INSTALL_append in beaglebone.conf file and called it beagleboneng.txt.

This Image boots, but something is missing:

root@beagleboneng:~# Qt5_CinematicExperience -platform eglfs
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]
Could not initialize egl display
/usr/bin/Qt5_CinematicExperience: line 4:   844 Aborted                 (core dumped) /usr/share/cinematicexperience-1.0/Qt5_CinematicExperience $*

root@beagleboneng:~# eglinfo 
Couldn't load library libGLES_CM.so: libGLES_CM.so: cannot open shared object file: No such file or directory
Couldn't load library libGLESv1_CM.so: libGLESv1_CM.so: cannot open shared object file: No such file or directory
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]
Unable to initialise egl
    egl error 'EGL_BAD_ALLOC' (0x3003)

root@beagleboneng:~# ln -s libGLES_CM.so.1 /usr/lib/libGLES_CM.so

root@beagleboneng:~# eglinfo 
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]
Unable to initialise egl
    egl error 'EGL_BAD_ALLOC' (0x3003)

root@beagleboneng:~# pvrsrvctl --start
Failed to load /lib/modules/4.9.10-02244-g687f71a/extra/pvrsrvkm.ko: No such file or directory

root@beagleboneng:~# uname -a
Linux beagleboneng 4.4.54-gecd4eada6f #2 PREEMPT Tue Mar 21 12:50:13 CET 2017 armv7l GNU/Linux

Is the SGX package available for this kernel? As I remember, the latest supported kernel is 3.14, or am I wrong?

  • Hi,

    The software team have been notified. They will respond here.
  • Hello Daniel,

    Daniel Gorsulowski said:

    Q1: Which is the prefered way doing this?
    I'm following Setting Up Build Environment

    Rebuilding the images is okay, the prebuild images from the Processor SDK would work too.

    Daniel Gorsulowski said:

    Q2: The link to gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf is deprecated. Should I use exactly this toolchain (already found it elsewhere), or should I use the latest gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf toolchain?

    You should use the exact toolchain version that the SDK has built and released, the usage of other older or newer toolchain is not recommended.

    Daniel Gorsulowski said:

    Q3: Which is the preferred layersetup? configs/amsdk/amsdk-08.00.00.00-config.txt or configs/arago-krogoth-config.txt?

    The latest preferred layersetups are configs/processor-sdk/processor-sdk-<version>-config.txt. This forum supports only these configs.

    Daniel Gorsulowski said:

    Q4: Which is an appropriate (minimalistic) bitbake target to build an image with a QT5 opengl example, i.e. cinematicexperience?

    MACHINE=am335x-evm bitbake tisdk-rootfs-image

    Daniel Gorsulowski said:

    Q5: How do I start this example? Is "Qt5_CinematicExperience -platform eglfs" correct?

    Yes, it is correct.

    Daniel Gorsulowski said:

    Q6: Currently I'm working with the following setup: configs/arago-krogoth-config.txt and arago-base-tisdk-image bitbake target. Additionally I added packagegroup-arago-tisdk-qte and cinematicexperience to IMAGE_INSTALL_append in beaglebone.conf file and called it beagleboneng.txt.
    This Image boots, but something is missing:

    You are missing the ti-sgx-ddk-km and ti-sgx-ddk-um recipes. Please, build and install them too.

    Best regards,
    Kemal
  • Hello Kemal,

    thank you! I'll try this give a feedback soon.
  • Hi,

    is the create-sdcard.sh mentioned here available via git repository or direct download, or do I have to download and install the whole Processor SDK to obtain this script?

  • If you desire you can also clone it.
    git clone git://arago-project.org/git/projects/tisdk-setup-scripts.git
  • Finally, build is done and somehow I got the image to sd-card - the target boots.

    I guess, I have to stop weston:

    root@am335x-evm:~# /etc/init.d/weston stop
    Stopping Weston
    

    eglinfo shows:

    root@am335x-evm:~# eglinfo 
    
    eglGetConfigs():
    ======================================================================
    
    **********************************
    EGL config number: 0
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x1 
     EGL_BUFFER_SIZE = 0x20 
     EGL_RED_SIZE = 0x8 
     EGL_GREEN_SIZE = 0x8 
     EGL_BLUE_SIZE = 0x8 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x8 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x1 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x1 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x1  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
    Unable to create surface
        egl error 'EGL_BAD_ALLOC' (0x3003)
    

    lsmod:

    root@am335x-evm:~# lsmod | grep pvrsrvkm  
    pvrsrvkm              406903  1 bc_example
    

    Starting Qt application:

    root@am335x-evm:~# Qt5_CinematicExperience -platform eglfs
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    libpng warning: iCCP: known incorrect sRGB profile
    libpng warning: iCCP: known incorrect sRGB profile
    Could not set DRM CRTC mode! (Invalid argument)
    procPageFlipReq(): failed to add crtc atomically (Invalid argument)
    

    On screen appears nothing, CPU load goes up - and nothing else. Whats wrong now?

  • Can you attach the gfx_check.log gathered with the gfx_check.sh script?

    root@am335x-evm:~# chmod +x ./gfx_check.sh
    root@am335x-evm:~# ./gfx_check.sh > gfx_check.log

  • Sure, here you are:

    WSEGL settings
    [default]
    #WindowSystem=libpvrws_WAYLAND.so
    ------
    ARM CPU information
    processor	: 0
    model name	: ARMv7 Processor rev 2 (v7l)
    BogoMIPS	: 298.84
    Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
    CPU implementer	: 0x41
    CPU architecture: 7
    CPU variant	: 0x3
    CPU part	: 0xc08
    CPU revision	: 2
    
    Hardware	: Generic AM33XX (Flattened Device Tree)
    Revision	: 0000
    Serial		: 0000000000000000
    ------
    SGX driver information
    Version SGX_DDK sgxddk MAIN@3699939 (release) omap_linux
    System Version String: SGX revision = 125
    ------
    Framebuffer settings
    
    mode "1280x1024"
        geometry 1280 1024 1280 1024 16
        timings 0 0 0 0 0 0 0
        accel true
        rgba 5/11,6/5,5/0,0/0
    endmode
    
    Frame buffer device information:
        Name        : 
        Address     : 0x9d100000
        Size        : 2621440
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 1
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 2560
        Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module                  Size  Used by
    usb_f_acm               5404  1
    u_serial               11555  3 usb_f_acm
    usb_f_ecm               6620  1
    g_multi                 6330  0
    usb_f_mass_storage     37852  2 g_multi
    usb_f_rndis            15406  2 g_multi
    u_ether                13513  3 usb_f_ecm,usb_f_rndis,g_multi
    libcomposite           44328  5 usb_f_acm,usb_f_ecm,usb_f_rndis,g_multi,usb_f_mass_storage
    bc_example              7186  0
    configfs               26853  6 usb_f_acm,usb_f_ecm,usb_f_rndis,libcomposite,usb_f_mass_storage
    usbhid                 21081  0
    rpmsg_pru               4958  0
    virtio_rpmsg_bus       12660  1 rpmsg_pru
    musb_dsps               8235  0
    musb_hdrc              71422  1 musb_dsps
    udc_core               12063  2 musb_hdrc,libcomposite
    usbcore               195719  2 musb_hdrc,usbhid
    sha512_generic          9903  0
    sha512_arm             12079  0
    drbg                   13425  1
    des_generic            17736  0
    cbc                     2324  0
    xfrm_user              22542  2
    xfrm4_tunnel            2040  0
    ipcomp                  2257  0
    xfrm_ipcomp             4311  1 ipcomp
    esp4                    6466  0
    ah4                     5627  0
    af_key                 26342  0
    xfrm_algo               6970  5 ah4,esp4,af_key,xfrm_user,xfrm_ipcomp
    bluetooth             327297  2
    pm33xx                  5577  0
    pru_rproc              11796  2
    pruss_intc              7163  3 pru_rproc
    snd_soc_simple_card     7712  0
    ecb                     1909  0
    ti_emif_sram            6242  1 pm33xx
    wkup_m3_ipc             8278  1 pm33xx
    sha256_generic          9503  1
    hmac                    2735  1
    md5                     1897  0
    sha1_generic            2621  0
    wkup_m3_rproc           3669  1
    sha1_arm_neon           6261  0
    sha1_arm                3862  1 sha1_arm_neon
    pruss                  10892  1 pru_rproc
    pvrsrvkm              406903  1 bc_example
    remoteproc             26837  4 pruss,wkup_m3_rproc,pru_rproc,wkup_m3_ipc
    omap_aes_driver        19488  0
    virtio                  7742  2 remoteproc,virtio_rpmsg_bus
    omap_sham              21513  0
    virtio_ring            12163  2 remoteproc,virtio_rpmsg_bus
    omap_rng                4759  0
    rng_core                7730  1 omap_rng
    musb_am335x             1426  0
    rtc_omap                8272  1
    omap_wdt                4634  0
    sch_fq_codel            8225  3
    cryptodev              37943  1
    ------
    Boot settings
    console=ttyO0,115200n8 root=PARTUUID=6c454037-02 rw rootfstype=ext4 rootwait
    ------
    Linux Kernel version
    Linux am335x-evm 4.4.32-gadde2ca9f8 #1 PREEMPT Thu Mar 23 15:19:21 CET 2017 armv7l GNU/Linux
    CRTC
    trying to open device 'i915'...failed
    trying to open device 'radeon'...failed
    trying to open device 'nouveau'...failed
    trying to open device 'vmwgfx'...failed
    trying to open device 'omapdrm'...failed
    trying to open device 'exynos'...failed
    trying to open device 'tilcdc'...done
    Encoders:
    id	crtc	type	possible crtcs	possible clones	
    25	24	TMDS	0x00000001	0x00000000
    
    Connectors:
    id	encoder	status		name		size (mm)	modes	encoders
    26	25	connected	HDMI-A-1       	360x290		10	25
      modes:
    	name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
      1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 flags: phsync, pvsync; type: preferred, driver
      1024x768 75 1024 1040 1136 1312 768 769 772 800 flags: phsync, pvsync; type: driver
      1024x768 75 1024 1040 1136 1312 768 769 772 800 flags: phsync, pvsync; type: driver
      1024x768 70 1024 1048 1184 1328 768 771 777 806 flags: nhsync, nvsync; type: driver
      1024x768 60 1024 1048 1184 1344 768 771 777 806 flags: nhsync, nvsync; type: driver
      800x600 75 800 816 896 1056 600 601 604 625 flags: phsync, pvsync; type: driver
      800x600 60 800 840 968 1056 600 601 605 628 flags: phsync, pvsync; type: driver
      640x480 75 640 656 720 840 480 481 484 500 flags: nhsync, nvsync; type: driver
      640x480 60 640 656 752 800 480 490 492 525 flags: nhsync, nvsync; type: driver
      720x400 70 720 738 846 900 400 412 414 449 flags: nhsync, pvsync; type: driver
      props:
    	1 EDID:
    		flags: immutable blob
    		blobs:
    
    		value:
    			00ffffffffffff001ab3800361c80700
    			280c010380241d78ea0925a2574b9724
    			185054a54f00314f454f614f818f8180
    			010101010101302a009851002a403070
    			1300671f1100001e000000ff0059454b
    			413531303034390a2020000000fc0034
    			3632562046410a2020202020000000fd
    			00384c1e520e000a20202020202000b0
    	2 DPMS:
    		flags: enum
    		enums: On=0 Standby=1 Suspend=2 Off=3
    		value: 0
    
    CRTCs:
    id	fb	pos	size
    24	34	(0,0)	(1280x1024)
      1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 flags: phsync, pvsync; type: preferred, driver
      props:
    
    Planes:
    id	crtc	fb	CRTC x,y	x,y	gamma size	possible crtcs
    23	24	34	0,0		0,0	0       	0x00000001
      formats: RG16 BG24 XB24
      props:
    	5 type:
    		flags: immutable enum
    		enums: Overlay=0 Primary=1 Cursor=2
    		value: 1
    
    Frame buffers:
    id	size	pitch
    
    DRM
         0 drwxr-xr-x    2 root     root             0 Mar 23 13:41 .
         0 drwxr-xr-x   49 root     root             0 Mar 23 13:40 ..
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 card0 -> ../../devices/platform/ocp/4830e000.lcdc/drm/card0
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 card0-HDMI-A-1 -> ../../devices/platform/ocp/4830e000.lcdc/drm/card0/card0-HDMI-A-1
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 card1 -> ../../devices/platform/ocp/56000000.sgx/drm/card1
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 controlD64 -> ../../devices/platform/ocp/4830e000.lcdc/drm/controlD64
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 renderD128 -> ../../devices/platform/ocp/56000000.sgx/drm/renderD128
         0 -r--r--r--    1 root     root          4096 Mar 23 13:41 version
    DRM drivers
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 /sys/class/drm/card0/device/driver -> ../../../../bus/platform/drivers/tilcdc
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 /sys/class/drm/card1/device/driver -> ../../../../bus/platform/drivers/pvrsrvkm
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 /sys/class/drm/controlD64/device/driver -> ../../../../bus/platform/drivers/tilcdc
         0 lrwxrwxrwx    1 root     root             0 Mar 23 13:41 /sys/class/drm/renderD128/device/driver -> ../../../../bus/platform/drivers/pvrsrvkm
    DRM version
    drm 1.1.0 20060810

  • Sure, here you are (this will expire after 90 days):

    https://paste.debian.net/plain/924877

    Btw. why do I get this if I try to reply to your question with the attached log?

    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    
    If the administrator has configured this forum to support email notifications you will receive an email when your post is either approved or denied (if you have emails enabled in your profile). 

  • Ok, forget the last question. Obviously the post was to long and had to be validated to prevent abuse.

    Some further tests on my own:

    I tried to switch to switch the WindowSystem to libpvrQWSWSEGL.so via /etc/powervr.ini. But this lib is not available

    root@am335x-evm:~# find /usr/lib -name libpvr*.so
    /usr/lib/libpvrGBMWSEGL.so
    /usr/lib/libpvr2d.so
    /usr/lib/libpvr_wlegl.so
    /usr/lib/libpvrDRMWSEGL.so
    /usr/lib/libpvrws_WAYLAND.so
    

    How do I get this lib into my rootfs?

  • Another Test:

    I switched to WindowSystem=libpvrGBMWSEGL.so via /etc/powervr.ini

    If I run

    root@am335x-evm:~# /usr/share/qt5/examples/opengl/hellogl2/hellogl2 -platform eglfs
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    Could not set DRM CRTC mode! (Invalid argument)
    procPageFlipReq(): failed to add crtc atomically (Invalid argument)
    

    Nothing happens on screen (DVI) and hellogl2 burns nearly 100% CPU.

    Do I have to switch somehow from LCD to DVI? (there is no LCD cape attached)

  • Please, can you (or anybody else) help?
  • Hello Daniel,

    Sorry for my late reply. I think you met the same issue as in this thread. Can you check?

    Best regards,
    Kemal

  • I replaced the lib as you suggested in this thread. But its binary compatible.

    root@am335x-evm:~# cd /usr/lib
    root@am335x-evm:~# mv libpvrDRMWSEGL.so.1.14.3699939 libpvrDRMWSEGL.so.1.14.3699939_ori
    root@am335x-evm:~# wget e2e.ti.com/.../libpvrDRMWSEGL.so.1.14.3699939
    root@am335x-evm:/usr/lib# cmp libpvrDRMWSEGL.so.1.14.3699939 libpvrDRMWSEGL.so.1.14.3699939_ori
    root@am335x-evm:/usr/lib# 
    

    I switched to this lib via /etc/powervr.ini. Now eglinfo shows:

    root@am335x-evm:/usr/lib# eglinfo 
    
    eglGetConfigs():
    ======================================================================
    
    **********************************
    EGL config number: 0
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x1 
     EGL_BUFFER_SIZE = 0x20 
     EGL_RED_SIZE = 0x8 
     EGL_GREEN_SIZE = 0x8 
     EGL_BLUE_SIZE = 0x8 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x8 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x1 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x1 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x1  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
    Unable to create surface
        egl error 'EGL_BAD_ALLOC' (0x3003)
    

    If I try to start the Qt app, I get:

    root@am335x-evm:/usr/lib# Qt5_CinematicExperience -platform eglfs
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    libpng warning: iCCP: known incorrect sRGB profile
    libpng warning: iCCP: known incorrect sRGB profile
    Could not set DRM CRTC mode! (Invalid argument)
    procPageFlipReq(): failed to add crtc atomically (Invalid argument)
    

  • Daniel Gorsulowski said:

    I tried to switch to switch the WindowSystem to libpvrQWSWSEGL.so via /etc/powervr.ini. But this lib is not available


    libpvrQWSWSEGL.so is a part of libpvrqwswsegl1 which gets created while building qt4-embedded-gles
  • Hi!

    Does that mean, I don't need this lib if I have QT5 apps only?

    And what about the error messages above?

    Further questions:

    How do I get /opt/gfxsdkdemos to my rootfs? (which bitbake target is needed)

    Many pages point out that an omaplfb.ko is needed. But there is no omaplfb.ko in my rootfs. How about that?

  • Can you type this command root@am335x-evm:~# echo DefaultPixelFormat=RGB565 >> /etc/powervr.ini then retry?

  • Hi Kemal!

    Thank you, eglinfo works much better now:

    root@am335x-evm:~# eglinfo 
    
    eglGetConfigs():
    ======================================================================
    
    **********************************
    EGL config number: 0
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x1 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x1 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x1  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x1
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x500
     EGL_HEIGHT = 0x400
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0xffffffff
     EGL_MIPMAP_TEXTURE = 0xffffffff
     EGL_MIPMAP_LEVEL = 0xffffffff
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x3094
     EGL_TEXTURE_FORMAT = 0x3094
     EGL_TEXTURE_TARGET = 0x3094
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x1
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x1
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x1
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 1
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x2 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x1 
     EGL_DEPTH_SIZE = 0x0 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x1  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x0 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x2
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x500
     EGL_HEIGHT = 0x400
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0xffffffff
     EGL_MIPMAP_TEXTURE = 0xffffffff
     EGL_MIPMAP_LEVEL = 0xffffffff
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x3094
     EGL_TEXTURE_FORMAT = 0x3094
     EGL_TEXTURE_TARGET = 0x3094
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x2
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x2
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x2
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 2
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x3 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x1 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x1  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x1 
     EGL_SAMPLES = 0x4 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x3
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x500
     EGL_HEIGHT = 0x400
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0xffffffff
     EGL_MIPMAP_TEXTURE = 0xffffffff
     EGL_MIPMAP_LEVEL = 0xffffffff
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x3094
     EGL_TEXTURE_FORMAT = 0x3094
     EGL_TEXTURE_TARGET = 0x3094
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x3
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x3
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x3
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 3
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x4 
     EGL_BUFFER_SIZE = 0x20 
     EGL_RED_SIZE = 0x8 
     EGL_GREEN_SIZE = 0x8 
     EGL_BLUE_SIZE = 0x8 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x8 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x1 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x3 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0x1 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x3038 
     EGL_RENDERABLE_TYPE = 0x3  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x1  EGL_PBUFFER_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x4
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x4
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 4
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x5 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x3 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0x1 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x3038 
     EGL_RENDERABLE_TYPE = 0x3  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x1  EGL_PBUFFER_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x5
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x5
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 5
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x6 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x4 
     EGL_GREEN_SIZE = 0x4 
     EGL_BLUE_SIZE = 0x4 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x4 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x1 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x3 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0x1 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x3038 
     EGL_RENDERABLE_TYPE = 0x3  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x1  EGL_PBUFFER_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x6
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x6
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 6
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x7 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x5 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x1 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x1 
     EGL_BIND_TO_TEXTURE_RGBA = 0x1 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x3 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0x1 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x3038 
     EGL_RENDERABLE_TYPE = 0x3  EGL_OPENGL_ES_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x1  EGL_PBUFFER_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x7
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 1 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x7
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x1
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 7
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x8 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x0 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x4 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x4  EGL_OPENGL_ES2_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x8
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x500
     EGL_HEIGHT = 0x400
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0xffffffff
     EGL_MIPMAP_TEXTURE = 0xffffffff
     EGL_MIPMAP_LEVEL = 0xffffffff
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x3094
     EGL_TEXTURE_FORMAT = 0x3094
     EGL_TEXTURE_TARGET = 0x3094
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 2 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x8
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x2
     EGL_RENDER_BUFFER = 0x3038
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x8
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 2 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x8
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x2
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 8
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0x9 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x0 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x4 
     EGL_DEPTH_SIZE = 0x0 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x4  EGL_OPENGL_ES2_BIT 
     EGL_SAMPLE_BUFFERS = 0x0 
     EGL_SAMPLES = 0x0 
     EGL_STENCIL_SIZE = 0x0 
     EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x9
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x500
     EGL_HEIGHT = 0x400
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0xffffffff
     EGL_MIPMAP_TEXTURE = 0xffffffff
     EGL_MIPMAP_LEVEL = 0xffffffff
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x3094
     EGL_TEXTURE_FORMAT = 0x3094
     EGL_TEXTURE_TARGET = 0x3094
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 2 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x9
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x2
     EGL_RENDER_BUFFER = 0x3038
    
    Creating Pbuffer surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0x9
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x800
     EGL_HEIGHT = 0x800
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0x1
     EGL_MIPMAP_TEXTURE = 0x0
     EGL_MIPMAP_LEVEL = 0x0
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x0
     EGL_TEXTURE_FORMAT = 0x305c
     EGL_TEXTURE_TARGET = 0x305c
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 2 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0x9
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x2
     EGL_RENDER_BUFFER = 0x3038
    
    **********************************
    EGL config number: 9
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    EGL client APIs are: OpenGL_ES 
    
    EGL config Attributes:
     EGL_CONFIG_ID = 0xa 
     EGL_BUFFER_SIZE = 0x10 
     EGL_RED_SIZE = 0x5 
     EGL_GREEN_SIZE = 0x6 
     EGL_BLUE_SIZE = 0x5 
     EGL_LUMINANCE_SIZE = 0x0 
     EGL_ALPHA_SIZE = 0x0 
     EGL_ALPHA_MASK_SIZE = 0x0 
     EGL_BIND_TO_TEXTURE_RGB = 0x0 
     EGL_BIND_TO_TEXTURE_RGBA = 0x0 
     EGL_COLOR_BUFFER_TYPE = 0x308e 
     EGL_CONFIG_CAVEAT = 0x3038 
     EGL_CONFORMANT = 0x4 
     EGL_DEPTH_SIZE = 0x18 
     EGL_LEVEL = 0x0 
     EGL_MAX_PBUFFER_WIDTH = 0x800 
     EGL_MAX_PBUFFER_HEIGHT = 0x800 
     EGL_MAX_PBUFFER_PIXELS = 0x400000 
     EGL_MAX_SWAP_INTERVAL = 0xa 
     EGL_MIN_SWAP_INTERVAL = 0x1 
     EGL_NATIVE_RENDERABLE = 0x0 
     EGL_NATIVE_VISUAL_ID = 0x0 
     EGL_NATIVE_VISUAL_TYPE = 0x0 
     EGL_RENDERABLE_TYPE = 0x4  EGL_OPENGL_ES2_BIT 
     EGL_SAMPLE_BUFFERS = 0x1 
     EGL_SAMPLES = 0x4 
     EGL_STENCIL_SIZE = 0x8 
     EGL_SURFACE_TYPE = 0x4  EGL_WINDOW_BIT 
     EGL_TRANSPARENT_TYPE = 0x3038 
     EGL_TRANSPARENT_RED_VALUE = 0x0 
     EGL_TRANSPARENT_GREEN_VALUE = 0x0 
     EGL_TRANSPARENT_BLUE_VALUE = 0x0 
    
    Creating Window surface..
    
    EGL surface Attributes:
     EGL_CONFIG_ID = 0xa
     EGL_VG_ALPHA_FORMAT = 0x308b
     EGL_VG_COLORSPACE = 0x3089
     EGL_WIDTH = 0x500
     EGL_HEIGHT = 0x400
     EGL_HORIZONTAL_RESOLUTION = 0xffffffff
     EGL_LARGEST_PBUFFER = 0xffffffff
     EGL_MIPMAP_TEXTURE = 0xffffffff
     EGL_MIPMAP_LEVEL = 0xffffffff
     EGL_PIXEL_ASPECT_RATIO = 0xffffffff
     EGL_RENDER_BUFFER = 0x3084
     EGL_SWAP_BEHAVIOR = 0x3094
     EGL_TEXTURE_FORMAT = 0x3094
     EGL_TEXTURE_TARGET = 0x3094
     EGL_VERTICAL_RESOLUTION = 0xffffffff
    
    Creating OpenGL ES 2 context..
    
    EGL context Attributes:
     EGL_CONFIG_ID = 0xa
     EGL_CONTEXT_CLIENT_TYPE = 0x30a0
     EGL_CONTEXT_CLIENT_VERSION = 0x2
     EGL_RENDER_BUFFER = 0x3038
    
    Printing API info..
    
    Creating Window surface..
    
    Creating OpenGL ES 2 context..
    
    OpenGL ES 2 Information:
    
    GLES 2 String Information :
     GL_VENDOR = Imagination Technologies 
     GL_RENDERER = PowerVR SGX 530 
     GL_VERSION = OpenGL ES 2.0 build 1.14@3699939 (MAIN) 
     GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN) 
     GL_EXTENSIONS = GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_surfaceless_context GL_EXT_discard_framebuffer GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture GL_KHR_debug 
    
    GLES 2 Boolean Information :
     GL_SHADER_COMPILER =  0x1 
     GL_COLOR_WRITEMASK =  0x1  0x1  0x1  0x1 
     GL_DEPTH_WRITEMASK =  0x1  0x1  0x1  0x1 
    
    GLES 2 Integer Information :
     GL_SUBPIXEL_BITS =  0x4 
     GL_MAX_TEXTURE_SIZE =  0x800 
     GL_MAX_CUBE_MAP_TEXTURE_SIZE =  0x800 
     GL_MAX_VIEWPORT_DIMS =  0x800  0x800 
     GL_NUM_COMPRESSED_TEXTURE_FORMATS =  0x5 
     GL_NUM_SHADER_BINARY_FORMATS =  0x1 
     GL_MAX_VERTEX_ATTRIBS =  0x10 
     GL_MAX_VERTEX_UNIFORM_VECTORS =  0x80 
     GL_MAX_VARYING_VECTORS =  0x8 
     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS =  0x8 
     GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS =  0x8 
     GL_MAX_TEXTURE_IMAGE_UNITS =  0x8 
     GL_MAX_FRAGMENT_UNIFORM_VECTORS =  0x40 
     GL_MAX_RENDERBUFFER_SIZE =  0x800 
     GL_IMPLEMENTATION_COLOR_READ_TYPE =  0x8363 
     GL_IMPLEMENTATION_COLOR_READ_FORMAT =  0x1907 
    
    GLES 2 Float Information :
     GL_ALIASED_POINT_SIZE_RANGE =  1.000000  511.000000 
     GL_ALIASED_LINE_WIDTH_RANGE =  1.000000  16.000000 
    
    Creating Window surface..
    
    Creating OpenGL ES 1 context..
    
    OpenGL ES 1 Information:
    
    GLES String Information :
     GL_VENDOR = Imagination Technologies 
     GL_RENDERER = PowerVR SGX 530 
     GL_VERSION = OpenGL ES-CM 1.1 
     GL_EXTENSIONS = GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object GL_APPLE_texture_2D_limited_npot 
    
    GLES Integer Information :
     GL_MAX_LIGHTS =  0x8 
     GL_MAX_CLIP_PLANES =  0x6 
     GL_MAX_MODELVIEW_STACK_DEPTH =  0x10 
     GL_MAX_PROJECTION_STACK_DEPTH =  0x2 
     GL_MAX_TEXTURE_STACK_DEPTH =  0x4 
     GL_SUBPIXEL_BITS =  0x4 
     GL_MAX_TEXTURE_SIZE =  0x800 
     GL_MAX_VIEWPORT_DIMS =  0x800  0x800 
     GL_MAX_TEXTURE_UNITS =  0x4 
     GL_NUM_COMPRESSED_TEXTURE_FORMATS =  0xf 
    
    GLES Float Information :
     GL_ALIASED_POINT_SIZE_RANGE =  1.000000  32.000000 
     GL_SMOOTH_POINT_SIZE_RANGE =  1.000000  1.000000 
     GL_ALIASED_LINE_WIDTH_RANGE =  1.000000  16.000000 
     GL_SMOOTH_LINE_WIDTH_RANGE =  1.000000  1.000000 

    But if I try to start my Qt application, it behaves as before:

    root@am335x-evm:~# Qt5_CinematicExperience -qws -platform eglfs
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    libpng warning: iCCP: known incorrect sRGB profile
    libpng warning: iCCP: known incorrect sRGB profile
    Could not set DRM CRTC mode! (Invalid argument)
    procPageFlipReq(): failed to add crtc atomically (Invalid argument)
    

    The screen (DVI) remains empty (black) with the only output "Please wait..." (the same output since starting the board)

  • Daniel Gorsulowski said:
    How do I get /opt/gfxsdkdemos to my rootfs? (which bitbake target is needed)

    I answer myself: I added "img-pvr-sdk" to IMAGE_INSTALL_append in am335x-evm.conf to get these demos/examples.

    And one success report: These OGLES2 examples run smoothly!

  • You should be able even run the Qt5_CinematicExperience example, if you export QT_QPA_EGLFS_INTEGRATION=none

  • Yes, it works! Thank you!