Raspberry pi 4 / kodi

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Raspberry pi 4 / kodi

Postby sajuuk » Tue Aug 27, 2019 5:18 pm

Hi all,

I'm trying to run kodi on the rpi4 but I'm a bit lost.
This a clean install from the provided arch image.

Firstly I installed the kodi-rbp4 package and enabled de kodi service to start kodi at launch. (I don't have any other graphical application)
But on launch Kodi gave me an error telling that the GUI couldn't be created.

I figured I was missing some video drivers or something like that.

After a bit of digging I found that I could enable the video driver by adding those lines to my config.txt.

$this->bbcode_second_pass_code('', '
gpu_mem=128
dtoverlay=vc4-kms-v3d
')

Now kodi boot but the screen itself is still black.
I checked on the two micro-hdmi and there is no output.
Also the rpi itself seems a bit sluggish (first connect in SSH is slow and some commands seems to take longer to run).

There are no errors in kodi.log only this at the end

$this->bbcode_second_pass_code('', '019-08-27 17:01:47.016 T:2976907280 NOTICE: Raspberry PI firmware version: Aug 22 2019 13:55:50
Copyright (c) 2012 Broadcom
version 5bcbe61d88681477f5415cf60ae211bcdcd416d3 (clean) (release) (start)
2019-08-27 17:01:47.016 T:2976907280 NOTICE: ARM mem: 896MB GPU mem: 128MB MPG2:0 WVC1:0
2019-08-27 17:01:47.017 T:2976907280 NOTICE: Config:
arm_freq=1500
audio_pwm_mode=514
config_hdmi_boost=5
core_freq=500
core_freq_min=200
disable_commandline_tags=2
disable_l2cache=1
display_hdmi_rotate=-1
display_lcd_rotate=-1
enable_gic=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=500
gpu_freq_min=500
hdmi_channel_map=8
init_uart_clock=0x2dc6c00
lcd_framerate=60
mask_gpu_interrupt0=3072
mask_gpu_interrupt1=26370
pause_burst_frames=1
program_serial_random=1
ramfsaddr=-1
hdmi_force_cec_address:0=65535
hdmi_force_cec_address:1=65535
hdmi_pixel_freq_limit:0=0x11e1a300
hdmi_pixel_freq_limit:1=0x11e1a300
2019-08-27 17:01:47.017 T:2976907280 NOTICE: Config:
device_tree=-
ramfsfile=initramfs-linux.img
hdmi_cvt:0=
hdmi_cvt:1=
hdmi_edid_filename:0=
hdmi_edid_filename:1=
hdmi_timings:0=
hdmi_timings:1=')

Any idea what I'm doing wrong ?

Thanks
sajuuk
 
Posts: 14
Joined: Thu Jul 12, 2012 10:58 am

Re: Raspberry pi 4 / kodi

Postby sajuuk » Tue Aug 27, 2019 5:30 pm

Sometimes I guess you only have to ask the question to find the answer by yourself...

So I had added the following line to my config.txt
$this->bbcode_second_pass_code('', 'dtoverlay=vc4-kms-v3d')

But I should have used
$this->bbcode_second_pass_code('', 'dtoverlay=vc4-fkms-v3d')
(notice the missing f which tell to use the fake driver)

No it works corretly !
sajuuk
 
Posts: 14
Joined: Thu Jul 12, 2012 10:58 am

Re: Raspberry pi 4 / kodi

Postby graysky » Tue Aug 27, 2019 6:22 pm

Pacman tells you this when you install:
$this->bbcode_second_pass_code('', '[2019-08-02 19:33] [ALPM] installed kodi-rbp4 (18.3-2)
[2019-08-02 19:33] [ALPM-SCRIPTLET] ****************************************************************
[2019-08-02 19:33] [ALPM-SCRIPTLET] Make sure the following lines are added to /boot/config.txt
[2019-08-02 19:33] [ALPM-SCRIPTLET] gpu_mem=320
[2019-08-02 19:33] [ALPM-SCRIPTLET] dtoverlay=vc4-fkms-v3d
[2019-08-02 19:33] [ALPM-SCRIPTLET] dtparam=audio=on
[2019-08-02 19:33] [ALPM-SCRIPTLET] ****************************************************************
')
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry pi 4 / kodi

Postby sajuuk » Tue Aug 27, 2019 8:14 pm

Thanks I missed that...

Is there some post install step/configuration to do afterwards ?
I think the playback is a little choppy on my rpi.
sajuuk
 
Posts: 14
Joined: Thu Jul 12, 2012 10:58 am

Re: Raspberry pi 4 / kodi

Postby graysky » Tue Aug 27, 2019 9:07 pm

Just those modifications.
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry pi 4 / kodi

Postby sajuuk » Tue Aug 27, 2019 9:23 pm

Ok thanks.
I had some thermal problem, with the case open and a heatsink on the cpu everything runs smoothly.
sajuuk
 
Posts: 14
Joined: Thu Jul 12, 2012 10:58 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 21 guests