Part Number: AM3358
I am building a system using buildroot on kernel 4.19.94-ti-r44. I am able to load the pvr kernel module and the user space driver with successful output in dmesg. I am trying to use Weston the drm-backend but it is failing with the following output:
[22:43:11.961] weston 5.0.0
wayland.freedesktop.org
Bug reports to: gitlab.freedesktop.org/.../
Build: unknown (not built from git or tarball)
[22:43:11.966] Command line: weston --tty=5 --debug
[22:43:11.966] OS: Linux, 4.19.94, #1 PREEMPT Mon Jun 15 10:07:28 EDT 2020, armv7l
[22:43:11.969] Starting with no config file.
[22:43:11.970] WARNING: debug protocol has been enabled. This is a potential denial-of-service attack vector and information leak.
[22:43:11.973] Output repaint window is 7 ms maximum.
[22:43:11.974] Loading module '/usr/lib/libweston-5/drm-backend.so'
[22:43:11.985] initializing drm backend
[22:43:11.993] using /dev/dri/card0
[22:43:11.996] DRM: supports universal planes
[22:43:11.998] DRM: supports atomic modesetting
[22:43:11.998] DRM: supports picture aspect ratio
[22:43:11.998] Loading module '/usr/lib/libweston-5/gl-renderer.so'
failed to load module: /usr/lib/gbm/gbm_pvr.so: cannot open shared object file: No such file or directory
[22:43:12.011] failed to initialize egl
[22:43:12.018] fatal: failed to create compositor backend
[22:43:12.021] Internal warning: debug scope 'drm-backend' has not been destroyed.
I've tried using Weston 2.0 with the TI patches applies as well as Weston 5.0 using the patches from the arago meta yocto layer. Both version produce the same output.
It looks like the TI libgbm backend.c is still hardcoded to look for /usr/lib/gbm/gbm_pvr.so. Version 1.14 of the DDK symlinked this file to libpvrGBMWSEGL.so, but this library is not packaged in the 1.17 DDK. Should libgbm be pointed to another .so?