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.

OMAP35x DVSDK demos on BeagleBoard

Other Parts Discussed in Thread: OMAP3530

Hello,

I am trying to run the demos provided along with OMAP3530 DVDSK version 3.01.00.06 on BeagleBoard running Angstrom linux. Specifically I ran the video encode example found in

dvsdk_3_01_00_06/dmai_2_05_00_08/packages/ti/sdo/dmai/apps/video_encode_io1/linux/video_encode_io1_omap3530.x470MV

in accordance with the wiki page on OMAP25x DVSDK.

 

But I am getting an error saying "Failed to open codec engine". It is failing at the Engine_open() function.

 

Is there any configurations I need to do on the BeagleBoard inorder to run the demos?

 

Thanks,

Senthil Prakash R

  • Can you set CE_DEBUG and provide more details about the error?

    http://processors.wiki.ti.com/index.php/CE_DEBUG

    Chris

  • Hello,

    Thanks for the information on CE_DEBUG. With level 2, I ran the application and here is the output:

     

    Starting application...
    @0,978,332us: [+4 T:0x4001f080] OG - Global_init> This program was built with the following packages:
    @0,979,003us: [+4 T:0x4001f080] OG -     package gnu.targets.arm.rtsv5T (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/gnu/targets/arm/rtsv5T/) [1, 0, 0, 0]
    @0,979,248us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.aachedec (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/aachedec/) [1, 0, 0]
    @0,979,431us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.g711dec (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/g711dec/) [1, 0, 0]
    @0,979,583us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.g711enc (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/g711enc/) [1, 0, 0]
    @0,979,766us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.h264dec (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/h264dec/) [1, 0, 0]
    @0,979,919us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.h264enc (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/h264enc/) [1, 0, 0]
    @0,980,072us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.jpegdec (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/jpegdec/) [1, 0, 0]
    @0,980,255us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.jpegenc (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/jpegenc/) [1, 0, 0]
    @0,981,750us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.mpeg2dec (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/mpeg2dec/) [1, 0, 0]
    @0,982,025us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.mpeg4dec (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/mpeg4dec/) [1, 0, 0]
    @0,982,421us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.mpeg4enc (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/mpeg4enc/) [1, 0, 0]
    @0,982,635us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.deinterlacer (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/deinterlacer/) [1, 0, 0]
    @0,982,818us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.global (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/global/) [1, 0, 0]
    @0,982,971us: [+4 T:0x4001f080] OG -     package dsplink.gpp (/Arago/arago-install/dvsdk_3_01_00_06/dsplink_linux_1_65_00_01/packages/dsplink/gpp/) [5, 0, 0]
    @0,983,154us: [+4 T:0x4001f080] OG -     package ti.sdo.linuxutils.cmem (/Arago/arago-install/dvsdk_3_01_00_06/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/cmem/) [2, 2, 0]
    @0,983,306us: [+4 T:0x4001f080] OG -     package ti.bios.power (/Arago/arago-install/dvsdk_3_01_00_06/local_power_manager_linux_1_24_01/packages/ti/bios/power/) [1, 1, 1]
    @0,983,459us: [+4 T:0x4001f080] OG -     package gnu.targets (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/gnu/targets/) [1, 0, 1]
    @0,983,642us: [+4 T:0x4001f080] OG -     package gnu.targets.arm (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/gnu/targets/arm/) [1, 0, 0, 0]
    @0,983,795us: [+4 T:0x4001f080] OG -     package ti.sdo.utils.trace (/Arago/arago-install/dvsdk_3_01_00_06/framework_components_2_25_01_05/packages/ti/sdo/utils/trace/) [1, 0, 0]
    @0,983,947us: [+4 T:0x4001f080] OG -     package ti.xdais.dm (/Arago/arago-install/dvsdk_3_01_00_06/xdais_6_25_01_08/packages/ti/xdais/dm/) [1, 0, 5]
    @0,984,130us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.utils.xdm (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/utils/xdm/) [1, 0, 2]
    @0,984,313us: [+4 T:0x4001f080] OG -     package ti.xdais (/Arago/arago-install/dvsdk_3_01_00_06/xdais_6_25_01_08/packages/ti/xdais/) [1, 2.0, 1]
    @0,984,466us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.node (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/node/) [1, 0, 0]
    @0,984,649us: [+4 T:0x4001f080] OG -     package ti.sdo.fc.global (/Arago/arago-install/dvsdk_3_01_00_06/framework_components_2_25_01_05/packages/ti/sdo/fc/global/) [1, 0, 0]
    @0,984,924us: [+4 T:0x4001f080] OG -     package ti.sdo.fc.memutils (/Arago/arago-install/dvsdk_3_01_00_06/framework_components_2_25_01_05/packages/ti/sdo/fc/memutils/) [1, 0, 0]
    @0,985,107us: [+4 T:0x4001f080] OG -     package ti.sdo.fc.utils (/Arago/arago-install/dvsdk_3_01_00_06/framework_components_2_25_01_05/packages/ti/sdo/fc/utils/) [1, 0, 2]
    @0,985,260us: [+4 T:0x4001f080] OG -     package ti.sdo.fc.dman3 (/Arago/arago-install/dvsdk_3_01_00_06/framework_components_2_25_01_05/packages/ti/sdo/fc/dman3/) [1, 0, 4]
    @0,985,443us: [+4 T:0x4001f080] OG -     package ti.sdo.fc.acpy3 (/Arago/arago-install/dvsdk_3_01_00_06/framework_components_2_25_01_05/packages/ti/sdo/fc/acpy3/) [1, 0, 4]
    @0,985,595us: [+4 T:0x4001f080] OG -     package ti.catalog.arm (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/ti/catalog/arm/) [1, 0, 1, 0]
    @0,985,748us: [+4 T:0x4001f080] OG -     package ti.catalog (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/ti/catalog/) [1, 0, 0]
    @0,985,900us: [+4 T:0x4001f080] OG -     package ti.catalog.c6000 (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/ti/catalog/c6000/) [1, 0, 0, 0]
    @0,986,083us: [+4 T:0x4001f080] OG -     package ti.platforms.evm3530 (/Arago/arago-install/dvsdk_3_01_00_06/xdctools_3_16_01_27/packages/ti/platforms/evm3530/) [1, 0, 0]
    @0,986,236us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.osal (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/osal/) [2, 0, 2]
    @0,986,419us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.osal.linux (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/osal/linux/) [2, 0, 1]
    @0,986,572us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.ipc (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/) [2, 0, 1]
    @0,986,724us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.ipc.dsplink (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/dsplink/) [2, 0, 1]
    @0,986,907us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.alg (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/alg/) [1, 0, 1]
    @0,987,060us: [+4 T:0x4001f080] OG -     package ti.sdo.ce (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/) [1, 0, 6]
    @0,987,243us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.speech (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/speech/) [1, 0, 2]
    @0,987,487us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.speech1 (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/speech1/) [1, 0, 1]
    @0,987,518us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.audio (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/audio/) [1, 0, 2]
    @0,987,548us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.audio1 (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/audio1/) [1, 0, 1]
    @0,987,579us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.video (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/video/) [1, 0, 3]
    @0,987,609us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.video1 (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/video1/) [1, 0, 2]
    @0,987,640us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.video2 (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/video2/) [1, 0, 2]
    @0,987,701us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.image (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/image/) [1, 0, 3]
    @0,987,731us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.image1 (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/image1/) [1, 0, 1]
    @0,987,762us: [+4 T:0x4001f080] OG -     package ti.sdo.dmai (/Arago/arago-install/dvsdk_3_01_00_06/dmai_2_05_00_08/packages/ti/sdo/dmai/) [1, 0, 0]
    @0,987,792us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.aachedec.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/aachedec/ce/) [1, 0, 0]
    @0,987,823us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.g711dec.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/g711dec/ce/) [1, 0, 0]
    @0,987,854us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.g711enc.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/g711enc/ce/) [1, 0, 0]
    @0,987,884us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.h264dec.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/h264dec/ce/) [1, 0, 0]
    @0,987,915us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.h264enc.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/h264enc/ce/) [1, 0, 0]
    @0,987,945us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.jpegdec.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/jpegdec/ce/) [1, 0, 0]
    @0,987,976us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.jpegenc.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/jpegenc/ce/) [1, 0, 0]
    @0,988,006us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.mpeg2dec.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/mpeg2dec/ce/) [1, 0, 0]
    @0,988,037us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.mpeg4dec.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/mpeg4dec/ce/) [1, 0, 0]
    @0,988,067us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.mpeg4enc.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/mpeg4enc/ce/) [1, 0, 0]
    @0,988,098us: [+4 T:0x4001f080] OG -     package ti.sdo.ce.universal (/Arago/arago-install/dvsdk_3_01_00_06/codec_engine_2_25_01_06/packages/ti/sdo/ce/universal/) [1, 0, 0]
    @0,988,128us: [+4 T:0x4001f080] OG -     package ti.sdo.codecs.deinterlacer.ce (/Arago/arago-install/dvsdk_3_01_00_06/cs1omap3530_1_01_00/packages/ti/sdo/codecs/deinterlacer/ce/) [1, 0, 0]
    @0,988,159us: [+4 T:0x4001f080] OG -     package video_encode_io1_omap3530_config (/Arago/arago-install/dvsdk_3_01_00_06/dmai_2_05_00_08/packages/ti/sdo/dmai/apps/video_encode_io1/linux/video_encode_io1_omap3530_config/) []
    @0,993,011us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Sem_create> count: 0
    @0,993,316us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x631c0]
    @0,993,499us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Sem_create> count: 0
    @0,993,652us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x631d8]
    @0,994,262us: [+0 T:0x4001f080] OT - Thread_create> Enter (fxn=0x201f4, attrs=0x0)
    @0,995,147us: [+0 T:0x4001f080] OT - Thread_create> Exit (task=0x63210)
    @0,996,429us: [+0 T:0x4001f080] ti.sdo.ce.alg - ALG_init> Enter
    @0,996,673us: [+0 T:0x4001f080] ti.sdo.ce.alg - ALG_init> Exit
    @0,997,070us: [+6 T:0x4001f080] CE - Engine_init> CE debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, 2=good, 3=max)
    @0,997,467us: [+0 T:0x4001f080] CS - Server_init()
    @0,998,046us: [+0 T:0x4001f080] CS - Server_init> Global_useLinkArbiter = 0
    @0,999,542us: [+0 T:0x4001f080] CE - Engine_open> Enter('encode', 0x0, 0xbeb6596c)
    @1,000,793us: [+0 T:0x4001f080] CE - rserverOpen('cs.x64P'), count = 0
    @1,001,190us: [+0 T:0x4001f080] OP - Processor_create> Enter(imageName='cs.x64P', linkCfg='(null)', attrs=0xbeb65950)
    @1,001,434us: [+1 T:0x40ac9490] OP - daemon> thread created.
    @1,001,617us: [+0 T:0x40ac9490] OP - getCmd_d> Enter (proc=0x40ac8dd8)
    @1,001,770us: [+0 T:0x40ac9490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x631c0] timeout[0xffffffff]
    @1,002,044us: [+7 T:0x4001f080] OP - Processor_create> ERROR: cannot access file cs.x64P
    @1,002,227us: [+6 T:0x4001f080] CE - rserverOpen: can't start 'cs.x64P'; Processor_create failed

    @1,002,410us: [+0 T:0x4001f080] CE - rserverOpen('cs.x64P'): 0x0 done.
    @1,002,563us: [+0 T:0x4001f080] CE - Engine_close(0x637f8)
    @1,002,716us: [+0 T:0x4001f080] CS - Server_disconnectTrace('0x637f8', 0x0)
    @1,003,021us: [+0 T:0x4001f080] CS - Server_connectTrace> return(0)
    @1,003,234us: [+0 T:0x4001f080] CE - Engine_open> return(0)
    Failed to open codec engine: encode
    End of application.
    @1,003,845us: [+0 T:0x4001f080] OP - doCmd> Enter (cmdId=3, proc=0x0)
    @1,004,882us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x631c0]
    @1,005,279us: [+0 T:0x40ac9490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x631c0] status[0]
    @1,005,340us: [+0 T:0x40ac9490] OP - getCmd_d> Exit (result=3)
    @1,005,371us: [+0 T:0x40ac9490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x631d8]
    @1,005,432us: [+0 T:0x40ac9490] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x631d8]
    @1,006,347us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x631c0]
    @1,006,561us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x631d8] timeout[0xffffffff]
    @1,006,744us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x631d8] status[0]
    @1,006,896us: [+0 T:0x4001f080] OP - doCmd> Exit (result=1)
    @1,007,049us: [+0 T:0x4001f080] OT - Thread_delete> Enter (task=0x63210)
    @1,007,232us: [+4 T:0x4001f080] OT - Thread_delete> pthread_cancel (0x3)
    @1,007,415us: [+4 T:0x4001f080] OT - Thread_delete> pthread_join (0x0)
    @1,007,598us: [+0 T:0x4001f080] OT - Thread_delete> Exit (task=0x63210)
    @1,007,751us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x631c0]
    @1,008,056us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
    @1,008,209us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x631d8]
    @1,008,392us: [+0 T:0x4001f080] ti.sdo.ce.osal.Sem - Leaving Sem_delete>

     

    There was an error related to "OP - Processor_create> ERROR: cannot access file cs.x64P". Is this the actual source of error? Can you please elaborate?

     

    Thanks,

    Senthil Prakash R

  • Senthil Prakash Ramalingam said:
    There was an error related to "OP - Processor_create> ERROR: cannot access file cs.x64P". Is this the actual source of error? Can you please elaborate?

    This error indicates the file 'cs.x64P' can't be found.  Is it in the same directory as your application?

    FWIW, the source code is provided - this particular error msg can be found in codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/dsplink/Processor_dsplink.c, in the Processor_create() fxn.  You can see it's just trying to locate the file (using File_stat(), which is just calling the stat() fxn on Linux) - and that's failing.

    Chris

  • Hello,

    Thanks for the pointing the souce code. That was helpful.

    I understand that in the default software (Linux and others) that came with BeagleBoard, the DSP link is not enabled. Are they some runtime configurations (I believe they are not) or should I rebuild the BeagleBoard image to enable the DSP link?

    Thanks,

    Senthil Prakash R

  • Thanks a lot for the resource pointers. I will try building them

     

    Senthil