lrusak : For NV12, are you referring to
Pipeline · Christian Gmeiner / mesa · GitLab
?
For the YUYV patch, can you share it or do you want to merge it to libreelec and I can do a test run with master?
lrusak : For NV12, are you referring to
Pipeline · Christian Gmeiner / mesa · GitLab
?
For the YUYV patch, can you share it or do you want to merge it to libreelec and I can do a test run with master?
Many thanks, lrusak
kmscube works without any issue, colors look ok, nothing similar to the colors when playing videos.
LibreELEC:~ # kmscube -A -D /dev/dri/card1
Using display 0x278d98 with EGL version 1.4
===================================
EGL information:
version: "1.4"
vendor: "Mesa Project"
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_MESA_platform_gbm EGL_KHR_platform_gbm"
display 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_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_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 "
===================================
OpenGL ES 2.x information:
version: "OpenGL ES 2.0 Mesa 20.1.3"
shading language version: "OpenGL ES GLSL ES 1.0.16"
vendor: "etnaviv"
renderer: "Vivante GC2000 rev 5108"
extensions: "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc 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_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor 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_EXT_frag_depth 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_occlusion_query_boolean 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_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_KHR_parallel_shader_compile "
===================================
^C
LibreELEC:~ #
Display More
I just double checked (since I upgraded to a newer libreelec build) that the orignal color issue is still there (best illustrated with the video linked in the post from classicCuboxiuser above). I do not believe that it is a performance issue, since there seems to be no dependence on the resolution of the video.
Do you have any other ideas on either how to repro and analyse the issue with standard tools or debug it?
Thanks
Rainer
lrusak Sorry my question was not how to get it to the storage or image, I do not know how to start it. Can I start it from the kodi UI? can I start it in an ssh session? do I need to write a systemd file and start it before kodi starts? Or something else?
Many thanks. Indeed
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv$ git diff
diff --git a/packages/graphics/kmscube/package.mk b/packages/graphics/kmscube/package.mk
index f12bed34cd..12060c68c2 100644
--- a/packages/graphics/kmscube/package.mk
+++ b/packages/graphics/kmscube/package.mk
@@ -17,3 +17,10 @@ elif [ "$OPENGL_SUPPORT" = "yes" ]; then
echo "kmscube only supports OpenGLESv2"
exit 0
fi
+
+pre_configure_target() {
+ cd $PKG_BUILD
+ rm -rf .$TARGET_NAME
+ # check if this flag is still needed when this package is updated
+ export CFLAGS="$CFLAGS -fcommon"
+}
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv$
Display More
fixes it (until it is resolved by upstream). Since I am not familiar with libreelec's build system, can anybody confirm that this is the right way to do this or tell what should be done differently?
thanks
rainer
Yes, I have no spdif, I can just confirm that the HDMI audio works well.
Thanks for recording the video, it shows the same effects as I see.
I tried to build kmscube but the build fails with a duplicate definition of the symbol gl. I probably miss something, but I have no idea what.
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv$ cat ~/.libreelec/options
ADDITIONAL_PACKAGES="$ADDITIONAL_PACKAGES kmscube"
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv$ PROJECT=NXP DEVICE=iMX6 ARCH=arm UBOOT_SYSTEM=cubox-q make image
[...]
<<< kmscube:target seq 193 <<<
UNPACK kmscube
BUILD kmscube (target)
TOOLCHAIN autotools
AUTORECONF kmscube
autoreconf: Entering directory `/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/aclocal -I /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/armv7a-libreelec-linux-gnueabihf/sysroot/usr/share/aclocal -I /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/armv7a-libreelec-linux-gnueabihf/sysroot/usr/share/aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory build-aux
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/autoconf --include=/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/armv7a-libreelec-linux-gnueabihf/sysroot/usr/share/aclocal --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/automake --add-missing --copy --force-missing
configure.ac:32: installing 'build-aux/compile'
configure.ac:30: installing 'build-aux/install-sh'
configure.ac:30: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory `/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf'
Executing (target): /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf/configure --host=armv7a-libreelec-linux-gnueabihf --build=x86_64-linux-gnu --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --disable-static --enable-shared
configure: WARNING: unrecognized options: --disable-static, --enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for armv7a-libreelec-linux-gnueabihf-strip... /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/armv7a-libreelec-linux-gnueabihf-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for armv7a-libreelec-linux-gnueabihf-gcc... /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/armv7a-libreelec-linux-gnueabihf-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/armv7a-libreelec-linux-gnueabihf-gcc accepts -g... yes
checking for /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/armv7a-libreelec-linux-gnueabihf-gcc option to accept ISO C89... none needed
checking whether /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/armv7a-libreelec-linux-gnueabihf-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/bin/armv7a-libreelec-linux-gnueabihf-gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking pkg-config is at least version 0.9.0... yes
checking for libdrm >= 2.4.71... yes
checking for gbm >= 13.0... yes
checking for egl... yes
checking for glesv2... yes
checking for gstreamer-1.0 >= 1.6.0 gstreamer-plugins-base-1.0 >= 1.6.0 gstreamer-app-1.0 >= 1.6.0 gstreamer-allocators-1.0 >= 1.6.0 gstreamer-video-1.0 >= 1.6.0 glib-2.0... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-static, --enable-shared
Executing (target): make
make[1]: Entering directory '/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf/.armv7a-libreelec-linux-gnueabihf'
CC kmscube-common.o
CC kmscube-drm-legacy.o
CC kmscube-esTransform.o
CC kmscube-frame-512x512-NV12.o
CC kmscube-frame-512x512-RGBA.o
CC kmscube-kmscube.o
CC kmscube-drm-common.o
CC kmscube-drm-atomic.o
CC kmscube-cube-tex.o
CC kmscube-cube-smooth.o
CCLD kmscube
/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/lib/gcc/armv7a-libreelec-linux-gnueabihf/10.2.0/../../../../armv7a-libreelec-linux-gnueabihf/bin/ld.gold: error: kmscube-cube-tex.o: multiple definition of 'gl'
/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/toolchain/lib/gcc/armv7a-libreelec-linux-gnueabihf/10.2.0/../../../../armv7a-libreelec-linux-gnueabihf/bin/ld.gold: kmscube-cube-smooth.o: previous definition here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:423: kmscube] Error 1
make[1]: Leaving directory '/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf/.armv7a-libreelec-linux-gnueabihf'
FAILURE: scripts/build kmscube:target during make_target (default)
*********** FAILED COMMAND ***********
make ${PKG_MAKE_OPTS_TARGET}
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
**************************************
FAILURE: scripts/install kmscube:target has failed!
The following log for this failure is available:
/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/.threads/logs/193.log
>>> kmscube:target seq 193 >>>
[188/269] [FAIL] install kmscube:target
The following log for this failure is available:
/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/.threads/logs/193.log
Parallel build failure - see log for details. Time of failure: Fri Aug 21 17:25:03 CEST 2020
Display More
Output of objdump for the two object files:
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf/.armv7a-libreelec-linux-gnueabihf$ objdump -t kmscube-cube-tex.o
kmscube-cube-tex.o: file format elf32-little
SYMBOL TABLE:
00000000 l df *ABS* 00000000 cube-tex.c
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l .text 00000000 $a
00000000 l F .text 0000022c draw_cube_tex
00000000 l .bss 00000000 .LANCHOR0
00000218 l .text 00000000 $d
0000022c l .text 00000000 $a
0000022c l F .text 00000104 get_fd_y
00000330 l F .text 00000100 get_fd_uv
0000042c l .text 00000000 $d
00000000 l d .rodata.str1.4 00000000 .rodata.str1.4
00000000 l .rodata.str1.4 00000000 $d
00000000 l .rodata.str1.4 00000000 .LC0
00000424 l .rodata.str1.4 00000000 .LC1
000005fc l .rodata.str1.4 00000000 .LC2
00000610 l .rodata.str1.4 00000000 .LC3
00000618 l .rodata.str1.4 00000000 .LC4
00000638 l .rodata.str1.4 00000000 .LC5
0000064c l .rodata.str1.4 00000000 .LC6
00000a38 l .rodata.str1.4 00000000 .LC7
00000a44 l .rodata.str1.4 00000000 .LC8
00000a50 l .rodata.str1.4 00000000 .LC9
00000a5c l .rodata.str1.4 00000000 .LC10
00000a6c l .rodata.str1.4 00000000 .LC11
00000a88 l .rodata.str1.4 00000000 .LC12
00000a98 l .rodata.str1.4 00000000 .LC13
00000aa0 l .rodata.str1.4 00000000 .LC14
00000aa8 l .rodata.str1.4 00000000 .LC15
00000ab0 l .rodata.str1.4 00000000 .LC16
00000b1c l .rodata.str1.4 00000000 .LC17
00000b20 l .rodata.str1.4 00000000 .LC18
00000b28 l .rodata.str1.4 00000000 .LC19
00000b30 l .rodata.str1.4 00000000 .LC20
00000b40 l .rodata.str1.4 00000000 .LC21
00000430 l .text 00000000 $a
00000000 l .rodata 00000000 .LANCHOR1
00000000 l .data 00000000 .LANCHOR2
0000069c l .text 00000000 $d
000006b0 l .text 00000000 $a
00000de8 l .text 00000000 $d
00000000 l d .rodata 00000000 .rodata
00000000 l .rodata 00000000 $d
00000000 l O .rodata 00000120 vVertices
00000120 l O .rodata 00000120 vNormals
00000240 l O .rodata 0000000e __PRETTY_FUNCTION__.2
00000250 l O .rodata 00000013 __PRETTY_FUNCTION__.1
00000264 l O .rodata 00000013 __PRETTY_FUNCTION__.0
00000278 l O .rodata 00000009 __PRETTY_FUNCTION__.3
00000000 l .data 00000000 $d
00000000 l .bss 00000000 $d
00000000 l d .debug_info 00000000 .debug_info
00000000 l d .debug_abbrev 00000000 .debug_abbrev
00000000 l d .debug_loc 00000000 .debug_loc
00000000 l d .debug_aranges 00000000 .debug_aranges
00000000 l d .debug_ranges 00000000 .debug_ranges
00000000 l d .debug_line 00000000 .debug_line
00000000 l d .debug_str 00000000 .debug_str
00000000 l d .note.GNU-stack 00000000 .note.GNU-stack
00000000 l d .debug_frame 00000000 .debug_frame
00000000 l d .comment 00000000 .comment
00000000 l d .ARM.attributes 00000000 .ARM.attributes
00000000 *UND* 00000000 glClearColor
00000000 *UND* 00000000 glClear
00000000 *UND* 00000000 esMatrixLoadIdentity
00000000 *UND* 00000000 esTranslate
00000000 *UND* 00000000 esRotate
00000000 *UND* 00000000 esFrustum
00000000 *UND* 00000000 esMatrixMultiply
00000000 *UND* 00000000 glUniformMatrix4fv
00000000 *UND* 00000000 glUniformMatrix3fv
00000000 *UND* 00000000 glUniform1i
00000000 *UND* 00000000 glDrawArrays
00000000 *UND* 00000000 raw_512x512_nv12
00000000 *UND* 00000000 gbm_bo_create
00000000 *UND* 00000000 gbm_bo_map
00000000 *UND* 00000000 memcpy
00000000 *UND* 00000000 gbm_bo_unmap
00000000 *UND* 00000000 gbm_bo_get_fd
00000000 w *UND* 00000000 gbm_bo_get_modifier
00000000 *UND* 00000000 gbm_bo_destroy
00000430 g F .text 000009d4 init_cube_tex
00000000 *UND* 00000000 init_egl
00000000 *UND* 00000000 create_program
00000000 *UND* 00000000 glBindAttribLocation
00000000 *UND* 00000000 link_program
00000000 *UND* 00000000 glUseProgram
00000000 *UND* 00000000 glGetUniformLocation
00000000 *UND* 00000000 glViewport
00000000 *UND* 00000000 glEnable
00000000 *UND* 00000000 glGenBuffers
00000000 *UND* 00000000 glBindBuffer
00000000 *UND* 00000000 glBufferData
00000000 *UND* 00000000 glBufferSubData
00000000 *UND* 00000000 glVertexAttribPointer
00000000 *UND* 00000000 glEnableVertexAttribArray
00000000 *UND* 00000000 puts
00000000 *UND* 00000000 glGenTextures
00000000 *UND* 00000000 __assert_fail
00000000 *UND* 00000000 glActiveTexture
00000000 *UND* 00000000 glBindTexture
00000000 *UND* 00000000 glTexParameteri
00000000 *UND* 00000000 raw_512x512_rgba
00000000 *UND* 00000000 printf
00000000 g O .data 000000c0 vTexCoords
000000c0 g O .data 00000004 egl
00000000 g O .bss 00000078 gl
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf/.armv7a-libreelec-linux-gnueabihf$ objdump -t kmscube-cube-smooth.o
kmscube-cube-smooth.o: file format elf32-little
SYMBOL TABLE:
00000000 l df *ABS* 00000000 cube-smooth.c
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l .text 00000000 $a
00000000 l F .text 0000020c draw_cube_smooth
00000000 l .bss 00000000 .LANCHOR0
000001f8 l .text 00000000 $d
00000000 l d .rodata.str1.4 00000000 .rodata.str1.4
00000000 l .rodata.str1.4 00000000 $d
00000000 l .rodata.str1.4 00000000 .LC0
00000124 l .rodata.str1.4 00000000 .LC1
000004ac l .rodata.str1.4 00000000 .LC2
000004b8 l .rodata.str1.4 00000000 .LC3
000004c4 l .rodata.str1.4 00000000 .LC4
000004d0 l .rodata.str1.4 00000000 .LC5
000004e0 l .rodata.str1.4 00000000 .LC6
000004fc l .rodata.str1.4 00000000 .LC7
0000020c l .text 00000000 $a
00000000 l .rodata 00000000 .LANCHOR1
0000042c l .text 00000000 $d
00000000 l d .rodata 00000000 .rodata
00000000 l .rodata 00000000 $d
00000000 l O .rodata 00000120 vVertices
00000120 l O .rodata 00000120 vColors
00000240 l O .rodata 00000120 vNormals
00000000 l .bss 00000000 $d
00000000 l d .debug_info 00000000 .debug_info
00000000 l d .debug_abbrev 00000000 .debug_abbrev
00000000 l d .debug_loc 00000000 .debug_loc
00000000 l d .debug_aranges 00000000 .debug_aranges
00000000 l d .debug_line 00000000 .debug_line
00000000 l d .debug_str 00000000 .debug_str
00000000 l d .note.GNU-stack 00000000 .note.GNU-stack
00000000 l d .debug_frame 00000000 .debug_frame
00000000 l d .comment 00000000 .comment
00000000 l d .ARM.attributes 00000000 .ARM.attributes
00000000 *UND* 00000000 glClearColor
00000000 *UND* 00000000 glClear
00000000 *UND* 00000000 esMatrixLoadIdentity
00000000 *UND* 00000000 esTranslate
00000000 *UND* 00000000 esRotate
00000000 *UND* 00000000 esFrustum
00000000 *UND* 00000000 esMatrixMultiply
00000000 *UND* 00000000 glUniformMatrix4fv
00000000 *UND* 00000000 glUniformMatrix3fv
00000000 *UND* 00000000 glDrawArrays
0000020c g F .text 00000228 init_cube_smooth
00000000 *UND* 00000000 init_egl
00000000 *UND* 00000000 create_program
00000000 *UND* 00000000 glBindAttribLocation
00000000 *UND* 00000000 link_program
00000000 *UND* 00000000 glUseProgram
00000000 *UND* 00000000 glGetUniformLocation
00000000 *UND* 00000000 glViewport
00000000 *UND* 00000000 glEnable
00000000 *UND* 00000000 glGenBuffers
00000000 *UND* 00000000 glBindBuffer
00000000 *UND* 00000000 glBufferData
00000000 *UND* 00000000 glBufferSubData
00000000 *UND* 00000000 glVertexAttribPointer
00000000 *UND* 00000000 glEnableVertexAttribArray
00000000 g O .bss 00000060 gl
rd@h370-wlan:~/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/kmscube-98f31bf/.armv7a-libreelec-linux-gnueabihf$
Display More
Please let me know if anything further information is needed.
Thanks
Rainer
No, my issue is that kmscube does not seem to get build and included in the image ![]()
Hello,
I am trying to enable a virtual terminal on a libreelec master image (PROJECT=NXP DEVICE=iMX6 ARCH=arm UBOOT_SYSTEM=cubox-q make image).
ALT+CTRL+F3 does not work.
The kernel seems to provide tty0..63.
But I neither find a getty systemd service not a getty binary.
Can anybody tell how to get this done?
Thanks
Rainer
Hi,
I wanted to add the kmscube package to my image by
PROJECT=NXP DEVICE=iMX6 ARCH=arm UBOOT_SYSTEM=cubox-q ADDITIONAL_PACKAGES="kmscube" make image
but that does not seem to have an effect ![]()
Can anybody tell how I can do that?
Thanks
Rainer
Is CTRL+ALT+F3 supposed to bring up a virtual terminal on the current master branch?
Lukas proposed on IRC to check with kmscube.
Does anybody know if it is possible to run a simple testcase, which demonstrates the problem?
E..g. can I start libreelec in console mode and is there a standard player which is well known by the mesa community, which illustrates the problem?
Maybe that could be a path to get more mesa knowledge involved (since this community does most likely not know all the kodi details).
Thanks
Rainer
Hi thundy
many thanks for performing the tests.
Sorry, but I hoped that I get a notification if there are posts on the thread.
I recently built libreelec from master again, since I saw the imx6 patches mainly from lrusak have been merged.
It is a lot more stable now, we even used it for a few hours with different movies ![]()
But the blocker with the colors is still there, so I went back to an old kodi release.
I dislike somewhat applying patches blindly. I think it would be good if someone with decent mesa understanding would at least be involved. Not sure if that is possible though.
Additional information from lrusak at IRC:
[22:39] <lrusak> most likely some YUV path not working in mesa
[22:42] <lrusak> rdorsch, ![]()
[...]
[22:53] <lrusak> src/gallium/drivers/etnaviv/etnaviv_format.c · master · Mesa / mesa · GitLab
[22:55] <lrusak> [Mesa-dev] [PATCH 0/9] Etnaviv direct YUV support
[22:55] <lrusak> [Mesa-dev] [PATCH 0/6] Add support for NV12
[22:56] <lrusak> I think with those two patch sets it would work much better
Thanks, Lukas
I found the setting in
settings -> player -> media playback -> video -> PRIME render method
and put it to EGL as you recommended. Then I had to change the audio device in system settings, the default used spif instead of HDMI and enabled passthrough.
After that it worked amazingly well.
I saw two issues
Full log is here.
How is this related to the 1080p50 mentioned in #kodi ?
[22:10] <TeamKodi> [unknown] decoder is rated for 1080p30 only (we nearly got 1080p50 going)
[22:10] <TeamKodi> [unknown] for etnaviv + coda it's in a very good shape. dma_buf import works (for egl) or even direct yuv scanout
[22:11] <TeamKodi> [unknown] why no one works on it anymore: it's just 1080p capable
[22:12] <TeamKodi> [unknown] it should be in quite good shape though with v4l2 decoder
[22:14] <TeamKodi> [unknown] And: no one has time anymore ![]()
And how do I use egl rendering? Are the 15 fps for 1080p will it increase for 720p or get even worse?
The image boots on an Cubox-i/imx6. Basic operations works, slideshows work.
Playing videos does not work. There seems to be an audio issue, but the main issue is that the TV reports that there is no HDMI source anymore.
In kodi.log, I see (full log at kodi.log video starts around 16:53)
2020-03-21 16:59:22.643 T:988 ERROR: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2020-03-21 16:59:22.646 T:980 ERROR: CDRMAtomic::DrmAtomicCommit - test commit failed: Numerical result out of range
2020-03-21 16:59:22.797 T:988 ERROR: Previous line repeats 3 times.
2020-03-21 16:59:22.797 T:988 ERROR: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2020-03-21 16:59:22.812 T:980 ERROR: CDRMAtomic::DrmAtomicCommit - test commit failed: Numerical result out of range
2020-03-21 16:59:22.950 T:988 ERROR: Previous line repeats 3 times.
2020-03-21 16:59:22.950 T:988 ERROR: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2020-03-21 16:59:22.979 T:980 ERROR: CDRMAtomic::DrmAtomicCommit - test commit failed: Numerical result out of range
2020-03-21 16:59:23.103 T:988 ERROR: Previous line repeats 2 times.
and dmesg is full of
[ 4462.287035] ------------[ cut here ]------------
[ 4462.287066] WARNING: CPU: 0 PID: 0 at kernel/dma/mapping.c:304 dma_free_attrs+0xbc/0xc8
[ 4462.287074] Modules linked in: coda_vpu videobuf2_dma_contig imx_vdoa v4l2_mem2mem dw_hdmi_ahb_audio wireguard(O) ip6_udp_tunnel udp_tunnel
[ 4462.287112] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W O 5.5.6 #1
[ 4462.287121] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 4462.287150] [<c0112778>] (unwind_backtrace) from [<c010ce64>] (show_stack+0x10/0x14)
[ 4462.287171] [<c010ce64>] (show_stack) from [<c0cd2218>] (dump_stack+0xe0/0x114)
[ 4462.287193] [<c0cd2218>] (dump_stack) from [<c012d1dc>] (__warn+0xc0/0x10c)
[ 4462.287209] [<c012d1dc>] (__warn) from [<c012d5a8>] (warn_slowpath_fmt+0x5c/0xc0)
[ 4462.287224] [<c012d5a8>] (warn_slowpath_fmt) from [<c01b62fc>] (dma_free_attrs+0xbc/0xc8)
[ 4462.287243] [<c01b62fc>] (dma_free_attrs) from [<c05af3b8>] (sdma_free_bd+0x34/0x3c)
[ 4462.287258] [<c05af3b8>] (sdma_free_bd) from [<c05af3cc>] (sdma_desc_free+0xc/0x18)
[ 4462.287272] [<c05af3cc>] (sdma_desc_free) from [<c05aec54>] (sdma_disable_channel_async+0xd0/0xd8)
[ 4462.287293] [<c05aec54>] (sdma_disable_channel_async) from [<c09716b0>] (snd_dmaengine_pcm_trigger+0x80/0x194)
[ 4462.287314] [<c09716b0>] (snd_dmaengine_pcm_trigger) from [<c0981cf8>] (soc_pcm_trigger+0x198/0x1f4)
[ 4462.287338] [<c0981cf8>] (soc_pcm_trigger) from [<c0967984>] (snd_pcm_do_stop+0x50/0x58)
[ 4462.287355] [<c0967984>] (snd_pcm_do_stop) from [<c09667e8>] (snd_pcm_action_single+0x38/0x78)
[ 4462.287370] [<c09667e8>] (snd_pcm_action_single) from [<c096e9c0>] (__snd_pcm_xrun+0x38/0xc8)
[ 4462.287384] [<c096e9c0>] (__snd_pcm_xrun) from [<c096eb48>] (snd_pcm_update_state+0xf8/0x100)
[ 4462.287398] [<c096eb48>] (snd_pcm_update_state) from [<c096ed08>] (snd_pcm_update_hw_ptr0+0x1b8/0x35c)
[ 4462.287413] [<c096ed08>] (snd_pcm_update_hw_ptr0) from [<c096ef1c>] (snd_pcm_period_elapsed+0x70/0x94)
[ 4462.287428] [<c096ef1c>] (snd_pcm_period_elapsed) from [<c05b0424>] (sdma_int_handler+0x188/0x2bc)
[ 4462.287443] [<c05b0424>] (sdma_int_handler) from [<c0197f60>] (__handle_irq_event_percpu+0x48/0x34c)
[ 4462.287459] [<c0197f60>] (__handle_irq_event_percpu) from [<c0198290>] (handle_irq_event_percpu+0x2c/0x88)
[ 4462.287471] [<c0198290>] (handle_irq_event_percpu) from [<c0198324>] (handle_irq_event+0x38/0x5c)
[ 4462.287487] [<c0198324>] (handle_irq_event) from [<c019cdec>] (handle_fasteoi_irq+0xc8/0x180)
[ 4462.287507] [<c019cdec>] (handle_fasteoi_irq) from [<c0197094>] (generic_handle_irq+0x20/0x34)
[ 4462.287524] [<c0197094>] (generic_handle_irq) from [<c019769c>] (__handle_domain_irq+0x64/0xdc)
[ 4462.287547] [<c019769c>] (__handle_domain_irq) from [<c0543200>] (gic_handle_irq+0x48/0x9c)
[ 4462.287566] [<c0543200>] (gic_handle_irq) from [<c0101a70>] (__irq_svc+0x70/0x98)
[ 4462.287576] Exception stack(0xc1701ed0 to 0xc1701f18)
[ 4462.287588] 1ec0: 00000001 00000006 00000000 c170c840
[ 4462.287603] 1ee0: 00000000 f50723f4 c1710818 ef7bcdf8 f4f3a3c4 c17f0f68 0000040e 0000040e
[ 4462.287615] 1f00: 00000000 c1701f20 c018a3f0 c08e50e4 280d0013 ffffffff
[ 4462.287638] [<c0101a70>] (__irq_svc) from [<c08e50e4>] (cpuidle_enter_state+0x178/0x4f4)
[ 4462.287655] [<c08e50e4>] (cpuidle_enter_state) from [<c08e549c>] (cpuidle_enter+0x28/0x38)
[ 4462.287672] [<c08e549c>] (cpuidle_enter) from [<c01659e0>] (do_idle+0x1e4/0x2c0)
[ 4462.287687] [<c01659e0>] (do_idle) from [<c0165e78>] (cpu_startup_entry+0x18/0x1c)
[ 4462.287705] [<c0165e78>] (cpu_startup_entry) from [<c1200e20>] (start_kernel+0x404/0x4d4)
[ 4462.287716] irq event stamp: 22962624
[ 4462.287729] hardirqs last enabled at (22962621): [<c08e50e0>] cpuidle_enter_state+0x174/0x4f4
[ 4462.287740] hardirqs last disabled at (22962622): [<c0101a60>] __irq_svc+0x60/0x98
[ 4462.287754] softirqs last enabled at (22962624): [<c0134f94>] irq_enter+0x68/0x84
[ 4462.287765] softirqs last disabled at (22962623): [<c0134f80>] irq_enter+0x54/0x84
[ 4462.287774] ---[ end trace 88b16315955db84a ]---
[ 4462.440240] ------------[ cut here ]------------
Display More
entries. This is not the first one though, the first one aged out of the history already.
Here is in addition a dmesg output after a reboot: