2021-02-10, 16:32
Oh it seems I have an issue with drm, https://paste.kodi.tv/oguraxinik.kodi
(2021-02-10, 16:32)Gonto Wrote: Oh it seems I have an issue with drm, https://paste.kodi.tv/oguraxinik.kodi
(2021-02-11, 01:56)wagnerch42 Wrote:No, I was already using dtoverlay=vc4-kms-v3d-pi4,cma-256 at this time, but I had an issue to print my modules with lsmod so I've reinstalled upstream kernel properly and now it works smoothly(2021-02-10, 16:32)Gonto Wrote: Oh it seems I have an issue with drm, https://paste.kodi.tv/oguraxinik.kodi
I think you have to run the kms overlay, instead of fkms. That would be my guess here.
(2021-02-12, 22:44)HDmaniac Wrote: Hey guys! I tried following this guide a few months ago, as well as the documentation on GitHub, but to no avail. It's kind of confusing how I should go about compiling it now, with all the different links and terminal commands, I'm not quite sure how to read this whole thread tbh .I'll try my best, before posting my problem with the resulting binary ;-)
Is any kind soul willing to put together a quick guide? It doesn't have to be too detailed, but just some clear idea how I should now go about compiling Kodi for and RPi4 running Raspbian would be a great help and much appreciated.
sudo apt install git debhelper autoconf automake autopoint gettext autotools-dev cmake curl default-jre doxygen gawk gcc gdc gperf libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev libbluray-dev libbz2-dev libcdio-dev libp8-platform-dev libcrossguid-dev libcurl4-openssl-dev libcwiid-dev libfstrcmp-dev libgcrypt-dev libgif-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libgnutls28-dev libgpg-error-dev libiso9660-dev libjpeg-dev liblcms2-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libshairplay-dev libsmbclient-dev libsqlite3-dev libssl-dev libtag1-dev libtiff5-dev libtinyxml-dev libtool libudev-dev libva-dev libvdpau-dev libvorbis-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev lsb-release python3-dev python3-pil rapidjson-dev swig unzip uuid-dev yasm zip zlib1g-dev libdrm-dev libinput-dev libxkbcommon-dev libunistring-dev samba-common-bin liblirc-dev
git clone https://github.com/xbmc/xbmc kodi
cd kodi
mkdir kodi-build
cd kodi-build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=gbm -DAPP_RENDER_SYSTEM=gles -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF -DENABLE_DEBUGFISSION=OFF -DENABLE_TESTING=OFF -DENABLE_INTERNAL_FLATBUFFERS=ON -DENABLE_INTERNAL_FFMPEG=ON -DENABLE_INTERNAL_SPDLOG=ON -DENABLE_INTERNAL_FMT=ON
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gles -DENABLE_DEBUGFISSION=OFF -DENABLE_TESTING=OFF -DENABLE_INTERNAL_FLATBUFFERS=ON -DENABLE_INTERNAL_FFMPEG=ON -DENABLE_INTERNAL_SPDLOG=ON -DENABLE_INTERNAL_FMT=ON
cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
./kodi-gbm
./kodi-x11
sudo make install
(2021-02-21, 21:45)rascas Wrote: You need some udev rules for Kodi to work as a normal use. Maybe also some lines in the config.txt. I think that was talked about on the first comments.
dtoverlay=vc4-fkms-v3d,cma-256
dtoverlay=rpivid-v4l2
drwxr-xr-x 3 root root 120 Feb 21 18:46 .
drwxr-xr-x 19 root root 3860 Feb 21 18:46 ..
drwxr-xr-x 2 root root 100 Feb 21 18:46 by-path
crw-rw---- 1 root video 226, 0 Feb 21 18:46 card0
crw-rw---- 1 root video 226, 1 Feb 21 18:46 card1
crw-rw---- 1 root render 226, 128 Feb 21 18:46 renderD128
2021-02-21 23:10:47.036 T:1805 DEBUG <general>: CLibInputHandler:eviceAdded - pointer type device added: gpio_ir_recv (event3)
2021-02-21 23:10:47.036 T:1805 DEBUG <general>: CLibInputHandler:eviceAdded - keyboard type device added: gpio_ir_recv (event3)
pi@raspberrypi:/etc/lirc$ ls -al /dev/input
insgesamt 0
drwxr-xr-x 4 root root 200 Feb 21 22:39 .
drwxr-xr-x 19 root root 3860 Feb 21 22:39 ..
drwxr-xr-x 2 root root 120 Feb 21 22:39 by-id
drwxr-xr-x 2 root root 140 Feb 21 22:39 by-path
crw-rw---- 1 root input 13, 64 Feb 21 22:39 event0
crw-rw---- 1 root input 13, 65 Feb 21 22:39 event1
crw-rw---- 1 root input 13, 66 Feb 21 22:39 event2
crw-rw---- 1 root input 13, 67 Feb 21 22:39 event3
crw-rw---- 1 root input 13, 63 Feb 21 22:39 mice
crw-rw---- 1 root input 13, 32 Feb 21 22:39 mouse0
pi@raspberrypi:/etc/lirc$ ls -al /dev/input/by-path/
insgesamt 0
drwxr-xr-x 2 root root 140 Feb 21 22:39 .
drwxr-xr-x 4 root root 200 Feb 21 22:39 ..
lrwxrwxrwx 1 root root 9 Feb 21 22:39 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3.3:1.0-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 Feb 21 22:39 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3.3:1.1-event -> ../event1
lrwxrwxrwx 1 root root 9 Feb 21 22:39 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3.4:1.0-event-mouse -> ../event2
lrwxrwxrwx 1 root root 9 Feb 21 22:39 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3.4:1.0-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 Feb 21 22:39 platform-ir-receiver@11-event -> ../event3
(2021-02-21, 23:32)derMart Wrote: Well so, in addition to video and input, the target user needs to be inside the render group.
sudo usermod -a -G input,video,render pi
(2021-02-22, 00:53)HDmaniac Wrote: Thank you so much for that guide! Much appreciated! I'll try it out tomorrow!Exactly. if pi is not already in those groups, you additionally need to logout and login again, see https://github.com/xbmc/xbmc/blob/master...E.Linux.md
(2021-02-21, 23:32)derMart Wrote: Well so, in addition to video and input, the target user needs to be inside the render group.
Okay so am I right in thinking once it's all installed I run:
Code:sudo usermod -a -G input,video,render pi