by foobar » Fri Feb 26, 2021 4:56 pm
Just bought myself a second hdmi audio extractor for testing. Before I start testing with graysky's "experiments" I just want to start the whole update process from scratch, explaining my current kodi 18.9 setup first and report the steps I take. I see many users encountering problems with the kodi 19 upgrade so here it goes.
I have a RPi4 (4GB) with arch linux armv7 and kodi-rbp4 18.9-4 with kodi-rbp-dev 18.9-4. I only have one user named "user" which has sudo priviliges. Instead of using the kodi service file which requires kodi user and group I have a bash script on my home folder running on startup containing "/usr/bin/kodi-standalone". I also added user to the video group. This way when kodi starts it is running as "user" and a .kodi folder containing the kodi profile is created in my home folder. That's the way I have set things up starting with kodi in 2013 and I have never encountered any problems with updating.
My kodi setup includes a lot of automation using kodi's callback script and a dozen of pythons scripts which use the gpio pins to drive relays controlling my monitor, active speakers and ambilight. The active speakers get their input from an HDMI audio extractor connected to hdmi0. I created various xml scripts mapping these scripts to my remote. After booting kodi, my monitor is still off and when I press any key on the remote it powers up. After one hour of inactivity (no key presses on the remote), the monitor shuts off and also the active speakers and ambilight if activated. Saves the planet and my electricity bill.
Further there's hyperion.ng-git for the ambilight and kodi-addon-pvr-hts (both from AUR) for live TV. On kodi there's YouTube and Keymap Editor and added sources from my NFS for watching movies, videos and pictures.
I cloned the sd card and put it in my test RPi4. Some modifications were made, I disabled the callback script add-on since I'm directly on my test monitor without relays in between. I also had to comment the edid entry in /boot/config.txt for the same reason. At first I had no sound after rebooting. I had to add hdmi_drive=2 to force sound over hdmi. Now I have sound on the little speaker connected to the hdmi audio extractor which connects to hdmi0 output of the Pi. Before updating here are my current cmdline and config:
$this->bbcode_second_pass_code('', '
/boot/cmdline.txt:
root=/dev/mmcblk0p2 rw rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 audit=0
')
$this->bbcode_second_pass_code('', '
/boot/config.txt:
initramfs initramfs-linux.img followkernel
gpu_mem=320
hdmi_enable_4kp60=1
#hdmi_edid_file=1
hdmi_drive=2
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1920 1080 60 3 0 0 1
max_framebuffer_width=1920
max_framebuffer_height=1080
dtoverlay=vc4-fkms-v3d
dtparam=audio=on
dtparam=spi=on
')
The dtparam=spi=on is for my ambilight.
The last update was on 2020-11-30, so here we go:
$this->bbcode_second_pass_code('', '
sudo pacman -Syu
[sudo] password for user:
:: Synchronizing package databases...
core 219.7 KiB 5.36 MiB/s 00:00 [######################] 100%
extra 2.3 MiB 7.14 MiB/s 00:00 [######################] 100%
community 5.1 MiB 8.63 MiB/s 00:01 [######################] 100%
alarm 114.2 KiB 11.1 MiB/s 00:00 [######################] 100%
aur is up to date
:: Starting full system upgrade...
:: Replace kodi-rbp-dev with alarm/kodi-rpi-legacy-dev? [Y/n] > Y
:: Replace kodi-rbp4 with alarm/kodi-rpi? [Y/n] > Y
..
132/177) installing kodi-rpi [######################] 100%
-> Remove any tweaks made to /boot/config.txt now!
-> This includes lines such as gpu_mem=...
-> Add the following to /boot/config.txt or else kodi will not work.
[all]
include kodi.config.txt
..
sudo pacdiff:
/boot/config.txt.pacnew suggests dtoverlay=vc4-kms-v3d > removed pacnew
/boot/cmdline.txt.pacnew suggest replacing ttyAMA0 with serial0 > removed pacnew
')
After reboot kodi starts rebuilding libraries and verifying add-ons. Callback Service and Tvheadend HTSP Client are not compatible and disbled, Ambilight (hyperion.ng-git) is not working.
Note that at this point I have NOT followed kodi-rpi /boot/config.txt instructions as described during update process. There is however /boot/kodi.config.txt containing
$this->bbcode_second_pass_code('', '
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
')
but I have NOT included it in /boot/config.txt.
So now I have:
$this->bbcode_second_pass_code('', '
uname -srm
Linux 5.10.17-2-ARCH armv7l
sudo pacman -Qs kodi
local/kodi-addon-pvr-hts 4.4.21-1 (kodi-addons)
Tvheadend HTSP PVR client addon for Kodi
local/kodi-platform 20190726.809c5e9-20
platform library for external kodi addons
local/kodi-rpi 19.0-4
Media player and entertainment hub for Raspberry Pi 3/4/400, gbm fork
local/kodi-rpi-legacy-dev 19.0-4
Kodi dev files for Raspberry Pi 2, gbm fork
local/p8-platform 2.1.0.1-4
Platform support library used by libCEC and binary add-ons for Kodi
')
And on kodi Settings > System > Audio > Audio output device:
bcm2835 HDMI 1 (default)
bcm2835 Headphones
So I'm not sure about the kodi-rpi-legacy-dev, but I'm definitely on a working kodi 19 and I have sound over hdmi using my hdmi audio extractor!
I will be testing further with the pacman suggestion for modifying kodi config.txt.
Last edited by
foobar on Sun Feb 28, 2021 9:08 am, edited 1 time in total.