Hi Eric, Denys
Thank you for answering.
I tried the following:
root@beaglebone:~# gles1test1
PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
'eglCreateWindowSurface' returned egl error 'EGL_BAD_ALLOC' (0x3003)
root@beaglebone:~# gles2test1
--------------------- started ---------------------
PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
'eglCreateWindowSurface' returned egl error 'EGL_BAD_ALLOC' (0x3003)
I also try other configurations, like core-image-weston. After "adjusting"
mesa so it won't install gbm, weston won't boot and I still errors.
here the weston output:
starting with no config
Loding module/usr/lib/weston/drm-backend.so
output repaint windows is 7 ms maximun
initilizing drm backend
using /dev/dri/card0
Loading module /usr/lib/weston/gl-rendered.so
...
loaded module: found gbm_pvr.so
found valid GBM backend : gbm_pvr.so
warning no EGL_EXT_platform_base support of specific platform; failling back to eglGetDisplay
failed to choose EGL config
failed to initialize egl
fatal: failed to create compositor backend
I think the problem is around the drm thing. I'm not an expert but:
when I look at /dev/dri/*, I see 2 card ( as if there is 2 drm driver)
root@beaglebone:~# ls -lsa /dev/dri/
0 drwxr-xr-x 2 root root 120 Jan 1 1970 .
0 drwxr-xr-x 11 root root 13160 Oct 6 04:22 ..
0 crw-rw---- 1 root video 226, 0 Jan 1 1970 card0
0 crw-rw---- 1 root video 226, 1 Jan 1 1970 card1
0 crw-rw---- 1 root video 226, 64 Jan 1 1970 controlD64
0 crw-rw---- 1 root video 226, 128 Jan 1 1970 renderD128
0 lrwxrwxrwx 1 root root 0 Oct 6 04:31 /sys/class/drm/card0/device/driver -> ../../../../bus/platform/drivers/tilcdc
0 lrwxrwxrwx 1 root root 0 Oct 6 04:35 /sys/class/drm/card1/device/driver -> ../../../../bus/platform/drivers/pvrsrvkm