软件环境:dvsdk_2_00_00_22(内含dsplink-1_61_03-prebuilt)
问题:在http://processors.wiki.ti.com/index.php/Changing_the_DVEVM_memory_map 中提到,1.40版本以上的dsplink,只需要在arm端的cfg文件中,指定dsplink对应的内存分配即可,但是在dvsdk2.0自带的例子中,没有一个有类似的用法的,并且在我目前的dsplink中,也不能像1.40之前版本那样规划内存,请问我应该怎样规划这一块的内存的?以下是官方文档的资料:
Chris Meng:
你好,
我认为网上资料的意思就是让你在cfg文件里面添加osalGlobal.armDspLinkConfig,请问你添加后有什么问题?
eric eric3:
回复 Chris Meng:
我有在arm端的cfg文件中加入osalGlobal.armDspLinkConfig的,并且起始地址和长度都是和dsp中的tcf文件分配的一致的。
修改后我将程序放到板子上运行,提示:
TraceUtil> Error: Failed to open codec engine "imgalg" TraceUtil> Error: Aborting TraceUtil_startarm端app文件和x64P文件存放在同一个目录中,pp程序指定在当前目录中寻找x64P文件。
我在网上查到一些资料说是由于arm端分配的dsplink内存和dsp端指定的内存不一致导致的,具体问题我也不确定。
Chris Meng:
回复 eric eric3:
你好,
请问你使用的DVSDK里面的CE的版本是多少?
http://processors.wiki.ti.com/index.php/CE_Config_Updates#DSP_Link.2C_ARM-side_memory_map_config_-_for_dual-core_ARM-DSP_devices
Chris Meng:
回复 Chris Meng:
你好,
我看了一下DVSDK2.0里面的CE版本是codec_engine_2_23_01。也就是2.x的。请参考我上面提供链接里面的下面的内容:
CE version where a change was introducedChangeExample configuration
1.00
Initial implementation
n/a. Configuration was done statically in DSP Link. See DSP Link 1.30 documentation for details on how to configure the memory map.1.20
Dynamic configuration of memory map used by DSPLINK was introduced. The memory map can be specified in the application's cfg file using the osalGlobal.armDspLinkConfig variable. This configuration must match how memory is defined in the server's DSP/BIOS tcf configuration filevar osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global'); osalGlobal.armDspLinkConfig = {memTable: [["DDRALGHEAP", {addr: 0x88000000, size: 0x07A00000, type: "other"}],["DDR2",{addr: 0x8FA00000, size: 0x00400000, type: "main" }],["DSPLINKMEM", {addr: 0x8FE00000, size: 0x00100000, type: "link" }],["RESETCTRL",{addr: 0x8FF00000, size: 0x00000080, type: "reset"}],], };2.00
The function Engine.createFromServer() was introduced. This function automatically configures an engine using the memory configuration specified in the server's DSP/BIOS tcf configuration filevar Engine = xdc.useModule('ti.sdo.ce.Engine'); var demoEngine = Engine.createFromServer("encode",// Name of engine"./encodeCombo.x64P",// Path to server executable"ti.sdo.servers.encode" // Server package name);
eric eric3:
回复 Chris Meng:
谢谢回复,dvsdk内codec_engine版本号为2.23。
你发过来的那个链接下午看过了,在cfg中也进行了对应的修改,还是会在Engine_open的时候出错,我开启了CE_DEBUG=2,打印出来的log如下:
CE_DEBUG=2 ./encode -v test.264 -b 1000000 -k -y 2 Encode demo started. @0,572,753us: [+4 T:0x4001f950] OG - Global_init> This program was built with the following packages: @0,573,329us: [+4 T:0x4001f950] OG -package gnu.targets.rts470MV (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/rts470MV/) [1,0,0,0,1242339149665] @0,573,596us: [+4 T:0x4001f950] OG -package ti.sdo.codecs.h264enc (/opt/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/h264enc/) [1,0,0,1435734370000] @0,573,773us: [+4 T:0x4001f950] OG -package ti.sdo.codecs.mpeg4enc (/opt/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/mpeg4enc/) [1,0,0,1435734370000] @0,573,934us: [+4 T:0x4001f950] OG -package ti.sdo.codecs.g711enc (/opt/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/g711enc/) [1,0,0,1435734369000] @0,574,089us: [+4 T:0x4001f950] OG -package ti.sdo.ce.global (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/global/) [1,0,0,1240276693464] @0,574,335us: [+4 T:0x4001f950] OG -package ti.xdais.dm (/opt/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/dm/) [1,0,5,1236972452910] @0,574,491us: [+4 T:0x4001f950] OG -package ti.sdo.utils.trace (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/utils/trace/) [1,0,0,1240266922890] @0,574,645us: [+4 T:0x4001f950] OG -package ti.sdo.ce.utils.xdm (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/xdm/) [1,0,2,1240276919490] @0,574,835us: [+4 T:0x4001f950] OG -package dsplink.gpp (/opt/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt/packages/dsplink/gpp/) [5,0,0,1436427730000] @0,574,995us: [+4 T:0x4001f950] OG -package ti.sdo.linuxutils.cmem (/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/) [2,2,0,1240253001679] @0,575,150us: [+4 T:0x4001f950] OG -package ti.xdais (/opt/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/) [1,2,1,1236972427008] @0,575,293us: [+4 T:0x4001f950] OG -package ti.sdo.ce.node (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/node/) [1,0,0,1240276734858] @0,575,439us: [+4 T:0x4001f950] OG -package ti.sdo.fc.global (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/global/) [1,0,0,1240266696499] @0,575,588us: [+4 T:0x4001f950] OG -package ti.sdo.fc.dman3 (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/dman3/) [1,0,4,1240266658662] @0,575,735us: [+4 T:0x4001f950] OG -package ti.sdo.fc.memutils (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/memutils/) [1,0,0,1240266801007] @0,575,885us: [+4 T:0x4001f950] OG -package ti.sdo.fc.acpy3 (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/acpy3/) [1,0,4,1240266659108] @0,576,033us: [+4 T:0x4001f950] OG -package gnu.targets (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/) [1,0,1,1242339114958] @0,576,181us: [+4 T:0x4001f950] OG -package ti.catalog.arm (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/catalog/arm/) [1,0,1,0,0] @0,576,326us: [+4 T:0x4001f950] OG -package ti.platforms.evmDM6446 (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/platforms/evmDM6446/) [1,0,0,1,0] @0,576,475us: [+4 T:0x4001f950] OG -package ti.sdo.ce.osal (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/) [2,0,2,1240276730877] @0,576,623us: [+4 T:0x4001f950] OG -package ti.sdo.ce.osal.linux (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/linux/) [2,0,1,1240276736840] @0,576,770us: [+4 T:0x4001f950] OG -package ti.sdo.ce.ipc (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/) [2,0,1,1240276698961] @0,576,916us: [+4 T:0x4001f950] OG -package ti.sdo.ce.ipc.dsplink (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/dsplink/) [2,0,1,1240276714152] @0,577,063us: [+4 T:0x4001f950] OG -package ti.sdo.ce.alg (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/alg/) [1,0,1,1240276276798] @0,577,216us: [+4 T:0x4001f950] OG -package ti.sdo.ce (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/) [1,0,6,1240276276491] @0,577,760us: [+4 T:0x4001f950] OG -package ti.sdo.ce.video1 (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/video1/) [1,0,2,1240276935900] @0,577,968us: [+4 T:0x4001f950] OG -package ti.sdo.codecs.h264enc.ce (/opt/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/h264enc/ce/) [1,0,0,1435734370000] @0,578,134us: [+4 T:0x4001f950] OG -package ti.sdo.codecs.mpeg4enc.ce (/opt/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/mpeg4enc/ce/) [1,0,0,1435734370000] @0,578,286us: [+4 T:0x4001f950] OG -package ti.sdo.ce.speech1 (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/speech1/) [1,0,1,1240276763928] @0,578,430us: [+4 T:0x4001f950] OG -package ti.sdo.codecs.g711enc.ce (/opt/dvsdk_2_00_00_22/dm6446_dvsdk_combos_2_05/packages/ti/sdo/codecs/g711enc/ce/) [1,0,0,1435734370000] @0,578,665us: [+4 T:0x4001f950] OG -package ti.sdo.ce.speech (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/speech/) [1,0,2,1240276762193] @0,578,823us: [+4 T:0x4001f950] OG -package ti.sdo.ce.audio (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/audio/) [1,0,2,1240276296374] @0,578,967us: [+4 T:0x4001f950] OG -package ti.sdo.ce.audio1 (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/audio1/) [1,0,1,1240276296900] @0,579,111us: [+4 T:0x4001f950] OG -package ti.sdo.ce.video (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/video/) [1,0,3,1240276930771] @0,579,254us: [+4 T:0x4001f950] OG -package ti.sdo.ce.video2 (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/video2/) [1,0,2,1240276933444] @0,579,395us: [+4 T:0x4001f950] OG -package ti.sdo.ce.image (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/image/) [1,0,3,1240276700525] @0,579,534us: [+4 T:0x4001f950] OG -package ti.sdo.ce.image1 (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/image1/) [1,0,1,1240276698808] @0,579,892us: [+4 T:0x4001f950] OG -package ti.sdo.dmai (/opt/dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai/) [1,0,0,1436429316000] @0,580,056us: [+4 T:0x4001f950] OG -package ti.sdo.simplewidget (/opt/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/packages/ti/sdo/simplewidget/) [] @0,580,206us: [+4 T:0x4001f950] OG -package ti.sdo.ce.bioslog (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/bioslog/) [1,0,1,1240276303166] @0,580,351us: [+4 T:0x4001f950] OG -package ti.sdo.ce.utils.trace (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/trace/) [1,0,1,1240276915917] @0,580,494us: [+4 T:0x4001f950] OG -package encode_config (/opt/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/dm6446/encode/encode_config/) [] @0,581,488us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Sem_create> count: 0 @0,581,745us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x571c0] @0,581,913us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Sem_create> count: 0 @0,582,068us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x571d8] @0,582,229us: [+0 T:0x4001f950] OT - Thread_create> Enter (fxn=0x2b2c0, attrs=0x0) @0,583,265us: [+0 T:0x4001f950] OT - Thread_create> Exit (task=0x57210) @0,583,623us: [+0 T:0x4001f950] ti.sdo.ce.alg - ALG_init> Enter @0,583,801us: [+0 T:0x4001f950] ti.sdo.ce.alg - ALG_init> Exit @0,584,099us: [+6 T:0x4001f950] CE - Engine_init> CE debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, 2=good, 3=max) @0,584,390us: [+0 T:0x4001f950] CS - Server_init() @0,584,546us: [+0 T:0x4001f950] CS - Server_init> Global_useLinkArbiter = 0 TraceUtil_start> note: CE_DEBUG env. var is set, so TraceUtil is not active (unset CE_DEBUG if you need TraceUtil) ERR: Failed to open image file [data/pics/Buttons_SQ.png] Error: Failed to create png image Error: Failed to create user interface buttons Error: Failed to create UI @0,586,600us: [+0 T:0x4001f950] OP - doCmd> Enter (cmdId=3, proc=0x0) @0,587,884us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x571c0] @0,588,634us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x571c0] @0,588,831us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x571d8] timeout[0xffffffff] @0,589,241us: [+1 T:0x40bc8490] OP - daemon> thread created. @0,589,462us: [+0 T:0x40bc8490] OP - getCmd_d> Enter (proc=0x40bc7de8) @0,589,760us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x571c0] timeout[0xffffffff] @0,589,946us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x571c0] status[0] @0,590,104us: [+0 T:0x40bc8490] OP - getCmd_d> Exit (result=3) @0,590,247us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x571d8] @0,590,432us: [+0 T:0x40bc8490] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x571d8] @0,592,049us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x571d8] status[0] @0,592,277us: [+0 T:0x4001f950] OP - doCmd> Exit (result=1) @0,592,417us: [+0 T:0x4001f950] OT - Thread_delete> Enter (task=0x57210) @0,592,630us: [+4 T:0x4001f950] OT - Thread_delete> pthread_cancel (0x3) @0,592,835us: [+4 T:0x4001f950] OT - Thread_delete> pthread_join (0x0) @0,593,006us: [+0 T:0x4001f950] OT - Thread_delete> Exit (task=0x57210) @0,593,156us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x571c0] @0,593,344us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Leaving Sem_delete> @0,593,490us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x571d8] @0,593,636us: [+0 T:0x4001f950] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
Chris Meng:
回复 eric eric3:
你好,
红色部分不是错误,只是说由于你设定了CE_DEBUG的值,TraceUtil就不开了。
错误是下面的部分log:
ERR: Failed to open image file [data/pics/Buttons_SQ.png]
Error: Failed to create png image
Error: Failed to create user interface buttons
Error: Failed to create UI
eric eric3:
回复 Chris Meng:
刚才那个是使用encode的例子来跑的,文件不存在应该也能过Engine_open的,下面是我自己的程序打印出来的错误(关闭了trace):
# CE_DEBUG=2 ./timgalg_dhello0 hello1 @0,689,535us: [+4 T:0x4001ea00] OG - Global_init> This program was built with the following packages: @0,690,217us: [+4 T:0x4001ea00] OG -package gnu.targets.rts470MV (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/rts470MV/) [1,0,0,0,1242339149665] @0,690,444us: [+4 T:0x4001ea00] OG -package codecs.iqmath (/home/eric/workplace-share/dvsdk-space/image_fun_IMGDEC/package/codecs/iqmath/) [2,1,0,1437018804000] @0,690,597us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.global (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/global/) [1,0,0,1240276693464] @0,690,734us: [+4 T:0x4001ea00] OG -package ti.xdais.dm (/opt/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/dm/) [1,0,5,1236972452910] @0,690,866us: [+4 T:0x4001ea00] OG -package ti.xdais (/opt/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/) [1,2,1,1236972427008] @0,690,995us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.node (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/node/) [1,0,0,1240276734858] @0,691,125us: [+4 T:0x4001ea00] OG -package ti.sdo.utils.trace (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/utils/trace/) [1,0,0,1240266922890] @0,691,260us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.utils.xdm (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/xdm/) [1,0,2,1240276919490] @0,691,394us: [+4 T:0x4001ea00] OG -package ti.sdo.fc.global (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/global/) [1,0,0,1240266696499] @0,691,527us: [+4 T:0x4001ea00] OG -package ti.sdo.fc.dman3 (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/dman3/) [1,0,4,1240266658662] @0,691,657us: [+4 T:0x4001ea00] OG -package ti.sdo.linuxutils.cmem (/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/) [2,2,0,1240253001679] @0,691,863us: [+4 T:0x4001ea00] OG -package ti.sdo.fc.memutils (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/memutils/) [1,0,0,1240266801007] @0,692,016us: [+4 T:0x4001ea00] OG -package ti.sdo.fc.acpy3 (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/acpy3/) [1,0,4,1240266659108] @0,692,250us: [+4 T:0x4001ea00] OG -package dsplink.gpp (/opt/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt/packages/dsplink/gpp/) [5,0,0,1436427730000] @0,692,393us: [+4 T:0x4001ea00] OG -package gnu.targets (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/) [1,0,1,1242339114958] @0,692,524us: [+4 T:0x4001ea00] OG -package ti.catalog.arm (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/catalog/arm/) [1,0,1,0,0] @0,692,654us: [+4 T:0x4001ea00] OG -package ti.platforms.evmDM6446 (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/platforms/evmDM6446/) [1,0,0,1,0] @0,692,784us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.osal (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/) [2,0,2,1240276730877] @0,692,953us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.osal.linux (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/linux/) [2,0,1,1240276736840] @0,693,101us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.ipc (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/) [2,0,1,1240276698961] @0,693,233us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.ipc.dsplink (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/dsplink/) [2,0,1,1240276714152] @0,693,367us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.alg (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/alg/) [1,0,1,1240276276798] @0,693,497us: [+4 T:0x4001ea00] OG -package ti.sdo.ce (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/) [1,0,6,1240276276491] @0,693,626us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.image (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/image/) [1,0,3,1240276700525] @0,693,756us: [+4 T:0x4001ea00] OG -package codecs.evaluate (/home/eric/workplace-share/dvsdk-space/image_fun_IMGDEC/package/codecs/evaluate/) [1,0,0,1437018806000] @1,069,679us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.bioslog (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/bioslog/) [1,0,1,1240276303166] @1,069,885us: [+4 T:0x4001ea00] OG -package ti.sdo.ce.utils.trace (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/trace/) [1,0,1,1240276915917] @1,070,045us: [+4 T:0x4001ea00] OG -package codec_config (/home/eric/workplace-share/dvsdk-space/image_fun_IMGDEC/test_bench/codec_config/) [] @1,071,041us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Sem_create> count: 0 @1,071,298us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x381c0] @1,071,463us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Sem_create> count: 0 @1,071,603us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x381d8] @1,071,755us: [+0 T:0x4001ea00] OT - Thread_create> Enter (fxn=0x141ac, attrs=0x0) @1,072,874us: [+0 T:0x4001ea00] OT - Thread_create> Exit (task=0x38210) @1,073,225us: [+0 T:0x4001ea00] ti.sdo.ce.alg - ALG_init> Enter @1,073,400us: [+0 T:0x4001ea00] ti.sdo.ce.alg - ALG_init> Exit @1,073,744us: [+6 T:0x4001ea00] CE - Engine_init> CE debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, 2=good, 3=max) @1,074,039us: [+0 T:0x4001ea00] CS - Server_init() @1,074,194us: [+0 T:0x4001ea00] CS - Server_init> Global_useLinkArbiter = 0 @1,074,543us: [+0 T:0x4001ea00] CE - Engine_open> Enter('imgalg', 0x0, 0xbefe7c7c) CImgAlgo: error open engine. @1,075,025us: [+0 T:0x4001ea00] OP - doCmd> Enter (cmdId=3, proc=0x0) @1,075,252us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x381c0] @1,075,530us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x381c0] @1,075,704us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x381d8] timeout[0xffffffff] @1,076,134us: [+1 T:0x40b02490] OP - daemon> thread created. @1,076,322us: [+0 T:0x40b02490] OP - getCmd_d> Enter (proc=0x40b01de8) @1,076,471us: [+0 T:0x40b02490] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x381c0] timeout[0xffffffff] @1,076,684us: [+0 T:0x40b02490] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x381c0] status[0] @1,076,841us: [+0 T:0x40b02490] OP - getCmd_d> Exit (result=3) @1,076,980us: [+0 T:0x40b02490] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x381d8] @1,077,188us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x381d8] status[0] @1,077,358us: [+0 T:0x4001ea00] OP - doCmd> Exit (result=1) @1,077,491us: [+0 T:0x4001ea00] OT - Thread_delete> Enter (task=0x38210) @1,078,201us: [+4 T:0x4001ea00] OT - Thread_delete> pthread_cancel (0x0) @1,079,745us: [+4 T:0x4001ea00] OT - Thread_delete> pthread_join (0x0) @1,079,967us: [+0 T:0x4001ea00] OT - Thread_delete> Exit (task=0x38210) @1,080,123us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x381c0] @1,080,317us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Leaving Sem_delete> @1,080,464us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x381d8] @1,080,609us: [+0 T:0x4001ea00] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
Chris Meng:
回复 Chris Meng:
你好,
用CE_DEBUG=3看一下log信息。
eric eric3:
回复 Chris Meng:
你好,
使用CE_DEBUG=3,log信息如下:
CE_DEBUG=3 ./timgalg_dhello0 hello1 @0,819,737us: [+4 T:0x4001ea00 S:0xbeae2c44] OG - Global_init> This program was built with the following packages: @0,820,375us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package gnu.targets.rts470MV (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/rts470MV/) [1,0,0,0,1242339149665] @0,820,644us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package codecs.iqmath (/home/eric/workplace-share/dvsdk-space/image_fun_IMGDEC/package/codecs/iqmath/) [2,1,0,1437018804000] @0,820,838us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.global (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/global/) [1,0,0,1240276693464] @0,821,018us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.xdais.dm (/opt/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/dm/) [1,0,5,1236972452910] @0,821,288us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.xdais (/opt/dvsdk_2_00_00_22/xdais_6_23/packages/ti/xdais/) [1,2,1,1236972427008] @0,821,467us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.node (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/node/) [1,0,0,1240276734858] @0,821,645us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.utils.trace (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/utils/trace/) [1,0,0,1240266922890] @0,821,822us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.utils.xdm (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/xdm/) [1,0,2,1240276919490] @0,821,999us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.fc.global (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/global/) [1,0,0,1240266696499] @0,822,174us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.fc.dman3 (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/dman3/) [1,0,4,1240266658662] @0,822,350us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.linuxutils.cmem (/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/) [2,2,0,1240253001679] @0,822,525us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.fc.memutils (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/memutils/) [1,0,0,1240266801007] @0,822,702us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.fc.acpy3 (/opt/dvsdk_2_00_00_22/framework_components_2_23_01/packages/ti/sdo/fc/acpy3/) [1,0,4,1240266659108] @0,822,877us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package dsplink.gpp (/opt/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt/packages/dsplink/gpp/) [5,0,0,1436427730000] @0,823,048us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package gnu.targets (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/gnu/targets/) [1,0,1,1242339114958] @0,823,229us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.catalog.arm (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/catalog/arm/) [1,0,1,0,0] @0,823,403us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.platforms.evmDM6446 (/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/ti/platforms/evmDM6446/) [1,0,0,1,0] @0,823,577us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.osal (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/) [2,0,2,1240276730877] @0,823,753us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.osal.linux (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/osal/linux/) [2,0,1,1240276736840] @0,823,927us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.ipc (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/) [2,0,1,1240276698961] @0,824,102us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.ipc.dsplink (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/ipc/dsplink/) [2,0,1,1240276714152] @0,824,280us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.alg (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/alg/) [1,0,1,1240276276798] @0,824,453us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/) [1,0,6,1240276276491] @1,239,684us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.image (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/image/) [1,0,3,1240276700525] @1,239,931us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package codecs.evaluate (/home/eric/workplace-share/dvsdk-space/image_fun_IMGDEC/package/codecs/evaluate/) [1,0,0,1437018806000] @1,240,131us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.bioslog (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/bioslog/) [1,0,1,1240276303166] @1,240,317us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package ti.sdo.ce.utils.trace (/opt/dvsdk_2_00_00_22/codec_engine_2_23_01/packages/ti/sdo/ce/utils/trace/) [1,0,1,1240276915917] @1,240,498us: [+4 T:0x4001ea00 S:0xbeae2c44] OG -package codec_config (/home/eric/workplace-share/dvsdk-space/image_fun_IMGDEC/test_bench/codec_config/) [] @1,240,801us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0x197ac) @1,241,076us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0x18bf8) @1,241,355us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> Enter(0x18) @1,241,641us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> return (0x380f0) @1,242,208us: [+0 T:0x4001ea00 S:0xbeae2c3c] OG - Global_atexit> enter (fxn=0x16b28) @1,242,577us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> Enter(0x18) @1,242,798us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> return (0x38140) @1,242,982us: [+0 T:0x4001ea00 S:0xbeae2c34] OG - Global_atexit> enter (fxn=0x159d4) @1,243,179us: [+0 T:0x4001ea00 S:0xbeae2c3c] OG - Global_atexit> enter (fxn=0x1825c) @1,243,476us: [+0 T:0x4001ea00 S:0xbeae2c34] ti.sdo.ce.osal.Sem - Sem_create> count: 0 @1,243,667us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> Enter(0x14) @1,243,924us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> return (0x381c0) @1,244,150us: [+0 T:0x4001ea00 S:0xbeae2c34] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x381c0] @1,244,337us: [+0 T:0x4001ea00 S:0xbeae2c34] ti.sdo.ce.osal.Sem - Sem_create> count: 0 @1,244,499us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> Enter(0x14) @1,244,672us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> return (0x381d8) @1,244,836us: [+0 T:0x4001ea00 S:0xbeae2c34] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0x381d8] @1,245,004us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> Enter(0x18) @1,245,225us: [+0 T:0x4001ea00 S:0xbeae2c1c] OM - Memory_alloc> return (0x381f0) @1,245,407us: [+0 T:0x4001ea00 S:0xbeae2c14] OT - Thread_create> Enter (fxn=0x141ac, attrs=0x0) @1,245,584us: [+0 T:0x4001ea00 S:0xbeae2bfc] OM - Memory_alloc> Enter(0x64) @1,245,762us: [+0 T:0x4001ea00 S:0xbeae2bfc] OM - Memory_alloc> return (0x38210) @1,246,789us: [+0 T:0x4001ea00 S:0xbeae2c14] OT - Thread_create> Exit (task=0x38210) @1,247,037us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0x13b9c) @1,247,263us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0x15f20) @1,247,559us: [+0 T:0x4001ea00 S:0xbeae2c34] ti.sdo.ce.alg - ALG_init> Enter @1,247,750us: [+0 T:0x4001ea00 S:0xbeae2c24] OG - Global_atexit> enter (fxn=0x137e8) @1,247,937us: [+0 T:0x4001ea00 S:0xbeae2c54] ti.sdo.ce.alg - ALG_init> Exit @1,248,155us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0x12c14) @1,248,359us: [+0 T:0x4001ea00 S:0xbeae2c24] OM - Memory_alloc> Enter(0x18) @1,248,546us: [+0 T:0x4001ea00 S:0xbeae2c24] OM - Memory_alloc> return (0x383f0) @1,248,724us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0x1874c) @1,249,044us: [+6 T:0x4001ea00 S:0xbeae2c44] CE - Engine_init> CE debugging on (CE_DEBUG=3; allowed CE_DEBUG levels: 1=min, 2=good, 3=max) @1,249,268us: [+0 T:0x4001ea00 S:0xbeae2c34] OG - Global_atexit> enter (fxn=0x100a8) @1,249,500us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> Enter(0x18) @1,249,867us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> return (0x38430) @1,590,917us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> Enter(0x18) @1,591,159us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> return (0x38450) @1,591,354us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> Enter(0x18) @1,591,537us: [+0 T:0x4001ea00 S:0xbeae2c14] OM - Memory_alloc> return (0x38470) @1,591,809us: [+0 T:0x4001ea00 S:0xbeae2c4c] CS - Server_init() @1,591,994us: [+0 T:0x4001ea00 S:0xbeae2c4c] CS - Server_init> Global_useLinkArbiter = 0 @1,592,205us: [+0 T:0x4001ea00 S:0xbeae2c4c] OG - Global_atexit> enter (fxn=0xe388) @1,592,529us: [+0 T:0x4001ea00 S:0xbeae2c5c] OG - Global_atexit> enter (fxn=0xced0) @1,592,810us: [+0 T:0x4001ea00 S:0xbeae2c0c] CE - Engine_open> Enter('imgalg', 0x0, 0xbeae2c7c) CImgAlgo: error open engine. @1,593,160us: [+0 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> enter @1,593,352us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0xced0()... @1,593,701us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0xe388()... @1,593,921us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0x100a8()... @1,594,179us: [+0 T:0x4001ea00 S:0xbeae2c2c] OM - Memory_free> Enter(0x38430, 0x18) @1,594,390us: [+0 T:0x4001ea00 S:0xbeae2c2c] OM - Memory_free> return (0x1) @1,594,568us: [+0 T:0x4001ea00 S:0xbeae2c2c] OM - Memory_free> Enter(0x38450, 0x18) @1,594,750us: [+0 T:0x4001ea00 S:0xbeae2c2c] OM - Memory_free> return (0x1) @1,594,917us: [+0 T:0x4001ea00 S:0xbeae2c2c] OM - Memory_free> Enter(0x38470, 0x18) @1,595,145us: [+0 T:0x4001ea00 S:0xbeae2c2c] OM - Memory_free> return (0x1) @1,595,327us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0x1874c()... @1,595,508us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0x12c14()... @1,595,690us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0x137e8()... @1,595,869us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0x15f20()... @1,596,049us: [+2 T:0x4001ea00 S:0xbeae2c5c] OG - Global_exit> calling function *0x13b9c()... @1,596,224us: [+0 T:0x4001ea00 S:0xbeae2c2c] OP - doCmd> Enter (cmdId=3, proc=0x0) @1,596,394us: [+0 T:0x4001ea00 S:0xbeae2c1c] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x381c0] @1,596,737us: [+0 T:0x4001ea00 S:0xbeae2c2c] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x381c0] @1,596,949us: [+0 T:0x4001ea00 S:0xbeae2c0c] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x381d8] timeout[0xffffffff] @1,597,227us: [+1 T:0x40b02490 S:0x40b01d74] OP - daemon> thread created. @1,597,460us: [+0 T:0x40b02490 S:0x40b01d74] OP - getCmd_d> Enter (proc=0x40b01de8) @1,597,650us: [+0 T:0x40b02490 S:0x40b01d54] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x381c0] timeout[0xffffffff] @1,597,878us: [+0 T:0x40b02490 S:0x40b01d54] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x381c0] status[0] @1,598,075us: [+0 T:0x40b02490 S:0x40b01d74] OP - getCmd_d> Exit (result=3) @1,598,260us: [+0 T:0x40b02490 S:0x40b01d64] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x381d8] @1,598,473us: [+0 T:0x40b02490 S:0x40b01d74] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x381d8] Segmentation fault
Chris Meng:
回复 eric eric3:
你好,
下面链接的内容你是否有看过?
http://processors.wiki.ti.com/index.php/Configuring_Codec_Engine_in_Arm_apps_with_createFromServer