imx6 Android gpu 内存,Use vivante GPU on IMX6 with 4.14 kernel

I am working on IMX6QP with yocto rocko / Linux 4.14.24 and I am trying to use the GPU.

My yocto configuration file :

MACHINE ??= 'imx6qp-tx6-emmc'

DL_DIR ?= "${BSPDIR}/downloads"

SSTATE_DIR ?= "${BSPDIR}/sstate-cache"

DISTRO ?= 'karo-minimal'

PACKAGE_CLASSES ?= "package_deb"

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

VIRTUAL-RUNTIME_init_manager = "sysvinit"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\

STOPTASKS,${TMPDIR},1G,100K \

STOPTASKS,${DL_DIR},1G,100K \

STOPTASKS,${SSTATE_DIR},1G,100K \

STOPTASKS,/tmp,100M,100K \

ABORT,${TMPDIR},100M,1K \

ABORT,${DL_DIR},100M,1K \

ABORT,${SSTATE_DIR},100M,1K \

ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

CONF_VERSION = "1"

# EXTRA_IMAGE_FEATURES += "read-only-rootfs"

CORE_IMAGE_EXTRA_INSTALL += "openssh \

openssh-sftp-server iproute2 dnsmasq iperf3 \

v4l-utils curl vim gnutls alsa-utils iw \

usbutils pciutils i2c-tools can-utils libsocketcan wpa-supplicant \

gstreamer1.0 gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-base \

devmem2 iputils modutils-initscripts \

iptables iproute2-ss iproute2-tc bridge-utils hostapd \

ruby gdb \

qtbase-plugins \

qtbase-tools \

qtdeclarative \

qtdeclarative-tools \

qtdeclarative-qmlplugins \

qtmultimedia \

qtmultimedia-plugins \

qtmultimedia-qmlplugins \

qtsvg \

qtsvg-plugins \

qtsensors \

qtimageformats-plugins \

qtsystems \

qtsystems-tools \

qtsystems-qmlplugins \

qtscript \

qt3d \

qt3d-qmlplugins \

qt3d-tools \

qtgraphicaleffects-qmlplugins \

qtconnectivity-qmlplugins \

qtlocation-plugins \

qtlocation-qmlplugins \

cinematicexperience \

fb-test fbgrab fbida fbset-modes \

es2gears \

"

DISTRO_FEATURES_remove = " x11 wayland "

PACKAGECONFIG_append_pn-qtbase = " gles2 eglfs "

DISTRO_FEATURES_append = " opengles2 egl opengl gles gbm dri eglfs gles2 "

BB_NUMBER_THREADS = "1"

LICENSE_FLAGS_WHITELIST = "commercial"

When I run es2gears or Qt5_CinematicExperience yocto displays this :

gbm: failed to open any driver (search paths /usr/lib/dri)

gbm: Last dlopen error: /usr/lib/dri/etnaviv_dri.so: cannot open shared object file: No such file or directory

failed to load driver: etnaviv

gbm: failed to open any driver (search paths /usr/lib/dri)

gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory

failed to load driver: kms_swrast

Unable to create EGL surface (eglError: 12299)

In the /usr/lib/dri folder there is only : swrast_dri.so

How can use the vivante GPU with this kernel? Is it possible?

Where can I find the etnaviv driver without include meta-freescale layer?

The goal will be to run a Qt5 application that use eglfs.

In the file meta-karo/conf/machine/include/tx-base.inc :

PREFERRED_PROVIDER_virtual/egl ?= "mesa"

PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"

PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"

PREFERRED_PROVIDER_virtual/libgl ?= "mesa"

PREFERRED_PROVIDER_virtual/libg2d_mx6 ?= "mesa"

PREFERRED_PROVIDER_virtual/libg2d_mx6ul ?= ""

I added :

CORE_IMAGE_INSTALL += "imx-gpu-viv"

in local.conf and the console displays :

ERROR: Nothing RPROVIDES 'imx-gpu-viv' (but /media/user/tx6qp-qt5-4.14/build/sources/poky/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)

imx-gpu-viv was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to mesa, not imx-gpu-viv

NOTE: Runtime target 'imx-gpu-viv' is unbuildable, removing...

Missing or unbuildable dependency chain was: ['imx-gpu-viv']

NOTE: Target 'core-image-minimal' is unbuildable, removing...

Missing or unbuildable dependency chain was: ['core-image-minimal', 'imx-gpu-viv']

ERROR: Required build target 'core-image-minimal' has no buildable providers.

Missing or unbuildable dependency chain was: ['core-image-minimal', 'imx-gpu-viv']

And my kernel supports CONFIG_DRM_ETNAVIV

My board is a Karo board bought on this page.

Thanks in advance,

rBeal

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值