I am trying to run Weston on the sample rootfs supplied with L4T R28.1. I have flashed the rootfs onto the TX2, and copied Weston from Linux_for_Tegra/weston.tbz2, but I get the following error when executing weston:
root@tegra-ubuntu:~# weston --tty=3
Date: 2017-08-22 UTC
[07:09:03.744] weston 1.7.0
Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.7.0
Build: 1.7.0 configure.ac: bump to version 1.7.0 for release (2015-02-13 20:47:09 -0800)
[07:09:03.744] OS: Linux, 4.4.38-tegra, #1 SMP PREEMPT Thu Jul 20 00:49:07 PDT 2017, aarch64
[07:09:03.745] Starting with no config file.
[07:09:03.745] Loading module '/usr/lib/aarch64-linux-gnu/weston//egloutput-backend.so'
[07:09:03.749] initializing egloutput backend
[07:09:03.749] Loading module '/usr/lib/aarch64-linux-gnu/weston//gl-renderer.so'
[07:09:03.752] EGL_EXT_device_base not available[07:09:03.752] failed to get EGL devices from gl renderer
[07:09:05.776] fatal: failed to create compositor
Do you have any pointers on how to run Weston on L4T R28.1? I want to get Weston running on the sample rootfs to later port it to work with the Yocto layer I am using for my project.
Thank you for the instructions. I installed L4T R28.1 via JetPack, and now it works fine. I previously flashed the rootfs manually using flash.sh, and this seems to have been my issue.
I would now like to run Weston in my custom Yocto layer, can you indicate where I can find the source code of the weston version used in L4T? I need to link it against the rest of the libraries in my rootfs.
I am building a complete Linux system for the TX2, and I am using only a small portion of the NVIDIA pre-compiled rootfs (such as graphics drivers and firmware). This works well enough for drivers and very low-level software, because there is a minimal set of external dependencies from these libraries.
For Weston, I have issues using the binary version, since Weston is designed to link against many external libraries in the system, such as libjpeg, libpng, libxml2, libz, cairo, etc… My system uses very recent versions of a lot of these libraries, and having a pre-compiled version of Weston, which links against older versions is a problem (and is also likely to cause future issues, when I need to update one of the libraries Weston depends upon).
With the sources, I can make any modifications necessary to Weston to make it compatible with the rest of my rootfs, or possibly forward-port the NVIDIA-specific backend needed by Weston to use the NVIDIA graphics driver.
I am completely OK with the source code for Weston not being completely supported by NVIDIA, and I understand that I will need to make modifications to it to get it working correctly. Would it be possible for you to share it somehow?
A statically linked binary would be an option, yes.
Making the sources available for the modifications made to Weston would have other benefits for TX2 users as well, such as giving a reference in how to make other compositors (such as QtWayland) work on the TX2. Having the sources available to the community also means that modifications can be ported to newer versions of Weston.
Either a statically linked binary, or sources would be much appreciated!
root@baba:~# sha1sum -c /etc/nv_tegra_release
I’m wondering whether or not you are logged in as a user in group “video”? Those have permission for GPU access. Sometimes error messages lack clarity, and the message you have is not detailed. Normally users “nvidia” and “ubuntu” are in group “video”.
Also, you are using remote forwarding instead of logged in locally, then this too would change things.