freescale ubuntu fails to load mesa OpenGL ES 2.0 demo on i.mx6q board

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

freescale ubuntu fails to load mesa OpenGL ES 2.0 demo on i.mx6q board

Jump to solution
4,119 Views
kkatyal
Contributor I

Using the Freescale Ubuntu image that includes the gpu-viv-bin-mx6q package, I am receiving a segmentation fault while trying to run one of the OpenGL ES 2 sample programs provided by mesa.

I downloaded the demo application mesa-demos-8.0.1.tar.gz from:

ftp://ftp.freedesktop.org/pub/mesa/demos/8.0.1/

in the mesa-demos-8.0.1/src/egl/opengles2 directory, I ran:

gcc -g es2_info.c -lEGL -lX11 -lGLESv2

./a.out

This gives me a segmentation fault with the following back trace:

linaro@linaro-ubuntu-desktop:/media/toshiba/src/opengles/mesa-demos-8.0.1/src/egl/opengles2$ gdb a.out core

GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08

Copyright (C) 2011 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "arm-linux-gnueabi".

For bug reporting instructions, please see:

<http://bugs.launchpad.net/gdb-linaro/>...

Reading symbols from /media/toshiba/src/opengles/mesa-demos-8.0.1/src/egl/opengles2/a.out...done.

[New LWP 15576]

[Thread debugging using libthread_db enabled]

Core was generated by `./a.out'.

Program terminated with signal 11, Segmentation fault.

#0  0x2ae8c720 in gcoHAL_QueryChipCount () from /usr/lib/libGAL.so

(gdb) bt

#0  0x2ae8c720 in gcoHAL_QueryChipCount () from /usr/lib/libGAL.so

#1  0x2ac7a058 in veglGetThreadData () from /usr/lib/libEGL.so

#2  0x2ac74554 in eglGetDisplay () from /usr/lib/libEGL.so

#3  0x000091c4 in main (argc=1, argv=0x7e90d434) at es2_info.c:253

(gdb) quit


Please assist with this problem as we are unable to proceed further without the source code.


Thanks

Labels (3)
0 Kudos
1 Solution
1,218 Views
oskar
Contributor II

I checked the i.MX_6Dual6Quad_Linux_Reference_Manual.pdf in L3.0.35_12.09.01.01_GA_docs.tar.gz - chapter 12.

The system works "correctly" if xorg.conf contains

Section "Device"

    Identifier    "i.MX Accelerated Framebuffer Device"

    #Driver        "vivante"

    Driver         "fbdev"

EndSection

but of course I have errors described previously. 3D works but in software mode - and only for glmark2.


If I use "vivante" as the Driver instead of "fbdev" - the graphical mode is unavailable.

Also I'm getting some errors (more logs attached):

[47.604] (EE) VIVANTE(0): internal error: GPU Ctx Init Failed
[47.604] (EE) VIVANTE(0): internal error: initExaLayer failed in VivScreenInit()
[47.604] (==) VIVANTE(0): Backing store disabled
[47.680] (==) VIVANTE(0): DPMS enabled
[47.731] [drm] failed to load kernel module "vivante"

Unfortunately I cannot find info about it.

View solution in original post

0 Kudos
2 Replies
1,219 Views
oskar
Contributor II

I checked the i.MX_6Dual6Quad_Linux_Reference_Manual.pdf in L3.0.35_12.09.01.01_GA_docs.tar.gz - chapter 12.

The system works "correctly" if xorg.conf contains

Section "Device"

    Identifier    "i.MX Accelerated Framebuffer Device"

    #Driver        "vivante"

    Driver         "fbdev"

EndSection

but of course I have errors described previously. 3D works but in software mode - and only for glmark2.


If I use "vivante" as the Driver instead of "fbdev" - the graphical mode is unavailable.

Also I'm getting some errors (more logs attached):

[47.604] (EE) VIVANTE(0): internal error: GPU Ctx Init Failed
[47.604] (EE) VIVANTE(0): internal error: initExaLayer failed in VivScreenInit()
[47.604] (==) VIVANTE(0): Backing store disabled
[47.680] (==) VIVANTE(0): DPMS enabled
[47.731] [drm] failed to load kernel module "vivante"

Unfortunately I cannot find info about it.

0 Kudos
1,218 Views
oskar
Contributor II

Looks like I have a little bit similar problem. Some useful/less info from me:

modprobe galcore -> nothing changes

lib/modules/3.0.15-1359-g1b64ead/kernel/drivers/mxc/gpu-viv -> galcore.ko exists

gpu-viv-bin-mx6q-12.09.01 -> running demos -> symbol lookup error: /usr/lib/libGAL.so: undefined symbol: XInitThreads

http://www.imgtec.com/powervr/insider/sdkdownloads/index.asp -> window appears for <1 sec. + Segmentation fault

glxinfo | grep renderer -> Opengl renderer string: Software rasterizer

glmark2 -> works but veeeery slow - yea - no hw acceleration

System Settings -> Additional drivers - nothing available

System Settings -> System Info - Driver - Software Rasterizer, Experience - Standard

aptitide search viv -> "i   gpu-viv-bin-mx6q                - GPU driver and app for mx6q"


0 Kudos