This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP3530 4.01 dvsdk gstreamer Demo

Other Parts Discussed in Thread: OMAP3530, DM3730

Hello

  we are workign with OMAP3530-beagle. We compiled ti-dvsdk_omap3530-evm_4_01_00_09 for beagle board successfully. But after booting when we are running gstreamer demo under multimedia we are getting the following error and not displaying anything on the DVI..

root@beagleboard-dvsdk:~# [  290.359130] cmemk unregistered
[  290.535766] CMEMK module: built on Nov  6 2012 at 15:51:44
[  290.552276]   Reference Linux version 2.6.32
[  290.563873]   File /home/eswar/ti-dvsdk_omap3530-beagle_4_01_00_09/linuxutils_2_25_05_11/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[  290.599121] allocated heap buffer 0xc8000000 of size 0xf00000
[  290.618164] heap fallback enabled - will try heap if pool buffer is not available
[  290.625732] cmemk initialized
[  290.680938] DSPLINK Module (1.65.00.02) created on Date: Nov  6 2012 Time: 15:52:01
[  290.791076] SDMAK module: built on Nov  6 2012 at 15:51:45
[  290.796600]   Reference Linux version 2.6.32
[  290.805847]   File /home/eswar/ti-dvsdk_omap3530-beagle_4_01_00_09/linuxutils_2_25_05_11/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
[  291.898956] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  291.907104] pgd = c544c000
[  291.909851] [00000000] *pgd=84a86031, *pte=00000000, *ppte=00000000
[  291.916168] Internal error: Oops: 817 [#1] PREEMPT
[  291.920989] last sysfs file: /sys/devices/platform/omapdss/manager0/display
[  291.927978] Modules linked in: sdmak lpm_omap3530 dsplinkk cmemk ipv6 [last unloaded: sdmak]
[  291.936523] CPU: 0    Tainted: G        W   (2.6.32 #1)
[  291.941772] PC is at __down_interruptible+0x28/0xc8
[  291.946685] LR is at down_interruptible+0x38/0x6c
[  291.951416] pc : [<c0469f74>]    lr : [<c0085f3c>]    psr: 60000093
[  291.951446] sp : c55d1ec8  ip : 00000000  fp : 0000240c
[  291.962982] r10: c5ad4718  r9 : c55d0000  r8 : 00000000
[  291.968231] r7 : c5ad46bc  r6 : 7fffffff  r5 : c49acdc0  r4 : c55d0000
[  291.974792] r3 : 00000000  r2 : c55d0000  r1 : 00000000  r0 : c5ad4718
[  291.981353] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  291.988616] Control: 10c5387d  Table: 8544c019  DAC: 00000015
[  291.994384] Process gst-launch-0.10 (pid: 1156, stack limit = 0xc55d02f0)
[  292.001220] Stack: (0xc55d1ec8 to 0xc55d2000)
[  292.005584] 1ec0:                   c5ad471c 00000000 c55d0000 00000000 c5ad4718 a0000013
[  292.013824] 1ee0: 10001003 c0085f3c 00000000 bf0d51bc 10001003 bf0d4038 c541f840 00000000
[  292.022033] 1f00: 10001003 c541f840 00000000 c55d0000 40799f50 c00efbe4 c546f400 c541f840
[  292.030273] 1f20: 0000000c c00f02c4 c5692000 c0036f1c c006a780 00000002 80000013 00000003
[  292.038482] 1f40: 00000000 c541f840 0000000c 00000000 00000002 c546f400 0000240c c00eeb34
[  292.046722] 1f60: 00000000 c541f840 0000000c 00000000 10001003 c541f840 c00370c4 c55d0000
[  292.054931] 1f80: 40799f50 c00f0340 0000000c 00000001 00000000 40799f50 00153bb4 4079c390
[  292.063171] 1fa0: 00000036 c0036f40 40799f50 00153bb4 0000000c 10001003 00000000 00000598
[  292.071380] 1fc0: 40799f50 00153bb4 4079c390 00000036 00002440 0013363c 40799f50 0000240c
[  292.079620] 1fe0: ffffffff 40fabd78 4074e3c8 4050eaec 60000010 0000000c e5956010 e3560000
[  292.087860] [<c0469f74>] (__down_interruptible+0x28/0xc8) from [<c0085f3c>] (down_interruptible+0x38/0x6c)
[  292.097595] [<c0085f3c>] (down_interruptible+0x38/0x6c) from [<bf0d4038>] (lpm_ioctl+0x38/0x1fc [lpm_omap3530])
[  292.107757] [<bf0d4038>] (lpm_ioctl+0x38/0x1fc [lpm_omap3530]) from [<c00efbe4>] (vfs_ioctl+0x2c/0xac)
[  292.117095] [<c00efbe4>] (vfs_ioctl+0x2c/0xac) from [<c00f02c4>] (do_vfs_ioctl+0x570/0x5b8)
[  292.125518] [<c00f02c4>] (do_vfs_ioctl+0x570/0x5b8) from [<c00f0340>] (sys_ioctl+0x34/0x54)
[  292.133911] [<c00f0340>] (sys_ioctl+0x34/0x54) from [<c0036f40>] (ret_fast_syscall+0x0/0x2c)
[  292.142425] Code: e2803004 e594500c e58d3000 e3a03000 (e581d000)
[  292.148773] ---[ end trace 36b7f280cc874413 ]---
[  292.153442] note: gst-launch-0.10[1156] exited with preempt_count 1
[  292.159820] BUG: scheduling while atomic: gst-launch-0.10/1156/0x40000002
[  292.166656] Modules linked in: sdmak lpm_omap3530 dsplinkk cmemk ipv6 [last unloaded: sdmak]
[  292.175262] [<c003bb60>] (unwind_backtrace+0x0/0xdc) from [<c0467f08>] (schedule+0x80/0x514)
[  292.183776] [<c0467f08>] (schedule+0x80/0x514) from [<c005c9c8>] (__cond_resched+0x14/0x20)
[  292.192260] [<c005c9c8>] (__cond_resched+0x14/0x20) from [<c0468510>] (_cond_resched+0x30/0x40)
[  292.201049] [<c0468510>] (_cond_resched+0x30/0x40) from [<c00cd760>] (__get_user_pages+0x1cc/0x1d8)
[  292.210205] [<c00cd760>] (__get_user_pages+0x1cc/0x1d8) from [<c00c91b8>] (get_user_pages_fast+0x5c/0x74)
[  292.219848] [<c00c91b8>] (get_user_pages_fast+0x5c/0x74) from [<c008f2c8>] (get_futex_key+0x98/0x150)
[  292.229156] [<c008f2c8>] (get_futex_key+0x98/0x150) from [<c008fa10>] (futex_wake+0x44/0x130)
[  292.238128] [<c008fa10>] (futex_wake+0x44/0x130) from [<c0091354>] (do_futex+0xc8/0xcc0)
[  292.246307] [<c0091354>] (do_futex+0xc8/0xcc0) from [<c0092094>] (sys_futex+0x148/0x15c)
[  292.254486] [<c0092094>] (sys_futex+0x148/0x15c) from [<c00644e4>] (mm_release+0xa4/0xb0)
[  292.262725] [<c00644e4>] (mm_release+0xa4/0xb0) from [<c006848c>] (exit_mm+0x14/0x13c)
[  292.270721] [<c006848c>] (exit_mm+0x14/0x13c) from [<c006a2c4>] (do_exit+0x1b4/0x69c)
[  292.278656] [<c006a2c4>] (do_exit+0x1b4/0x69c) from [<c003a844>] (die+0x27c/0x2b0)
[  292.286285] [<c003a844>] (die+0x27c/0x2b0) from [<c003c9a0>] (__do_kernel_fault+0x64/0x74)
[  292.294647] [<c003c9a0>] (__do_kernel_fault+0x64/0x74) from [<c003cb74>] (do_page_fault+0x1c4/0x1d8)
[  292.303863] [<c003cb74>] (do_page_fault+0x1c4/0x1d8) from [<c00362a8>] (do_DataAbort+0x34/0x94)
[  292.312652] [<c00362a8>] (do_DataAbort+0x34/0x94) from [<c0036a6c>] (__dabt_svc+0x4c/0x60)
[  292.320983] Exception stack(0xc55d1e80 to 0xc55d1ec8)
[  292.326080] 1e80: c5ad4718 00000000 c55d0000 00000000 c55d0000 c49acdc0 7fffffff c5ad46bc
[  292.334716] 1ea0: 00000000 c55d0000 c5ad4718 0000240c 00000000 c55d1ec8 c0085f3c c0469f74
[  292.342956] 1ec0: 60000093 ffffffff
[  292.346527] [<c0036a6c>] (__dabt_svc+0x4c/0x60) from [<c0469f74>] (__down_interruptible+0x28/0xc8)
[  292.355560] [<c0469f74>] (__down_interruptible+0x28/0xc8) from [<c0085f3c>] (down_interruptible+0x38/0x6c)
[  292.365325] [<c0085f3c>] (down_interruptible+0x38/0x6c) from [<bf0d4038>] (lpm_ioctl+0x38/0x1fc [lpm_omap3530])
[  292.375518] [<bf0d4038>] (lpm_ioctl+0x38/0x1fc [lpm_omap3530]) from [<c00efbe4>] (vfs_ioctl+0x2c/0xac)
[  292.384918] [<c00efbe4>] (vfs_ioctl+0x2c/0xac) from [<c00f02c4>] (do_vfs_ioctl+0x570/0x5b8)
[  292.393341] [<c00f02c4>] (do_vfs_ioctl+0x570/0x5b8) from [<c00f0340>] (sys_ioctl+0x34/0x54)
[  292.401763] [<c00f0340>] (sys_ioctl+0x34/0x54) from [<c0036f40>] (ret_fast_syscall+0x0/0x2c)

I searched in the internet. i didn't find any solution.

for cmemk i'm using the following command to insert using script in /etc/init.d/loadmodule-rc

modprobe cmemk phys_start=0x86300000 phys_end=0x87200000 useHeapIfPoolUnavailable=1 allowOverlap=1

There are my bootargs

setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw ip=off mem=99M@0x80000000 mmem=99M@0x88000000 purate=720  omap_vout.vid1_static_vrfb_alloc=y omapfb.mode=dvi:hd720 omapdss.def_disp=dvi omapfb.vram=0:3M  rootwait'

Even when we try to run decode or encode as per OMAP3530_Software_Developers_Guide.pdf,  in beagle board we are getting same error.

Please help us to solve this issue.


Thank You

  • Hello,

    Please check yours bootargs.

    Load the kernel modules before running gstreamer pipelines:

    target # /etc/init.d/loadmodule-rc restart

    You could use gstreamer examples from here:

    http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines#OMAP35x

    Best Regards

    Margarita

  • Hello Margarita,

      Thanks for the reply. We are already loading the modules on launching the application. We solved the error. But still gstreamer not playing the video.

    ti-dvsdk_omap3530-evm_4_01_00_09 Matrix_gui not working on beagle board. After booting display rotates into 90 degree and mouse/Keyboard not working. So, I'm using DM3730 Matrix_gui from ti-DVSDK_dm3730-evm_04_03_00_06 package and copied dm3730 directory files into omap3530 directory and  compiled along with OMAP DVSDK  .

    Matrix GUI booted successfully.

    Now, in the matrix GUI i'm trying to run demo in  multimedia->MP4 Decode (H.264+ AAC) and multimedia->Decode-> startdemo Nothing happening.

    Is that because of we are using DM3730 GUI? even QT also new to us.


    We will try the gstreamer pipelines examples and getback to you.

    Thank you

    Eswar



  • Hello Eswar,

    Let me know the result. You could try and examples from OMAP3530_Software_Developers_Guide.pdf

    The matrix_gui should be stopped, when you play gstreamer pipelines.

    Best Regards,

    Margarita

  • Hi Margarita,

    I run the following command as per Software developers guide.

    gst-launch filesrc location=/usr/share/ti/data/videos/davincieffect_480p30.264 \
    ! typefind ! TIViddec2 ! TIDmaiVideoSink rotation=270 videoOutput=DVI videoStd=VGA -v

    I changed videooutput=DVI insted of LCD.

    After running the above command matrix-gui turned off and the following error message came.

    root@omap3evm:~# gst-launch filesrc location=/usr/share/ti/data/videos/davincief
    fect_480p30.264 \
    > ! typefind ! TIViddec2 ! TIDmaiVideoSink rotation=270 videoOutput=DVI videoStd
    =VGA -v
    Setting pipeline to PAUSED ...
    /GstPipeline:pipeline0/GstTypeFindElement:typefindelement0.GstPad:src: caps = video/x-h264
    Pipeline is PREROLLING ...
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:sink: caps = video/x-h264
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)576
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)480
    /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(in0
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    ERROR: from element /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0: Unable to initialize display

    Additional debug info:
    gsttidmaivideosink.c(1657): gst_tidmaivideosink_render (): /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0
    Execution ended after 1007080 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0.GstPad:sink: caps = NULL
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = NULL
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:sink: caps = NULL
    /GstPipeline:pipeline0/GstTypeFindElement:typefindelement0.GstPad:src: caps = NULL
    Setting pipeline to NULL ...
    Freeing pipeline ...

    --> again i rebooted and killed matrix-GUI using ps. And run the above command. Same as above error came.

    What can we do now.

    Thank You

    ~Eswar

  • Hello,

    You could try this:

    gst-launch -v filesrc location=/.../sample.264 ! TIViddec2 codecName=h264dec engineName=codecServer ! TIDmaiVideoSink videoStd=VGA videoOutput=DVI sync=false

    and let me know the result.

    Best regards
    Margarita
  • Hi,
     I tried the command.

    gst-launch -v filesrc location=/.../sample.264 ! TIViddec2 codecName=h264dec engineName=codecServer ! TIDmaiVideoSink videoStd=VGA videoOutput=DVI sync=false

    First i re-initialized the modules.

    root@omap3evm:~# /etc/init.d/loadmodule-rc restart

    root@omap3evm:~# gst-launch -v filesrc location=/.../.../.../sample.264 ! TIVidd
    ec2 codecName=h264dec engineName=codecServer ! TIDmaiVideoSink videoStd=VGA vide
    oOutput=DVI sync=false
    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Resource not found.
    Additional debug info:
    gstfilesrc.c(1055): gst_file_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
    No such file "/.../.../.../sample.264"
    Setting pipeline to NULL ...
    Freeing pipeline ...

    root@omap3evm:~#

    Then i searched for the sample.264. It is not found

    So, i replaced the file with davincieffect_480p30.264

    root@omap3evm:~# gst-launch -v filesrc location=/usr/share/ti/data/videos/davinc
    ieffect_480p30.264 ! TIViddec2 codecName=h264dec engineName=codecServer ! TIDmai
    VideoSink videoStd=VGA videoOutput=DVI sync=false
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)576
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)480
    /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int0
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    ERROR: from element /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0: Unable to initialize display

    Additional debug info:
    gsttidmaivideosink.c(1657): gst_tidmaivideosink_render (): /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0
    Execution ended after 1007080 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0.GstPad:sink: caps = NULL
    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = NULL
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@omap3evm:~#

    Same error and my matrix-gui turned off and no display in the LCD.

    and i followed the below forum link

    http://e2e.ti.com/support/embedded/linux/f/354/p/91082/316977.aspx#316977

    when i tried the command

    gst-launch videotestsrc  peer-alloc=false ! TIDmaiVideoSink userUserptrBufs=true numBufs=3 videoStd=720P_60 videoOutput=component

    a warning saying

    root@omap3evm:~# gst-launch videotestsrc  peer-alloc=false ! TIDmaiVideoSink use
    rUserptrBufs=true numBufs=3 videoStd=720P_60 videoOutput=component
    WARNING: erroneous pipeline: no property "userUserptrBufs" in element "tidmaivideosink0"

    What might be the problem?


    Thanks You

    Eswar

  • Hi,

            Any suggestions on this issue. We are still here.

  • Hello,

    I will check and I will let you know the result.

    Best Regard,

    Margarita