Hi Milos, I'm not exactly sure what problem are you solving. Do you see anything on your LVDS screen? Lima driver is for graphics/OpenGL acceleration. It is separate from DRM display drivers, but you probably want to have it too (you should expect both /dev/dri/card0 and /dev/dri/card1 present) .
I have A20 (cubieboard) running mainline kernel with lima and DRM drivers with these device tree and kernel configs: * https://github.com/Openvario/meta-openvario/blob/warrior/recipes-kernel/linux/linux-mainline/openvario-7-CH070.dts * https://github.com/Openvario/meta-openvario/blob/warrior/recipes-kernel/linux/linux-mainline/openvario-common.dts * https://github.com/Openvario/meta-openvario/blob/warrior/recipes-kernel/linux/linux-mainline/arm/defconfig I can post dmesg output of a working system too if you are interested. On Wednesday, August 5, 2020 at 6:17:22 PM UTC+3, Milos Ladni wrote: > > Hi all, > > I am trying to port my custom board from legacy kernel 3.4 to the mainline. > I am using an LVDS display with a capacitive touchscreen and it works > fine. For the test, i am currently running Armbian Debian Buster without > Desktop environment because i need only one application on top of all. > I additionally installed manually by apt-get X window and ratpoison window > manager. Run firefox which is used for Javascript GUI interpretation, Cedar > VE for encoding/decoding and DisplayEngine for showing the video on display > on a particular place and particular size. > On mainline, i recompiled Cedar VE instead of Cedrus because i already > wrote all needed features for both Encoding/Decoding H264 and MJPEG for old > legacy kernel and because encoding is not currently supported by Cedrus. > Under legacy kernel i wrote my VideoEngine application and managed to get > 4 simultaneous operation (Encode H264 and MJPEG and Decode H264 and MJPEG), > all this works smoothly for a long time in legacy kernel 3.4 with any issue. > > For mainline, i recompiled CedarVE from uboborov repo: > https://github.com/uboborov/sunxi-cedar-mainline. > I already tested CedarVE Encoder part but for Decoder i need to show video > on my display on particular place with particular resolution. > On old kernel, there was /dev/disp node which was used for showing video > across firefox application in a particular window place or even in full > screen. > > My question is how to do this in Mainline kernel? > I set my dtb and enable Display Engine but i am stuck there. > I see in dmesg that framebuffer is switched from simple to sun4i-drm-fb > and i have /dev/dri/card0 device node but i am not sure what is my next > step. > Do i need to create some drm plane for that purpose and how? Is there any > simple example of how to do this? > > Also when i run '$startx ratpoison' in its output i can see next message: > 'failed to load driver: sun4i-drm'. Does it mean that X window could not > use DRM or what? I am not sure if drm is working or not. And did i create > drm display engine pipeline as well? > Also, i think that firefox which i am using for running my Javascript GUI > is an overkill a little bit. Does someone else can recommend some other > interpreter? > Do i need to compile and run lima driver for my purpose? > > Sorry for long description. I also attached my dtb files and dmesg output > here. > > Thanks, > Milos Ladicorbic > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/853b7661-a9c0-442d-922f-a35559f2bdefo%40googlegroups.com.
