Open siliangZ opened 3 months ago
Do you have libmali.so binary ? Make sure you are following right petalinux steps to enable the libMali for respective display protocol like for X11 or FBDEV if you have compiled libMali.so for X11 & trying to run a FBDEV example from SDK then it will give segfault.
Trying using these steps to run glmark2 first & see if that works & then move to SDK samples.
Hi @alokguptaxilinx , Thanks for replying. As I described, I was able to run glmark2-es2 successfully, and I am able to write a simple hello triangle program from scratch and get that running as well. Do you know if there is anything else I should look at?
What are the errors you get ? Did you run them through GDB to use backtrace to see which line is giving segfault ?
Can you use the FBDEV steps for petalinux to generate the libMali.so for FBDEV from Ref -- https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841928/Zynq+UltraScale+MPSoC+-+Graphics+Driver+Stack+-+Mali+400 & then use the default FBDEV flag from script during compilation - https://github.com/Xilinx/SDKOpenGLES/blob/master/run_exports.sh
& then run the samples for FBDEV for sanity check.
Platform: Avnet UltraZed EV Carrier Card Hardware Build: Following this design tutorials. PS: I didn't change the lane selection as dual lower is not supported. OS: Petalinux build with libmali-xlnx and x11 packagegroup enabled. Sysroot: From Petalinux build What is working: I am able to run the glmark2-es2 and can see the rendered content on the displayport output.
Issues: I am able to cross-compile the example, but I get a segmentation fault when I run it on the board. I have tried all of them. Most of them gave me the segmentation fault, and only EGLRenderingSample runs and exits on "failed to create a surface, eglMakeCurrent() failed."
Have you encountered this before? I am very new to OpenGL ES and don't really know how to debug it. Any tips would be helpful. Thanks ahead.