【问题标题】:How to trun on graphics acceleration (kernel-module-imx-gpu-viv) on i.Mx6Q (buildroot)?如何在 i.Mx6Q (buildroot) 上开启图形加速 (kernel-module-imx-gpu-viv)?
【发布时间】:2018-08-02 00:32:08
【问题描述】:

我用 qt5 在 i.Mx6Q (Buildroot) 上输入这些命令

# export QT_QPA_EGLFS_INTEGRATION=eglfs_viv
# CinematicExperience-demo -platform eglfs

demo 应用运行正常,但显示:

qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_viv"

我发现this 说这个错误意味着我的板上没有图形加速。

还有this说需要开启

kernel-module-imx-gpu-viv
libgles2-mx6
libegl-mx6

最后,我发现this 说内核版本必须从 3.10.x 到 4.1.x。 所以我在menuconfig中这样改成4.1.15(原版是4.14.14):

Kernel version (Custom Git repository)
(git://git.freescale.com/imx/linux-imx.git)URL of custom repository
(rel_imx_4.1.15_2.0.0_ga)Custom repository version
(imx_v7_mfg)Defconfig name
(board/freescale/imx6-sabresd/linux_qt5.fragment)Additional configuration fragment files
Kernel binary format(zImage)
[*]Build a Device Tree Blob(DTB)
(imx6q-sabresd)Device Tree Source file names

它编译成功,但是当我在 SD 卡上部署并尝试运行 QT 演示时它显示:

qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_viv"
MESA-LOADER: failed to retrieve device information
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: File not found
failed to load driver: vivante
drmModeGetResources failed
Segmentation fault

问题:

如何在 i.Mx6Q (Buildroot) 上开启图形加速? 打开'kernel-module-imx-gpu-viv'是正确的步骤吗?如果正确,那么如何将内核设置为低版本才能成功运行QT demo?

【问题讨论】:

标签: qt linux-kernel embedded-linux buildroot imx6


【解决方案1】:

我在使用内核 4.1 时遇到了同样的问题,但它使用的是 Yocto Project 分支 rocko 和 Qt5.9。

使用您的应用程序运行 ldd /path_your_app/app_qt 并将输出放在此处。

运行zcat /proc/config.gz并将输出放在这里。

【讨论】:

    猜你喜欢
    • 2018-12-13
    • 1970-01-01
    • 2013-07-03
    • 1970-01-01
    • 1970-01-01
    • 2022-08-21
    • 2023-04-11
    • 2020-08-29
    • 1970-01-01
    相关资源
    最近更新 更多