On a MarSBoard with i.MX6 dual ( http://www.embest-tech.com/shop/star/marsboard.html ) I installed a yocto image build using recipes from silmerusse/meta-robomind
After installing I copiedIndex of /buildsources/g/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-1.1.0 over /usr.
A simple OpenGLES 2.0 app built with -DEGL_API_FB=1 crashes in gcoHAL_QueryChipCount.
A stacktrace:
#0 0x2ab19984 in gcoHAL_QueryChipCount () from /usr/lib/libGAL.so
#1 0x2aaf8ad0 in veglGetThreadData () from /usr/lib/libEGL.so
#2 0x2aaf1f30 in eglGetDisplay () from /usr/lib/libEGL.so
#3 0x00068634 in OpenGLApplication::InitOpenGL (this=0x7efff950) at application.cpp:859
#4 0x00017d70 in main (argc=1, argv=0x7efffd04) at consoleapp.cpp:368
Site of crash:
(gdb) x/8i $pc-16
0x2ab19974 <gcoHAL_QueryChipCount+28>: str r2, [r4]
0x2ab19978 <gcoHAL_QueryChipCount+32>:
ldr r2, [pc, #8388608] ; 0x2ab199d0 <gcoHAL_QueryChipCount+120>
0x2ab1997c <gcoHAL_QueryChipCount+36>: ldr r3, [r3, r2]
0x2ab19980 <gcoHAL_QueryChipCount+40>: ldr r3, [r3, #2809676]
=> 0x2ab19984 <gcoHAL_QueryChipCount+44>: ldr r3, [r3, #2809676]
0x2ab19988 <gcoHAL_QueryChipCount+48>: sub r2, r3, #1
0x2ab1998c <gcoHAL_QueryChipCount+52>: cmp r2, #2
0x2ab19990 <gcoHAL_QueryChipCount+56>:
bhi 0x2ab199ac <gcoHAL_QueryChipCount+84>
I tried to use gpu-viv-bin-mx6q-3.0.35-4.0.0 (using the softfp files) instead of gpu-viv-bin-mx6q-1.1.0 with similar results.
My questions are:
How does one determine the gpu-viv-bin-mx6q version to use?
How do I fix this crash?
The crash was caused by using the wrong version of libEGL/GAL. The version I needed was gpu-viv-bin-mx6q-3.0.35-4.1.0.
Hi
I just wanted to let you know that I was facing similar problems but with the hard-float binaries so I got the gpu-viv-bin-mx6q-3.0.35-4.0.0 and then it stopped crashing.
regards
Einar