Jose, I recall that Codec Engine disables USE_CHNL in DSPLink pre-built binaries that it provides. So if USE_CHNL is 1 and you have re-built user-side, you could see this issue. Can you make USE_CHNL 0 in CURRENTCFG.MK and re-build the user-side?
Regards, Mugdha -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 2:46 AM To: [email protected] Subject: RE: Encodedecode: Failed to open codec engine Hi Mugdha, Thanks for your reply and the pointer. I've checked the dsplink configuration at dsplink/packages/dsplink/config/CURRENTCFG.MK (is it the right place?) and it seems that CHNL module is ON: export USE_CHNL := 1 The error is launched when TraceUtil_start(ENGINE_NAME) is called from main(). ENGINE_NAME's value is "encodedecode". Maybe I touched something in build toolchain, because with my current environment every demo fails in the same way. However, old backed-up binaries work fine. Is there some place in the demos toolchain, where dsplink configuration could be modified and then make demos fail? Does this make sense to you? Is a goog idea to recompile dsplink introducing more traces? dsplink and cmem modules appear when I lsmod in the target. And you're right, my dsplink version is 1.30.08.02. Thanks and regards, Jose. -------------------------- RE: Encodedecode: Failed to open codec engine Kamoolkar, Mugdha Sun, 02 Nov 2008 23:47:11 -0800 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] [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]<[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:Davinci-linux-o >> [EMAIL PROTECTED]> >> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-sourc >> e >> > _______________________________________________ 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 _______________________________________________ Davinci-linux-open-source mailing list [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
