How-To, non-X11: Get 4K (>2560x1600) framebuffer, DRM, GBM, Kodi on HDMI
#9
Okay, recompiling Kodi fixed it.
Now kodi also plays videos without stuttering.
Haven't downloaded Big Buck Bunny yet, wireless not so stable, will have to transfer it manually another time.
But all my videos that were stuttering are no longer dropping any frames at all.

I played a 4K video from kodi-gbm while compiling advance mame from a remote SSH session using 6 parallel jobs ("-j6") and it didn't stutter the video even once!

- - -

When I first compiled kodi 18rc1, it kernel paniced in the DRM driver, so I went back to 18.0b5.
Then 18.0rc2 came out, but same thing - kernel panic in DRM when I tried to launch it.
I am currently only able to build 18.0b5.



Here's what I run to build kodi 18.0b5. This is assuming you ALREADY have EVERY needed dependency installed ("package" and/or "package-dev" version(s)).
 I used "apt install" to install literally every dependency and library except for flatbuffers I think. I didn't make a list, but I should have, and will one day.
But anyway, ayufan's repository has 99% of the needed packages.
When doing the very first cmake step below, it will tell you if it can't find things, you can 'apt install' whatever is missing if you understand the package naming conventions.
The second cmake line can also tell you about missing items through undefined references, but it's harder to interpret. Still, I was successful. I'll definitely have to make that whole 'apt install' list to help this out.

Also, personally, I am NOT building it for X11 at all; GBM only. Your mileage may vary if you do something different, etc.

Code:
cd /home/rock64/
mkdir kodi-build

wget https://github.com/xbmc/xbmc/archive/18.0b5-Leia.tar.gz
tar xf 18.0b5-Leia.tar.gz
mv xbmc-18.0b5-Leia kodi

cd kodi-build
cmake -j10 ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=gbm -DGBM_RENDER_SYSTEM=gles -Dwith-ffmpeg=shared -Ddisable-x11=true
cmake --build . -- VERBOSE=0 -j10
make install

cd ../kodi
make -j10 -C tools/depends/target/binary-addons PREFIX=/usr/local


Messages In This Thread
RE: How-To, non-X11: Get 4K (>2560x1600) framebuffer, DRM, GBM, Kodi on HDMI - by fosf0r - 12-07-2018, 08:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RockPro64 - HDMI and higher resolutions PakoSt 0 1,606 11-16-2021, 03:48 PM
Last Post: PakoSt
  OMV to Kodi Streaming Issues cogito808 12 18,922 05-25-2021, 08:30 AM
Last Post: helpmerock
  RockPro64 Linux Manjaro HDMI 4K mkne 12 16,462 05-03-2020, 07:23 AM
Last Post: PakoSt
  Debian, Kodi and the Spotify plugin. Pineapple 1 3,186 10-14-2019, 10:02 PM
Last Post: SBCraok
  Linux distro that will work with Kodi? SBCraok 9 13,374 09-18-2019, 02:12 AM
Last Post: mtrcycllvr
  Does anyone have kodi working? blahblahblah 6 8,252 07-19-2019, 08:09 AM
Last Post: PackElend
  issue with kodi freezing randomly Slam 3 4,429 05-24-2019, 03:53 PM
Last Post: mknawabi
  HDMI audio solved yoramro 2 6,030 01-29-2019, 10:01 PM
Last Post: fczuardi
  kodi and /dev/rkdev catalinii 0 2,593 08-09-2018, 10:38 PM
Last Post: catalinii

Forum Jump:


Users browsing this thread: 1 Guest(s)