[meta-freescale] X11 is not working on IMX.6

Andre Silva Andre.Silva at freescale.com
Fri Nov 29 08:58:27 PST 2013


Hi Friket, are you still getting the video0 errors when running the application ?

Regards,
Andre

From: Fikret Alim [mailto:fikret.alim at gmail.com]
Sent: Friday, November 29, 2013 1:40 PM
To: Silva Andre-B22958
Cc: Otavio Salvador; meta-freescale at yoctoproject.org
Subject: Re: [meta-freescale] X11 is not working on IMX.6

Dear Andre,

I checked the software, it look for Up.mp4 under /home/gesture directory. I have copied it and now the it is running, but the problem is I can only see the video is playing. Neither I see webcam output, nor gesture recognition works. I use my webcam normally at /dev/video0 and I can use it with my OpenCv applications directly.

Thanks,
Fikret
On Fri, Nov 29, 2013 at 5:14 PM, Fikret Alim <fikret.alim at gmail.com<mailto:fikret.alim at gmail.com>> wrote:
Dear Andre,

When I run gesture demo, I get the following console output now;

root at imx6qsabrelite:~/gpu_samp/bin# ./gesture

Using: min: 15, max: 40, val: -1

Yellow: ./gesture 15 40 -1
Skin: ./gesture 5 30 20

Loading netweights...OK

Insufficient buffer memory on /dev/video0 -- decreaseing buffers
Insufficient buffer memory on /dev/video0 -- decreaseing buffers
Insufficient buffer memory on /dev/video0 -- decreaseing buffers
Insufficient buffer memory on /dev/video0 -- decreaseing buffers
Initializing OpenCV...OK
Initializing OGLES2...OK
Creating the Stage...OK
Creating the Theater...OK
Creating the Status Panel...OKError: Resource not found.
Error: Resource not found.

Control Disabled

Now, the application is running, but I can only see black screen on the monitor. There is an error message as seen above, but I didn't have time to check from the software. Do you have an idea about the error message?

I have one more question: Actually I am not interested in OpenGL, because we want to perform image processing. So, OpenCL will be more suitable for us, but I couldn't find any examples other than hello world for IMX.6. I searched if we can use OpenCV OCL module on IMX.6, but I learned that it is not possible. So, if you know a way to use GPU for image processing, please recommend a way to me (such as an example using both OpenCV and OpenCL)

Thanks&Best Regards,
Fikret

On Fri, Nov 29, 2013 at 2:49 PM, Andre Silva <Andre.Silva at freescale.com<mailto:Andre.Silva at freescale.com>> wrote:
Hi Friket,

I was about to ask you about the galcore module, as I always use it as built-in I thought you were using this way too. I´m glad it worked.

About the gesture recognition demo, what is going on ? what kind of errors are you getting ?

Regards,
andre

From: Fikret Alim [mailto:fikret.alim at gmail.com<mailto:fikret.alim at gmail.com>]
Sent: Friday, November 29, 2013 10:19 AM
To: Silva Andre-B22958
Cc: Otavio Salvador; meta-freescale at yoctoproject.org<mailto:meta-freescale at yoctoproject.org>

Subject: Re: [meta-freescale] X11 is not working on IMX.6

Hi again,

Thank you for your answers. I have solved the problems by starting the GPU module

$ modprobe galcore

and with the display setting
$ export DISPLAY=:0.0

By this way I can run the X11 samples on Yocto, but I have still problems with Andre's gesture recognition example :)

I can not compile anything with softfp, because the compiler can not find stubs_soft.h. In Yocto, there is only stubs.h and stubs_hard.h

Best Regards,
Fikret
On Thu, Nov 28, 2013 at 5:47 PM, Andre Silva <Andre.Silva at freescale.com<mailto:Andre.Silva at freescale.com>> wrote:
Hi Guys,

I will need to check that. One question: if you let it as softfp, does it work ?

Regards,
Andre

-----Original Message-----
From: otavio.salvador at gmail.com<mailto:otavio.salvador at gmail.com> [mailto:otavio.salvador at gmail.com<mailto:otavio.salvador at gmail.com>] On Behalf Of Otavio Salvador
Sent: Thursday, November 28, 2013 12:02 PM
To: Fikret Alim; Silva Andre-B22958
Cc: meta-freescale at yoctoproject.org<mailto:meta-freescale at yoctoproject.org>
Subject: Re: [meta-freescale] X11 is not working on IMX.6

Hello Fikret,

On Wed, Nov 27, 2013 at 5:05 AM, Fikret Alim <fikret.alim at gmail.com<mailto:fikret.alim at gmail.com>> wrote:
> I am trying to run X11 examples included in gpu_sdk_v1.00 package. I
> am using Yocto fsl-gui-image. I have tried to run 06_Texturing example
> under
> GLES2.0 folder. I have only modified -mfloat-abi variable in the
> Makefile from softfp to hard. Then I have compiled the code, but
> unfortunately it is not running on IMX.6 board. I got the following
> error message when I try to run ./06_Texturing;
>
> 06_Texturing: ../common/src/fsl_egl.c:51 fsl_getNativeDisplay:
> Assertion 'eglNativeDisplayType != ((void *)0)' failed
>
> Aborted.
>
> What can be wrong? It seems that there is a problem at XOpenDisplay
> function which is called by fsl_getNativeDisplay function. Is there
> anything to be done to enable X11? I checked that the libraries are
> loaded under /usr/libç What should I do?

Andre, do you have any clue?

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br<http://www.ossystems.com.br/>        http://code.ossystems.com.br<http://code.ossystems.com.br/>
Mobile: +55 (53) 9981-7854<tel:%2B55%20%2853%29%209981-7854>            Mobile: +1 (347) 903-9750<tel:%2B1%20%28347%29%20903-9750>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20131129/d2ae9f64/attachment.html>


More information about the meta-freescale mailing list