gpu-sdk1008.tgz samples aborting

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

gpu-sdk1008.tgz samples aborting

Jump to solution
1,243 Views
fvasquez
Contributor II

The sample programs in the GPUSDK abort almost immediately when I try to run them on my i.MX537.

$ ./es1_lesson02_fbdev

chooseconfig,

es1_lesson02_fbdev: lesson02_imx.c:182: int init(): Assertion `eglGetError() == 0x3000' failed.

Aborted

$ ./vg_audiohmi_fbdev

Freescale VG HMI Demo

++Starting Initialization

*eglInitialize

    eglBindAPI

*eglChooseConfig

EGL Fail = EGL_NOT_INITIALIZED (0x3001)

I am running on an i.MX537 using an ltib image I built based on a Freescale 2.6.35 kernel.  The GPU shared libraries in my ltib rootfs came from the amd-gpu-bin-mx51-11.09.01 package.  I compiled the GPUSDK samples to use the frame buffer because my image does not have X11 nor do I want it.  I configured the GPUSDK buildvars.mk as follows:

FSL_PLATFORM = MX53

#if building on an LTIB system, set CROSS_COMPILE as below

CROSS_COMPILE = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-

#directory with GLES, VG, and EGL headers

FSL_GPU_INC =  $(LTIB_ROOTFS)/usr/include

#all other system headers

FSL_PLATFORM_INC = $(LTIB_ROOTFS)/usr/include

#location of libEGL.so, etc.

FSL_GPU_LIB = $(LTIB_ROOTFS)/usr/lib

#location of other system libraries

FSL_PLATFORM_LIB = $(LTIB_ROOTFS)/usr/lib

...

C2D_FLAGS = -l2dz430

Something must be very wrong for EGL to fail.  Any help would be appreciated.

-Frank

0 Kudos
1 Solution
740 Views
fvasquez
Contributor II

Enabling the following setting kernel configuration option during ./ltib -c fixed my problem.

Device Drivers --> MXC Support drivers ---> MXC GPU Support ---> MXC GPU Support

This step is described in section 16.6 of mx53_start_linux.pdf from L2.6.35_11.09.01_ER_docs.

View solution in original post

0 Kudos
4 Replies
740 Views
jimmychan
NXP TechSupport
NXP TechSupport

please refer this: https://community.freescale.com/message/302919#302919

If still not work, please let me know.

0 Kudos
741 Views
fvasquez
Contributor II

Enabling the following setting kernel configuration option during ./ltib -c fixed my problem.

Device Drivers --> MXC Support drivers ---> MXC GPU Support ---> MXC GPU Support

This step is described in section 16.6 of mx53_start_linux.pdf from L2.6.35_11.09.01_ER_docs.

0 Kudos
740 Views
fvasquez
Contributor II

I read that thread before posting here.  I built my own image using ltib and have the amd-gpu-bin-mx51 package rather than amd-gpu-x11-bin-mx51 selected.  The amd-gpu-bin-mx51 package is supposedly the one without X11.  I do suspect a problem with my kernel configuration though.  Namely, "MXC GPU support" is not selected under "Device Drivers".  Will let you know if enabling that fixes my problem.

0 Kudos
740 Views
Wlodek_D_
Senior Contributor II

Dear Frank Vasquez,

Thank you for your post, however please consider moving it to the right community place (e.g. i.MX Community ) for better visibility.

For details please see general advice https://community.freescale.com/docs/DOC-99909

Thank you for using Freescale Community.

Regards,

Wlodek_D.