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?
Posts by rdorsch
-
-
-
Many thanks. Indeed
Diff
Display Morerd@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$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.
Code
Display Morerd@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 2020Output of objdump for the two object files:
Code
Display Morerd@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$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
- the coloring of the videos was wrong. They have been almost black and white, but some colors were mixed in, sometimes they seem to look unrelated to the video.
- I can always play a video once then it does not start anymore
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)
Code2020-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
Code
Display More[ 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 ]------------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:
-
Yes, with that patch I can build.
-
I saw the recent commits, which resolve this issue. Now the build fails later on
Code
Display Moremake[1]: Entering directory '/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src' CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/main.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/timers.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/queueing.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/send.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/receive.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/socket.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/peerlookup.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/allowedips.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/ratelimiter.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/cookie.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/netlink.o [...removed lines with censored words...] CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/peer.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/device.o CC [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/noise.o LD [M] /home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.o Building modules, stage 2. MODPOST 1 modules ERROR: "udp_tunnel_xmit_skb" [/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.ko] undefined! ERROR: "udp_sock_create6" [/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.ko] undefined! ERROR: "setup_udp_tunnel_sock" [/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.ko] undefined! ERROR: "udp_tunnel_sock_release" [/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.ko] undefined! ERROR: "udp_tunnel6_xmit_skb" [/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.ko] undefined! ERROR: "udp_sock_create4" [/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src/wireguard.ko] undefined! make[3]: *** [scripts/Makefile.modpost:94: __modpost] Fehler 1 make[2]: *** [Makefile:1606: modules] Error 2 make[1]: *** [Makefile:25: module] Error 2 make[1]: Leaving directory '/home/rd/tmp.nobackup/git/LibreELEC.tv/build.LibreELEC-iMX6.arm-9.80-devel/build/wireguard-linux-compat-v0.0.20200215/src' FAILURE: scripts/build wireguard-linux-compat:target during make_target (package.mk) *********** FAILED COMMAND *********** kernel_make KERNELDIR=$(kernel_path) -C src/ module ************************************** *********** FAILED COMMAND *********** ${SCRIPTS}/build "${1}" "${PARENT_PKG}" ************************************** FAILURE: scripts/install wireguard-linux-compat: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/231.log