Drm driver fails to draw

Hi, I’m trying to make the lv_port_linux_frame_buffer port work on an Orange Pi Zero 2.

So far, I haven’t been able to make it draw. The drm_flush method is being called, but nothing shows up on the screen. fbdev works but without vsync it’s not great.

I’ve been able to compile and build this example:

And it works fine.

Here is essentially how I’m initializing it.

    lv_disp_draw_buf_init(&disp_buf, buf, buf2, DISP_BUF_SIZE);

    /*Initialize and register a display driver*/
    disp_drv.draw_buf = &disp_buf;
    disp_drv.flush_cb = drm_flush;
    disp_drv.hor_res = 800;
    disp_drv.ver_res = 480;
    disp_drv.full_refresh = true;


Please open an issue in the lv_drivers repo.