* [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5)
@ 2019-03-07 23:00 Juan A. Rubio
2019-03-08 22:52 ` Peter Seiderer
0 siblings, 1 reply; 5+ messages in thread
From: Juan A. Rubio @ 2019-03-07 23:00 UTC (permalink / raw)
To: buildroot
Hello,
I'm trying to get my Qt 5.6 app to run with the etnaviv driver instead
of vivante. My app has so far been running without any problems with
the vivante driver (I'm using NXP's 4.9.11 kernel). So now I would
like to try and see if I can switch to the community driver and mesa.
These are the variables that I've been exporting with the vivante driver:
FB_MULTI_BUFFER=3
QT_QPA_EGLFS_INTEGRATION=eglfs_viv
For etnaviv, I'm doing:
QT_QPA_EGLFS_INTEGRATION=eglfs_kms
But I'm getting this error::
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/vivante_dri.so: cannot open
shared object file: No such file or directory
failed to load driver: vivante
These are the contents of /usr/lib/dri/
# ls /usr/lib/dri/
etnaviv_dri.so imx-drm_dri.so kms_swrast_dri.so swrast_dri.so
And I'm enabling these packages:
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_DRI_DRIVER=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_TEXTURE_FLOAT=y
BR2_PACKAGE_LIBDRM=y
BR2_PACKAGE_LIBDRM_HAS_ATOMIC=y
BR2_PACKAGE_LIBDRM_ENABLE_ATOMIC=y
BR2_PACKAGE_LIBDRM_ETNAVIV=y
BR2_PACKAGE_KMSXX=y
I'm obviously missing something here. Any help would be very much appreciated.
Thanks,
Juan
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5)
2019-03-07 23:00 [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5) Juan A. Rubio
@ 2019-03-08 22:52 ` Peter Seiderer
2019-03-08 23:04 ` Fabio Estevam
0 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2019-03-08 22:52 UTC (permalink / raw)
To: buildroot
Hello Juan,
On Thu, 7 Mar 2019 23:00:19 +0000, "Juan A. Rubio" <jarubio2001@gmail.com> wrote:
> Hello,
>
> I'm trying to get my Qt 5.6 app to run with the etnaviv driver instead
> of vivante. My app has so far been running without any problems with
> the vivante driver (I'm using NXP's 4.9.11 kernel). So now I would
> like to try and see if I can switch to the community driver and mesa.
>
> These are the variables that I've been exporting with the vivante driver:
> FB_MULTI_BUFFER=3
> QT_QPA_EGLFS_INTEGRATION=eglfs_viv
>
> For etnaviv, I'm doing:
> QT_QPA_EGLFS_INTEGRATION=eglfs_kms
>
> But I'm getting this error::
> gbm: failed to open any driver (search paths /usr/lib/dri)
> gbm: Last dlopen error: /usr/lib/dri/vivante_dri.so: cannot open
> shared object file: No such file or directory
> failed to load driver: vivante
>
> These are the contents of /usr/lib/dri/
> # ls /usr/lib/dri/
> etnaviv_dri.so imx-drm_dri.so kms_swrast_dri.so swrast_dri.so
>
> And I'm enabling these packages:
> BR2_PACKAGE_MESA3D=y
> BR2_PACKAGE_MESA3D_GALLIUM_DRIVER=y
> BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y
> BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
> BR2_PACKAGE_MESA3D_DRI_DRIVER=y
> BR2_PACKAGE_MESA3D_OPENGL_ES=y
> BR2_PACKAGE_MESA3D_OPENGL_EGL=y
> BR2_PACKAGE_MESA3D_OPENGL_TEXTURE_FLOAT=y
>
> BR2_PACKAGE_LIBDRM=y
> BR2_PACKAGE_LIBDRM_HAS_ATOMIC=y
> BR2_PACKAGE_LIBDRM_ENABLE_ATOMIC=y
> BR2_PACKAGE_LIBDRM_ETNAVIV=y
> BR2_PACKAGE_KMSXX=y
>
> I'm obviously missing something here. Any help would be very much appreciated.
Mind to share your complete .config/defconfig?
Did your run an complete re-build (make clean; make), see [1]?
Regards,
Peter
[1] https://buildroot.org/downloads/manual/manual.html#full-rebuild
>
> Thanks,
> Juan
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5)
2019-03-08 22:52 ` Peter Seiderer
@ 2019-03-08 23:04 ` Fabio Estevam
2019-03-08 23:42 ` Juan A. Rubio
0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2019-03-08 23:04 UTC (permalink / raw)
To: buildroot
Hi Juan,
On Fri, Mar 8, 2019 at 7:52 PM Peter Seiderer <ps.report@gmx.net> wrote:
> > I'm obviously missing something here. Any help would be very much appreciated.
>
> Mind to share your complete .config/defconfig?
>
> Did your run an complete re-build (make clean; make), see [1]?
Besides Peter's suggestion, you may try to look at
configs/imx6-sabresd_qt5_defconfig, which generates a QT demo using
Etnaviv.
I wrote some notes about it at:
https://imxdev.gitlab.io/tutorial/Running_QT5.9_with_mainline_kernel_on_mx6sabresd_board/
Hope this helps.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5)
2019-03-08 23:04 ` Fabio Estevam
@ 2019-03-08 23:42 ` Juan A. Rubio
2019-03-09 14:06 ` Fabio Estevam
0 siblings, 1 reply; 5+ messages in thread
From: Juan A. Rubio @ 2019-03-08 23:42 UTC (permalink / raw)
To: buildroot
Peter, Fabio,
Thanks, I did realize that I was missing the QT_QPA_EGLFS_KMS_CONFIG.
After passing the json file, the application started to work, although
I believe with software rendering (QSGRenderThread is using 100% of
CPU). It looks like the etnaviv driver is not being loaded but I think
that is something I need to check in my kernel.
BR,
Juan
On Fri, Mar 8, 2019 at 11:04 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Juan,
>
> On Fri, Mar 8, 2019 at 7:52 PM Peter Seiderer <ps.report@gmx.net> wrote:
>
> > > I'm obviously missing something here. Any help would be very much appreciated.
> >
> > Mind to share your complete .config/defconfig?
> >
> > Did your run an complete re-build (make clean; make), see [1]?
>
> Besides Peter's suggestion, you may try to look at
> configs/imx6-sabresd_qt5_defconfig, which generates a QT demo using
> Etnaviv.
>
> I wrote some notes about it at:
> https://imxdev.gitlab.io/tutorial/Running_QT5.9_with_mainline_kernel_on_mx6sabresd_board/
>
> Hope this helps.
>
> Regards,
>
> Fabio Estevam
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5)
2019-03-08 23:42 ` Juan A. Rubio
@ 2019-03-09 14:06 ` Fabio Estevam
0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2019-03-09 14:06 UTC (permalink / raw)
To: buildroot
Hi Juan,
On Fri, Mar 8, 2019 at 8:42 PM Juan A. Rubio <jarubio2001@gmail.com> wrote:
>
> Peter, Fabio,
>
> Thanks, I did realize that I was missing the QT_QPA_EGLFS_KMS_CONFIG.
> After passing the json file, the application started to work, although
> I believe with software rendering (QSGRenderThread is using 100% of
> CPU). It looks like the etnaviv driver is not being loaded but I think
> that is something I need to check in my kernel.
From a kernel perspective all you need is a modern kernel and to
select imx_v6_v7_defconfig.
You could try running something simpler like kmscube first.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-09 14:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-07 23:00 [Buildroot] QT 5.6 app with eglfs and etnaviv (imx6 solo, buildroot 2018.02.5) Juan A. Rubio
2019-03-08 22:52 ` Peter Seiderer
2019-03-08 23:04 ` Fabio Estevam
2019-03-08 23:42 ` Juan A. Rubio
2019-03-09 14:06 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox