Which version of CE are you using? I want to cross-check your trace output below against the actual sources.
Your .cfg script below looks right, but the trace output [way] below indicates that the wrong .runtimeEnv is being pulled in. Namely, the trace indicates that the "LINUX" runtimeEnv rather than the "DSPLINK_LINUX" runtimeEnv is being used. Hmmm... Maybe your build is broken - can you provide a dump of your build log (should include a bunch of "will link with <package_name>:<lib_name(s)>" output - I'm curious to see which libs are getting linked in. Chris > -----Original Message----- > From: Ottavio Campana [mailto:[email protected]] > Sent: Thursday, June 18, 2009 7:01 AM > To: Ring, Chris > Cc: Ottavio Campana; [email protected] > Subject: Re: have you ever seen this error? > > (again, it seems the first time it did not have the list as > destination). > > It seems to be correct, I'll paste it so that you can check, > do you have > any other idea? > > var osalGlobal = xdc.useModule( 'ti.sdo.ce.osal.Global' ); > osalGlobal.runtimeEnv = osalGlobal.DSPLINK_LINUX; > > var TraceUtil = xdc.useModule('ti.sdo.ce.utils.trace.TraceUtil'); > TraceUtil.attrs = TraceUtil.FULL_TRACING; > > xdc.loadPackage("ti.sdo.ce.video2"); > xdc.loadPackage("ti.sdo.ce.video1"); > xdc.loadPackage("ti.sdo.ce.video"); > xdc.loadPackage("ti.sdo.ce.image1"); > xdc.loadPackage("ti.sdo.ce.audio1"); > xdc.loadPackage("ti.sdo.ce.audio"); > xdc.loadPackage("ti.sdo.ce.speech1"); > xdc.loadPackage("ti.sdo.ce.speech"); > > var Engine = xdc.useModule('ti.sdo.ce.Engine'); > > var encode = Engine.createFromServer( > "encode", > "./encodeCombo.x64P", > "ti.sdo.servers.encode" > ); > > > On Thu, Jun 18, 2009 at 08:04:55AM -0500, Ring, Chris wrote: > > Double check that your ARM-side .cfg script is correctly > setting the OSAL .runtimeEnv to "DSPLINK_LINUX". Something like this: > > > > ====================================== > > /* Load support for the Codec Engine OSAL */ > > var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global'); > > > > /* Configure CE to use it's DSP Link Linux version */ > > osalGlobal.runtimeEnv = osalGlobal.DSPLINK_LINUX; > > ====================================== > > > > If it's [incorrectly] set to "osalGlobal.LINUX", you may > get that error. > > > > Chris > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[email protected] > > > ] On Behalf Of Ottavio Campana > > > Sent: Thursday, June 18, 2009 2:19 AM > > > To: [email protected] > > > Subject: Re: have you ever seen this error? > > > > > > On Thu, Jun 18, 2009 at 10:53:15AM +0200, Vladimir Pantelic wrote: > > > > Ottavio Campana wrote: > > > > >I'm trying to develop my application based on encodeCombo > > > on a dm6446. > > > > > > > > > >When I try to open codec engine I get this error: > > > > > > > > > >Processor_create: execv failed: Permission denied > > > > >Comm_locate:msgget: No such file or directory > > > > >error: could not open engine encode : Unable to locate the > > > server on the > > > > >DSP > > > > > > > > well, where is your DSP file? CE tries to find the DSP > > > server file and > > > > fails. > > > > most demo setups expect it in the same folder as the > app, so check. > > > > > > I do have encodeCombo.x64P in the same directory. While > > > looking in > > > google, I found how to get more debug information, so, > > > by setting > > > CE_DEBUG=2 here is what I get: > > > > > > @0,560,910us: [+6 T:0x4001eb80] CE - Engine_init> CE > > > debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, > > > 2=good, 3=max) > > > @0,561,232us: [+0 T:0x4001eb80] CS - Server_init() > > > @0,561,382us: [+0 T:0x4001eb80] CS - Server_init> > > > Global_useLinkArbiter = 0 > > > @0,561,767us: [+0 T:0x4001eb80] CE - Engine_open> > > > Enter('encode', 0x0, 0xbe81fb8c) > > > @0,562,047us: [+0 T:0x4001eb80] CE - > > > rserverOpen('encodeCombo.x64P'), count = 0 > > > @0,562,207us: [+0 T:0x4001eb80] OP - Processor_create> > > > Enter(imageName='encodeCombo.x64P', attrs=0xbe81fb40) > > > @0,565,950us: [+0 T:0x4001eb80] OP - Processor_create> return > > > (0x37c50) > > > @0,566,243us: [+0 T:0x4001eb80] CE - > > > rserverOpen('encodeCombo.x64P'): 0x2da78 done. > > > Processor_create: execv failed: Permission denied > > > @0,571,824us: [+0 T:0x4001eb80] OP - Processor_create> return > > > (0x37c50) > > > @0,573,300us: [+0 T:0x4001eb80] CE - > > > rserverOpen('encodeCombo.x64P'): 0x2da78 done. > > > Comm_locate:msgget: No such file or directory > > > @10,569,223us: [+0 T:0x4001eb80] CE - Engine_close(0x37d48) > > > Comm_put: Invalid argument > > > @10,571,436us: [+0 T:0x4001eb80] CE - > rserverClose(0x2da78), count = 1 > > > @10,571,624us: [+0 T:0x4001eb80] OP - Processor_delete> > > > Enter(proc=0x37c50) > > > @10,571,880us: [+1 T:0x4001eb80] OP - > > > Processor_delete(0x37c50) freeing object ... > > > @10,572,052us: [+0 T:0x4001eb80] OP - Processor_delete> return. > > > @10,572,184us: [+0 T:0x4001eb80] CE - rserverClose(0x2da78) done. > > > @10,572,318us: [+0 T:0x4001eb80] CE - Engine_open> return(0) > > > error: could not open engine encode : Unable to locate the > > > server on the DSP > > > > > > So, "rserverOpen('encodeCombo.x64P'): 0x2da78 done" > > > gives me the > > > idea that it works correctly. But immediately after > > > that I get > > > "Processor_create: execv failed: Permission denied" > > > > > > What can it be? Anything DSP related? > > > > > > -- > > > Non c'è più forza nella normalità, c'è solo monotonia. > > > > > > _______________________________________________ > > > Davinci-linux-open-source mailing list > > > [email protected] > > > > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > > > > -- > Non c'è più forza nella normalità, c'è solo monotonia. > > _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
