Hi Fabio,
Thanks for your patch, I manually patched buildroot for kmscube, and added to my configuration
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO=y
Now kmscube works fine! And QT finally sees the display with name UNKNOWN1. But all QT application QML/Widget that use platform eglfs throws following error:
[ 4124.912697] [drm:msm_ioctl_gem_submit] *ERROR* invalid cmdstream size: 0
[E] submit failed: -22 (Invalid argument) (msm_submit_sp_flush:292)
[E] bos[0]: handle=3, flags=5 (msm_dump_submit:91)
[E] cmd[0]: type=1, submit_idx=0, submit_offset=0, size=0 (msm_dump_submit:98)
Could not queue DRM page flip on screen UNKNOWN1 (Invalid argument)
just for a double check, I tried glmark2-es2-drm, all scenes is shown correctly on display, but on every scene, I can see the same error of the Qt application except the last row about DRM page flip:
[ 5191.207844] [drm:msm_ioctl_gem_submit] *ERROR* invalid cmdstream size: 0w:242)
[I] GMEM size: 0x00020000 (msm_pipe_new:243)
[E] submit failed: -22 (Invalid argument) (msm_submit_sp_flush:292)
[E] bos[0]: handle=12, flags=5 (msm_dump_submit:91)
[E] cmd[0]: type=1, submit_idx=0, submit_offset=0, size=0 (msm_dump_submit:98)
Maybe Adreno A201 gpu with freedreno require different parameter for Qt cross-compile? Or maybe I need to patch Qt configuration on buildroot like kmscube?
Regards,
Francesco Agostini