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.

Wayland/Weston - am437x : Failed to create DBM device

Dear e2e

I am running into a error which i cannot further debug ( or dont know how to ) when trying to launch wayland/weston on our custom am437x based board using sgx530 drm support.


The plain error looks like this

root@am437x:~# weston --tty=1
Date: 2016-03-01 UTC
[13:30:39.881] weston 1.9.0
               http://wayland.freedesktop.org
               Bug reports to: bugs.freedesktop.org/enter_bug.cgi
               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
[13:30:39.883] OS: Linux, 4.1.18, #1 PREEMPT Tue Mar 1 09:53:19 CET 2016, armv7l
[13:30:39.885] Starting with no config file.
[13:30:39.886] Loading module '/usr/lib/weston/drm-backend.so'
[13:30:39.892] Output repaint window is 7 ms maximum.
[13:30:39.893] initializing drm backend
[13:30:39.899] using /dev/dri/card1
[13:30:39.900] Loading module '/usr/lib/weston/gl-renderer.so'
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
PVR:(Error): [ 1548-> 1548] <              gbm_pvr_create_device():451|ERROR> Failed to create DBM device: No such device [0, ]
[13:30:39.912] failed to initialize egl
[13:30:39.957] fatal: failed to create compositor backend

Also the sgx_blit_test returns like this

sgx_blit_test
------------------ SGX 3D Blit test -----------------
----------------------- Start -----------------------
Call PVRSRVConnect with a valid argument:
 OK
Get number of devices from PVRSRVEnumerateDevices:
 OK
.... Reported 1 devices
.... Device Number  | Device Type
            0000    | PVRSRV_DEVICE_ID_SGX
Attempt to acquire device 0:
 OK
Getting SGX Client info
 OK
.... ui32ProcessID:1551
Display Class API: enumerate devices
 OK
PVRSRVEnumerateDeviceClass() returns 0 display device(s)
 FAIL - PVRSRV_ERROR_NO_DC_DEVICES_FOUND(134)
Aborted

The software is build onto of Poky 1.8.1 ( fido branch) + the necessary recipes out of meta-arago-extras , namely

libdrm_2.4.66.bb

libgbm_10.0.0.bb

wayland_1.9.0.bb

weston_1.9.0.bb

meanwhile , i can run kmscube just fine, pvr raw demos run just fine. eglinfo gives what looks like a ok output and modetest also shows some proper info.

Tracing this looks like i get stuck inside some pvr librarys which try to evaluate my screen or his connectors.

If there is any hint on what to do here or how to create a better debug output, i would greatlly appriciate it.

Regards Rob