[rpi 4 8gb] Can't start Kodi

Having issues with your DietPi installation or found a bug? Post it here.
snakebyte
Posts: 4
Joined: Fri Sep 17, 2021 11:34 pm

[rpi 4 8gb] Can't start Kodi

Post by snakebyte »

I have a RPI 4 8 GB version

I have installed Kodi using dietpi-software helper and setup autostart with it (with dietpi-config)

When the RPI boot, I get the following error

Code: Select all

libva error va_getdrivername() failed with unknown libva error driver_name=(null)
It's the same with both the two display settings vc4-kms-v3d-pi4 and vc4-fkms-v3d

Am I missing some libraries or what?

Is of software that can be installed via dietpi-software supposed to work as is, specially on a RPI ?
User avatar
Joulinar
Posts: 5978
Joined: Sat Nov 16, 2019 12:49 am

Re: [rpi 4 8gb] Can't start Kodi

Post by Joulinar »

Pls could you share some more information on your system

DietPi version | cat /boot/dietpi/.version
Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
Kernel version | uname -a
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
snakebyte
Posts: 4
Joined: Fri Sep 17, 2021 11:34 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by snakebyte »

Code: Select all

jarvis@jarvis:~$ cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=5
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
jarvis@jarvis:~$ echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 1
jarvis@jarvis:~$ uname -a
Linux jarvis 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
User avatar
Joulinar
Posts: 5978
Joined: Sat Nov 16, 2019 12:49 am

Re: [rpi 4 8gb] Can't start Kodi

Post by Joulinar »

If you like, you could try our current beta release 7.6 that will become office release this weekend. There we provide an own Kodi version that should work on Bullseye.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
snakebyte
Posts: 4
Joined: Fri Sep 17, 2021 11:34 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by snakebyte »

Followed this to update my dietpi to 7.6.1 beta version

Uninstalled and reinstalled kodi via dietpi-software

Same error

I also tried to launch apt update && apt upgrade && apt full-upgrade but nothing was updated

I don't get it... I am the only person that can't get work Kodi on the latest version of dietpi on a standard raspberry pi 4?
ppa
Posts: 8
Joined: Sat Sep 18, 2021 10:51 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by ppa »

Hi, I've had this same error for a couple of days on my rpi 4. I just updated dietpi to the 7.6 version but the problem is still there.

The error is:

Code: Select all

root@DietPi:~# startkodi
libva info: VA-API version 1.10.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

Code: Select all

root@DietPi:~# cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=6
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='not applicable'
root@DietPi:~# echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 1
root@DietPi:~# uname -a
Linux DietPi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
Do you guys have any ideas?
snakebyte
Posts: 4
Joined: Fri Sep 17, 2021 11:34 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by snakebyte »

I had been hating every debian based distro

And now I remember why

- If you install this version, you can't get this
- if you install that version, you can' get that
- if you want this, add this repo but it doesn't work with that

DietPi is obviosly the same because it's a Raspbian

Just found a quick way to create an Arch Arm aarch64 image for my pi4 and it works without any trouble and the aur repo is FULL of every latest version software. There is the official pi kernel too on arch official repo.

In just a couple of hours I managed to install kodi 19.1 with autostart, while you can't install that on any based raspbian based os. Found that in every raspberry forums.

Sorry guys, DietPI is a nice project but... no
ppa
Posts: 8
Joined: Sat Sep 18, 2021 10:51 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by ppa »

I'm trying to make this work. Googling didn't give me an answer, but I think I have advanced a little bit. Following some comments I found here: https://github.com/intel/libva/issues/278 , I set LIBVA_TRACE=1 and then I forced libva to pick a driver (I don't know what are the correct ones). This is the result:

Code: Select all

root@DietPi:~# export  LIBVA_TRACE=1
root@DietPi:~# export LIBVA_DRIVER_NAME=i965
root@DietPi:~# startkodi
libva info: Open new log file 1.133217.thd-0x0000051f for the thread 0x0000051f
libva info: LIBVA_TRACE is on, save log into 1.133217.thd-0x0000051f
libva info: VA-API version 1.10.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
Then I checked /usr/lib/arm-linux-gnueabihf/dri/ and I found that there are no files called *_drv_video.so:

Code: Select all

root@DietPi:~# ls /usr/lib/arm-linux-gnueabihf/dri 
armada-drm_dri.so   kms_swrast_dri.so     panfrost_dri.so  st7735r_dri.so
etnaviv_dri.so      lima_dri.so           pl111_dri.so     stm_dri.so
exynos_dri.so       mcde_dri.so           r200_dri.so      sun4i-drm_dri.so
hx8357d_dri.so      mediatek_dri.so       r300_dri.so      swrast_dri.so
ili9225_dri.so      meson_dri.so          r600_dri.so      tegra_dri.so
ili9341_dri.so      mi0283qt_dri.so       radeon_dri.so    v3d_dri.so
imx-dcss_dri.so     msm_dri.so            radeonsi_dri.so  vc4_dri.so
imx-drm_dri.so      mxsfb-drm_dri.so      repaper_dri.so   virtio_gpu_dri.so
ingenic-drm_dri.so  nouveau_dri.so        rockchip_dri.so  zink_dri.so
kgsl_dri.so         nouveau_vieux_dri.so  st7586_dri.so
The original error said va_getdrivername() failed. My guess is that we are either not pointing to the path where the correct drivers are or something has changed (in the recent updates or as a result of something I did) and the file names are no longer the same.
User avatar
MichaIng
Site Admin
Posts: 3351
Joined: Sat Nov 18, 2017 6:21 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by MichaIng »

Try the vc4_dri.so, with an Intel GPU driver of course it cannot work on an RPi ;). On RPi Zero it worked well. I'll test it on other RPi models next week.
ppa
Posts: 8
Joined: Sat Sep 18, 2021 10:51 pm

Re: [rpi 4 8gb] Can't start Kodi

Post by ppa »

I thought of that and it didn't work. It looks for the vc4_drv_video.so

Code: Select all

root@DietPi:~# export LIBVA_DRIVER_NAME=vc4
root@DietPi:~# startkodi
libva info: Open new log file 1.185222.thd-0x00000809 for the thread 0x00000809
libva info: LIBVA_TRACE is on, save log into 1.185222.thd-0x00000809
libva info: VA-API version 1.10.0
libva info: User environment variable requested driver 'vc4'
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/vc4_drv_video.so
libva info: va_openDriver() returns -1
I tried a couple more things. I installed mesa-va-drivers via apt install and now I can see that some of the drivers have the *_drv_video.so, for example r600_drv_video.so but not vc4.

Code: Select all

root@DietPi:~# ls /usr/lib/arm-linux-gnueabihf/dri/
armada-drm_dri.so   meson_dri.so          radeonsi_dri.so
etnaviv_dri.so      mi0283qt_dri.so       radeonsi_drv_video.so
exynos_dri.so       msm_dri.so            repaper_dri.so
hx8357d_dri.so      mxsfb-drm_dri.so      rockchip_dri.so
ili9225_dri.so      nouveau_dri.so        st7586_dri.so
ili9341_dri.so      nouveau_drv_video.so  st7735r_dri.so
imx-dcss_dri.so     nouveau_vieux_dri.so  stm_dri.so
imx-drm_dri.so      panfrost_dri.so       sun4i-drm_dri.so
ingenic-drm_dri.so  pl111_dri.so          swrast_dri.so
kgsl_dri.so         r200_dri.so           tegra_dri.so
kms_swrast_dri.so   r300_dri.so           v3d_dri.so
lima_dri.so         r600_dri.so           vc4_dri.so
mcde_dri.so         r600_drv_video.so     virtio_gpu_dri.so
mediatek_dri.so     radeon_dri.so         zink_dri.so
When I tried to use one of the drivers that end in _drv_video.so, this happened:

Code: Select all

root@DietPi:~# export LIBVA_DRIVER_NAME=nouveau
root@DietPi:~# startkodi
libva info: Open new log file 1.185826.thd-0x00000973 for the thread 0x00000973
libva info: LIBVA_TRACE is on, save log into 1.185826.thd-0x00000973
libva info: VA-API version 1.10.0
libva info: User environment variable requested driver 'nouveau'
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_10
vc4: driver missing
libva error: /usr/lib/arm-linux-gnueabihf/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns 2
Thanks for looking at this.
Post Reply