I have been working on running Wayland with a Weston compositor on the Odroid XU4, and would like to share my experience.
The current stable odroidxu3-3.10.y kernel contains an older unsupported r5p1-00rel1 mali driver, but the currently supported Mali user mode GLES/EGL drivers require the r6p0-02rel0 driver. After patching the kernel with the later kernel driver, I can now get the ARM libmali.so working with the 3.10 kernel.
I have previously built Weston on iMX6 platforms which use the Vivante GPU. The iMX6 GPU drivers provided by freescale provide three different GLES and EGL libraries for fbdev, x11, and wayland. The libEGL-wl.so on iMX6 platforms allows wayland clients access to EGL, however I can only find support for fbdev and x11 libraries on the malideveloper.com site.
Is it currently possible to use EGL on Mali with Wayland? I suppose Tizen does this somehow, however but I cannot find any libEGL-wl.so implementation for Mali GPUs. Although I could build Mesa for ARM to provide the EGL Wayland libraries, I don't see how Mesa can use the Mali GPU since there's no Gallium driver backend for Mesa.
SInce ARM seems to be pushing Wayland as the future for Mali compositors, shouldn't they provide the libEGL-wl.so libraries for LInux?
Guillaume Tucker wrote:We are planning to release user-space drivers for Weston/Wayland with DRM (GBM) back-end for the ODROID-XU3, and also support it with OpenEmbedded/Yocto recipes. This should be available in the next few weeks. ... Best wishes,Guillaume
Guillaume Tucker wrote:
We are planning to release user-space drivers for Weston/Wayland with DRM (GBM) back-end for the ODROID-XU3, and also support it with OpenEmbedded/Yocto recipes. This should be available in the next few weeks.
...
Best wishes,
Guillaume
Are you also planning this for the Firefly / rk3288? That would just be the missing key to get a fast working linux desktop for all these rk3288 devices.
If available it would empower a lot of these $35+ rk3288 devices where several communities are trying to get out of the android box.
Right now I have mainline kernel (4.7) plus graphics stack running: mali + drm drivers, libdrm, mali user space drivers and armsoc and X11 running with ubuntu. It works however performance is not good (glmark2-es is about 40). Running glmark2-es fullscreen (under X11) i get about 55 fps. So I feel armsoc is the bottleneck here.
Weston with X11 backend is working well, and also fast: resizing/moving windows and stuff inside the weston window is fast when compared with normal X11 desktop.
So my hope is on a Weston/XWayland with DRM (GBM) back-end; and that would need these dedicated user space drivers for Firefly / rk3288.
Are you planning a release?
If needed I would gladly help developing one. Especially if one is already available for ODROID-XU3 as solutions in mali and drm kernel drivers and armsoc drivers are pretty identical in code so it shouldn't be too tricky.
Cheers -- mac_l1