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
Solved! Go to Solution.
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.
please refer this: https://community.freescale.com/message/302919#302919
If still not work, please let me know.
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.
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.
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.