Help for 4.19 needed

Hi,

because 4.19 will be the next lts-kernel (see https://www.kernel.org/releases.html), i need some help to get features from 4.14 working.

i pushed my work here https://github.com/frank-w/BPI-R2-4.14/tree/4.19-rc

what is working (additional to mainline):

  • wifi-driver
  • poweroff
  • hdmi+fbdev (hdmi-branch)
  • thermal ( cat /sys/class/thermal/thermal_zone0/temp )

what is not working:

i hope some people help me getting things to work. maybe other features are missing, please test and tell me. you find compiled kernels on releases-tab of github

also want to kick-off wmt-tools from wifi-driver: https://github.com/frank-w/BPI-R2-4.14/tree/wifi_patching here i need most help (currently it crashes because not finding regulator nodes which are present)

regards Frank

as for hdmi, i added the patches (modified some) except fbdev and got a xserver displayed :wink:

if i add fbdev (hdmi#5_fbdev_cd45c8c1e5df98dae58ad916c06dbee8726f483a.patch (14,3 KB) ) i get this build-errors:

drivers/gpu/drm/mediatek/mtk_drm_fb.c: In function 'mtk_drm_framebuffer_create':
drivers/gpu/drm/mediatek/mtk_drm_fb.c:65:9: error: assignment to 'struct mtk_drm_fb *' from incompatible pointer type 'struct drm_framebuffer *' [-Werror=incompatible-pointer-types]
  mtk_fb = mtk_drm_framebuffer_init(dev, mode, obj);
         ^
drivers/gpu/drm/mediatek/mtk_drm_fb.c:69:16: error: dereferencing pointer to incomplete type 'struct mtk_drm_fb'
  return &mtk_fb->base;
                ^~
drivers/gpu/drm/mediatek/mtk_drm_fb.c:70:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'drivers/gpu/drm/mediatek/mtk_drm_fb.o' failed
make[4]: *** [drivers/gpu/drm/mediatek/mtk_drm_fb.o] Error 1
make[4]: *** Waiting for unfinished jobs....
drivers/gpu/drm/mediatek/mtk_drm_drv.c:207:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  .main_path = mt2712_mtk_ddp_main,
               ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_drv.c:209:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  .ext_path = mt2712_mtk_ddp_ext,
              ^~~~~~~~~~~~~~~~~~
  CC      drivers/video/fbdev/core/fbmem.o
  CC      drivers/video/fbdev/core/fbcon.o
  CC      drivers/video/fbdev/core/bitblit.o
  CC      drivers/video/fbdev/core/softcursor.o
scripts/Makefile.build:548: recipe for target 'drivers/gpu/drm/mediatek' failed
make[3]: *** [drivers/gpu/drm/mediatek] Error 2

as far as i see in 4.16 each function in this file has returntype mtk_drm_fb…in 4.19 it is a generic drm_framebuffer

so i added this type, but can’t get it running by changing return-type alone, tried now to fix by using drm_framebuffer

struct drm_framebuffer *mtk_drm_framebuffer_create(...) {
struct drm_framebuffer *mtk_fb;
...
return mtk_fb;//&mtk_fb->base;
}

compiles fine…and i got a FB-Console over HDMI :wink:

1 Like