Jetpack 4.4 Gnome Wayland Desktop Shell issue

Hi all,

We can’t launch Gnome Wayland Desktop Shell successfully in Jetpack 4.4, but it works well in Jetpack 4.2.1. Is it a known issue or we did something wrong? Please help us.

Many thanks.
B.R.
Roland

Hi,
We have steps to stop display manager and start Weston compositor in
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Faccelerated_gstreamer.html%23wwpID0E0JP0HA
Please take a look and give it a try.

Hi DaneLLL,

First of all, I’m sorry that this article should be posted on Xavier NX category. Should I re-post on NX category?

We used L4T Sample Root File System to install all the nvidia-l4t和nvidia-jetpack deb package, and follow the Developer Guide to enable Weston. But it still can’t work.
The error message is for your information. Please help us.

[11:00:22.640] weston 6.0.1
[http://wayland.freedesktop.org](http://wayland.freedesktop.org/)
Bug reports to: [https://bugs.freedesktop.org/enter_bug.cgi? 
product=Wayland&component=weston&version=3.0.0] 
(https://bugs.freedesktop.org/enter_bug.cgi? 
product=Wayland&component=weston&version=3.0.0)
Build: unknown (not built from git or tarball)
[11:00:22.641] Command line: weston --idle-time=0
[11:00:22.641] OS: Linux, 4.9.140-tegra, #1 SMP PREEMPT Wed Apr 8 18:15:20 PDT 2020, 
 aarch64
 [11:00:22.641] Using config file '/etc/xdg/weston/weston.ini'
 [11:00:22.642] Output repaint window is 7 ms maximum.
 [11:00:22.642] Loading module '/usr/lib/aarch64-linux-gnu/weston//drm-backend.so'
 [11:00:22.646] initializing drm backend
 [11:00:22.648] using /dev/dri/card0
 [11:00:22.648] DRM: supports universal planes
 [11:00:22.648] DRM: supports atomic modesetting
 [11:00:22.648] DRM: does not support picture aspect ratio
 [11:00:22.648] Loading module '/usr/lib/aarch64-linux-gnu/weston//gl-renderer.so'
 MESA-LOADER: failed to open tegra-udrm (search paths /usr/lib/aarch64-linux- 
 gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
 failed to load driver: tegra-udrm
 MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/aarch64-linux- 
 gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
 failed to load driver: kms_swrast
 MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux- 
 gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
 failed to load swrast driver
 [11:00:22.672] Failed to load GBM.
 [11:00:22.675] falling back to internal swapchain
 MESA-LOADER: failed to open tegra-udrm (search paths /usr/lib/aarch64-linux- 
 gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
 failed to load driver: tegra-udrm
 MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/aarch64-linux- 
 gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
 failed to load driver: kms_swrast
 MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux- 
 gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
 failed to load swrast driver
 [11:00:22.720] Failed to load GBM.
 [11:00:22.723] failed to initialize egl
 [11:00:25.880] fatal: failed to create compositor backend
 [11:00:25.881] Internal warning: debug scope 'drm-backend' has not been destroyed.

Many thanks.
B.R.
Roland

Hi,
Do you mean the steps do not work on Xavier NX?

1.Stop the display manager:
$ sudo systemctl stop gdm 
$ sudo loginctl terminate-seat seat0 
2.For Weston 6.0 use tegra_drm driver
$ sudo modprobe tegra-udrm modeset=1
3.Unset the DISPLAY environment variable:
$ unset DISPLAY 
4.Create a temporary xdg directory:
$ mkdir /tmp/xdg 
$ chmod 700 /tmp/xdg 
5.Start the Weston compositor:
$ sudo XDG_RUNTIME_DIR=/tmp/xdg weston --idle-time=0 &
1 Like

Hi DaneLLL,

Yes, We followed the SOP step you mentioned, and got the error message for your reference.

Many thanks.
B.R.
Roland

Hi,

Could you share the result of command"lsmod"?

Hi Wayne,

Sure. Please help us check the output result.
Thank you very much.

//-----------------------------------------
hs@hs-nx:~$ lsmod
Module                  Size  Used by
zram                   26166  2
overlay                48691  0
spidev                 13282  0
nvgpu                1580098  3
bluedroid_pm           13912  0
ip_tables              19441  0
x_tables               28951  1 ip_tables
hs@hs-nx:~$

Many thanks.
B.R.
Roland

Looks like tegra_udrm failes to load up because of something wrong. We will help check.

Hi roland6001,

Please run

$sudo ln -sf /usr/lib/aarch64-linux-gnu/tegra/libnvgbm.so /usr/lib/aarch64-linux-gnu/libgbm.so.1

before
$ sudo modprobe tegra-udrm modeset=1

Hi Carolyuu,

Problem solved. Thank you so much.

Many thanks.
B.R.
Roland

1 Like