Imagination PowerVR SDK Blog

Getting error on eglCreateContext with error "LoadOGLES2AndGetFunctions: Couldn't get function table


#1

When I am trying to call eglCreateContext in OGLESHelloAPI_NullWS I am getting the error:



eglGetError returns 12289 (0x3001)



But other calls shown as succeeded. Log extract:

PVR: Hint: Setting WindowSystem to libpvrPVR2D_LINUXFBWSEGL.so



PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]

PVR:(Error): LoadOGLES2AndGetFunctions: Couldn’t get function table [344, /generic_ws.c]

Get EGL Display succeeded

eglInitialize() succeeded version: 1:4

eglBindAPI() succeeded

eglChooseConfig() succeeded

eglCreateWindowSurface() succeeded

eglInitialize() succeeded version: 1:4

eglCreateContext failed (12289 - EGL_NOT_INITIALIZED).





Is there any further steps I should do? I am using Yocto GENIVI (gemini) image with meta-ti



My system details:



root@pandaboard:~# cat /etc/powervr.ini

[default]

;WindowSystem=libpvrws_OMAPDRI2.so

WindowSystem=libpvrPVR2D_LINUXFBWSEGL.so



root@pandaboard:~# cat /proc/cpuinfo

Processor : ARMv7 Processor rev 10 (v7l)

processor : 0

BogoMIPS : 2388.84



processor : 1

BogoMIPS : 2399.80



Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls

CPU implementer : 0x41

CPU architecture: 7

CPU variant : 0x2

CPU part : 0xc09

CPU revision : 10



Hardware : OMAP4 Panda board

Revision : 0020

Serial : 0000000000000000



root@pandaboard:~# cat /proc/pvr/version

Version SGX_DDK_Linux_CustomerTI sgxddk 19 1.9@2166536 (release) omap4430_linux

System Version String: SGX revision = 1.2.0



root@pandaboard:~# fbset -i



root@pandaboard:~# cat /sys/class/graphics/fb0/rotate

0



root@pandaboard:~# lsmod

Module Size Used by

cmemk 17100 0

omapdrm_pvr 337428 0

arc4 1108 2

wl12xx 10810 0

wlcore 138244 1 wl12xx

mac80211 373781 1 wlcore

cfg80211 160132 2 mac80211,wlcore

wlcore_sdio 3030 0



root@pandaboard:~# cat /proc/cmdline

console=tty0 console=ttyO2,115200n8 mem=1G@0x80000000 mpurate=auto vram=48M omapfb.vram=0:24M omapfb.mode=dvi:1024x768MR-16@60 omapfb.debug=y omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait



root@pandaboard:~# uname -a

Linux pandaboard 3.4.29 #1 SMP PREEMPT Wed Dec 11 09:43:45 IST 2013 armv7l GNU/Linux