yocto-L4.1.15_1.2.0 ,Wayland/weston 没有启动成功

cancel
Showing results for 
Search instead for 
Did you mean: 

yocto-L4.1.15_1.2.0 ,Wayland/weston 没有启动成功

2,015 Views
zhangzy
Contributor I

在rootfs 的/etc/init.d 目录有个weston文件,里面会启动weston :"openvt -s weston -- $OPTARGS
", 从终端log看weston 没有启动起来,没有如下log 打出:

[01:37:43.969] weston 1.9.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.0
               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
[01:37:43.969] OS: Linux, 4.1.15+, #29 SMP PREEMPT Fri Dec 30 14:20:22 CST 2016, armv7l

在这个脚本里直接运行 自带的 Wayland 例子程序,也会报错。

是什么原因呢?

0 Kudos
2 Replies

1,063 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

Open the file:
 <YOCTO_DIR>/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-graphics/wayland/weston_1.9.0.bb

DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg"
DEPENDS += "wayland virtual/egl pango libinput"

Additionally to those dependencies, Weston requires the OpenGL ES and G2D libraries to do the final composition, Looks like you have no included they are already part of the default image.

Once your image has been properly generated, you will find the Weston source codes in:

<YOUR YOCTODIR>/build-wayland/tmp/work/cortexa9hf-vfp-neon-mx6qdl-linux-gnueabi/weston/1.9.0-r0/weston-1.9.0

Hope this helps

0 Kudos

1,063 Views
zhangzy
Contributor I

But, after system start up, launch weston manually in terminal, some logs can output  with compositor backend error , maybe just some configurations is wrong?:

root@(none):~/.config# export XDG_RUNTIME_DIR=/run/user/root/
root@(none):~/.config#
root@(none):~/.config#
root@(none):~/.config# weston
Date: 1970-01-01 UTC
[00:02:06.642] weston 1.9.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.0
               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
[00:02:06.642] OS: Linux, 4.1.15+, #29 SMP PREEMPT Fri Dec 30 14:20:22 CST 2016, armv7l
[00:02:06.643] Using config file '/home/root/.config/weston.ini'
[00:02:06.643] Loading module '/usr/lib/weston/fbdev-backend.so'
[00:02:06.653] Output repaint window is 7 ms maximum.
[00:02:06.653] initializing fbdev backend
[00:02:06.653] <stdin> not a vt
[00:02:06.654] if running weston from ssh, use --tty to specify a tty
[00:02:06.654] fatal: fbdev backend should be run using weston-launch binary or as root
[00:02:06.654] fatal: failed to create compositor backend

0 Kudos