imx-gpu-viv-5.0.11.p8.3-hfp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx-gpu-viv-5.0.11.p8.3-hfp

3,817 Views
fulinux
Contributor IV

Hi, i am proting imx-gpu-viv-5.0.11.p8.3-hfp for my imx6q board, my bsp tag is rel_imx_4.1.15_1.0.0_ga, i have not use yocto, because it is too big to down for a foreigner. i just  git clone one by one. i get imx-gpu-viv-5.0.11.p8.3-hfp, and add it's lib to my rootfs, and i run gpu-demos:

1、

# cd es20/vv_launcher/

# ls

vv_launcher

# ./vv_launcher

-sh: ./vv_launcher: not found

# /lib/ld-linux.so.3 ./vv_launcher

/* nothing happens */

2、

# cd viv_samples/tiger/

# ls

tiger

# /lib/ld-linux.so.3 ./tiger

vdkIntialize() failed.

CreateWindow() failed.

3、

# cd g2d/

# ls

g2d_test      overlay_test

# ./g2d_test

-sh: ./g2d_test: not found

# /lib/ld-linux.so.3 ./g2d_test

Width 1920, Height 1088, Format RGBA, Bpp 32

---------------- g2d blit performance ----------------

g2d blit time 5983us, 167fps, 349Mpixel/s ........

g2d blending time 10839us, 92fps, 192Mpixel/s ........

g2d blend-dim time 6876us, 145fps, 303Mpixel/s ........

---------------- g2d clear performance ----------------

g2d clear time 10102us, 98fps, 206Mpixel/s ........

---------------- g2d rotation performance ----------------

90 rotation time 12401us, 80fps, 168Mpixel/s ........

180 rotation time 6041us, 165fps, 345Mpixel/s ........

270 rotation time 12429us, 80fps, 168Mpixel/s ........

g2d flip-h time 5965us, 167fps, 350Mpixel/s ........

g2d flip-v time 6000us, 166fps, 348Mpixel/s ........

---------------- g2d copy & cache performance ----------------

g2d copy non-cacheable time 4747us, 210fps, 440Mpixel/s ........

cpu copy non-cacheable time 47147us, 21fps, 44Mpixel/s ........

cpu copy user cacheable time 22497us, 44fps, 92Mpixel/s ........

cpu copy gpu cacheable time 34481us, 29fps, 60Mpixel/s ........

g2d copy with cache op time 37596us, 26fps, 55Mpixel/s ........

---------------- g2d performance with vg core ----------------

g2d clear with vg time 9438us, 105fps, 221Mpixel/s ........

g2d blit with vg time 10752us, 93fps, 194Mpixel/s ........

g2d copy with vg time 10726us, 93fps, 194Mpixel/s ........

g2d resize test from 1280x720 to 1920x1088:

g2d resize with vg time 12351us, 80fps, 169Mpixel/s ........

g2d resize with 2d time 17317us, 57fps, 120Mpixel/s ........

#

/* nothing happens on screen above tests*/

# cd overlay_test/

# ls

g2d_overlay_test

# /lib/ld-linux.so.3 ./g2d_overlay_test

Overlay rendering time 87689us .

Overlay rendering with blur effect time 51399us .

!!! g2d_feature 'G2D_MULTI_SOURCE_BLT' Not Supported for this hardware!!!

Overlay rendering with multiblit time 15368us .

/* it has a picture on screen */

my Qt programs can't run,look like as follows, what is wrong?

# ./qmlscene

QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.

If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1

Unable to query physical screen size, defaulting to 100 dpi.

To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).

QEGLPlatformContext::init: eglError: 3005, this: 0x69d00c20

QEGLPlatformContext::init: eglError: 3005, this: 0x3e2e80

EGLFS: Failed to create compositing context

Aborted

can you give me some ideas, what happened? i am a new hand.

thank you!

fulinux.

Labels (2)
0 Kudos
3 Replies

1,253 Views
igorpadykov
NXP Employee
NXP Employee

Hi fulinux

adding just lib to rootfs is not sufficient, also it is necessary to build gpu kernel

drivers, for details please refer to attached Linux Manual sect.13.1.1.2 Software Operation

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,253 Views
fulinux
Contributor IV

hi,

I did as you told me:

To get to the GPU library package in Yocto, use the command  bitbake linux-imx -c

menuconfig . On the screen displayed, select Configure the kernel and select "Device

Drivers" > "MXC support drivers" > "MXC Vivante GPU support" > "MXC Vivante

GPU support"and exit. When the next screen appears select the following options to

enable the GPU driver:

• Package list > gpu-viv-bin-mx6q

• This package provides proprietary binary libraries, and test code built from the GPU

for framebuffer

i had enabled "<*> MXC Vivante GPU support", but when i exited the next screen don't appears select the following optiongs to enable the GPU driver,

i git clone linux-imx.git, then:

make imx_v7_defconfig

make menuconfig

i don't use fsl-release-bsp, is it have to use bitbake linux-imx -c menuconfig?

0 Kudos

1,253 Views
fulinux
Contributor IV

Dear igor,

if i use gcc-4.7 to compile kernel and Qt5.4,  soft float point, can i use imx-gpu-viv-5.0.11.p8.3-hfp lib

0 Kudos