sunxi lima driver weston doesn't work
I'm trying to enable weston on sunxi H5 board. I've build image using yocto with 5.15 kernel and instead of proprietary mali driver I'm using opensource lima driver with mesa. When trying to start weston in following way:
root@orange-pi-pc2:~# weston --modules=systemd-notify.so --debug --tty=7
I'm getting following.
Date: 2022-04-28 UTC
[17:54:16.468] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.1
[17:54:16.468] Command line: weston --modules=systemd-notify.so --debug --tty=7
[17:54:16.468] OS: Linux, 5.15.35, #1 SMP PREEMPT Wed Apr 20 07:34:22 UTC 2022, aarch64
[17:54:16.468] Flight recorder: enabled
[17:54:16.468] Using config file '/etc/xdg/weston/weston.ini'
WARNING: debug protocol has been enabled. This is a potential denial-of-service attack vector and information leak.
[17:54:16.469] Output repaint window is 7 ms maximum.
[17:54:16.469] Loading module '/usr/lib/libweston-10/drm-backend.so'
[17:54:16.489] initializing drm backend
[17:54:16.489] Trying logind launcher...
[17:54:16.490] logind: failed to get session seat
[17:54:16.490] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback
[17:54:16.490] Trying weston_launch launcher...
[17:54:16.490] could not get launcher fd from env
[17:54:16.490] Trying direct launcher...
[17:54:16.496] using /dev/dri/card1
[17:54:16.496] DRM: supports atomic modesetting
[17:54:16.496] DRM: supports GBM modifiers
[17:54:16.497] DRM: supports picture aspect ratio
[17:54:16.497] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[17:54:16.548] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_device_base EGL_EXT_device_enumeration
EGL_EXT_device_query EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
EGL_EXT_platform_device EGL_EXT_platform_wayland
EGL_KHR_platform_wayland EGL_EXT_platform_x11
EGL_KHR_platform_x11 EGL_MESA_platform_xcb
EGL_MESA_platform_gbm EGL_KHR_platform_gbm
EGL_MESA_platform_surfaceless
[17:54:16.551] EGL device extensions: EGL_EXT_device_drm
[17:54:16.551] EGL version: 1.4
[17:54:16.551] EGL vendor: Mesa Project
[17:54:16.551] EGL client APIs: OpenGL OpenGL_ES
[17:54:16.551] EGL extensions: EGL_ANDROID_blob_cache
EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2
EGL_KHR_config_attribs EGL_KHR_create_context
EGL_KHR_create_context_no_error EGL_KHR_fence_sync
EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_3D_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_partial_update
EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
EGL_EXT_pixel_format_float EGL_KHR_wait_sync
EGL_MESA_configless_context EGL_MESA_drm_image
EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
EGL_WL_bind_wayland_display
[17:54:16.552] EGL_KHR_surfaceless_context available
[17:54:16.562] GL version: OpenGL ES 2.0 Mesa 22.0.3
[17:54:16.563] GLSL version: OpenGL ES GLSL ES 1.0.16
[17:54:16.563] GL vendor: lima
[17:54:16.563] GL renderer: Mali450
[17:54:16.563] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
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_half_float
GL_OES_texture_half_float_linear GL_OES_texture_npot
GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture
GL_OES_packed_depth_stencil GL_OES_get_program_binary
GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
GL_EXT_read_format_bgra GL_EXT_frag_depth
GL_NV_fbo_color_attachments GL_OES_EGL_image_external
GL_OES_EGL_sync GL_OES_vertex_array_object
GL_ANGLE_pack_reverse_row_order 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_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object
GL_OES_required_internalformat GL_OES_surfaceless_context
GL_EXT_separate_shader_objects
GL_EXT_compressed_ETC1_RGB8_sub_texture
GL_EXT_draw_elements_base_vertex GL_EXT_texture_border_clamp
GL_KHR_context_flush_control GL_OES_draw_elements_base_vertex
GL_OES_texture_border_clamp GL_EXT_blend_func_extended
GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d
GL_EXT_clip_control GL_KHR_parallel_shader_compile GL_MESA_bgra
[17:54:16.615] GL ES 2.0 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[17:54:16.630] event0 - r-gpio-keys: not tagged as supported input device
[17:54:16.658] event0 - not using input device '/dev/input/event0'
[17:54:16.658] warning: no input devices found, but none required as per configuration.
[17:54:16.864] DRM: head 'HDMI-A-1' updated, connector 51 is connected, EDID make 'HWP', model 'HP 27es', serial '3CM8130KPY '
[17:54:16.864] DRM: head 'HDMI-A-1' found, connector 51 is connected, EDID make 'HWP', model 'HP 27es', serial '3CM8130KPY '
[17:54:16.865] Registered plugin API 'weston_drm_output_api_v1' of size 24
[17:54:16.865] Color manager: no-op
[17:54:16.865] Output 'HDMI-A-1' using color profile: built-in default sRGB SDR profile
[17:54:16.865] format 0x34325258 not supported by output HDMI-A-1
[17:54:16.865] failed to create gbm surface
[17:54:16.865] Failed to init output gl state
[17:54:16.865] Enabling output "HDMI-A-1" failed.
[17:54:16.865] Error: cannot enable output 'HDMI-A-1' without heads.
Am I missing something or this is not supported ATM? Thanks.
Edited by Marek Belisko