Solved Failure to start kodi-gbm on RPi4
#1
I built kodi-gbm (18.3 official with no patches) on my RPi4.  I am unable to start kodi/failure to create the GUI.  I'm wondering what I'm missing (dependency maybe)?
Code:
ERROR: Unable to create GUI. Exiting
ERROR: Unable to create GUI. Exiting
ERROR: Unable to create GUI. Exiting
/usr/bin/kodi --standalone has exited in an unclean state 3 times in the last 23 seconds.
Something is probably wrong

Debug log
kodi.service I am using but I get the same error if I run kodi as the physically logged in kodi user.

Details about the kodi user:
Code:
# id kodi
uid=971(kodi) gid=971(kodi) groups=971(kodi),90(network),98(power),5(tty),995(audio),994(disk),993(input),990(optical),988(storage),986(video)
Need help programming a Streamzap remote?
Reply
#2
Thread moved to Raspberry forum section.
Reply
#3
I added the following lines to /boot/config.txt (following the example from Raspbian) and it worked upon a reboot.
Code:
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

As expected, playing any content (x264 or x265) without acceleration is choppy with all 4 cores maxed out, but at least I am able to get the kodi binary to launch!

EDIT: I also get some dmesg errors:
Code:
[Jul20 10:48] ------------[ cut here ]------------
[  +0.000156] WARNING: CPU: 3 PID: 396 at drivers/gpu/drm/vc4/vc4_firmware_kms.c:899 vc4_crtc_atomic_flush+0x88/0x8c [vc4]
[  +0.000174] Modules linked in: btsdio bluetooth ecdh_generic vc4 brcmfmac drm_kms_helper brcmutil cec snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm v3d cfg80211 snd_timer snd gpu_sched syscopyarea bcm2835_codec(C) evdev joydev bcm2835_v4l2(C) sysfillrect drm sysimgblt v4l2_mem2mem fb_sys_fops bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig drm_panel_orientation_quirks videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon hwmon videodev iproc_rng200 rng_core media 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 nf_defrag_ipv6
[  +0.001487]  nf_defrag_ipv4 iptable_filter sch_fq_codel ip_tables x_tables ipv6
[  +0.000237] CPU: 3 PID: 396 Comm: kodi-gbm Tainted: G         C        4.19.58-1-ARCH #1
[  +0.000135] Hardware name: BCM2835
[  +0.000086] [<c0210c54>] (unwind_backtrace) from [<c020c660>] (show_stack+0x10/0x14)
[  +0.000133] [<c020c660>] (show_stack) from [<c0c2acd4>] (dump_stack+0x88/0xa8)
[  +0.000130] [<c0c2acd4>] (dump_stack) from [<c022c724>] (__warn.part.3+0xbc/0xd8)
[  +0.000137] [<c022c724>] (__warn.part.3) from [<c022c8a0>] (warn_slowpath_null+0x44/0x4c)
[  +0.000185] [<c022c8a0>] (warn_slowpath_null) from [<bf85cecc>] (vc4_crtc_atomic_flush+0x88/0x8c [vc4])
[  +0.000283] [<bf85cecc>] (vc4_crtc_atomic_flush [vc4]) from [<bf78b074>] (drm_atomic_helper_commit_planes+0x1fc/0x270 [drm_kms_helper])
[  +0.000301] [<bf78b074>] (drm_atomic_helper_commit_planes [drm_kms_helper]) from [<bf85e6a0>] (vc4_atomic_complete_commit+0x50/0x304 [vc4])
[  +0.003028] [<bf85e6a0>] (vc4_atomic_complete_commit [vc4]) from [<bf85ea2c>] (vc4_atomic_commit+0xd8/0x168 [vc4])
[  +0.005893] [<bf85ea2c>] (vc4_atomic_commit [vc4]) from [<bf380a80>] (drm_mode_atomic_ioctl+0x8ec/0xb28 [drm])
[  +0.006020] [<bf380a80>] (drm_mode_atomic_ioctl [drm]) from [<bf36d314>] (drm_ioctl_kernel+0xa8/0xe4 [drm])
[  +0.006010] [<bf36d314>] (drm_ioctl_kernel [drm]) from [<bf36d700>] (drm_ioctl+0x20c/0x3b4 [drm])
[  +0.005883] [<bf36d700>] (drm_ioctl [drm]) from [<c03eb7e8>] (do_vfs_ioctl+0xac/0x7b0)
[  +0.002683] [<c03eb7e8>] (do_vfs_ioctl) from [<c03ebf20>] (ksys_ioctl+0x34/0x60)
[  +0.001215] [<c03ebf20>] (ksys_ioctl) from [<c0201000>] (ret_fast_syscall+0x0/0x4c)
[  +0.001215] Exception stack(0xdba3dfa8 to 0xdba3dff0)
[  +0.001184] dfa0:                   03cb1958 bef8b608 00000018 c03864bc bef8b608 00000000
[  +0.002338] dfc0: 03cb1958 bef8b608 c03864bc 00000036 035de5e8 035de668 03c9bc50 00000011
[  +0.002336] dfe0: b6009efc bef8b5d4 b5ff0eac b5aaff4c
[  +0.001199] ---[ end trace 6a3ffd93e8bf601c ]---
[  +0.006611] ------------[ cut here ]------------
[  +0.001189] WARNING: CPU: 0 PID: 0 at drivers/gpu/drm/drm_vblank.c:1026 vc4_crtc_handle_page_flip+0x40/0x50 [vc4]
[  +0.002368] Modules linked in: btsdio bluetooth ecdh_generic vc4 brcmfmac drm_kms_helper brcmutil cec snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm v3d cfg80211 snd_timer snd gpu_sched syscopyarea bcm2835_codec(C) evdev joydev bcm2835_v4l2(C) sysfillrect drm sysimgblt v4l2_mem2mem fb_sys_fops bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig drm_panel_orientation_quirks videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon hwmon videodev iproc_rng200 rng_core media 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 nf_defrag_ipv6
[  +0.012219]  nf_defrag_ipv4 iptable_filter sch_fq_codel ip_tables x_tables ipv6
[  +0.001216] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        WC        4.19.58-1-ARCH #1
[  +0.001211] Hardware name: BCM2835
[  +0.001195] [<c0210c54>] (unwind_backtrace) from [<c020c660>] (show_stack+0x10/0x14)
[  +0.001199] [<c020c660>] (show_stack) from [<c0c2acd4>] (dump_stack+0x88/0xa8)
[  +0.001183] [<c0c2acd4>] (dump_stack) from [<c022c724>] (__warn.part.3+0xbc/0xd8)
[  +0.001172] [<c022c724>] (__warn.part.3) from [<c022c8a0>] (warn_slowpath_null+0x44/0x4c)
[  +0.002292] [<c022c8a0>] (warn_slowpath_null) from [<bf85cb70>] (vc4_crtc_handle_page_flip+0x40/0x50 [vc4])
[  +0.002348] [<bf85cb70>] (vc4_crtc_handle_page_flip [vc4]) from [<bf85e1e8>] (vc4_crtc_irq_handler+0xb0/0x120 [vc4])
[  +0.002358] [<bf85e1e8>] (vc4_crtc_irq_handler [vc4]) from [<c0289150>] (__handle_irq_event_percpu+0x58/0x298)
[  +0.002356] [<c0289150>] (__handle_irq_event_percpu) from [<c02893bc>] (handle_irq_event_percpu+0x2c/0x80)
[  +0.002385] [<c02893bc>] (handle_irq_event_percpu) from [<c0289448>] (handle_irq_event+0x38/0x5c)
[  +0.002464] [<c0289448>] (handle_irq_event) from [<c028cd60>] (handle_fasteoi_irq+0xdc/0x18c)
[  +0.002477] [<c028cd60>] (handle_fasteoi_irq) from [<c028840c>] (generic_handle_irq+0x24/0x34)
[  +0.002465] [<c028840c>] (generic_handle_irq) from [<c02889f0>] (__handle_domain_irq+0x7c/0xec)
[  +0.002466] [<c02889f0>] (__handle_domain_irq) from [<c086fe00>] (gic_handle_irq+0x3c/0x78)
[  +0.002467] [<c086fe00>] (gic_handle_irq) from [<c02019f8>] (__irq_svc+0x58/0x8c)
[  +0.001252] Exception stack(0xc1401f28 to 0xc1401f70)
[  +0.001233] 1f20:                   00000000 0005ac68 eff194cc c0219dc0 ffffe000 c1404dbc
[  +0.002416] 1f40: c1404e04 00000001 c14ad425 c1001b18 c1404d80 c1267e38 c1404ecc c1401f78
[  +0.002456] 1f60: c02091d0 c02091d4 600b0013 ffffffff
[  +0.001233] [<c02019f8>] (__irq_svc) from [<c02091d4>] (arch_cpu_idle+0x38/0x3c)
[  +0.001253] [<c02091d4>] (arch_cpu_idle) from [<c025ca48>] (do_idle+0x110/0x150)
[  +0.001257] [<c025ca48>] (do_idle) from [<c025cd50>] (cpu_startup_entry+0x18/0x20)
[  +0.001252] [<c025cd50>] (cpu_startup_entry) from [<c1200ee4>] (start_kernel+0x4dc/0x508)
[  +0.002439] ---[ end trace 6a3ffd93e8bf601d ]---
[  +6.395813] ------------[ cut here ]------------
[  +0.002908] WARNING: CPU: 1 PID: 409 at drivers/gpu/drm/vc4/vc4_firmware_kms.c:899 vc4_crtc_atomic_flush+0x88/0x8c [vc4]
[  +0.005673] Modules linked in: btsdio bluetooth ecdh_generic vc4 brcmfmac drm_kms_helper brcmutil cec snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm v3d cfg80211 snd_timer snd gpu_sched syscopyarea bcm2835_codec(C) evdev joydev bcm2835_v4l2(C) sysfillrect drm sysimgblt v4l2_mem2mem fb_sys_fops bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig drm_panel_orientation_quirks videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon hwmon videodev iproc_rng200 rng_core media 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 nf_defrag_ipv6
[  +0.022276]  nf_defrag_ipv4 iptable_filter sch_fq_codel ip_tables x_tables ipv6
[  +0.001176] CPU: 1 PID: 409 Comm: llvmpipe-2 Tainted: G        WC        4.19.58-1-ARCH #1
[  +0.002222] Hardware name: BCM2835
[  +0.001103] [<c0210c54>] (unwind_backtrace) from [<c020c660>] (show_stack+0x10/0x14)
[  +0.001115] [<c020c660>] (show_stack) from [<c0c2acd4>] (dump_stack+0x88/0xa8)
[  +0.001112] [<c0c2acd4>] (dump_stack) from [<c022c724>] (__warn.part.3+0xbc/0xd8)
[  +0.001099] [<c022c724>] (__warn.part.3) from [<c022c8a0>] (warn_slowpath_null+0x44/0x4c)
[  +0.002153] [<c022c8a0>] (warn_slowpath_null) from [<bf85cecc>] (vc4_crtc_atomic_flush+0x88/0x8c [vc4])
[  +0.002222] [<bf85cecc>] (vc4_crtc_atomic_flush [vc4]) from [<bf78b074>] (drm_atomic_helper_commit_planes+0x1fc/0x270 [drm_kms_helper])
[  +0.002276] [<bf78b074>] (drm_atomic_helper_commit_planes [drm_kms_helper]) from [<bf85e6a0>] (vc4_atomic_complete_commit+0x50/0x304 [vc4])
[  +0.002295] [<bf85e6a0>] (vc4_atomic_complete_commit [vc4]) from [<bf85ea2c>] (vc4_atomic_commit+0xd8/0x168 [vc4])
[  +0.002345] [<bf85ea2c>] (vc4_atomic_commit [vc4]) from [<bf7919ac>] (restore_fbdev_mode_atomic+0x1c4/0x1d4 [drm_kms_helper])
[  +0.002386] [<bf7919ac>] (restore_fbdev_mode_atomic [drm_kms_helper]) from [<bf795234>] (drm_fb_helper_restore_fbdev_mode_unlocked+0x54/0xa4 [drm_kms_helper])
[  +0.002432] [<bf795234>] (drm_fb_helper_restore_fbdev_mode_unlocked [drm_kms_helper]) from [<bf36bcfc>] (drm_lastclose+0x30/0xc8 [drm])
[  +0.002444] [<bf36bcfc>] (drm_lastclose [drm]) from [<bf36be3c>] (drm_release+0xa8/0xac [drm])
[  +0.002386] [<bf36be3c>] (drm_release [drm]) from [<c03d9570>] (__fput+0x88/0x1c8)
[  +0.001189] [<c03d9570>] (__fput) from [<c024ac38>] (task_work_run+0x94/0xb0)
[  +0.001175] [<c024ac38>] (task_work_run) from [<c0230974>] (do_exit+0x4b8/0xbd4)
[  +0.001166] [<c0230974>] (do_exit) from [<c02310f8>] (do_group_exit+0x3c/0xc0)
[  +0.001151] [<c02310f8>] (do_group_exit) from [<c023cccc>] (get_signal+0x11c/0x8f8)
[  +0.001147] [<c023cccc>] (get_signal) from [<c020bb0c>] (do_signal+0x74/0x4b8)
[  +0.001138] [<c020bb0c>] (do_signal) from [<c020c138>] (do_work_pending+0xd8/0xf0)
[  +0.001136] [<c020c138>] (do_work_pending) from [<c0201064>] (slow_work_pending+0xc/0x20)
[  +0.002257] Exception stack(0xda4ddfb0 to 0xda4ddff8)
[  +0.001135] dfa0:                                     0377a88c 00000080 00000000 00000000
[  +0.002272] dfc0: 00000000 0377a88c 0377a860 000000f0 00000000 0377a874 a85feab0 00000001
[  +0.002263] dfe0: 00000000 a85fea80 a85ff600 b6f08184 800b0010 0377a88c
[  +0.001154] ---[ end trace 6a3ffd93e8bf601e ]---
[  +0.005479] ------------[ cut here ]------------
[  +0.001147] WARNING: CPU: 0 PID: 0 at drivers/gpu/drm/drm_vblank.c:1026 vc4_crtc_handle_page_flip+0x40/0x50 [vc4]
[  +0.002194] Modules linked in: btsdio bluetooth ecdh_generic vc4 brcmfmac drm_kms_helper brcmutil cec snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm v3d cfg80211 snd_timer snd gpu_sched syscopyarea bcm2835_codec(C) evdev joydev bcm2835_v4l2(C) sysfillrect drm sysimgblt v4l2_mem2mem fb_sys_fops bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig drm_panel_orientation_quirks videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon hwmon videodev iproc_rng200 rng_core media 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 nf_defrag_ipv6
[  +0.011157]  nf_defrag_ipv4 iptable_filter sch_fq_codel ip_tables x_tables ipv6
[  +0.001121] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        WC        4.19.58-1-ARCH #1
[  +0.001109] Hardware name: BCM2835
[  +0.001094] [<c0210c54>] (unwind_backtrace) from [<c020c660>] (show_stack+0x10/0x14)
[  +0.001125] [<c020c660>] (show_stack) from [<c0c2acd4>] (dump_stack+0x88/0xa8)
[  +0.001122] [<c0c2acd4>] (dump_stack) from [<c022c724>] (__warn.part.3+0xbc/0xd8)
[  +0.001115] [<c022c724>] (__warn.part.3) from [<c022c8a0>] (warn_slowpath_null+0x44/0x4c)
[  +0.002211] [<c022c8a0>] (warn_slowpath_null) from [<bf85cb70>] (vc4_crtc_handle_page_flip+0x40/0x50 [vc4])
[  +0.002258] [<bf85cb70>] (vc4_crtc_handle_page_flip [vc4]) from [<bf85e1e8>] (vc4_crtc_irq_handler+0xb0/0x120 [vc4])
[  +0.002292] [<bf85e1e8>] (vc4_crtc_irq_handler [vc4]) from [<c0289150>] (__handle_irq_event_percpu+0x58/0x298)
[  +0.002289] [<c0289150>] (__handle_irq_event_percpu) from [<c02893bc>] (handle_irq_event_percpu+0x2c/0x80)
[  +0.002314] [<c02893bc>] (handle_irq_event_percpu) from [<c0289448>] (handle_irq_event+0x38/0x5c)
[  +0.002377] [<c0289448>] (handle_irq_event) from [<c028cd60>] (handle_fasteoi_irq+0xdc/0x18c)
[  +0.002377] [<c028cd60>] (handle_fasteoi_irq) from [<c028840c>] (generic_handle_irq+0x24/0x34)
[  +0.002377] [<c028840c>] (generic_handle_irq) from [<c02889f0>] (__handle_domain_irq+0x7c/0xec)
[  +0.002379] [<c02889f0>] (__handle_domain_irq) from [<c086fe00>] (gic_handle_irq+0x3c/0x78)
[  +0.002373] [<c086fe00>] (gic_handle_irq) from [<c02019f8>] (__irq_svc+0x58/0x8c)
[  +0.001205] Exception stack(0xc1401f28 to 0xc1401f70)
[  +0.001185] 1f20:                   00000000 0005efa8 eff194cc c0219dc0 ffffe000 c1404dbc
[  +0.002335] 1f40: c1404e04 00000001 c14ad425 c1001b18 c1404d80 c1267e38 c1404ecc c1401f78
[  +0.002356] 1f60: c02091d0 c02091d4 600f0013 ffffffff
[  +0.001181] [<c02019f8>] (__irq_svc) from [<c02091d4>] (arch_cpu_idle+0x38/0x3c)
[  +0.001195] [<c02091d4>] (arch_cpu_idle) from [<c025ca48>] (do_idle+0x110/0x150)
[  +0.001203] [<c025ca48>] (do_idle) from [<c025cd50>] (cpu_startup_entry+0x18/0x20)
[  +0.001206] [<c025cd50>] (cpu_startup_entry) from [<c1200ee4>] (start_kernel+0x4dc/0x508)
[  +0.002336] ---[ end trace 6a3ffd93e8bf601f ]---
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
Failure to start kodi-gbm on RPi40