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

Fikret Alim fikret.alim at gmail.com
Mon Dec 2 00:09:51 PST 2013


Hi Andre,

Yes at startup, there are some /dev/video0 warnings, but I suppose that
they are only warnings, because I can use my usb camera at other
applications without any problem.

I have added some debug prints to the software and seen that enable_control
variable is always 0 at me. Can this be the reason?

Is it possible to share the so-called OCL SDK? Did you check it?

Also, I have another question. I am using Yocto fsl-image-gui. I have a
problem with the screen. If I have more than one window at the application,
only one of them can be displayed. They can not be displayed together such
as in your application. Normally a small window should display webcam,
while the in other window, the movie is played. But, I can only see the
movie, not webcam. Also, in my openCV applications, If I have multiple or
triple windows, only one them can be displayed. If you press X, you can see
the other window. How can I set the screen for multiple windows? The only
way to see something on the screen is to set export DISPLAY=:0.0. But, as I
said I can only see one window at a time.

Thanks&Best Regards,
Fikret



On Fri, Nov 29, 2013 at 7:01 PM, Andre Silva <Andre.Silva at freescale.com>wrote:

>  Hi Friket,
>
>
>
> You are right, the OCL module in OpenCV is CUDA based, it doesn´t work for
> us. Using OpenCL in this case, you can base on OpenCL embedded profile
> tutorials you can find in the web also, I created a simple OCL SDK, that
> provides you a quick start for opencl application, unfortunately it is not
> available outside Freescale yet, there are some samples there (IP
> filtering) that you could use, I just need to check if I can share right
> now.
>
>
>
> Regards,
>
> Andre
>
>
>
> *From:* Fikret Alim [mailto:fikret.alim at gmail.com]
> *Sent:* Friday, November 29, 2013 1:14 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,
>
>
>
> 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>
> 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]
> *Sent:* Friday, November 29, 2013 10:19 AM
> *To:* Silva Andre-B22958
> *Cc:* Otavio Salvador; 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>
> 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] 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
> 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>
> 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://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20131202/e19e7b72/attachment-0001.html>


More information about the meta-freescale mailing list