Wind River Support Network

HomeDefectsLIN1019-2944
Not to be fixed

LIN1019-2944 : "es1_info" and "es2_info" commands segmentation fault on xilinx-zynqmp BSP target

Created: Oct 14, 2019    Updated: Apr 29, 2021
Resolved Date: Apr 29, 2021
Found In Version: 10.19.45.1
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

1. Build project
$setup.sh --machines=xilinx-zynqmp --templates feature/test --accept-eula=yes --dl-layers

$ cp ~/git2_gitenterprise.xilinx.com.Graphics.mali400-xlnx-userspace.git.tar.gz ./layers/xilinx-zynqmp-dl/downloads/

$ cd ./layers/oe-core/meta
$ git am ~/0001-xilinx-zynqmp-use-mesa-demo-8.3.0-to-test-mali400.patch

$ . ./oe-init-build-env build_test

$ vi conf/local.conf # TO ADD THE LINES BELOW

DISTRO ?= "wrlinux-graphics"
PREFERRED_PROVIDER_virtual/mesa_xilinx-zynqmp = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgl_xilinx-zynqmp = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgles1_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_PROVIDER_virtual/libgles2_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_PROVIDER_virtual/egl_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_VERSIONS_mesa-demos = "8.3.0"
PNWHITELIST_wr-xilinx-zynqmp += "libmali-xlnx"
PNWHITELIST_wr-xilinx-zynqmp += "mesa-demos"
LICENSE_FLAGS_WHITELIST += "xilinx"

$ bitbake-layers add-layer wrlinux/wr-testing/bts-dev $ echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf

$ bitbake wrlinux-image-glibc-std-sato
2. Load images to the target (#28570)
3. Run "es1_info" and "es2_info" commands on the target


root@xilinx-zynqmp:~# es1_info
EGL_VERSION: 1.4 Linux-r8p0-01rel0
EGL_VENDOR: ARM
EGL_EXTENSIONS:
EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_image_pixmap,
EGL_EXT_image_dma_buf_import, EGL_KHR_gl_texture_2D_image,
EGL_KHR_gl_texture_cubemap_image, EGL_KHR_gl_renderbuffer_image,
EGL_KHR_reusable_sync, EGL_KHR_fence_sync,
EGL_KHR_swap_buffers_with_damage, EGL_EXT_swap_buffers_with_damage,
EGL_KHR_lock_surface, EGL_KHR_lock_surface2,
EGL_EXT_create_context_robustness, EGL_ANDROID_blob_cache,
EGL_KHR_create_context, EGL_KHR_partial_update,
EGL_KHR_create_context_no_error
EGL_CLIENT_APIS: OpenGL_ES
GL_VERSION: OpenGL ES-CM 1.1
GL_RENDERER: Mali-400 MP
GL_EXTENSIONS:
GL_OES_byte_coordinates, GL_OES_fixed_point, GL_OES_single_precision,
GL_OES_matrix_get, GL_OES_read_format, GL_OES_compressed_paletted_texture,
GL_OES_point_size_array, GL_OES_point_sprite, GL_OES_texture_npot,
GL_OES_vertex_array_object, GL_OES_query_matrix, GL_OES_matrix_palette,
GL_OES_extended_matrix_palette, GL_OES_compressed_ETC1_RGB8_texture,
GL_EXT_compressed_ETC1_RGB8_sub_texture, GL_OES_EGL_image,
GL_OES_draw_texture, GL_OES_depth_texture, GL_OES_packed_depth_stencil,
GL_EXT_texture_format_BGRA8888, GL_OES_framebuffer_object,
GL_OES_stencil8, GL_OES_depth24, GL_ARM_rgba8, GL_OES_EGL_image_external,
GL_OES_EGL_sync, GL_OES_rgb8_rgba8, GL_EXT_multisampled_render_to_texture,
GL_OES_texture_cube_map, GL_EXT_discard_framebuffer, GL_EXT_robustness,
GL_OES_depth_texture_cube_map, GL_OES_vertex_half_float, GL_KHR_debug,
GL_OES_mapbuffer, GL_KHR_no_error
Segmentation fault
root@xilinx-zynqmp:~# es2_info
EGL_VERSION: 1.4 Linux-r8p0-01rel0
EGL_VENDOR: ARM
EGL_EXTENSIONS:
EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_image_pixmap,
EGL_EXT_image_dma_buf_import, EGL_KHR_gl_texture_2D_image,
EGL_KHR_gl_texture_cubemap_image, EGL_KHR_gl_renderbuffer_image,
EGL_KHR_reusable_sync, EGL_KHR_fence_sync,
EGL_KHR_swap_buffers_with_damage, EGL_EXT_swap_buffers_with_damage,
EGL_KHR_lock_surface, EGL_KHR_lock_surface2,
EGL_EXT_create_context_robustness, EGL_ANDROID_blob_cache,
EGL_KHR_create_context, EGL_KHR_partial_update,
EGL_KHR_create_context_no_error
EGL_CLIENT_APIS: OpenGL_ES
GL_VERSION: OpenGL ES 2.0 "6378cce"
GL_RENDERER: Mali-400 MP
GL_EXTENSIONS:
GL_OES_texture_npot, GL_OES_vertex_array_object,
GL_OES_compressed_ETC1_RGB8_texture,
GL_EXT_compressed_ETC1_RGB8_sub_texture, GL_OES_standard_derivatives,
GL_OES_EGL_image, GL_OES_depth24, GL_ARM_rgba8,
GL_ARM_mali_shader_binary, GL_OES_depth_texture,
GL_OES_packed_depth_stencil, GL_EXT_texture_format_BGRA8888,
GL_OES_vertex_half_float, GL_EXT_blend_minmax, GL_OES_EGL_image_external,
GL_OES_EGL_sync, GL_OES_rgb8_rgba8, GL_EXT_multisampled_render_to_texture,
GL_EXT_discard_framebuffer, GL_OES_get_program_binary,
GL_ARM_mali_program_binary, GL_EXT_shader_texture_lod, GL_EXT_robustness,
GL_OES_depth_texture_cube_map, GL_KHR_debug,
GL_ARM_shader_framebuffer_fetch,
GL_ARM_shader_framebuffer_fetch_depth_stencil, GL_OES_mapbuffer,
GL_KHR_no_error
Segmentation fault

Steps to Reproduce

1. Build project
$/lpg-build/cdc/fast_prod/WRL10_19/WRL10_19_GIT/wrlinux-10/setup.sh --machines=xilinx-zynqmp --templates feature/test --accept-eula=yes --dl-layers

$ cp ~/git2_gitenterprise.xilinx.com.Graphics.mali400-xlnx-userspace.git.tar.gz ./layers/xilinx-zynqmp-dl/downloads/

$ cd ./layers/oe-core/meta
$ git am ~/0001-xilinx-zynqmp-use-mesa-demo-8.3.0-to-test-mali400.patch

$ . ./oe-init-build-env build_test

$ vi conf/local.conf # TO ADD THE LINES BELOW

DISTRO ?= "wrlinux-graphics"
PREFERRED_PROVIDER_virtual/mesa_xilinx-zynqmp = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgl_xilinx-zynqmp = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgles1_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_PROVIDER_virtual/libgles2_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_PROVIDER_virtual/egl_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_VERSIONS_mesa-demos = "8.3.0"
PNWHITELIST_wr-xilinx-zynqmp += "libmali-xlnx"
PNWHITELIST_wr-xilinx-zynqmp += "mesa-demos"
LICENSE_FLAGS_WHITELIST += "xilinx"

$ bitbake-layers add-layer wrlinux/wr-testing/bts-dev $ echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf

$ bitbake wrlinux-image-glibc-std-sato
2. Load images to the target (#28570)
3. Run "es1_info" and "es2_info" commands on the target
Live chat
Online