Kodi unable to reach gui on fresh install [RPI3B + aarch64]

This is for ARMv8 based devices

Kodi unable to reach gui on fresh install [RPI3B + aarch64]

Postby Boblepirate » Mon Apr 05, 2021 12:59 pm

Hello,
I've got a fresh install of archlinux aarch64 on my RPI3B
uname -a
Linux raspberrypi3 5.11.4-1-ARCH #1 SMP Sun Mar 7 23:46:10 UTC 2021 aarch64 GNU/Linux

Inside the RPI there is only a sdcard with boot partition, root partition is on an NFS server.
Please find below my boot.txt, my config.txt and my kodi.config.txt
Code: Select all
# After modifying, run ./mkscr

# Set root partition to the second partition of boot device
#part uuid ${devtype} ${devnum}:2 uuid

#setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"

setenv bootargs console=ttyS1,115200 console=tty0 ip=192.168.1.x:192.168.1.y:192.168.1.z:::eth0:static root=/dev/nfs nfsroot=192.168.1.x:/pi/piname-aarch64/ rw rootwait smsc95xx.macaddr="${usbethaddr}"

if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /Image; then
  if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then
    if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then
      booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
    else
      booti ${kernel_addr_r} - ${fdt_addr_r};
    fi;
  fi;
fi

Code: Select all
enable_uart=1

[all]
include kodi.config.txt

Code: Select all
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1

The RPI start well but kodi is unable to reach the gui, there is only a black screen after the launching screen (blue matrix kodi).
With dmesg i have this error
Code: Select all
[drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:

And when I check dmesg | grep cma, I have only 65536 k cma-reserved (cma-512 is requested in kodi.config.txt)
Code: Select all
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Memory: 832320K/970752K available (16512K kernel code, 3318K rwdata, 7928K rodata, 5312K init, 838K bss, 72896K reserved, 65536K cma-reserved)

It seems like if RPI doesn't read config.txt

Can anyone help me?
Boblepirate
 
Posts: 4
Joined: Mon Apr 05, 2021 12:38 pm

Re: Kodi unable to reach gui on fresh install [RPI3B + aarch

Postby graysky » Mon Apr 05, 2021 1:33 pm

You need to use the rpi kernel to use hardware accel compiled into kodi. For RPi3B I do not remember if linux-raspberrypi4 boots or not. We do not offer aarch64 in linux-raspberrypi. Further, RPi3B needs kodi-rpi-legacy not kodi-rpi.
graysky
 
Posts: 923
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Kodi unable to reach gui on fresh install [RPI3B + aarch

Postby Boblepirate » Mon Apr 05, 2021 2:24 pm

Thank you graysky for your help, but your answer is not completely true. In fact, on the same RPI, I have a working system with linux-raspberrypi (armv7) and kodi-rpi (not the legacy one) and it works.

I was thinking that kodi-rpi works also on aarch64 with RPI3 because when you serach kodi-rpi package for aarch64 on https://archlinuxarm.org/packages, it is written :
Media player and entertainment hub for Raspberry Pi 3/4/400, gbm fork


So are you sure it's not possible ?
Boblepirate
 
Posts: 4
Joined: Mon Apr 05, 2021 12:38 pm

Re: Kodi unable to reach gui on fresh install [RPI3B + aarch

Postby graysky » Mon Apr 05, 2021 3:28 pm

My bad re: kodi-rpi-legacy. I was had RPi2 in my head for some reason. You will need the kernel package that provides non-mainlined feature/drivers.

Mainline = linux-aarch64
RPi Foundation fork = linux-raspberrypi and linux-rasbperrypi4

Since you're wanting aarch64, your only option is linux-rasbperrypi4 but I can't remember if that kernel will boot on RPi3B. You will have to try it and have another aarch64 system around to chroot recover if not.
graysky
 
Posts: 923
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Kodi unable to reach gui on fresh install [RPI3B + aarch

Postby Boblepirate » Mon Apr 12, 2021 4:53 pm

Hi Graysky,

Just for fun I try to boot my rpi3b with linux-raspberrypi4, and surprise... it works !
I was abble to start kodi and watch a 1080p video.
Boblepirate
 
Posts: 4
Joined: Mon Apr 05, 2021 12:38 pm

Re: Kodi unable to reach gui on fresh install [RPI3B + aarch

Postby graysky » Mon Apr 12, 2021 6:38 pm

Good. I believe we broke out the rpi4 kernel when a boot issue occurred upstream. I think rpi2 needs linux-raspberrypi bot 3 and 4 can use linux-raspberrypi4.
graysky
 
Posts: 923
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 2 guests