Wayland with freeRDP for screenshare on i.mx93

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wayland with freeRDP for screenshare on i.mx93

319 Views
jcase
Contributor II

Hello,

I am trying to get remote desktop access setup via freeRDP on the i.MX93evk. I've been following this other post as a reference (https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8DXL-screen-share-to-PC-by-using-Fre...)

I recently built the following yocto image using langdale6.1.1 manifest so the latest kernal.

  • "DISTRO=fsl-imx-wayland MACHINE=imx93evk source imx-setup-release.sh -b imx93Wayland"
  • bitbake imx-image-full

and updated the local.conf file to include freeRDP prior to building. 

  • LICENSE_FLAGS_ACCEPTED+="commercial"
  • IMAGE_INSTALL:append = " freerdp"

I have verified my board has the freeRDP package installed (dpgk -s freerdp). When the evk boots up, I have a few errors with Weston. See below.

------------------------------------------------------------------------------------------------------------------------------

 

root@imx93evk:~# systemctl status weston.service
x weston.service - Weston, a Wayland compositor, as a system service
Loaded: loaded (/lib/systemd/system/weston.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-07-11 23:24:39 UTC; 7s ago
TriggeredBy: * weston.socket
Docs: man:weston(1)
man:weston.ini(5)
http://wayland.freedesktop.org/
Process: 363 ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log --modules=systemd-notify.so (code=exited, status=1/FAILURE)
Main PID: 363 (code=exited, status=1/FAILURE)

Jul 11 23:24:37 imx93evk systemd[1]: Starting Weston, a Wayland compositor, as a system service...
Jul 11 23:24:37 imx93evk systemd[363]: pam_unix(weston-autologin:session): session opened for user root(uid=0) by root(uid=0)
Jul 11 23:24:39 imx93evk systemd[1]: weston.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 23:24:39 imx93evk systemd[1]: weston.service: Failed with result 'exit-code'.
Jul 11 23:24:39 imx93evk systemd[1]: Failed to start Weston, a Wayland compositor, as a system service.

------------------------------------------------------------------------------------------------------------------------------

When I try to run Weston from root I also receive errors:

------------------------------------------------------------------------------------------------------------------------------

root@imx93evk:~# weston
Date: 2023-07-11 UTC
[23:27:23.310] weston 11.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-6.1.1-1.0.0+
[23:27:23.310] Command line: weston
[23:27:23.310] OS: Linux, 6.1.1+g29549c7073bf, #1 SMP PREEMPT Thu Mar 2 14:54:17 UTC 2023, aarch64
[23:27:23.310] Flight recorder: enabled
[23:27:23.310] Using config file '/etc/xdg/weston/weston.ini'
[23:27:23.311] Output repaint window is 16 ms maximum.
[23:27:23.311] Loading module '/usr/lib/libweston-11/wayland-backend.so'
[23:27:23.311] Failed to load module: /usr/lib/libweston-11/wayland-backend.so: cannot open shared object file: No such file or directory
[23:27:23.311] fatal: failed to create compositor backend

------------------------------------------------------------------------------------------------------------------------------

Not sure if this is the cause, but do I have to set XDG_RUNTIME_DIR? If so, how do I do that?

Regarding the wayland back-end, is this a separate package I have to include in yocto or how can I get this to work?

I've read forums on how to solve both but cannot make any progress. Any help would be appreciated!

Additionally - I'm not restricted to using Wayland, I can also build Xwayland however I tried to incorporate freeRDP there and would not work with yocto... If there is another package you'd recommend please let me know.

Thanks!

Labels (2)
0 Kudos
Reply
0 Replies