Raspberry PI 4 Kodi - Error: Unable to create gui. exiting
#1
Hi,

Just got a new RPI4 ARMv8 unit and installed Arch Linux Arm on it with the objective of replacing my old ARMv7 Kodi box with this one, yet I am unable to get Kodi started.
When I enable and start up kodi.service using systemd, the process exits with the message:
Code:
ERROR: Unable to create GUI. Exiting
Interesting FATAL point in the kodi.log regarding the matter is:
Code:
2019-10-04 18:23:32.310 T:2977099792   FATAL: CApplication::Create: Unable to init windowing system
Full kodi.log:
https://pastebin.com/yFDekry8

I am using the kodi-rbp4 18.4-2 package from Arch ARM official repos. If I switch to kodi-rbp3 or kodi-rbp packages (meant for ARMv7), then it seems that the GUI is somewhat started as the screen goes completely black like it is starting X, but nothing further - not even sounds when trying to navigate around. But the logs get a lot better:
https://pastebin.com/PkT5sTFZ

The only logs from kodi.service from journal are:
Code:
Oct 04 22:17:29 archpi-v2 systemd[1]: Started Kodi standalone (GBM).
Oct 04 22:17:29 archpi-v2 systemd[312]: pam_unix(login:session): session opened for user kodi by (uid=0)
Oct 04 22:17:34 archpi-v2 systemd[1]: kodi.service: Succeeded.
Full /boot/config.txt is:
Code:
# See /boot/overlays/README for all available options

gpu_mem=320
dtoverlay=vc4-fkms-v3d
dtparam=audio=on

initramfs initramfs-linux.img followkernel
The driver used is xf86-video-fbdev 0.5.0-1... I tried the alarm/xf86-video-fbturbo-git also but the results are the same.
Also checked that the kodi user's home is set as /var/lib/kodi as I read that it could cause similar issues. The permissions are also correct.
Code:
kodi:x:975:975::/var/lib/kodi:/usr/bin/nologin
I am running out of ideas on what to check as my ARMv7 seems to be running on a similar setup without any issues. Anyone else managed to turn RPI4 ARMv8 into a simple Kodi box?
Any help and tips are very highly appreciated!

I already ran this topic through Arch linux ARM's forums and it seems like an anomaly: https://archlinuxarm.org/forum/viewtopic...305#p62305
I understand that Kodi forums are not for distro specific troubleshooting but this seems to go a bit deeper than simply a distro's issue. Tried a clean install also with simply the following packages (with their dependencies) installed:
Code:
linux-raspberrypi4-headers base-devel kodi-rbp4 wget omxplayer-git xorg-xrefresh xorg-xset
It works fine for RPI3 but not for RPI4.
Any help is highly appreciated!
Reply
#2
Got it sorted with adding the cma-256 to the driver overlay line in /boot/config.txt, so it looks like this:
Code:
dtoverlay=vc4-fkms-v3d,cma-265
If anyone else experiences this case, I do hope it helps! Smile
Reply
#3
Does anyone know what value is applied if no param is specified?
Code:
Name:   vc4-fkms-v3d
Info:   Enable Eric Anholt's DRM VC4 V3D driver on top of the dispmanx
        display stack.
Load:   dtoverlay=vc4-fkms-v3d,<param>
Params: cma-256                 CMA is 256MB (needs 1GB)
        cma-192                 CMA is 192MB (needs 1GB)
        cma-128                 CMA is 128MB
        cma-96                  CMA is 96MB
        cma-64                  CMA is 64MB
Need help programming a Streamzap remote?
Reply
#4
Don't know.

But here (XBian), if looking /proc/cmdline CMA is set to 256M automagically

Code:
root@kmxbilr2 ~ # cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1920x1080M@50,margin_left=0,margin_right=0,margin_top=0,margin_bottom=0 smsc95xx.macaddr=DC:A6:32:09:2D:5F vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  telnet zswap.enabled=1 zswap.compressor=lz4 console=tty1 partswap vnc cnet=bond0 root=iSCSI=iqn.2017-12.com.kmhome:kmxbilr2,192.168.1.6:3260,UUID=29e1091f-1092-4787-9748-271d9a670f41 rootflags=subvol=root/@,autodefrag,compress-force=none rootfstype=btrfs rootwait logo.nologo quiet noswap loglevel=0 startevent=mountall selinux=0 nosplash nohdparm net.ifnames=0 biosdevname=0 --startup-event mountall
root@kmxbilr2 ~ #
Kodi 18.6 @ openSUSE 13.1 x86_64 - Asus E35M1-I DELUXE | 8GB Ram | 240G 2.5" SSD
Kodi 20.2 on 1st Raspberry Pi B @ XBian | Kodi 20.2 on Raspberry Pi 3B+ @ XBian | Kodi 21a2 on Raspberry Pi4B @ XBian | Kodi 19.0 on SolidRun i.MX6 @ XBian
VDR 2.4.5 & Tvheadend4.3-1917 (for recording) on Cubieboard2 @ Debian Buster
Reply
#5
@Nachteule Same on Arch ARM for my device anyway:
Code:
% cat /proc/cmdline 
coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1920x1200M@60,margin_left=0,margin_right=0,margin_top=0,margin_bottom=0 smsc95xx.macaddr=DC:A6:32:xx:xx:xx vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200 elevator=noop
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
Raspberry PI 4 Kodi - Error: Unable to create gui. exiting0