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/AM5708: SGX/PVR doesn't initialize

Part Number: AM5708

Tool/software: Linux

On my custom AM5708 board, I am struggling to get SGX / PVR working correctly.

This is what I get:

cat /var/log/weston.log
Date: 2018-01-08 UTC
[18:47:40.794] weston 2.0.0
http://wayland.freedesktop.org
Bug reports to: bugs.freedesktop.org/enter_bug.cgi
Build: c26dbf3-dirty weston-launch: Provide a default version that doesn't require PAM (2018-02-09 11:58:14 -0500)
[18:47:40.794] Command line: weston --idle-time=0
[18:47:40.794] OS: Linux, 4.9.69-g5ec5e13ea6, #25 SMP PREEMPT Thu Jun 7 15:55:25 EDT 2018, armv7l
[18:47:40.795] Using config file '/etc//weston.ini'
[18:47:40.812] Output repaint window is 7 ms maximum.
[18:47:40.830] Loading module '/usr/lib/libweston-2/drm-backend.so'
[18:47:40.841] initializing drm backend
[18:47:40.862] using /dev/dri/card0
[18:47:40.867] Loading module '/usr/lib/libweston-2/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
[18:47:40.926] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
[18:47:40.929] failed to initialize display
[18:47:40.929] EGL error state: EGL_BAD_ALLOC (0x3003)
[18:47:40.929] failed to initialize egl
[18:47:40.948] fatal: failed to create compositor backend
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]

This is with TI EVm Linux 4.02.00.09 image with my custom DTB and Bootloader.