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.

Using Weston and Qt5.6 on an AM3354 with OpenGL acceleration via SGX

Hey!
We managed to get weston and Qt 5.6 compiled via angstrom bitbake with OpenGl support via mesa.
Now when I start weston, I get the following output:

[11:48:32.520] using /dev/dri/card0
[11:48:32.520] Loading module '/usr/lib/weston/gl-renderer.so'
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/tilcdc_dri.so: cannot open shared object file: No such file or directory
failed to load driver: tilcdc
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file[80277.390405] atmel_mxt_ts 0-004b: Resetting device or directory
failed to load driver: kms_swrast

and rendering is done via software. I guess it's the wrong cardXX as the /dev/dri/card1 is from sgx.

"modetest -M pvr" with DRM debug messages:
----------------------
root@d3457-82-81-24:/usr/lib# modetest -M pvr
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 3, (OK)
drmOpenByName: searching for name: pvr
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 3, (OK)
drmOpenByName: found name: tilcdc
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is 3, (OK)
drmOpenByName: found name: pvr
drmGetBusid returned ''
drmModeGetResources failed: Invalid argument
----------------------

"modetest -M tilcdc" with DRM debug messages:
----------------------
root@d3457-82-81-24:/usr/lib# modetest -M tilcdc
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 3, (OK)
drmOpenByName: searching for name: tilcdc
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 3, (OK)
drmOpenByName: found name: tilcdc
drmGetBusid returned ''
Encoders:
id crtc type possible crtcs possible clones
25 24 LVDS 0x00000001 0x00000000

Connectors:
id encoder status name size (mm) modes encoders
26 25 connected LVDS-1 0x0 1 25
modes:
name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
480x272 50 480 535 576 578 272 302 312 314 flags: nhsync, nvsync; type: preferred, driver
props:
1 EDID:
flags: immutable blob
blobs:

value:
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0

CRTCs:
id fb pos size
24 29 (0,0) (480x272)
480x272 50 480 535 576 578 272 302 312 314 flags: nhsync, nvsync; type: preferred, driver
props:

Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
23 24 29 0,0 0,0 0 0x00000001
formats: XR24 AR24
props:
5 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1

Frame buffers:
id size pitch

----------------------

I often read something about a tool called "pvrsrvctl" but can't find anything about it in the processor SDK. Only the pvrsrvkm.ko (which I could compile for our kernel 4.4.14).

Any hints or ideas how I could get opengl to be accelerated? What do I miss?

Regards

Thilo