(gdb) sMaliSDK::EGLRuntime::initializeEGL (requestedAPIVersion=MaliSDK::EGLRuntime::OPENGLES2) at src/EGLRuntime.cpp:287287 surface = eglCreateWindowSurface(display, config, (EGLNativeWindowType)(platform->window), windowAttributes);(gdb) print platform->window$8 = (fbdev_window *) 0x1c0e8(gdb) n288 if(surface == EGL_NO_SURFACE)(gdb) print surface$9 = (EGLSurface) 0x0(gdb) s290 EGLint error = eglGetError();(gdb) n291 LOGE("eglGetError(): %i (0x%.4x)\n", (int)error, (int)error);(gdb) nError: eglGetError(): 12299 (0x300b)
There is a difference between X11, and what we call 'framebuffer', or fbdev_window.If you have setup the device to use the X windowing system, then instead of setting up EGL to pass in a window that is of type fbdev_window, but you would want to create an X11 window and pass that into EGL instead. (Note it will allow you to use fbdev with an X11 environment, but there is no guarantee what the output may do)Similarly, the reverse is true if you are running in fbdev mode, without X support. You will need to setup EGL to take in an fbdev_window instead of an X11 window.I hope that clarifies a few things, please feel free to contact us further if you need further assistance.
Hi Wickwire,
Have you been able to resolve the issue?. If not, can you please check if you are using the correct binary driver for the board?.
Mali supports 3 windowing systems on Linux: Android, Linux fbdev and Linux X11. The correct version of libMali.so needs to be used in each case. For example, if you try to use libMali.so that was built for fbdev on X11, you will get eglInitialize() or similar errors.
These pages may help you get it working: http://linux-sunxi.org/Mali400 and (deleted).
Please let me know if you still have problems.
Tu