Forums

Gstreamer : CMEMK Error

This question is answered

Hi ALL

I run a gst-launch and got a error message.

But This message seems to be non fatal.

Ridgerun DM355SDK78911

Linux Kernel version : 2.6.29-ridgerun-davinci1 

/usr/bin/gst-launch -e v4l2src num-buffers=300 always-copy=false ! dmaiaccel ! queue ! dmaienc_mpeg4 ! qtmux ! filesink location=/test.mp4
Setting pipeline to PAUSED ...
[42949443.660000] mt9v113 1-003c: invalid control id 9963781
[42949443.670000] mt9v113 1-003c: invalid control id 9963782
[42949443.670000] mt9v113 1-003c: invalid control id 9963783
[42949443.680000] mt9v113 1-003c: invalid control id 9963784
[42949443.680000] mt9v113 1-003c: invalid control id 9963785
[42949443.690000] mt9v113 1-003c: invalid control id 9963786
[42949443.690000] mt9v113 1-003c: invalid control id 9963787
[42949443.700000] mt9v113 1-003c: invalid control id 9963788
[42949443.710000] mt9v113 1-003c: invalid control id 9963789
[42949443.710000] mt9v113 1-003c: invalid control id 9963790
[42949443.720000] mt9v113 1-003c: invalid control id 9963791
[42949443.720000] mt9v113 1-003c: invalid control id 9963792
[42949443.730000] mt9v113 1-003c: invalid control id 9963793
[42949443.730000] mt9v113 1-003c: invalid control id 9963796
[42949443.740000] mt9v113 1-003c: invalid control id 9963797
[42949443.750000] mt9v113 1-003c: invalid control id 9963798
[42949443.750000] mt9v113 1-003c: invalid control id 9963799
[42949443.760000] mt9v113 1-003c: invalid control id 9963800
[42949443.760000] mt9v113 1-003c: invalid control id 9963801
[42949443.770000] mt9v113 1-003c: invalid control id 9963802
[42949443.770000] mt9v113 1-003c: invalid control id 9963803
[42949443.780000] mt9v113 1-003c: invalid control id 9963804
[42949443.780000] mt9v113 1-003c: invalid control id 9963805
[42949443.790000] mt9v113 1-003c: invalid control id 9963806
[42949443.810000] vpfe-capture: hpitch = 640, vpitch = 480, bpp = 2
[42949443.810000] vpfe-capture: adjusted hpitch = 640, vpitch = 480, bpp = 2
[42949443.840000] vpfe-capture vpfe-capture: calling ccdc_config_raw()
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 13373478335 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
[42949461.220000] CMEMK Error: FREE: Not a registered user of physical buffer 0x87b14000
[42949461.230000] CMEMK Error: FREE: Not a registered user of physical buffer 0x874d8000
CMEM Error: free[42949461.240000] CMEMK Error: FREE: Not a registered user of physical buffer 0x874d3000
: failed to free[42949461.250000] CMEMK Error: FREE: Not a registered user of physical buffer 0x87c8a000
 0x41c1c000
CME[42949461.260000] CMEMK Error: FREE: Not a registered user of physical buffer 0x874d2000
M Error: free: f[42949461.270000] CMEMK Error: FREE: Not a registered user of physical buffer 0x874d1000
ailed to free 0x[42949461.280000] CMEMK Error: FREE: Not a registered user of physical buffer 0x874ec000
41997000
CMEM E[42949461.290000] CMEMK Error: FREE: Not a registered user of physical buffer 0x87507000
rror: free: failed to free 0x419ab000
CMEM Error: free: failed to free 0x419ac000
CMEM Error: free: failed to free 0x41b22000
CMEM Error: free: failed to free 0x41b23000

Verified Answer
  • Hi seokeheon,

    I update RR SDK hints wiki with a patch that corrects this cmem error messages. You can download the patch at:

    elinux.org/RidgeRun_LeopardBoard_SDK_Hints

    Regards,

    Cristina

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

All Replies
  • Hi,

    Did you run the loadmodules.sh script before running the pipeline?

    Regards,

    Cristina

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Thanks for your reply

    I did run a /bin/loadmodules.sh

    shbae@shbae-desktop:~/DM355SDK789311/fs/fs/bin$ cat loadmodules.sh

    #!/bin/sh

    # WARNING: this file is generated automatically, and any change will be overwritten by the Makefile

    # The reserved memory that is used by cmemk is cut from the end of RAM by the mem=XX param of the kernel

    modprobe cmemk phys_start=0x87400000 phys_end=0x88000000 pools=1x2097152,2x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096

    /sbin/mapdmaq

    modprobe dm350mmap

    rm -f /dev/cmem ; mknod /dev/cmem c `awk '$2 ~ /cmem/ {print $1}' /proc/devices` 0

    rm -f /dev/dm350mmap ; mknod /dev/dm350mmap c `awk '$2  ~ /dm350mmap/ {print $1}' /proc/devices` 0

    regards,

    seokeheon bae

  • Hi seokeheon,

    It is not a loadmodules.sh script. The next release of the SDK will have a patch to avoid this messages.

    Regards,

    Cristina


    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Christina

    what is included in the next update of sdk?

  • Hi Tunca,

    As far as I know, it will include:

    * JFFS2 file system support

    * A patch for the dvsdk to correct cmem errors

    Regards,

    Cristina

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Cristina,

    Can you check out about for any changes about

    1. USB host support (I'll use this to connect a 3G modem and GPS, now I'm using UART)
    2. Frame rate problem with VGA camera (Current frame rate is 7 fps)
    3. Network problem which left Ethernet connection unresponsive after a while

    on the Leopardboard.

    Thanks and Regards

    Tunca

     

  • Hi,

    USB host support> We managed to get it to work with a mouse. You can visit elinux.org/LeopardBoard_FAQ and obtain more information about it.

    Frame rate problem with the VGA camera> Still has the same issue.

    NFS server time out problem> We've invested some time trying to fix this issue. We made some progress and have a partial patch for it, but it still needs more debugging.

    Regards,

    Cristina

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Hi seokeheon,

    I update RR SDK hints wiki with a patch that corrects this cmem error messages. You can download the patch at:

    elinux.org/RidgeRun_LeopardBoard_SDK_Hints

    Regards,

    Cristina

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Hi Cristina

    Thanks for your answer.

    CMEM error message is not any longer.

  • Hi,

    What is the best way to apply this patch?

    Thanks

    Chris

  • Ahh got it..

    cd DM355SDK789311/proprietary/dvsdk_2_00_00

    patch -p1 < Update-cmem.patch

    Cheers,

    Chris