[meta-freescale] [GPU] gstreamer-imx G2D Plugins don't work on imx6q

Pierre-Olivier Huard pierre-olivier.huard at twiga-web.com
Wed Jan 11 03:29:32 PST 2017


Hello,

I'm trying to make G2D plugins from gstreamer-imx work with my imx6Q. I 
work on Yocto, Fido branch, with 3.14.38 kernel. I use a module from 
Variscite, the DART-MX6. My kernel is from Variscite Github 
(https://github.com/varigit/linux-2.6-imx/tree/imx_3.14.38_6qp_ga_var01), 
and my meta is based on the meta-variscite.

The plugins are from https://github.com/Freescale/gstreamer-imx 
<https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FFreescale%2Fgstreamer-imx>, 
I also posted an issue (n°104) but I don't have any answer.

When I try to run gst-launch-1.0 imxv4l2videosrc ! imxg2dvideosink I get 
the following error :||

|||g2d_alloc: alloc memory fail with size 16!|
|||ERROR: Pipeline doesn't want to pause.|
|||        Setting pipeline to NULL ...|
|        Freeing pipeline ..|

  With more debug :

    |0:00:00.540714000   425   0x549400 INFO  imxphysmemallocator
    phys_mem_allocator.c:62:gst_imx_phys_mem_allocator_init:<GstImxPhysMemAllocator at 0x54d908>
    initializing physical memory allocator
    g2d_alloc: alloc memory fail with size 16!
    0:00:00.556959667   425   0x549400 ERROR imxg2dallocator
    allocator.c:59:gst_imx_g2d_alloc_phys_mem:<imxg2dallocator0> could
    not allocate 16 bytes of physical memory
    0:00:00.557108000   425   0x549400 WARN  imxphysmemallocator
    phys_mem_allocator.c:154:gst_imx_phys_mem_allocator_alloc:<imxg2dallocator0>
    could not allocate memory block with 16 bytes
    0:00:00.557213000   425   0x549400 WARN GST_BUFFER
    gstbuffer.c:739:gst_buffer_new_allocate: failed to allocate 16 bytes|

I tried to change the CMA value, already to 320M, but I get the same error.

a part of my kernel configuration :

    CONFIG_MXC_GPU_VIV=y

    CONFIG_CMA_SIZE_MBYTES=320
    CONFIG_CMA_SIZE_SEL_MBYTES=y

    CONFIG_CMA_ALIGNMENT=8
    CONFIG_CMA_AREAS=7

    CONFIG_DMA_CMA=y

    CONFIG_DMA_SHARED_BUFFER=y

I think it would be a kernel misconfiguration. It works on another iMX6 
(DualLite), with nearly the same meta, and a different kernel (3.14.28). 
Any thougts about kernel missing configuration?

Best Regards
Pierre-Olivier

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


More information about the meta-freescale mailing list