Jose,

The error prints that you got in debug build are from DSPLink. For example, 
look at the first error:
Failure: Status:[0x80008008] File:[0x50c] Line:[216]

Look at the following wiki page for an interpretation of this:
http://tiexpressdsp.com/wiki/index.php?title=Debugging_DSPLink_using_SET_FAILURE_REASON_prints

This tells us that the file was dsplink/gpp/src/api/Linux/drv_api.c
Failure was at line 216.
In DSPLink version 1.30.08 (which is the version you seem to be using), this 
indicates following failure:
#if defined (CHNL_COMPONENT)
            if (DSP_SUCCEEDED (status)) {
                osStatus = ioctl ((*drvObj)->driverHandle,
                                  CMD_DRV_GETCHNLMAPTABLE_ADDRESS,
                                  &cmdArgs) ;

                if (osStatus < 0) {
                    status = DSP_EFAIL ;
                    SET_FAILURE_REASON ;
                }
That means that the ioctl failed. The only reason I can guess that the ioctl 
would fail, is if, for some reason, the DSPLink kernel module dsplinkk.ko was 
built with CHNL module off in the DSPLink configuration. But the user-side 
library of DSPLink was built with CHNL module enabled. In this case, the 
user-side #if defined (CHNL_COMPONENT) would go through, and attempt the ioctl. 
But the kernel driver does not understand this command and hence fails.

Is this possible in your build?

Regards,
Mugdha


________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Campbell
Sent: Monday, November 03, 2008 6:22 AM
To: [email protected]
Subject: Re: Encodedecode: Failed to open codec engine

hello,

You may want to consider the createFromServer method - 
http://wiki.davincidsp.com/index.php?title=Configuring_Codec_Engine_in_Arm_apps_with_createFromServer
At least takes the potential-dsp.v.-arm-memory-map-inconsistency out of the 
equation.

U need >= CodecEng v2.0 which is shipped in DVSDK >= 1.30.

If u upgrade u should also take advantage of CE_DEBUG=2 
http://wiki.davincidsp.com/index.php?title=Codec_Engine_FAQ#Runtime_Troubleshooting
 to debug this further.
cheers, AC
-----


________________________________
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Stephen Berry <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Friday, October 31, 2008 1:45:25 PM
Subject: Re: Encodedecode: Failed to open codec engine


Thanks for your quick answer, Steve.

Yes, I think it is already correctly configured:

/*
*  ======== Engine Configuration ========
*/
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var demoEngine = Engine.create("encodedecode", [
    {name: "h264enc", mod: H264ENC, local: false, groupId: 0},
    {name: "h264dec", mod: H264DEC, local: false, groupId: 0},

]);




> I'm no expert, but you might want to check your encodedecode.cfg file.
> Make sure that the line:
>
>    var myEngine = Engine.create("encode", [
>
> says "encodedecode" to match the engine name that you are trying to open.
>
>    Steve
>
> [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> wrote:
>> Hi all.
>>
>> I'm modifying the demos of DVEVM6446 and I'm stuck in the error <<Failed
>> to open codec engine "encodedecode">>.
>>
>> What seems strange to me is that only encodedecode fails. Decode and
>> encode run correctly. I also kept an old binary of encodedecode that
>> works
>> fine. So, my doubts (due to my lack of experience, for sure) are, what
>> should I modify (maybe in the code) to make this works? and Why the
>> other
>> demos, using the same codec, works fine?
>>
>> Thanks in advance,
>> Jose
>>
>> ------------------
>> With the DEBUG define, the traces are:
>>
>> Entered PROC_Setup ()
>> Entered DRV_Initialize ()
>>     drvObj    [0x31af0]
>>     arg    [0x0]
>>
>> Failure: Status:[0x80008008] File:[0x50c] Line:[216]
>> Leaving DRV_Initialize ()     status [0x80008008]
>>
>> Failure: Status:[0x80008008] File:[0x200] Line:[116]
>> Leaving PROC_Setup ()     status [0x80008008]
>> Entered MSGQ_TransportClose ()
>>     procId    [0x0]
>> Entered DRV_Invoke ()
>>     drvObj    [0x0]
>>     cmdId    [0x6f02]
>>     arg1    [0x415e0540]
>>     arg2    [0x0]
>> Assertion failed (((drvObj != NULL) && (IS_OBJECT_VALID (drvObj,
>> SIGN_DRV))) || ((drvObj == NULL) && (cmdId == CMD_PROC_ATTACH))). File :
>> drv_api.c Line : 360
>>
>> Failure: Status:[0x80008002] File:[0x50c] Line:[934]
>> Leaving DRV_Invoke ()     status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x202] Line:[165]
>> Leaving MSGQ_TransportClose ()     status [0x80008002]
>> Entered PROC_Stop ()
>>     procId    [0x0]
>> Entered DRV_Invoke ()
>>     drvObj    [0x0]
>>     cmdId    [0x6c04]
>>     arg1    [0x415e0540]
>>     arg2    [0x0]
>> Assertion failed (((drvObj != NULL) && (IS_OBJECT_VALID (drvObj,
>> SIGN_DRV))) || ((drvObj == NULL) && (cmdId == CMD_PROC_ATTACH))). File :
>> drv_api.c Line : 360
>>
>> Failure: Status:[0x80008002] File:[0x50c] Line:[934]
>> Leaving DRV_Invoke ()     status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x200] Line:[575]
>> Leaving PROC_Stop ()     status [0x80008002]
>> Entered POOL_Close ()
>>     poolId    [0x0]
>> Entered DRV_Invoke ()
>>     drvObj    [0x0]
>>     cmdId    [0x7102]
>>     arg1    [0x415e0540]
>>     arg2    [0x0]
>> Assertion failed (((drvObj != NULL) && (IS_OBJECT_VALID (drvObj,
>> SIGN_DRV))) || ((drvObj == NULL) && (cmdId == CMD_PROC_ATTACH))). File :
>> drv_api.c Line : 360
>>
>> Failure: Status:[0x80008002] File:[0x50c] Line:[934]
>> Leaving DRV_Invoke ()     status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x203] Line:[173]
>> Leaving POOL_Close ()     status [0x80008002]
>> Entered PROC_Detach ()
>>     procId    [0x0]
>> Entered DRV_Invoke ()
>>     drvObj    [0x0]
>>     cmdId    [0x6c07]
>>     arg1    [0x415e0540]
>>     arg2    [0x0]
>> Assertion failed (((drvObj != NULL) && (IS_OBJECT_VALID (drvObj,
>> SIGN_DRV))) || ((drvObj == NULL) && (cmdId == CMD_PROC_ATTACH))). File :
>> drv_api.c Line : 360
>>
>> Failure: Status:[0x80008002] File:[0x50c] Line:[934]
>> Leaving DRV_Invoke ()     status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x200] Line:[258]
>> Leaving PROC_Detach ()     status [0x80008002]
>> Entered PROC_Destroy ()
>> Entered DRV_Initialize ()
>>     drvObj    [0x31af0]
>>     arg    [0x0]
>>
>> Failure: Status:[0x80008008] File:[0x50c] Line:[216]
>> Leaving DRV_Initialize ()     status [0x80008008]
>>
>> Failure: Status:[0x80008008] File:[0x200] Line:[164]
>> Leaving PROC_Destroy ()     status [0x80008008]
>> TraceUtil> Error: Failed to open codec engine "encodedecode"
>>
>> ----------------------
>>
>> The /tmp/cearmlog.txt:
>>
>> @0x0002f9b8:[T:0x415e0b60] OP - Process_create_d> Loading and starting
>> DSP
>> server FAILED, status=[0x80008008]
>> @0x000300e4:[T:0x415e0b60] OP - Process_delete_d> Closing remote
>> transport
>> FAILED, status=0x80008002.
>> @0x00030652:[T:0x415e0b60] OP - Process_delete_d> Stopping DSP FAILED,
>> status=0x80008002
>> @0x00030ba9:[T:0x415e0b60] OP - Process_delete_d> Closing pool FAILED,
>> status=0x80008002
>> @0x0003115c:[T:0x415e0b60] OP - Process_delete_d> Detaching from DSP
>> FAILED, status=0x80008002
>> @0x000316fe:[T:0x415e0b60] OP - Process_delete_d> Destroying DSP FAILED,
>> status=0x80008008
>> @0x000317dd:[T:0x41de0b60] CE - rserverOpen: can't start
>> './loopbackCombo.x64P'; Process_create failed
>>
>>
>>
>>
>> _______________________________________________
>> Davinci-linux-open-source mailing list
>> [email protected]<mailto:[email protected]>
>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>
>


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]<mailto:[email protected]>
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to