Xilinx / SDKOpenGLES

Open Source Software development Kit for Graphics GPU for Xilinx Zu+ Platform.
BSD 3-Clause "New" or "Revised" License
11 stars 10 forks source link

Segmentation Fault on running most of the examples #8

Open siliangZ opened 3 months ago

siliangZ commented 3 months ago

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.

alokguptaxilinx commented 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.

Ref -- https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841928/Zynq+UltraScale+MPSoC+-+Graphics+Driver+Stack+-+Mali+400

siliangZ commented 3 months ago

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?

alokguptaxilinx commented 3 months ago

& then run the samples for FBDEV for sanity check.