weston 0.95 on 945GME using i915 drm

jegde jedge bubbah.t at gmail.com
Fri Aug 10 05:15:01 PDT 2012


Please point me in the right direction to get weston up from the
virtual terminal.


I have 0.95 currently working under X, but not DRM or wayland from a
virtual tty.
( I am new, how do you refer to the vtty wayland EGL platform? )
( I have mesa master currently running mesa egl demos from the tty )

I have installed and tested the following configuration:


ENVIRONMENT

export WLD=/home/bcpl/install   # change this to another location if you prefer
export LD_LIBRARY_PATH=$WLD/lib
export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/:/usr/lib/pkgconfig/:/usr/share/pkgconfig/
export ACLOCAL="aclocal -I $WLD/share/aclocal"
export MESA_DEBUG=1
export EGL_LOG_LEVEL=debug
export EGL_DRIVERS_PATH=$WLD/lib
#export EGL_PLATFORM=drm
#export EGL_PLATFORM=fbdev
#export EGL_PLATFORM=wayland
export LIBGL_DEBUG=verbose
export WAYLAND_DEBUG=1
export XDG_RUNTIME_DIR=/home/bcpl/wayland/xdg
#export XDG_RUNTIME_DIR=/tmp/
#export CFLAGS="-g -I${WLD}/include -DEBUG -DHAVE_PIPE_LOADER_DRM"
#export CXXFLAGS="-g -I${WLD}/include -DEBUG -DHAVE_PIPE_LOADER_DRM"
export CFLAGS="-g -I${WLD}/include -DEBUG"
export CXXFLAGS="-g -I${WLD}/include -DEBUG"
export LDLAGS="-g -ldl"
#sudo groupadd weston-launch
#sudo usermod -a -G weston-launch $USER
## Log all the way out (of X, etc.)
#sudo chown root weston-launch
#sudo chmod +s weston-launch


MESA

$ ./configure --prefix=/home/bcpl/install --enable-egl --enable-gles1
--enable-gles2 --with-egl-platforms=drm,wayland,x11,fbdev
--enable-shared-glapi --with-dri-drivers=i915,i965,r200,swrast
--enable-gbm --with-gallium-drivers=i915,swrast,nouveau
--enable-gallium-egl

Note:
I could not get eglgears_screen working without the gallium drivers
AND I could not get gallium drm to compile without the
HAVE_PIPE_LOADER_DRM symbol AND I could not get that symbol configured
without enabling the nouveau driver.

here is the EGL debug info:
Note: it selects gallium for the best driver:

bcpl at localhost ~]$ source ~/wayland/wld.rc
[bcpl at localhost ~]$ ./mesa-demos-8.0.1/src/egl/opengles1/torus_screen
libEGL debug: Native platform type: drm (build-time configuration)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use DRM for display (nil)
libEGL debug: the best driver is Gallium
EGL_VERSION = 1.4 (Gallium)
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
Found 1 modes:
  0: 1024 x 768
Will use screen size: 1024 x 768
979 frames in 5.0 seconds = 195.761 FPS

(FBDEV also works as root)



WAYLAND/WESTON

I could only get wayland/weston 0.95 to compile against the mesa
master branch. I could not get 0.85 to compile against
Mesa-8.0.(0,1,2,3,4)

Running weston with an X server up and DISPLAY set works!
When I switch to the terminal and run ~/install/bin/weston the machine
hangs until I ssh in and kill weston.
this time DRI2 is selected before respawning and setting EGL_PLATFORM
to wayland.

I will be focusing here unless directed otherwise:
[11:45:07.736] libwayland: disconnect from client 0x856c1d0
wl_drm at 11: error 2: invalid name

Here is the entire weston output:



[bcpl at localhost bin]$ cat weston.log
Date: 2012-08-10 UTC
[11:45:05.191] weston 0.95.0
               http://wayland.freedesktop.org/
               Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=weston
               Build: 0.95.0-76-g3d89049-dirty config-parser: Handle
lines that don't end in
 (2012-08-03 21:56:41 -0400)
[11:45:05.192] OS: Linux, 2.6.32-220.el6.i686, #1 SMP Wed Nov 9
08:02:18 EST 2011, i686
[11:45:05.192] Loading module '/home/bcpl/install/lib/weston/drm-backend.so'
[11:45:05.193] initializing drm backend
[11:45:05.194] using /dev/dri/card0
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libEGL debug: Native platform type: drm (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use DRM for display 0x82c1e18
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in
eglInitialize(no usable display)

libEGL debug: the best driver is DRI2
libGL: Can't open configuration file /etc/drirc: No such file or directory.
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:05.218] EGL version: 1.4 (DRI2)
[11:45:05.218] EGL vendor: Mesa Project
[11:45:05.218] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2
[11:45:05.218] EGL extensions: EGL_MESA_drm_image EGL_WL_bind_wayland_display
               EGL_KHR_image_base EGL_KHR_gl_renderbuffer_image
               EGL_KHR_surfaceless_context
[11:45:05.218] GL version: OpenGL ES 2.0 Mesa 8.1-devel (git-04a11b5)
[11:45:05.218] GLSL version: OpenGL ES GLSL ES 1.0.16
[11:45:05.218] GL vendor: VMware, Inc.
[11:45:05.218] GL renderer: Gallium 0.4 on i915 (chipset: 945GME)
[11:45:05.218] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_format_BGRA8888 GL_OES_depth24
               GL_OES_element_index_uint GL_OES_fbo_render_mipmap
               GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives
               GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot
               GL_OES_EGL_image GL_OES_depth_texture
               GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
               GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
               GL_OES_EGL_image_external GL_EXT_unpack_subimage
               GL_NV_draw_buffers GL_NV_read_buffer
[11:45:05.268] failed to get plane resources: Invalid argument
[11:45:05.268] Output LVDS1, (connector 5, crtc 4)
  mode 1024x768 at 60.0, preferred, current
  mode 1024x768 at 60.0
[11:45:05.637] opening input device '/dev/input/event2' failed.
[11:45:05.638] opening input device '/dev/input/event0' failed.
[11:45:05.638] opening input device '/dev/input/event1' failed.
[11:45:05.643] opening input device '/dev/input/event9' failed.
[11:45:05.643] opening input device '/dev/input/event10' failed.
[11:45:05.643] opening input device '/dev/input/event5' failed.
[11:45:05.644] opening input device '/dev/input/event6' failed.
[11:45:05.644] opening input device '/dev/input/event7' failed.
[11:45:05.644] opening input device '/dev/input/event8' failed.
[11:45:05.644] opening input device '/dev/input/event4' failed.
[11:45:05.644] opening input device '/dev/input/event3' failed.
[11:45:05.644] Loading module '/home/bcpl/install/lib/weston/desktop-shell.so'
[11:45:05.646] libwayland: using socket /home/bcpl/wayland/xdg/wayland-0
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x9eb04e8
libEGL info: pci id for fd 5: 8086:27ae, driver i915
libEGL info: created a pipe screen for i915
libEGL debug: the best driver is Gallium
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:06.231] libwayland: disconnect from client 0x84d37a0
wl_drm at 11: error 2: invalid name
[11:45:06.648] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x9fd14e8
libEGL info: pci id for fd 5: 8086:27ae, driver i915
libEGL info: created a pipe screen for i915
libEGL debug: the best driver is Gallium
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:07.185] libwayland: disconnect from client 0x85400c0
wl_drm at 11: error 2: invalid name
[11:45:07.204] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x91094e8
libEGL info: pci id for fd 5: 8086:27ae, driver i915
libEGL info: created a pipe screen for i915
libEGL debug: the best driver is Gallium
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:07.736] libwayland: disconnect from client 0x856c1d0
wl_drm at 11: error 2: invalid name
[11:45:07.754] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x83a54e8
libEGL info: pci id for fd 5: 8086:27ae, driver i915
libEGL info: created a pipe screen for i915
libEGL debug: the best driver is Gallium
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:08.287] libwayland: disconnect from client 0x8561ee8
wl_drm at 11: error 2: invalid name
[11:45:08.306] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x80f84e8
libEGL info: pci id for fd 5: 8086:27ae, driver i915
libEGL info: created a pipe screen for i915
libEGL debug: the best driver is Gallium
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:08.838] libwayland: disconnect from client 0x84d37a0
wl_drm at 11: error 2: invalid name
[11:45:08.856] weston-desktop-shell died, respawning...
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is
/home/bcpl/install/lib:/home/bcpl/install/lib/egl
libEGL debug: added /home/bcpl/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/bcpl/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x89b94e8
libEGL info: pci id for fd 5: 8086:27ae, driver i915
libEGL info: created a pipe screen for i915
libEGL debug: the best driver is Gallium
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
[11:45:09.389] libwayland: disconnect from client 0x85400c0
wl_drm at 11: error 2: invalid name
[11:45:09.407] weston-desktop-shell died, giving up.
[11:51:03.386] caught signal 15
[11:51:03.408] failed to drop master: Permission denied
[bcpl at localhost bin]$


More information about the wayland-devel mailing list