The Weston service occasionally fails to start on ls1028

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

The Weston service occasionally fails to start on ls1028

1,822 Views
Eddy1
Contributor IV

Hi:

I am compiling my own image using lsdk2012, i changed the default FETCH_PREBUILT_LSDK_RFS=y to n in <flexbuild_dir>/configs/build_lsdk.cfg to build main userland from scratch instead of fetching the prebuilt userland. but after burning it to the SD card, I find that occasionally the Weston service fails to start, resulting in the inability to access the desktop:

systemctl status weston

● weston.service - Weston Wayland Compositor (on tty7)
Loaded: loaded (/lib/systemd/system/weston.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since Fri 2066-01-01 00:02:59 UTC; 10min a
Process: 782 ExecStart=/usr/local/bin/weston --tty=1 (code=exited, status=1/FA
Process: 781 ExecStartPre=/bin/chvt 7 (code=exited, status=0/SUCCESS)
Main PID: 782 (code=exited, status=1/FAILURE)

Jan 01 00:02:59 localhost weston[782]: EGL_EXT_platform_wayland E
Jan 01 00:02:59 localhost weston[782]: EGL_MESA_platform_gbm EGL_
Jan 01 00:02:59 localhost weston[782]: EGL_EXT_platform_device
Jan 01 00:02:59 localhost weston[782]: [00:02:59.964] failed to initialize displ
Jan 01 00:02:59 localhost weston[782]: [00:02:59.964] EGL error state: EGL_NOT_I
Jan 01 00:02:59 localhost weston[782]: [00:02:59.964] failed to initialize egl
Jan 01 00:02:59 localhost weston[782]: [00:02:59.982] fatal: failed to create co
Jan 01 00:02:59 localhost weston[782]: Internal warning: debug scope 'drm-backen
Jan 01 00:02:59 localhost systemd[1]: weston.service: Main process exited, code=
Jan 01 00:02:59 localhost systemd[1]: weston.service: Failed with result 'exit-c

Could you give me some advice?

Tags (1)
0 Kudos
3 Replies

1,805 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use Weston with ubuntu:main rootfs not ubuntu:mate rootfs.

0 Kudos

1,771 Views
Eddy1
Contributor IV

Hi:

I added the following link library, and then it was normal,

root@localhost:~# vi /etc/default/weston

#OPTARGS=" "
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/aarch64-linux-gnu:/lib/aarch64-linux-gnu

0 Kudos

1,775 Views
Eddy1
Contributor IV

Hi:

I do use ubuntu:main rootfs.When starting up, only the cursor flashes. Check the Weston service and see the following failure log:

root@localhost:~# systemctl status weston
● weston.service - Weston Wayland Compositor (on tty7)
Loaded: loaded (/lib/systemd/system/weston.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since Thu 2021-08-26 14:20:55 UTC; 8min ag
Process: 500 ExecStart=/usr/local/bin/weston --log=/var/log/weston.log $OPTARG
Process: 489 ExecStartPre=/bin/chvt 7 (code=exited, status=0/SUCCESS)
Main PID: 500 (code=exited, status=1/FAILURE)

Aug 26 14:20:46 localhost systemd[1]: Starting Weston Wayland Compositor (on tty
Aug 26 14:20:46 localhost systemd[1]: Started Weston Wayland Compositor (on tty7
Aug 26 14:20:49 localhost systemd[500]: pam_unix(login:account): account root ha
Aug 26 14:20:49 localhost systemd[500]: pam_unix(login:session): session opened
Aug 26 14:20:55 localhost systemd[1]: weston.service: Main process exited, code=
Aug 26 14:20:55 localhost systemd[1]: weston.service: Failed with result 'exit-c

But Weston can be started manually:

root@localhost:~# weston --tty=1

0 Kudos