How-To, non-X11: Get 4K (>2560x1600) framebuffer, DRM, GBM, Kodi on HDMI
#1
Lightbulb 
This is not about X11/xorg, this is text mode/framebuffer stuff only.
You should be at an init level that doesn't have X running.
Sorry, I don't actually know if this will mess up your X configuration as I do not use X.

I've cut down all the steps for brevity; one should know how to compile kernels and move around the system already, etc.

EDIT: THIS IS THE WRONG WAY TO DO THIS.
THE CORRECT WAY IS TO SET THE DTS TO USE "VOPB" INSTEAD OF "VOPL", *NOT* FORCING VOPL TO USE A HIGHER OUTPUT RES.
I WILL REPLACE THE FOLLOWING STEPS WITH THE CORRECT FIX ASAP:

1) Grab the source to your current ayufan kernel
(I'm using linux-kernel-4.4.138-1094-rockchip-ayufan in this demo)
2) tar xf linux-kernel-4.4.138-1094-rockchip-ayufan.tar.gz
3) cd linux-kernel-4.4.138-1094-rockchip-ayufan/drivers/gpu/drm/rockchip
4) Use your favorite editor on rockchip_vop_reg.c
5) Now change the hardcoded limit for rk3399_vop_lit.
Find the vop_data struct for rk3399_vop_lit which starts with this text:  static const struct vop_data rk3399_vop_lit {
The property to find and edit within that struct  is:  .max_output = {2560, 1600}
6) I changed my max_output to this:  .max_output = {3840, 2160}
7) Then I recompiled the kernel. For me, that's: make all modules modules_install dtbs_install firmware_install headers_install install -j6
8) Then I manually clean up the mess that postinst.d makes within /boot/extlinux/extlinux.conf
(I literally delete all the lines except for the timeout, menu, label, kernel, initrd, devicetreedir, and append lines for this kernel I just installed)

Worked instantly when I rebooted into the new kernel.
Framebuffer came up in 4K mode and it was GIANT!
Then, when I launched Kodi (which I compiled for DRM with GBM), I was able to whitelist my TV's 4K resolutions (which were never listed before) or even switch the interface to use 4K (I don't suggest doing that) and when I go to play a 4K video, it switches resolution to 4K.

rkmpv at the command line now also switches to 4K resolution for me!

Next up would be for one of us to get some of the VPU pieces working and the rkmpp kernel side working so that 4K and HEVC/x265 videos stop dropping frames.


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

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

Forum Jump:


Users browsing this thread: 1 Guest(s)