Solved Build errors building popcornmix's Leia_pi4 branch on RPi4
#1
I am trying to build kodi-gbm on my Pi4 from @popcornmix 's Leia_pi4 branch but am getting some errors I cannot decipher.  Perhaps I am missing a dep?  I posted the entire build log here but you can see the errors starting near the end of the file.  For example, just search for "GL_RGBA16F_EXT"

Here are a few called out into the thread:
Code:
...
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShaderGLES.cpp:101:24: error: ‘GL_RGBA16F_EXT’ was not declared in this scope
     m_internalformat = GL_RGBA16F_EXT;
                        ^~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShaderGLES.cpp:101:24: note: suggested alternative: ‘GL_BGRA_EXT’
     m_internalformat = GL_RGBA16F_EXT;
                        ^~~~~~~~~~~~~~
                        GL_BGRA_EXT
...
[ 88%] Building CXX object build/utils/CMakeFiles/utils.dir/Temperature.cpp.o
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp: In static member function ‘static int CDRMPRIMETexture::GetColorSpace(int)’:
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:91:14: error: ‘EGL_ITU_REC2020_EXT’ was not declared in this scope
       return EGL_ITU_REC2020_EXT;
              ^~~~~~~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:93:14: error: ‘EGL_ITU_REC601_EXT’ was not declared in this scope
       return EGL_ITU_REC601_EXT;
              ^~~~~~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:93:14: note: suggested alternative: ‘EGL_NO_CONTEXT’
       return EGL_ITU_REC601_EXT;
              ^~~~~~~~~~~~~~~~~~
              EGL_NO_CONTEXT
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:95:14: error: ‘EGL_ITU_REC709_EXT’ was not declared in this scope
       return EGL_ITU_REC709_EXT;
              ^~~~~~~~~~~~~~~~~~
...

My configure step:
Code:
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DCMAKE_PREFIX_PATH=/opt/vc \
    -DVERBOSE=ON \
    -DENABLE_EVENTCLIENTS=ON \
    -DENABLE_OPENGL=OFF \
    -DENABLE_INTERNAL_FFMPEG=ON \
    -DENABLE_INTERNAL_FMT=ON \
    -DENABLE_INTERNAL_CROSSGUID=ON \
    -DENABLE_INTERNAL_FSTRCMP=ON \
    -DENABLE_INTERNAL_FLATBUFFERS=ON \
    -DENABLE_MARIADBCLIENT=ON \
    -DENABLE_VAAPI=OFF \
    -DENABLE_VDPAU=OFF \
    -DCORE_PLATFORM_NAME=gbm \
    -DGBM_RENDER_SYSTEM=gles \
    -Dlibdvdcss_URL="/kodi-libdvdcss-1.4.2-Leia-Beta-5.tar.gz" \
    -Dlibdvdnav_URL="/kodi-libdvdnav-6.0.0-Leia-Alpha-3.tar.gz" \
    -Dlibdvdread_URL="/kodi-libdvdread-6.0.0-Leia-Alpha-3.tar.gz" \
    -DFFMPEG_URL="/kodi-ffmpeg-4.0.3-Leia-18.2.tar.gz" \
    -DFMT_URL="/kodi-fmt-5.1.0.tar.gz" \
    -DCROSSGUID_URL="/kodi-crossguid-8f399e8bd4.tar.gz" \
    -DFSTRCMP_URL="/kodi-fstrcmp-0.7.D001.tar.gz" \
    -DFLATBUFFERS_URL="/kodi-flatbuffers-1.9.0.tar.gz" \
    ../xbmc-"932b08f071fd6cf8d95d01fe0c9e186821a38983"
Need help programming a Streamzap remote?
Reply
#2
Pretty sure you need a bleeding edge, maybe even patched mesa and libdrm.
Reply
#3
Plain mesa 19.1 and libdrm 2.4.97 (or newer) should work fine, this is what I used during LibreELEC development. Not 100% sure about libdrm, but mesa 19.0 and older are missing important stuff for RPi4/vc4/v3d.

It doesn't hurt to use current stable versions (mesa 19.1.2 and libdrm 2.4.99), this is what we use ATM in LE.

so long,

Hias
Reply
#4
I'll repeat what I posted on github issue (in case others find this in a search).

I suspect you are picking up wrong header files.
You need to be using /usr/include/EGL/eglext.h from mesa and not the firmware ones from /opt/vc/include/EGL/

You shouldn't be referencing /opt/vc in cmake line.
Renaming /opt/vc before building would rule out that being found.
Reply
#5
Thank you all for the helpful replies.

(2019-07-18, 12:00)HiassofT Wrote: Plain mesa 19.1 and libdrm 2.4.97 (or newer) should work fine, this is what I used during LibreELEC development. Not 100% sure about libdrm, but mesa 19.0 and older are missing important stuff for RPi4/vc4/v3d.

It doesn't hurt to use current stable versions (mesa 19.1.2 and libdrm 2.4.99), this is what we use ATM in LE.

Arch ARM is using the following versions:
mesa v19.1.2
libdrm v2.4.99
 
(2019-07-18, 17:29)popcornmix Wrote: I suspect you are picking up wrong header files.
You need to be using /usr/include/EGL/eglext.h from mesa and not the firmware ones from /opt/vc/include/EGL/

You shouldn't be referencing /opt/vc in cmake line.
Renaming /opt/vc before building would rule out that being found.

@popcornmix 
If I rename /opt/vc and try building, I get cmake errors relating to missing MMAL and pieces.  Here is an example.  If I leave it named /opt/vc and omit the "-DCMAKE_PREFIX_PATH=/opt/vc" line, it bombs out in the same way as if I renamed the dir.  Any suggestions are welcomed.

... Can I pass something like "-DCMAKE_MMAL_INCLUDE_DIR=/usr/include/EGL" ?
Code:
CMake Error at /usr/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find MMAL (missing: MMAL_INCLUDE_DIR MMAL_LIBRARY
MMALCORE_LIBRARY MMALUTIL_LIBRARY MMALCLIENT_LIBRARY MMALCOMPONENT_LIBRARY
BCM_LIBRARY VCHIQ_LIBRARY VCOS_LIBRARY VCSM_LIBRARY VCHOSTIF_LIBRARY
VCILCS_LIBRARY CONTAINER_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindMMAL.cmake:29 (find_package_handle_standard_args)
cmake/scripts/common/Macros.cmake:366 (find_package)
cmake/scripts/common/Macros.cmake:380 (find_package_with_ver)
CMakeLists.txt:172 (core_require_dep)
Need help programming a Streamzap remote?
Reply
#6
Ah okay, leia_pi4 is a temporary hack.
You need to do a little surgery to make it build as it needs mmal headers and pc files but not the opengl ones.

I build with:
Code:
PKG_CONFIG_PATH=/home/pi/projects/kodi/vc/lib/pkgconfig cmake ../kodi_mmal -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=gbm -DGBM_RENDER_SYSTEM=gles -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF

and I've copied to /home/pi/projects/kodi/vc/lib/pkgconfig
bcm_host.pc mmal.pc  vcsm.pc
Reply
#7
Thanks for the tip... is it just those 3 files?  I get similar build errors when I try. Link to output including cmake step.

A few of the errors:
Code:
...
[ 87%] Linking CXX static library dvdinputstreams.a
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShaderGLES.cpp: In constructor ‘Shaders::ConvolutionFilterShader::ConvolutionFilterShader(ESCALINGMETHOD)’:
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShaderGLES.cpp:101:24: error: ‘GL_RGBA16F_EXT’ was not declared in this scope
     m_internalformat = GL_RGBA16F_EXT;
                        ^~~~~~~~~~~~~~
...
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp: In static member function ‘static int CDRMPRIMETexture::GetColorSpace(int)’:
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:91:14: error: ‘EGL_ITU_REC2020_EXT’ was not declared in this scope
       return EGL_ITU_REC2020_EXT;
              ^~~~~~~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:93:14: error: ‘EGL_ITU_REC601_EXT’ was not declared in this scope
       return EGL_ITU_REC601_EXT;
              ^~~~~~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:93:14: note: suggested alternative: ‘EGL_NO_CONTEXT’
       return EGL_ITU_REC601_EXT;
              ^~~~~~~~~~~~~~~~~~
              EGL_NO_CONTEXT
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:95:14: error: ‘EGL_ITU_REC709_EXT’ was not declared in this scope
       return EGL_ITU_REC709_EXT;
              ^~~~~~~~~~~~~~~~~~
...

Here is my /pkgconfig:
Code:
bcm_host.pc  mmal.pc  vcsm.pc
Need help programming a Streamzap remote?
Reply
#8
(2019-07-19, 20:50)graysky Wrote: Thanks for the tip... is it just those 3 files?  I get similar build errors when I try. Link to output including cmake step.

A few of the errors:
Code:
...
[ 87%] Linking CXX static library dvdinputstreams.a
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShaderGLES.cpp: In constructor ‘Shaders::ConvolutionFilterShader::ConvolutionFilterShader(ESCALINGMETHOD)’:
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShaderGLES.cpp:101:24: error: ‘GL_RGBA16F_EXT’ was not declared in this scope
m_internalformat = GL_RGBA16F_EXT;
^~~~~~~~~~~~~~
...
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp: In static member function ‘static int CDRMPRIMETexture::GetColorSpace(int)’:
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:91:14: error: ‘EGL_ITU_REC2020_EXT’ was not declared in this scope
return EGL_ITU_REC2020_EXT;
^~~~~~~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:93:14: error: ‘EGL_ITU_REC601_EXT’ was not declared in this scope
return EGL_ITU_REC601_EXT;
^~~~~~~~~~~~~~~~~~
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:93:14: note: suggested alternative: ‘EGL_NO_CONTEXT’
return EGL_ITU_REC601_EXT;
^~~~~~~~~~~~~~~~~~
EGL_NO_CONTEXT
/build/kodi/src/xbmc-932b08f071fd6cf8d95d01fe0c9e186821a38983/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DRMPRIMEEGL.cpp:95:14: error: ‘EGL_ITU_REC709_EXT’ was not declared in this scope
return EGL_ITU_REC709_EXT;
^~~~~~~~~~~~~~~~~~
...

Here is my /pkgconfig:
Code:
bcm_host.pc  mmal.pc  vcsm.pc


Moving the EGL, GLES and GLES2 (not sure if all are necessary) folders in /opt/vc/include gives me a successful compile. However, I get a "Unable to create GUI" error, with
Code:
FATAL: CApplication::Create: Unable to init windowing system

in kodi.log. Link
Reply
#9
(2019-07-20, 18:02)dced Wrote: Moving the EGL, GLES and GLES2 (not sure if all are necessary) folders in /opt/vc/include gives me a successful compile. However, I get a "Unable to create GUI" error, with
Code:
FATAL: CApplication::Create: Unable to init windowing system
Check your /boot/config.txt ... https://forum.kodi.tv/showthread.php?tid...pid2870136

Can you list out exactly which files you copied over into your $PKG_CONFIG_PATH please? For me:
Code:
export PKG_CONFIG_PATH=/build/special

for i in bcm_host.pc mmal.pc vcsm.pc; do
  cp /opt/vc/lib/pkgconfig/"$i" "$special"
done

I thought @popcornmix said to cherry pick certain files:
(2019-07-19, 13:12)popcornmix Wrote: You need to do a little surgery to make it build as it needs mmal headers and pc files but not the opengl ones.

If you took the entire directory tree (/opt/vc/lib/pkgconfig/) that might cause issues, no?
Need help programming a Streamzap remote?
Reply
#10
(2019-07-20, 18:10)graysky Wrote: Check your /boot/config.txt ... https://forum.kodi.tv/showthread.php?tid...pid2870136
Still seems to be the same exact eror, I'll try tinkering around with it.

Quote:Can you list out exactly which files you copied over into your $PKG_CONFIG_PATH please? For me:
Code:
export PKG_CONFIG_PATH=/build/special

for i in bcm_host.pc mmal.pc vcsm.pc; do
  cp /opt/vc/lib/pkgconfig/"$i" "$special"
done

I used the exact command that @popcornmix gave,

Code:
PKG_CONFIG_PATH=/home/pi/projects/kodi/vc/lib/pkgconfig cmake ../kodi_mmal -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=gbm -DGBM_RENDER_SYSTEM=gles -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF

and only moved bcm_host.pc, mmal.pc and vcsm.pc into PKG_CONFIG_PATH. The only difference is that since GL folders were to be excluded, I moved(renamed) the /opt/vc/{EGL/GLES/GLES2} folders too, after guessing around that that might have been what @popcornmix meant by:

(2019-07-19, 13:12)popcornmix Wrote: You need to do a little surgery to make it build as it needs mmal headers and pc files but not the opengl ones.

If you took the entire directory tree (/opt/vc/lib/pkgconfig/) that might cause issues, no? 
[/quote]
Reply
#11
(2019-07-20, 18:39)dced Wrote: only moved bcm_host.pc, mmal.pc and vcsm.pc into PKG_CONFIG_PATH. The only difference is that since GL folders were to be excluded, I moved(renamed) the /opt/vc/{EGL/GLES/GLES2} folders too

That did it for me:

1) Copy the three files I called out in the cp command
2) Rename /opt/vc/include/{EGL,GLES,GLES2} on the build machine.

No errors when building now! When I install the built package however,
1) The GUI is horribly laggy.
2) I cannot play any number of video files, there is no video, just a black screen. There is however audio playback.

@popcornmix - Here is a debug log ... any thoughts?
https://gist.github.com/graysky2/becbbff...6a36b29175
Need help programming a Streamzap remote?
Reply
#12
@graysky I think your distro is missing an importatnt part when building mesa

See https://archlinuxarm.org/packages/armv7h...s/PKGBUILD
Code:

armv6h) GALLIUM=",vc4" ;;
armv7h) GALLIUM=",etnaviv,kmsro,lima,panfrost,tegra,vc4" ;;
aarch64) GALLIUM=",kmsro,lima,panfrost,v3d,vc4" ;;

v3d mesa gallium drivers are needed for rpi4.
Ask the maintainer of mesa package why TF they don't build v3d for armv7h or roll your own mesa with blackjack and hookers )
Edit: and make sure you have the kernel counterpart CONFIG_DRM_V3D enabled (as module) too.
Reply
#13
(2019-07-20, 20:41)asavah Wrote: @graysky I think your distro is missing an importatnt part when building mesa

See https://archlinuxarm.org/packages/armv7h...s/PKGBUILD
Code:

armv6h) GALLIUM=",vc4" ;;
armv7h) GALLIUM=",etnaviv,kmsro,lima,panfrost,tegra,vc4" ;;
aarch64) GALLIUM=",kmsro,lima,panfrost,v3d,vc4" ;;

v3d mesa gallium drivers are needed for rpi4.
Ask the maintainer of mesa package why TF they don't build v3d for armv7h or roll your own mesa with blackjack and hookers )
Edit: and make sure you have the kernel counterpart CONFIG_DRM_V3D enabled (as module) too.

Just to confirm: you are recommending this as the armv7h line:
armv7h) GALLIUM=",etnaviv,kmsro,lima,panfrost,tegra,v3d,vc4" ;;

The kernel package is shipping with CONFIG_DRM_V3D=M .. See here. Anything else you suggest for either package? Thanks!

Thank you for the sleuthing!
Need help programming a Streamzap remote?
Reply
#14
@asavah - Good call on the missing mesa piece.  I rebuild it and I rebuilt popcornmix's branch with it.  The GUI is very responsive now, but I am still unable to play any video content (I just get a black screen and a log filled with a/v sync errors as I posted above).

I should say that my dmesg records some errors relating to video drivers upon launching kodi:
Code:
[ +11.266609] ------------[ cut here ]------------
[  +0.000079] WARNING: CPU: 1 PID: 391 at drivers/gpu/drm/vc4/vc4_firmware_kms.c:899 vc4_crtc_atomic_flush+0x88/0x8c [vc4]
[  +0.000071] Modules linked in: btsdio bluetooth ecdh_generic brcmfmac brcmutil evdev vc4 drm_kms_helper cfg80211 cec snd_soc_core v3d snd_compress snd_pcm_dmaengine syscopyarea bcm2835_codec(C) sysfillrect bcm2835_v4l2(C) sysimgblt gpu_sched fb_sys_fops drm v4l2_mem2mem snd_bcm2835(C) bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig snd_pcm videobuf2_memops drm_panel_orientation_quirks videobuf2_v4l2 snd_timer videobuf2_common snd raspberrypi_hwmon videodev hwmon media iproc_rng200 rng_core argon_mem uio_pdrv_genirq uio fixed ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_multiport xt_comment xt_limit xt_addrtype xt_tcpudp xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack
[  +0.000595]  nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter sch_fq_codel ip_tables x_tables ipv6
[  +0.000079] CPU: 1 PID: 391 Comm: kodi-gbm Tainted: G         C        4.19.58-1-ARCH #1
[  +0.000052] Hardware name: BCM2835
[  +0.000040] [<c0210c54>] (unwind_backtrace) from [<c020c660>] (show_stack+0x10/0x14)
[  +0.000055] [<c020c660>] (show_stack) from [<c0c2acd4>] (dump_stack+0x88/0xa8)
[  +0.000053] [<c0c2acd4>] (dump_stack) from [<c022c724>] (__warn.part.3+0xbc/0xd8)
[  +0.000053] [<c022c724>] (__warn.part.3) from [<c022c8a0>] (warn_slowpath_null+0x44/0x4c)
[  +0.000075] [<c022c8a0>] (warn_slowpath_null) from [<bf7c2ecc>] (vc4_crtc_atomic_flush+0x88/0x8c [vc4])
[  +0.000126] [<bf7c2ecc>] (vc4_crtc_atomic_flush [vc4]) from [<bf78a074>] (drm_atomic_helper_commit_planes+0x1fc/0x270 [drm_kms_helper])
[  +0.000123] [<bf78a074>] (drm_atomic_helper_commit_planes [drm_kms_helper]) from [<bf7c46a0>] (vc4_atomic_complete_commit+0x50/0x304 [vc4])
[  +0.002338] [<bf7c46a0>] (vc4_atomic_complete_commit [vc4]) from [<bf7c4a2c>] (vc4_atomic_commit+0xd8/0x168 [vc4])
[  +0.002401] [<bf7c4a2c>] (vc4_atomic_commit [vc4]) from [<bf3efa80>] (drm_mode_atomic_ioctl+0x8ec/0xb28 [drm])
[  +0.002456] [<bf3efa80>] (drm_mode_atomic_ioctl [drm]) from [<bf3dc314>] (drm_ioctl_kernel+0xa8/0xe4 [drm])
[  +0.002419] [<bf3dc314>] (drm_ioctl_kernel [drm]) from [<bf3dc700>] (drm_ioctl+0x20c/0x3b4 [drm])
[  +0.002392] [<bf3dc700>] (drm_ioctl [drm]) from [<c03eb7e8>] (do_vfs_ioctl+0xac/0x7b0)
[  +0.001237] [<c03eb7e8>] (do_vfs_ioctl) from [<c03ebf20>] (ksys_ioctl+0x34/0x60)
[  +0.001176] [<c03ebf20>] (ksys_ioctl) from [<c0201000>] (ret_fast_syscall+0x0/0x4c)
[  +0.001168] Exception stack(0xd6a8dfa8 to 0xd6a8dff0)
[  +0.001165] dfa0:                   0628b5e0 bec75728 00000017 c03864bc bec75728 00000000
[  +0.002311] dfc0: 0628b5e0 bec75728 c03864bc 00000036 06304988 06304a08 062f5538 00000011
[  +0.002273] dfe0: b6055efc bec756f4 b603ceac b5a68f4c
[  +0.010520] ---[ end trace a24fb7c9397ee8b4 ]---
[  +0.016660] ------------[ cut here ]------------
[  +0.001166] WARNING: CPU: 0 PID: 327 at drivers/gpu/drm/drm_vblank.c:1026 vc4_crtc_handle_page_flip+0x40/0x50 [vc4]
[  +0.002308] Modules linked in: btsdio bluetooth ecdh_generic brcmfmac brcmutil evdev vc4 drm_kms_helper cfg80211 cec snd_soc_core v3d snd_compress snd_pcm_dmaengine syscopyarea bcm2835_codec(C) sysfillrect bcm2835_v4l2(C) sysimgblt gpu_sched fb_sys_fops drm v4l2_mem2mem snd_bcm2835(C) bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig snd_pcm videobuf2_memops drm_panel_orientation_quirks videobuf2_v4l2 snd_timer videobuf2_common snd raspberrypi_hwmon videodev hwmon media iproc_rng200 rng_core argon_mem uio_pdrv_genirq uio fixed ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_multiport xt_comment xt_limit xt_addrtype xt_tcpudp xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack
[  +0.011974]  nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter sch_fq_codel ip_tables x_tables ipv6
[  +0.002335] CPU: 0 PID: 327 Comm: rngd Tainted: G        WC        4.19.58-1-ARCH #1
[  +0.001172] Hardware name: BCM2835
[  +0.001156] [<c0210c54>] (unwind_backtrace) from [<c020c660>] (show_stack+0x10/0x14)
[  +0.001155] [<c020c660>] (show_stack) from [<c0c2acd4>] (dump_stack+0x88/0xa8)
[  +0.001145] [<c0c2acd4>] (dump_stack) from [<c022c724>] (__warn.part.3+0xbc/0xd8)
[  +0.001130] [<c022c724>] (__warn.part.3) from [<c022c8a0>] (warn_slowpath_null+0x44/0x4c)
[  +0.002236] [<c022c8a0>] (warn_slowpath_null) from [<bf7c2b70>] (vc4_crtc_handle_page_flip+0x40/0x50 [vc4])
[  +0.002296] [<bf7c2b70>] (vc4_crtc_handle_page_flip [vc4]) from [<bf7c41e8>] (vc4_crtc_irq_handler+0xb0/0x120 [vc4])
[  +0.002291] [<bf7c41e8>] (vc4_crtc_irq_handler [vc4]) from [<c0289150>] (__handle_irq_event_percpu+0x58/0x298)
[  +0.002300] [<c0289150>] (__handle_irq_event_percpu) from [<c02893bc>] (handle_irq_event_percpu+0x2c/0x80)
[  +0.002370] [<c02893bc>] (handle_irq_event_percpu) from [<c0289448>] (handle_irq_event+0x38/0x5c)
[  +0.002434] [<c0289448>] (handle_irq_event) from [<c028cd60>] (handle_fasteoi_irq+0xdc/0x18c)
[  +0.002404] [<c028cd60>] (handle_fasteoi_irq) from [<c028840c>] (generic_handle_irq+0x24/0x34)
[  +0.002402] [<c028840c>] (generic_handle_irq) from [<c02889f0>] (__handle_domain_irq+0x7c/0xec)
[  +0.002419] [<c02889f0>] (__handle_domain_irq) from [<c086fe00>] (gic_handle_irq+0x3c/0x78)
[  +0.002404] [<c086fe00>] (gic_handle_irq) from [<c0201d44>] (__irq_usr+0x44/0x60)
[  +0.001216] Exception stack(0xd716bfb0 to 0xd716bff8)
[  +0.001201] bfa0:                                     f806ca55 000001db 00000001 00000000
[  +0.002341] bfc0: 00000000 00000000 00000000 00000000 00000000 92290000 b6e8efac b4648cb4
[  +0.002361] bfe0: 00000001 b4648be8 b6e7dbbc b6e7de9c 800f0010 ffffffff
[  +0.001207] ---[ end trace a24fb7c9397ee8b5 ]---
Need help programming a Streamzap remote?
Reply
#15
Sorry, I can't provide any further insights , I don't have a pi4 board yet,
I live in third world country (sort of) and online shops here usually lag behind, I can't even order one yet (.

I think this kernel warning is expected https://github.com/raspberrypi/linux/issues/3020
Reply



Logout Mark Read Team Forum Stats Members Help
Build errors building popcornmix's Leia_pi4 branch on RPi40
This forum uses Lukasz Tkacz MyBB addons.