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.

Unable to gst-launch

Hi there!

My board is the DM816x/C6A816x/AM389x EVM 512Mb Rev-G (with daughter card). I installed EZSDK 5.04 (EZ SDK 5_04_00_11) and installed to the SD card. Following the instructions on the EZ Software Developers Guide, I have been able to run succesfully some of the demo applications (like OMTB, Qt examples and Graphics SDK examples) that come installed in the EZ SDK. The matrix GUI also loads 2D and 3D graphics applications without problem. (I havn't tried the SysLink and Codec Engine examples, since these require modification of the bootargs).

My bootargs are:

setenv bootargs 'console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=364M@0x80000000 324M@0x9F900000 notifyk.vpssm3_sva=0xBF900000 ip=off noinitrd'

However, I can't run the GStreamer pipelines as proposed in the Software Developers Guide. After turning Graphics Plane 0 off and executing gst-launch, I get this:

root@dm816x-evm:~#
root@dm816x-evm:~# gst-launch -v filesrc location=/usr/share/ti/data/videos/dm81
6x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec !
omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! omx_videosink sync=fa
lse
Assertion at Line no: 419 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/MessageQDrv.c: (cargs.args.create.handle != NULL) : failed
Assertion at Line no: 419 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/MessageQDrv.c: (cargs.args.create.handle != NULL) : failed
Assertion at Line no: 419 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/MessageQDrv.c: (cargs.args.create.handle != NULL) : failed
Assertion at Line no: 1244 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Assertion at Line no: 700 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (queueId != MessageQ_INVALIDMESSAGEQ) : failed
ServiceMgr_prime: MessageQ_put failed: status = 0xfffffffe
Assertion at Line no: 1244 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Assertion at Line no: 700 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (queueId != MessageQ_INVALIDMESSAGEQ) : failed
ServiceMgr_prime: MessageQ_put failed: status = 0xfffffffe
Assertion at Line no: 1244 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Assertion at Line no: 700 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (queueId != MessageQ_INVALIDMESSAGEQ) : failed
ServiceMgr_prime: MessageQ_put failed: status = 0xfffffffe
Assertion at Line no: 1244 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Assertion at Line no: 700 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (queueId != MessageQ_INVALIDMESSAGEQ) : failed
ServiceMgr_prime: MessageQ_put failed: status = 0xfffffffe
Assertion at Line no: 1244 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Assertion at Line no: 700 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (queueId != MessageQ_INVALIDMESSAGEQ) : failed
ServiceMgr_prime: MessageQ_put failed: status = 0xfffffffe
Assertion at Line no: 1244 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Assertion at Line no: 766 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (handle != NULL) : failed
Caught SIGSEGV accessing address 0xe
Spinning. Please run 'gdb gst-launch 1504' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
Assertion at Line no: 419 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/MessageQDrv.c: (cargs.args.create.handle != NULL) : failed
Assertion at Line no: 700 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_10_03_20-r4j/syslink_2_10_03_20/packages/ti/syslink/ipc/hlos/usr/MessageQ.c: (queueId != MessageQ_INVALIDMESSAGEQ) : failed
ServiceMgr_stop: MessageQ_put failed: status = 0xfffffffe

Caught interrupt --
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# env
TSLIB_TSDEVICE=/dev/input/touchscreen0
MAIL=/var/mail/root
OLDPWD=/usr/bin/SGX/demos/Raw
HOME=/home/root
PS1=\u@\h:\w\$
LOGNAME=root
TERM=linux
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
SHELL=/bin/sh
PWD=/home/root
TZ=UTC
EDITOR=/bin/vi
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# lsmod
Module Size Used by
bufferclass_ti 4950 0
omaplfb 10794 0
pvrsrvkm 155594 2 bufferclass_ti,omaplfb
ti81xxhdmi 16163 0
ti81xxfb 21979 1
vpss 75009 3 omaplfb,ti81xxhdmi,ti81xxfb
syslink 1119122 0
ipv6 209855 12
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~#

Any clues on what the problem may be related to?

Thanks in advance!

  • Solved!

    In order to run the GStreamer examples, the memory map also needs to be changed (just as needed for the SysLink and Codec Engine examples).

    I just changed my bootargs for:

    setenv bootargs 'console=ttyO2,115200n8 rootwait rw mem=169M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=10.1.1.133:/home/dm816x/targetfs ip=10.1.1.137:10.1.1.133:10.1.1.1:255.255.255.0::eth0:off'

    (where I have only changed the 'mem' parameter).

    And now all of the examples run flawlessly!

  • Hi,

    I am also facing the same issue. But still its not solved. I am getting below error message while running ti-omx applications.

    root@dm816x-evm:/usr/share/ti/ti-omx# ./decode_display_a8host_debug.xv5T -w 800
    -h 480 -i /usr/share/ti/data/videos/dm816x_1080p_demo.264 -f 30 -c h264 -g 0 -d
    1
    input file: /usr/share/ti/data/videos/dm816x_1080p_demo.264
    width: 800
    height: 480
    frame_rate: 30
    gfx: fbdev disable
    codec: h264
    display_id: 1
     Decoder-Display example
    ===============================
     OMX_Init completed
     UIAClient is ready to send a UIA configuration command
    UIAClient received UIA_CONFIGURE_ACK
    UIAClient is done sending requests
    UIAClient is ready to send a UIA configuration command
    UIAClient received UIA_CONFIGURE_ACK
    UIAClient is done sending requests
     opening file
     decoder compoenent is created
    PADX: 32 PADY: 24
     level set is 12
     scalar compoenent is created
    set input port params (width = 800, height = 480)
    set output port params (width = 1920, height = 1080)
    set number of channels
    set input resolution
    set output resolution
    enable scalar input port
    got eventEnable/Disable Event
    enable scalar output port
    got eventEnable/Disable Event
    found handle 0x130068 for component OMX.TI.VPSSM3.VFDC
     got display handle
    found handle 0x134070 for component OMX.TI.VPSSM3.CTRL.DC
    Buffer Size computed: 4147200
    set input port params (width = 800, height = 480)
    setting input and output memory type to default
    enable input port
    got eventEnable/Disable Event
     connect call for decoder-scalar
      connect call for scalar-display
      decoder inport buffers allocated
      decoder outport buffers allocated
     got eventState changed to: OMX_StateIdle
     decoder state IDLE
      Scalar input port use buffer done
      scalar outport buffers allocated
     got eventState changed to: OMX_StateIdle
     scalar state IDLE
     got eventState changed to: OMX_StateIdle
     ctrl-dc state IDLE
     got eventState changed to: OMX_StateIdle
     display state IDLE
     got eventState changed to: OMX_StateExecuting
     display control state execute
     got event*** unrecoverable error: OMX_ErrorBadParameter (0x80001005)

    Nothing is displaying in my LCD. I am using DM8168 processor and my EZSDK version is 5_05_02_00.

    Please suggest me any solution to solve this issue.

    Thanks in advance.

    Regards,

    Salih