This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: GPU driver for Xorg

Part Number: AM5728

Dear all,

I was trying to install Xorg compatible GPU driver on my Sitara AM5728 IDK. I came to know that there is a GPU driver source file in a folder "ti-sgx-ddk-km-1.14.3699939", which comes with the TI SDK for Sitara AM57xx SoC. I have managed to compile the source and this process produced two kernel modules file "bc_example.ko and pvrsrvkm.ko" as an output. I have loaded these kernel modules, as you may see in the lsmod snapshot below

My questions are as follows:

1) Will TI provided GPU driver sources produce only two kernel modules files as mentioned above or Will it also produce some additional files too? If it produce additional files, then what are those files and how can they be obtained?

2)  There is also http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Xorg_build which is a complete Graphic SDK provided by TI. However, it seems that this is not compatible to AM5728 SoC. Could you send me the link of such Graphic SDK for AM5728 IDK?

3) If these two kernel modules are the only driver files needed, then how can I configure Xorg to use this driver?

Look forward to receiving your response.

- Farrukh

  • Hi Farrukh,

    I will get back to this query soon.

    Regards,
    Manisha
  • Hi, Farrukh:

    TI does not support Graphics SDK anymore, instead, all graphics related modules are included at the PSDK Linux distribution. The graphics release consists of a DDK Kernel Module (KM) source package and a DDK User-mode Module (UM) binary-only package. 

    There are three EGL window system (WSEGL) supported by the DDK UM libraries.

    • libpvrDRMWSEGL.so (for VSync synchronised writes to DRM Framebuffer - slower, but avoids tearing) (for eglfs)
    • libpvrGBMWSEGL.so (for eglfs_kms)
    • libpvrws_WAYLAND.so (for wayland-egl)

    The window system will be dynamically loaded by DDK based on the application use case, so that the PVR configuration parameter WindowSystem at the PVR configuration file /etc/powervr.ini is optional.

    As you may notice that the graphics DDK no longer supports X11. Please refer to "software-dl.ti.com/.../Foundational_Components.html details.

    If  your application is based on QT5 then it should be able to run on top of any QT QPA (platform) supported by the underneath EGL components.

    • wayland-egl (default)
    • eglfs (-platform eglfs)

    Attached please find the DDK UM package for your reference.

    Best regards,

    Eric 

    sgx_ddk_um.tar.gz

  • Thank you Manisha and Eric for replying.

  • Hi Eric,

    May I know the reason of not supporting X11?

    Best regards,
    Farrukh
  • Hi, Farrukh:

    Here is a short summary why TI stop supporting X11 from our graphics expert.

    1. X11 is quite bloated with features that are not necessary for modern day embedded systems. This increases memory footprint and reduces performance

    2. Wayland is clearly the future with open source frameworks like Qt5 and industry alliances like Genivi/Tizen adopting Wayland
    •Qt5 - wayland.freedesktop.org/qt5.html
    •Genivi •projects.genivi.org/.../about
    events.linuxfoundation.org/.../ALS_201310_tanibata_v04.pdf
    •Tizen - www.tizen.org/.../lfcs2012_barnes.pdf

    3. Embedded systems have been full screen applications till recent times. Window management with Wayland is still a big step forward.

    4. Customizing X11 for feature additions is a major undertaking due to the extensions and backward compatibility.

    For someone coming from an embedded system background typically with full screen applications, the whole argument for Wayland seems quite natural argument and logical. Only when we look at it from a desktop history, the argument for X11 is admissible due to legacy applications.

    He also went through some X11 history if your are interested.

    Best regards,

    Eric

  • Hi Eric,

    I hope that you are doing fine. Could you please have a look at the log in below and suggest an appropriate solution? we have tried till here by creating a symlink omapdrm_dri.so to gbm_pvr.so and we still have the issue.

    1) May I know, did you do some customisation in weston src in order to make use of gpu driver?

    Date: 2018-08-10 UTC
    [05:42:14.136] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [05:42:14.136] Command line: weston --idle-time=0
    [05:42:14.136] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [05:42:14.141] Starting with no config file.
    [05:42:14.142] Output repaint window is 7 ms maximum.
    [05:42:14.144] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [05:42:14.156] initializing drm backend
    [05:42:14.171] using /dev/dri/card0
    [05:42:14.172] DRM: supports universal planes
    [05:42:14.172] DRM: does not support atomic modesetting
    [05:42:14.172] DRM: does not support picture aspect ratio
    [05:42:14.176] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: omapdrm
    [05:42:14.763] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [05:42:14.764] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [05:42:14.764] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [05:42:14.764] EGL_KHR_surfaceless_context available
    [05:42:14.804] EGL version: 1.4 (DRI2)
    [05:42:14.804] EGL vendor: Mesa Project
    [05:42:14.804] EGL client APIs: OpenGL OpenGL_ES 
    [05:42:14.804] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [05:42:14.805] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [05:42:14.805] GLSL version: OpenGL ES GLSL ES 3.00
    [05:42:14.805] GL vendor: VMware, Inc.
    [05:42:14.805] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [05:42:14.805] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [05:42:14.806] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [05:42:14.820] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [05:42:14.820] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [05:42:14.825] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [05:42:14.825] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [05:42:14.898] input device 'HID 04b3:3107', /dev/input/event2 is tagged by udev as: Mouse
    [05:42:14.898] input device 'HID 04b3:3107', /dev/input/event2 is a pointer caps
    [05:42:15.083] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [05:42:15.083] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [05:42:15.083] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [05:42:15.084] No backlight control for output 'HDMI-A-1'
    [05:42:15.084] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [05:42:15.084] associating input device event0 with output HDMI-A-1 (none by udev)
    [05:42:15.084] associating input device event1 with output HDMI-A-1 (none by udev)
    [05:42:15.084] associating input device event2 with output HDMI-A-1 (none by udev)
    [05:42:15.084] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [05:42:15.084] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [05:42:15.090] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [05:42:15.099] launching '/usr/local/libexec/weston-keyboard'
    [05:42:15.103] launching '/usr/local/libexec/weston-desktop-shell'
    [05:42:18.443] unexpectedly large timestamp jump (from 86655 to 87973)
    [05:45:17.520] caught signal 15
    [05:45:17.568] output for input device event0 removed
    [05:45:17.568] output for input device event1 removed
    [05:45:17.569] output for input device event2 removed
    Date: 2018-08-10 UTC
    [05:45:20.004] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [05:45:20.004] Command line: weston --idle-time=0
    [05:45:20.004] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [05:45:20.005] Starting with no config file.
    [05:45:20.005] Output repaint window is 7 ms maximum.
    [05:45:20.005] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [05:45:20.008] initializing drm backend
    [05:45:20.014] using /dev/dri/card0
    [05:45:20.014] DRM: supports universal planes
    [05:45:20.014] DRM: does not support atomic modesetting
    [05:45:20.014] DRM: does not support picture aspect ratio
    [05:45:20.015] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: omapdrm
    [05:45:20.162] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [05:45:20.163] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [05:45:20.163] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [05:45:20.163] EGL_KHR_surfaceless_context available
    [05:45:20.180] EGL version: 1.4 (DRI2)
    [05:45:20.180] EGL vendor: Mesa Project
    [05:45:20.181] EGL client APIs: OpenGL OpenGL_ES 
    [05:45:20.181] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [05:45:20.181] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [05:45:20.181] GLSL version: OpenGL ES GLSL ES 3.00
    [05:45:20.181] GL vendor: VMware, Inc.
    [05:45:20.181] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [05:45:20.181] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [05:45:20.182] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [05:45:20.196] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [05:45:20.196] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [05:45:20.201] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [05:45:20.201] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [05:45:20.268] input device 'HID 04b3:3107', /dev/input/event2 is tagged by udev as: Mouse
    [05:45:20.268] input device 'HID 04b3:3107', /dev/input/event2 is a pointer caps
    [05:45:20.420] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [05:45:20.421] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [05:45:20.421] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [05:45:20.421] No backlight control for output 'HDMI-A-1'
    [05:45:20.421] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [05:45:20.422] associating input device event0 with output HDMI-A-1 (none by udev)
    [05:45:20.422] associating input device event1 with output HDMI-A-1 (none by udev)
    [05:45:20.422] associating input device event2 with output HDMI-A-1 (none by udev)
    [05:45:20.422] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [05:45:20.422] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [05:45:20.423] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [05:45:20.424] launching '/usr/local/libexec/weston-keyboard'
    [05:45:20.428] launching '/usr/local/libexec/weston-desktop-shell'
    [05:45:23.460] unexpectedly large timestamp jump (from 271671 to 272989)
    [05:53:48.335] caught signal 15
    [05:53:48.386] output for input device event0 removed
    [05:53:48.386] output for input device event1 removed
    [05:53:48.386] output for input device event2 removed
    Date: 2018-08-10 UTC
    [05:53:50.939] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [05:53:50.939] Command line: weston --idle-time=0
    [05:53:50.939] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [05:53:50.939] Starting with no config file.
    [05:53:50.940] Output repaint window is 7 ms maximum.
    [05:53:50.940] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [05:53:50.943] initializing drm backend
    [05:53:50.949] using /dev/dri/card0
    [05:53:50.949] DRM: supports universal planes
    [05:53:50.949] DRM: does not support atomic modesetting
    [05:53:50.949] DRM: does not support picture aspect ratio
    [05:53:50.949] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: omapdrm
    [05:53:51.097] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [05:53:51.098] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [05:53:51.098] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [05:53:51.098] EGL_KHR_surfaceless_context available
    [05:53:51.116] EGL version: 1.4 (DRI2)
    [05:53:51.116] EGL vendor: Mesa Project
    [05:53:51.116] EGL client APIs: OpenGL OpenGL_ES 
    [05:53:51.116] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [05:53:51.116] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [05:53:51.116] GLSL version: OpenGL ES GLSL ES 3.00
    [05:53:51.116] GL vendor: VMware, Inc.
    [05:53:51.116] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [05:53:51.117] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [05:53:51.118] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [05:53:51.131] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [05:53:51.131] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [05:53:51.136] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [05:53:51.136] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [05:53:51.208] input device 'HID 04b3:3107', /dev/input/event2 is tagged by udev as: Mouse
    [05:53:51.208] input device 'HID 04b3:3107', /dev/input/event2 is a pointer caps
    [05:53:51.360] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [05:53:51.360] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [05:53:51.361] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [05:53:51.361] No backlight control for output 'HDMI-A-1'
    [05:53:51.361] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [05:53:51.361] associating input device event0 with output HDMI-A-1 (none by udev)
    [05:53:51.361] associating input device event1 with output HDMI-A-1 (none by udev)
    [05:53:51.362] associating input device event2 with output HDMI-A-1 (none by udev)
    [05:53:51.362] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [05:53:51.362] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [05:53:51.362] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [05:53:51.364] launching '/usr/local/libexec/weston-keyboard'
    [05:53:51.368] launching '/usr/local/libexec/weston-desktop-shell'
    [05:53:54.395] unexpectedly large timestamp jump (from 782623 to 783924)
    [06:02:37.733] input device HID 04b3:3107, /dev/input/event2 removed
    Date: 2018-08-10 UTC
    [06:13:02.242] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [06:13:02.242] Command line: weston --idle-time=0
    [06:13:02.243] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [06:13:02.243] Starting with no config file.
    [06:13:02.243] Output repaint window is 7 ms maximum.
    [06:13:02.243] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [06:13:02.246] initializing drm backend
    [06:13:02.246] <stdin> is already in graphics mode, is another display server running?
    [06:13:02.246] fatal: drm backend should be run using weston-launch binary, or your system should provide the logind D-Bus API.
    [06:13:02.247] fatal: failed to create compositor backend
    [06:17:28.817] caught signal 15
    [06:17:28.869] output for input device event0 removed
    [06:17:28.869] output for input device event1 removed
    Date: 2018-08-10 UTC
    [06:17:31.742] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [06:17:31.743] Command line: weston --idle-time=0
    [06:17:31.743] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [06:17:31.743] Starting with no config file.
    [06:17:31.743] Output repaint window is 7 ms maximum.
    [06:17:31.743] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [06:17:31.746] initializing drm backend
    [06:17:31.752] using /dev/dri/card0
    [06:17:31.752] DRM: supports universal planes
    [06:17:31.753] DRM: does not support atomic modesetting
    [06:17:31.753] DRM: does not support picture aspect ratio
    [06:17:31.753] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: driver exports no extensions (/usr/lib/dri/omapdrm_dri.so: undefined symbol: __driDriverExtensions)failed to load driver: omapdrm
    [06:17:31.919] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [06:17:31.920] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [06:17:31.920] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [06:17:31.920] EGL_KHR_surfaceless_context available
    [06:17:31.937] EGL version: 1.4 (DRI2)
    [06:17:31.937] EGL vendor: Mesa Project
    [06:17:31.937] EGL client APIs: OpenGL OpenGL_ES 
    [06:17:31.937] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [06:17:31.938] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [06:17:31.938] GLSL version: OpenGL ES GLSL ES 3.00
    [06:17:31.938] GL vendor: VMware, Inc.
    [06:17:31.938] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [06:17:31.938] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [06:17:31.939] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [06:17:31.950] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [06:17:31.950] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [06:17:31.955] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [06:17:31.955] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [06:17:32.100] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [06:17:32.101] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [06:17:32.101] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [06:17:32.101] No backlight control for output 'HDMI-A-1'
    [06:17:32.101] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [06:17:32.102] associating input device event0 with output HDMI-A-1 (none by udev)
    [06:17:32.102] associating input device event1 with output HDMI-A-1 (none by udev)
    [06:17:32.102] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [06:17:32.102] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [06:17:32.103] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [06:17:32.104] launching '/usr/local/libexec/weston-keyboard'
    [06:17:32.108] launching '/usr/local/libexec/weston-desktop-shell'
    [06:17:34.853] unexpectedly large timestamp jump (from 2203331 to 2204649)
    [06:18:38.884] caught signal 15
    [06:18:38.929] output for input device event0 removed
    [06:18:38.929] output for input device event1 removed
    Date: 2018-08-10 UTC
    [06:18:41.792] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [06:18:41.793] Command line: weston --idle-time=0
    [06:18:41.793] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [06:18:41.793] Starting with no config file.
    [06:18:41.793] Output repaint window is 7 ms maximum.
    [06:18:41.793] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [06:18:41.796] initializing drm backend
    [06:18:41.802] using /dev/dri/card0
    [06:18:41.802] DRM: supports universal planes
    [06:18:41.802] DRM: does not support atomic modesetting
    [06:18:41.803] DRM: does not support picture aspect ratio
    [06:18:41.803] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: omapdrm
    [06:18:41.954] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [06:18:41.955] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [06:18:41.955] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [06:18:41.955] EGL_KHR_surfaceless_context available
    [06:18:41.973] EGL version: 1.4 (DRI2)
    [06:18:41.973] EGL vendor: Mesa Project
    [06:18:41.973] EGL client APIs: OpenGL OpenGL_ES 
    [06:18:41.973] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [06:18:41.973] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [06:18:41.973] GLSL version: OpenGL ES GLSL ES 3.00
    [06:18:41.973] GL vendor: VMware, Inc.
    [06:18:41.974] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [06:18:41.974] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [06:18:41.975] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [06:18:41.986] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [06:18:41.986] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [06:18:41.991] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [06:18:41.991] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [06:18:42.142] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [06:18:42.142] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [06:18:42.143] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [06:18:42.143] No backlight control for output 'HDMI-A-1'
    [06:18:42.143] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [06:18:42.143] associating input device event0 with output HDMI-A-1 (none by udev)
    [06:18:42.144] associating input device event1 with output HDMI-A-1 (none by udev)
    [06:18:42.144] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [06:18:42.144] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [06:18:42.144] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [06:18:42.146] launching '/usr/local/libexec/weston-keyboard'
    [06:18:42.149] launching '/usr/local/libexec/weston-desktop-shell'
    [06:18:44.893] unexpectedly large timestamp jump (from 2273372 to 2274689)
    Date: 2018-08-10 UTC
    [09:10:19.949] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [09:10:19.950] Command line: weston --idle-time=0
    [09:10:19.950] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [09:10:19.959] Starting with no config file.
    [09:10:19.960] Output repaint window is 7 ms maximum.
    [09:10:19.964] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [09:10:19.979] initializing drm backend
    [09:10:19.986] using /dev/dri/card0
    [09:10:19.987] DRM: supports universal planes
    [09:10:19.987] DRM: does not support atomic modesetting
    [09:10:19.987] DRM: does not support picture aspect ratio
    [09:10:19.989] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: omapdrm
    [09:10:21.326] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [09:10:21.327] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [09:10:21.327] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [09:10:21.327] EGL_KHR_surfaceless_context available
    [09:10:21.402] EGL version: 1.4 (DRI2)
    [09:10:21.402] EGL vendor: Mesa Project
    [09:10:21.402] EGL client APIs: OpenGL OpenGL_ES 
    [09:10:21.402] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [09:10:21.402] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [09:10:21.402] GLSL version: OpenGL ES GLSL ES 3.00
    [09:10:21.403] GL vendor: VMware, Inc.
    [09:10:21.403] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [09:10:21.403] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [09:10:21.404] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [09:10:21.415] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [09:10:21.415] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [09:10:21.420] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [09:10:21.420] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [09:10:21.622] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [09:10:21.622] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [09:10:21.623] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [09:10:21.623] No backlight control for output 'HDMI-A-1'
    [09:10:21.623] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [09:10:21.623] associating input device event0 with output HDMI-A-1 (none by udev)
    [09:10:21.623] associating input device event1 with output HDMI-A-1 (none by udev)
    [09:10:21.624] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [09:10:21.624] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [09:10:21.630] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [09:10:21.647] launching '/usr/local/libexec/weston-keyboard'
    [09:10:21.650] launching '/usr/local/libexec/weston-desktop-shell'
    [09:10:25.038] unexpectedly large timestamp jump (from 110338 to 111639)
    [09:12:10.322] caught signal 15
    [09:12:10.373] output for input device event0 removed
    [09:12:10.373] output for input device event1 removed
    Date: 2018-08-10 UTC
    [09:12:14.907] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [09:12:14.907] Command line: weston --idle-time=0
    [09:12:14.907] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [09:12:14.907] Starting with no config file.
    [09:12:14.907] Output repaint window is 7 ms maximum.
    [09:12:14.908] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [09:12:14.910] initializing drm backend
    [09:12:14.917] using /dev/dri/card0
    [09:12:14.917] DRM: supports universal planes
    [09:12:14.917] DRM: does not support atomic modesetting
    [09:12:14.917] DRM: does not support picture aspect ratio
    [09:12:14.917] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: driver exports no extensions (/usr/lib/dri/omapdrm_dri.so: undefined symbol: __driDriverExtensions)failed to load driver: omapdrm
    [09:12:15.075] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [09:12:15.076] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [09:12:15.076] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [09:12:15.076] EGL_KHR_surfaceless_context available
    [09:12:15.094] EGL version: 1.4 (DRI2)
    [09:12:15.094] EGL vendor: Mesa Project
    [09:12:15.094] EGL client APIs: OpenGL OpenGL_ES 
    [09:12:15.094] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [09:12:15.095] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [09:12:15.095] GLSL version: OpenGL ES GLSL ES 3.00
    [09:12:15.095] GL vendor: VMware, Inc.
    [09:12:15.095] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [09:12:15.095] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [09:12:15.096] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [09:12:15.108] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [09:12:15.108] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [09:12:15.113] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [09:12:15.113] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [09:12:15.265] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [09:12:15.265] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [09:12:15.266] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [09:12:15.266] No backlight control for output 'HDMI-A-1'
    [09:12:15.266] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [09:12:15.266] associating input device event0 with output HDMI-A-1 (none by udev)
    [09:12:15.266] associating input device event1 with output HDMI-A-1 (none by udev)
    [09:12:15.267] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [09:12:15.267] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [09:12:15.267] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [09:12:15.269] launching '/usr/local/libexec/weston-keyboard'
    [09:12:15.273] launching '/usr/local/libexec/weston-desktop-shell'
    [09:12:18.022] unexpectedly large timestamp jump (from 223306 to 224624)
    [09:18:20.049] caught signal 15
    [09:18:20.101] output for input device event0 removed
    [09:18:20.101] output for input device event1 removed
    Date: 2018-08-10 UTC
    [09:18:22.875] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [09:18:22.875] Command line: weston --idle-time=0
    [09:18:22.875] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [09:18:22.876] Starting with no config file.
    [09:18:22.876] Output repaint window is 7 ms maximum.
    [09:18:22.876] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [09:18:22.879] initializing drm backend
    [09:18:22.885] using /dev/dri/card0
    [09:18:22.885] DRM: supports universal planes
    [09:18:22.885] DRM: does not support atomic modesetting
    [09:18:22.885] DRM: does not support picture aspect ratio
    [09:18:22.885] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    MESA-LOADER: failed to retrieve device information
    gbm: driver exports no extensions (/usr/lib/dri/omapdrm_dri.so: undefined symbol: __driDriverExtensions)failed to load driver: omapdrm
    [09:18:23.036] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_EXT_platform_wayland
                   EGL_EXT_platform_x11 EGL_MESA_platform_gbm
                   EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    [09:18:23.037] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [09:18:23.037] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [09:18:23.037] EGL_KHR_surfaceless_context available
    [09:18:23.054] EGL version: 1.4 (DRI2)
    [09:18:23.054] EGL vendor: Mesa Project
    [09:18:23.054] EGL client APIs: OpenGL OpenGL_ES 
    [09:18:23.054] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
                   EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
                   EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
                   EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [09:18:23.055] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [09:18:23.055] GLSL version: OpenGL ES GLSL ES 3.00
    [09:18:23.055] GL vendor: VMware, Inc.
    [09:18:23.055] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [09:18:23.055] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                   GL_OES_compressed_ETC1_RGB8_texture 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_float
                   GL_OES_texture_float_linear GL_OES_texture_half_float
                   GL_OES_texture_half_float_linear GL_OES_texture_npot
                   GL_EXT_texture_sRGB_decode GL_OES_EGL_image
                   GL_OES_depth_texture GL_OES_packed_depth_stencil
                   GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary
                   GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
                   GL_EXT_read_format_bgra GL_NV_fbo_color_attachments
                   GL_OES_EGL_image_external GL_OES_EGL_sync
                   GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                   GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                   GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                   GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                   GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                   GL_OES_depth_texture_cube_map GL_OES_surfaceless_context
                   GL_EXT_color_buffer_float GL_EXT_separate_shader_objects
                   GL_EXT_shader_integer_mix GL_EXT_base_instance
                   GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                   GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                   GL_OES_copy_image GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                   GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                   GL_EXT_clip_cull_distance GL_MESA_shader_integer_functions
    [09:18:23.056] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: no
    [09:18:23.067] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [09:18:23.067] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [09:18:23.072] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [09:18:23.072] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [09:18:23.224] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [09:18:23.225] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [09:18:23.225] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 0 - 0
    [09:18:23.225] No backlight control for output 'HDMI-A-1'
    [09:18:23.225] Output HDMI-A-1 (crtc 39) video modes:
                   1920x1200@60.0, preferred, current, 154.0 MHz
                   1920x1080@59.9, 138.5 MHz
                   1600x1200@60.0, 162.0 MHz
                   1680x1050@59.9, 119.0 MHz
                   1280x1024@75.0, 135.0 MHz
                   1280x1024@72.0, 132.8 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@75.0, 136.8 MHz
                   1440x900@59.9, 88.8 MHz
                   1024x768@75.0, 78.8 MHz
                   1024x768@70.1, 75.0 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@75.0, 49.5 MHz
                   800x600@72.2, 50.0 MHz
                   800x600@60.3, 40.0 MHz
                   640x480@75.0, 31.5 MHz
                   640x480@72.8, 31.5 MHz
                   640x480@66.0, 26.9 MHz
                   640x480@59.9, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [09:18:23.226] associating input device event0 with output HDMI-A-1 (none by udev)
    [09:18:23.226] associating input device event1 with output HDMI-A-1 (none by udev)
    [09:18:23.226] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [09:18:23.226] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [09:18:23.226] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [09:18:23.228] launching '/usr/local/libexec/weston-keyboard'
    [09:18:23.232] launching '/usr/local/libexec/weston-desktop-shell'
    [09:18:25.981] unexpectedly large timestamp jump (from 591282 to 592583)
    

    Look forward to your response. 

    Thanks in advance,

    Farrukh

  • Hi, Farrukh:

    For processor SDK 5.x, the Weston version is 2.0.0 and it is built through yocto on rocko branch.
    There are two major differences between the ABB build and TI build based on the weston.log.
    1. Different libgbm
    Please refer to the libgbm 10.0.0 provided by yocto, which has been modified to support PVR.
    backend.c:
    /* a more clever scheme would be to discover backends in a certain
    * directory..
    */
    static const char *backends[] = {
    "gbm_dri.so",
    "gbm_gallium_drm.so",
    "gbm_pvr.so",
    };

    static const void *
    load_backend(const char *name)
    {
    char path[PATH_MAX];
    void *module;
    const char *entrypoint = "gbm_backend";

    if (name[0] != '/')
    snprintf(path, sizeof path, MODULEDIR "/%s", name);
    else
    snprintf(path, sizeof path, "%s", name);

    module = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
    if (!module) {
    fprintf(stderr, "failed to load module: %s\n", dlerror());
    return NULL;
    }
    else {
    fprintf(stderr, "loaded module : %s\n", name);
    }

    return dlsym(module, entrypoint);
    }

    Here is the corresponding Weston log:
    [02:15:33.405] Loading module '/usr/lib/libweston-2/gl-renderer.so'
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so

    2. Mesa vs. openGLES direct calls
    The SGX DDK UM libraries support direct EGL and GLES calls without Mesa. All the graphics module should be built with the SGX DDK UM libraries provided by PLSDK (and without Mesa).

    PLSDK build:
    [02:15:33.510] EGL_KHR_surfaceless_context available
    [02:15:33.530] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [02:15:33.530] EGL vendor: Imagination Technologies
    [02:15:33.530] EGL client APIs: OpenGL_ES
    [02:15:33.530] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
    EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
    EGL_IMG_context_priority EGL_IMG_hibernate_process
    EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
    EGL_KHR_wait_sync EGL_KHR_create_context
    EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [02:15:33.530] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [02:15:33.530] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [02:15:33.530] GL vendor: Imagination Technologies
    [02:15:33.530] GL renderer: PowerVR SGX 544MP
    ...

    ABB build:
    [05:45:20.163] EGL_KHR_surfaceless_context available
    [05:45:20.180] EGL version: 1.4 (DRI2)
    [05:45:20.180] EGL vendor: Mesa Project
    [05:45:20.181] EGL client APIs: OpenGL OpenGL_ES
    [05:45:20.181] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
    EGL_KHR_cl_event2 EGL_KHR_create_context EGL_KHR_fence_sync
    EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image
    EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
    EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
    EGL_KHR_no_config_context EGL_KHR_reusable_sync
    EGL_KHR_surfaceless_context EGL_KHR_wait_sync
    EGL_MESA_configless_context EGL_MESA_image_dma_buf_export
    [05:45:20.181] GL version: OpenGL ES 3.0 Mesa 13.0.6
    [05:45:20.181] GLSL version: OpenGL ES GLSL ES 3.00
    [05:45:20.181] GL vendor: VMware, Inc.
    [05:45:20.181] GL renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
    [05:45:20.181] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
    GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888

    Best regards,

    Eric
  • Hi Eric,

    (I'm working with Farrukh on this, so I'm following up here)

    we managed to address point number 1 from your reply, and we can now load a valid GBM backend:

    Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    (full log attached)
    However, point 2 is still tricky, and we get a segmentation fault without weston starting at all. Which modules should we build (without mesa) to have weston running? 
    Thanks a lot. 
    Ettore

    Date: 2018-08-13 UTC
    [06:27:18.530] weston 4.0.92
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: unknown (not built from git or tarball)
    [06:27:18.531] Command line: weston --idle-time=0 --backend=drm-backend.so
    [06:27:18.531] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [06:27:18.531] Using config file './weston.ini'
    [06:27:18.531] Output repaint window is 7 ms maximum.
    [06:27:18.531] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [06:27:18.534] initializing drm backend
    [06:27:18.540] using /dev/dri/card0
    [06:27:18.540] DRM: supports universal planes
    [06:27:18.541] DRM: does not support atomic modesetting
    [06:27:18.541] DRM: does not support picture aspect ratio
    [06:27:18.541] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [06:27:18.559] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [06:27:18.571] Unable to use first choice EGL config with id 0x34325258, succeeded with alternate id 0x0.
    [06:27:18.571] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [06:27:18.572] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [06:27:18.572] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [06:27:18.572] Retrieving EGL client extension string failed.
    [06:27:18.572] EGL_KHR_surfaceless_context available
    [06:27:18.594] Failed to obtain a high priority context.
    [06:27:18.594] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [06:27:18.594] EGL vendor: Imagination Technologies
    [06:27:18.594] EGL client APIs: OpenGL_ES 
    [06:27:18.594] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
                   EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
                   EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
                   EGL_IMG_context_priority EGL_IMG_hibernate_process
                   EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
                   EGL_KHR_wait_sync EGL_KHR_create_context
                   EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [06:27:18.594] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [06:27:18.594] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [06:27:18.594] GL vendor: Imagination Technologies
    [06:27:18.594] GL renderer: PowerVR SGX 544MP
    [06:27:18.594] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
                   GL_OES_vertex_half_float GL_OES_texture_float
                   GL_OES_texture_half_float GL_OES_element_index_uint
                   GL_OES_mapbuffer GL_OES_fragment_precision_high
                   GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
                   GL_OES_EGL_image_external GL_OES_required_internalformat
                   GL_OES_depth_texture GL_OES_get_program_binary
                   GL_OES_packed_depth_stencil GL_OES_standard_derivatives
                   GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
                   GL_OES_surfaceless_context GL_EXT_discard_framebuffer
                   GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
                   GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
                   GL_EXT_texture_rg GL_EXT_draw_buffers
                   GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
                   GL_IMG_texture_compression_pvrtc
                   GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
                   GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
                   GL_IMG_program_binary GL_IMG_uniform_buffer_object
                   GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [06:27:18.595] GL ES 2 renderer features:
                   read-back format: RGBA
                   wl_shm sub-image to texture: no
                   EGL Wayland extension: yes
    [06:27:18.608] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [06:27:18.609] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [06:27:18.613] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [06:27:18.614] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [06:27:18.685] input device 'HID 04b3:3107', /dev/input/event2 is tagged by udev as: Mouse
    [06:27:18.685] input device 'HID 04b3:3107', /dev/input/event2 is a pointer caps
    [06:27:18.861] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [06:27:18.862] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [06:27:18.862] failed to choose EGL config for output
    [06:27:18.863] failed to create egl surface
    [06:27:18.863] failed to create gl renderer output state
    Segmentation fault
    

  • Hi, Ettore:

    It is excellent that the SGX DDK is recognized and linked now. We need to resolve the following three errors, in particular, the first one now.

    [06:27:18.862] failed to choose EGL config for output
    [06:27:18.863] failed to create egl surface
    [06:27:18.863] failed to create gl renderer output state

    You may need to make the similar changes according to the patch (renamed to .txt)  attached.

    Best regards,

    Eric

    From 5695eab02bb88318bf99d568b6d0e4592d5f9981 Mon Sep 17 00:00:00 2001
    From: Karthik Ramanan <a0393906@ti.com>
    Date: Mon, 12 Mar 2018 10:47:02 +0530
    Subject: [PATCH 2/4] weston: Allow visual_id to be 0
    
    The inquiry of visual id from egl API eglGetConfigAttrib(EGL_NATIVE_VISUAL_ID)
    is an optional feature. The visual id will be set to 0 if this feature is
    not supported. Therefore, the return condition @function match_config_to_visual()
    should be (id == visual_id || id == 0) instead of (id == visual_id)
    
    Upstream status: Pending
    
    Signed-off-by: Eric Ruei <e-ruei1@ti.com>
    Signed-off-by: Karthik Ramanan <a0393906@ti.com>
    ---
     libweston/gl-renderer.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
    index c6091af..9299dc6 100644
    --- a/libweston/gl-renderer.c
    +++ b/libweston/gl-renderer.c
    @@ -2575,7 +2575,7 @@ match_config_to_visual(EGLDisplay egl_display,
     				&id))
     			continue;
     
    -		if (id == visual_id)
    +		if (id == visual_id || id == 0)
     			return i;
     	}
     
    -- 
    1.9.1
    
    

  • Hi Eric,

    I patched weston (both 2.0.0 and 4.0.92) with your changes and recompiled.
    The signature in both versions is different from your patch, since I have "match_config_to_visual(EGLDisplay egl_display, EGLint visual_id, EGLConfig *configs, int count)" and you have "match_config_to_visual(EGLDisplay egl_display, &id))".

    However, I still get errors in both cases, as you can see by the logs here:

    [14:15:24.302] weston 2.0.0
    http://wayland.freedesktop.org
    Bug reports to: bugs.freedesktop.org/enter_bug.cgi
    Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800)
    [14:15:24.303] Command line: weston --idle-time=0
    [14:15:24.303] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [14:15:24.303] Using config file './weston.ini'
    [14:15:24.303] Output repaint window is 7 ms maximum.
    [14:15:24.303] Loading module '/usr/local/lib/libweston-2/drm-backend.so'
    [14:15:24.305] initializing drm backend
    [14:15:24.311] using /dev/dri/card1
    [14:15:24.312] Loading module '/usr/local/lib/libweston-2/gl-renderer.so'
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [14:15:24.347] failed to initialize egl
    [14:15:24.366] fatal: failed to create compositor backend
    PVR:(Error): [ 7992-> 7992] < gbm_pvr_create_device():592|ERROR> Failed to create DBM device: No such device [0, ]

    [14:19:10.298] weston 4.0.92
    wayland.freedesktop.org
    Bug reports to: gitlab.freedesktop.org/.../
    Build: unknown (not built from git or tarball)
    [14:19:10.299] Command line: weston --idle-time=0
    [14:19:10.299] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [14:19:10.299] Using config file './weston.ini'
    [14:19:10.300] Output repaint window is 7 ms maximum.
    [14:19:10.300] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [14:19:10.302] initializing drm backend
    [14:19:10.308] using /dev/dri/card0
    [14:19:10.308] DRM: supports universal planes
    [14:19:10.308] DRM: does not support atomic modesetting
    [14:19:10.308] DRM: does not support picture aspect ratio
    [14:19:10.308] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    [14:19:10.309] Failed to load module: /usr/local/lib/libweston-5/gl-renderer.so: undefined symbol: eglTerminate
    [14:19:10.309] failed to initialize egl
    [14:19:10.340] fatal: failed to create compositor backend

    would you have another suggestion?

    Thanks.

    Ettore
  • Hi again,

    update:

    by building weston with "export LIBS=-lpvr_wlegl", I get the following:

    [14:50:36.248] weston 4.0.92
    wayland.freedesktop.org
    Bug reports to: gitlab.freedesktop.org/.../
    Build: unknown (not built from git or tarball)
    [14:50:36.248] Command line: weston --idle-time=0
    [14:50:36.248] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [14:50:36.249] Using config file './weston.ini'
    [14:50:36.249] Output repaint window is 7 ms maximum.
    [14:50:36.249] Loading module '/usr/local/lib/libweston-5/drm-backend.so'
    [14:50:36.250] initializing drm backend
    [14:50:36.256] using /dev/dri/card0
    [14:50:36.257] DRM: supports universal planes
    [14:50:36.257] DRM: does not support atomic modesetting
    [14:50:36.257] DRM: does not support picture aspect ratio
    [14:50:36.257] Loading module '/usr/local/lib/libweston-5/gl-renderer.so'
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [14:50:36.337] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [14:50:36.350] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [14:50:36.350] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [14:50:36.350] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
    [14:50:36.350] Retrieving EGL client extension string failed.
    [14:50:36.350] EGL_KHR_surfaceless_context available
    [14:50:36.380] Failed to obtain a high priority context.
    [14:50:36.380] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [14:50:36.380] EGL vendor: Imagination Technologies
    [14:50:36.380] EGL client APIs: OpenGL_ES
    [14:50:36.380] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
    EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
    EGL_IMG_context_priority EGL_IMG_hibernate_process
    EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
    EGL_KHR_wait_sync EGL_KHR_create_context
    EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [14:50:36.381] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [14:50:36.381] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [14:50:36.381] GL vendor: Imagination Technologies
    [14:50:36.381] GL renderer: PowerVR SGX 544MP
    [14:50:36.381] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
    GL_OES_vertex_half_float GL_OES_texture_float
    GL_OES_texture_half_float GL_OES_element_index_uint
    GL_OES_mapbuffer GL_OES_fragment_precision_high
    GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
    GL_OES_EGL_image_external GL_OES_required_internalformat
    GL_OES_depth_texture GL_OES_get_program_binary
    GL_OES_packed_depth_stencil GL_OES_standard_derivatives
    GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
    GL_OES_surfaceless_context GL_EXT_discard_framebuffer
    GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
    GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
    GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
    GL_EXT_texture_rg GL_EXT_draw_buffers
    GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
    GL_IMG_texture_compression_pvrtc
    GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
    GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
    GL_IMG_program_binary GL_IMG_uniform_buffer_object
    GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [14:50:36.382] GL ES 2 renderer features:
    read-back format: RGBA
    wl_shm sub-image to texture: no
    EGL Wayland extension: yes
    [14:50:36.392] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [14:50:36.393] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [14:50:36.397] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [14:50:36.398] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [14:50:36.585] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LEN', model 'LEN LT2452pw', serial '1447577140'
    [14:50:36.585] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [14:50:36.586] Chosen EGL config details:
    RGBA bits: 8 8 8 8
    swap interval range: 1 - 1
    [14:50:36.619] No backlight control for output 'HDMI-A-1'
    [14:50:36.619] Output HDMI-A-1 (crtc 39) video modes:
    1920x1200@60.0, preferred, 154.0 MHz
    1920x1080@59.9, 138.5 MHz
    1600x1200@60.0, 162.0 MHz
    1680x1050@59.9, 119.0 MHz
    1280x1024@75.0, 135.0 MHz
    1280x1024@72.0, 132.8 MHz
    1280x1024@60.0, 108.0 MHz
    1440x900@75.0, 136.8 MHz
    1440x900@59.9, 88.8 MHz
    1024x768@75.0, current, 78.8 MHz
    1024x768@70.1, 75.0 MHz
    1024x768@60.0, 65.0 MHz
    800x600@75.0, 49.5 MHz
    800x600@72.2, 50.0 MHz
    800x600@60.3, 40.0 MHz
    640x480@75.0, 31.5 MHz
    640x480@72.8, 31.5 MHz
    640x480@66.0, 26.9 MHz
    640x480@59.9, 25.2 MHz
    720x400@70.1, 28.3 MHz
    [14:50:36.619] associating input device event0 with output HDMI-A-1 (none by udev)
    [14:50:36.619] associating input device event1 with output HDMI-A-1 (none by udev)
    [14:50:36.619] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [14:50:36.619] Compositor capabilities:
    arbitrary surface rotation: yes
    screen capture uses y-flip: yes
    presentation clock: CLOCK_MONOTONIC, id 1
    presentation clock resolution: 0.000000001 s
    [14:50:36.620] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [14:50:36.622] launching '/usr/local/libexec/weston-keyboard'
    [14:50:36.624] launching '/usr/local/libexec/weston-desktop-shell'
    Failed to process Wayland connection: Connection reset by peer
    failed to create display: Connection reset by peer
    Failed to process Wayland connection: Connection reset by peer
    failed to create display: Connection reset by peer
    Segmentation fault

    any help would be appreciated.

    Thanks,
    Ettore
  • Hi, Ettore:

    Is the new test result with the recommended patch? It looks like the following issues are resolved by the patch.

    [06:27:18.862] failed to choose EGL config for output
    [06:27:18.863] failed to create egl surface
    [06:27:18.863] failed to create gl renderer output state

    The new error "Connection reset by peer" might still be some kind of build issue. You need to check with the WAYLAND community to see what it actually means and what may cause that kind of problem. I shall look into it when I get a chance as well.

    Best regards,

    Eric
  • Hi Eric,

    I confirm that the previous problem with EGL was solved by applying the patch. 

    However, I still get the following (end of weston.log only):

    [10:39:34.483] Compositor capabilities:
    arbitrary surface rotation: yes
    screen capture uses y-flip: yes
    presentation clock: CLOCK_MONOTONIC, id 1
    presentation clock resolution: 0.000000001 s
    [10:39:34.483] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [10:39:34.485] launching '/usr/local/libexec/weston-keyboard'
    [10:39:34.487] launching '/usr/local/libexec/weston-desktop-shell'
    [10:39:34.512] caught signal: 11
    Failed to process Wayland connection: Connection reset by peer
    Failed to process Wayland connection: Connection reset by peer
    failed to create display: Connection reset by peer
    failed to create display: Connection reset by peer
    Trace/breakpoint trap

    I couldn't find a solution in the Wayland forums. 

    Would you have any suggestion? 

    Thanks,

    Ettore

  • Hi, Ettore:

    It is a wired one that I have not encountered before. I have forward the log to another engineer who may be able to give us some hints.
    To see whether it is a problem introduced by the new version of Weston, can you try Weston 2.0 with the patch attached?

    Best regards,

    Eric

    From e57e9245dcb5d1349467c7fc36d153f3336f6a1a Mon Sep 17 00:00:00 2001
    From: Karthik Ramanan <a0393906@ti.com>
    Date: Mon, 12 Mar 2018 10:46:29 +0530
    Subject: [PATCH 1/4] udev-seat: restrict udev enumeration to card0
    
    In case of separate GPU and Display devices as found in embedded systems, we
    could have modeset node and render node controlled by different drivers.
    There is a distinct possibility that udev enumeration returns the DRM device
    corresponding to render node as the primary DRM device.
    
    Obviously, modeset operations cannot be done on the GPU DRM device.
    
    Restrict the udev enumeration to card0 and ensure that DRM device corresponding
    to display is returned as the primary DRM device.
    
    Upstream-Status: Pending
    
    Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
    Signed-off-by: Karthik Ramanan <a0393906@ti.com>
    ---
     libweston/compositor-drm.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
    index 1d38f05..649b4f5 100644
    --- a/libweston/compositor-drm.c
    +++ b/libweston/compositor-drm.c
    @@ -2957,7 +2957,7 @@ find_primary_gpu(struct drm_backend *b, const char *seat)
     
     	e = udev_enumerate_new(b->udev);
     	udev_enumerate_add_match_subsystem(e, "drm");
    -	udev_enumerate_add_match_sysname(e, "card[0-9]*");
    +	udev_enumerate_add_match_sysname(e, "card0");
     
     	udev_enumerate_scan_devices(e);
     	drm_device = NULL;
    -- 
    1.9.1
    
    

  • Hi Eric,

    I tried with weston 2.0.0 plus patch, but unfortunately the output is the same (log attached).

    Thanks,

    Ettore

    [17:16:50.855] weston 2.0.0
                   http://wayland.freedesktop.org
                   Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=2.0.0
                   Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800)
    [17:16:50.857] Command line: weston --idle-time=0 --backend=drm-backend.so
    [17:16:50.857] OS: Linux, 4.14.40-rt-abb-ti-sitara, #1 SMP PREEMPT RT Thu Jul 12 08:27:09 UTC 2018, armv7l
    [17:16:50.858] Using config file '/etc//weston.ini'
    [17:16:50.859] Output repaint window is 7 ms maximum.
    [17:16:50.862] Loading module '/usr/local/lib/libweston-2/drm-backend.so'
    [17:16:50.871] initializing drm backend
    [17:16:50.909] using /dev/dri/card0
    [17:16:50.915] Loading module '/usr/local/lib/libweston-2/gl-renderer.so'
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [17:16:51.020] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [17:16:51.063] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [17:16:51.063] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [17:16:51.063] Retrieving EGL client extension string failed.
    [17:16:51.064] EGL_KHR_surfaceless_context available
    [17:16:51.087] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [17:16:51.087] EGL vendor: Imagination Technologies
    [17:16:51.087] EGL client APIs: OpenGL_ES
    [17:16:51.087] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
                   EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
                   EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
                   EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
                   EGL_IMG_context_priority EGL_IMG_hibernate_process
                   EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
                   EGL_KHR_wait_sync EGL_KHR_create_context
                   EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [17:16:51.087] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [17:16:51.087] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [17:16:51.087] GL vendor: Imagination Technologies
    [17:16:51.087] GL renderer: PowerVR SGX 544MP
    [17:16:51.087] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
                   GL_OES_vertex_half_float GL_OES_texture_float
                   GL_OES_texture_half_float GL_OES_element_index_uint
                   GL_OES_mapbuffer GL_OES_fragment_precision_high
                   GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
                   GL_OES_EGL_image_external GL_OES_required_internalformat
                   GL_OES_depth_texture GL_OES_get_program_binary
                   GL_OES_packed_depth_stencil GL_OES_standard_derivatives
                   GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
                   GL_OES_surfaceless_context GL_EXT_discard_framebuffer
                   GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                   GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
                   GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
                   GL_EXT_texture_rg GL_EXT_draw_buffers
                   GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
                   GL_IMG_texture_compression_pvrtc
                   GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
                   GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
                   GL_IMG_program_binary GL_IMG_uniform_buffer_object
                   GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [17:16:51.088] GL ES 2 renderer features:
                   read-back format: RGBA
                   wl_shm sub-image to texture: no
                   EGL Wayland extension: yes
    [17:16:51.128] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [17:16:51.128] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [17:16:51.134] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [17:16:51.134] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [17:16:51.145] input device 'HID 04b3:3107', /dev/input/event2 is tagged by udev as: Mouse
    [17:16:51.145] input device 'HID 04b3:3107', /dev/input/event2 is a pointer caps
    [17:16:51.345] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [17:16:51.345] Chosen EGL config details:
                   RGBA bits: 8 8 8 8
                   swap interval range: 1 - 1
    [17:16:51.436] cursor buffers unavailable, using gl cursors
    [17:16:51.436] Failed to initialize backlight
    [17:16:51.436] EDID data 'LEN', 'LEN LT2452pw', '1447577140'
    [17:16:51.436] Output HDMI-A-1, (connector 35, crtc 39)
                   mode 1920x1200@60.0, preferred, current
                   mode 1920x1080@59.9
                   mode 1600x1200@60.0
                   mode 1680x1050@59.9
                   mode 1280x1024@75.0
                   mode 1280x1024@72.0
                   mode 1280x1024@60.0
                   mode 1440x900@75.0
                   mode 1440x900@59.9
                   mode 1024x768@75.0
                   mode 1024x768@70.1
                   mode 1024x768@60.0
                   mode 800x600@75.0
                   mode 800x600@72.2
                   mode 800x600@60.3
                   mode 640x480@75.0
                   mode 640x480@72.8
                   mode 640x480@66.0
                   mode 640x480@59.9
                   mode 720x400@70.1
    [17:16:51.436] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [17:16:51.443] Loading module '/usr/local/lib/weston/desktop-shell.so'
    [17:16:51.459] launching '/usr/local/libexec/weston-keyboard'
    [17:16:51.461] launching '/usr/local/libexec/weston-desktop-shell'
    [17:16:51.468] input device 'Logitech USB Keyboard', /dev/input/event1 is tagged by udev as: Keyboard
    [17:16:51.468] input device 'Logitech USB Keyboard', /dev/input/event1 is a keyboard
    [17:16:51.472] input device 'Logitech USB Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
    [17:16:51.472] input device 'Logitech USB Keyboard', /dev/input/event0 is a keyboard
    [17:16:51.476] input device 'HID 04b3:3107', /dev/input/event2 is tagged by udev as: Mouse
    [17:16:51.476] input device 'HID 04b3:3107', /dev/input/event2 is a pointer caps
    [17:16:51.586] caught signal: 11
    Failed to process Wayland connection: Connection reset by peer
    failed to create display: Connection reset by peer
    Failed to process Wayland connection: Connection reset by peer
    failed to create display: Connection reset by peer
    Trace/breakpoint trap

  • Ettore:

    The root cause of the problem might be the Segmentation fault and the rest of errors are just side effects.
    Can you use gdb to debug the segmentation fault?

    Here is a link to a Web post regarding the similar issue: lists.freedesktop.org/.../013044.html.

    Best regards,

    Eric
  • Hi Eric,

    if I run weston with gdb, I only get to the segfault without core dump... 

    By looking at the weston code, it looks like the errors are in windows.c, in particular in 

    struct display *
    display_create(int *argc, char *argv[])
    did you have more patches applied there? 
    Thanks,
    Ettore
  • Hi, Ettore:

    Please refer tosoftware-dl.ti.com/.../Overview.html for PLSDK build procedure. After you clone and configure the oe-layersetup.git, all the Weston patches can be found under sources/meta-arago/meta-arago-distro/recipes-graphics/wayland\Weston, which is also attached here for your reference.  There is no patch regarding windows.c.

    To debug the problem with gdb, you need to install the corresponding ipk such as weston_2.0.0-r0.arago29_armv7ahf-neon.ipk and libweston-2_2.0.0-r0.arago29_armv7ahf-neon.ipk. on the target machine or you can add weston_log() at the Weston source code.  

    Best regards,

    Eric

    weston.tar.txt