how to build dsplink module

Hi,

I'm struggling to build the dsplink module (dsplinkk.ko) for
linux-2.6.27.10 kernel.
The one which I build from dsplink_1.51 sources is not working.

I followed the steps given here,
http://tiexpressdsp.com/index.php?title=Building_DSPLink#Building_DSPLink
and build the arm side kernel module.

At the time of module insertion I got the following error:
*insmod: cannot insert 'dsplinkk.ko': invalid module format*

I have seen people have used dsplink on 2.6.27 kernel. Any pointers on
how it could be achieved will help a lot.
Thanks for your concern.

Regards
Amit Pundir

Hi,

I'm struggling to build the dsplink module (dsplinkk.ko) for
linux-2.6.27.10 kernel.
The one which I build from dsplink_1.51 sources is not working.

I followed the steps given here,
http://tiexpressdsp.com/index.php?title=Building_DSPLink#Building_DSPLink
and build the arm side kernel module.

At the time of module insertion I got the following error:
*insmod: cannot insert 'dsplinkk.ko': invalid module format*

I have seen people have used dsplink on 2.6.27 kernel. Any pointers on
how it could be achieved will help a lot.
Thanks for your concern.

I built the ti-codec engine recipe in OE and installed the
dsplink-apss. That let me run the dsplink examples on the Beagle.

Philip

hi.

At the time of module insertion I got the following error:
*insmod: cannot insert 'dsplinkk.ko': invalid module format*

  from the error, I think that the dsplinkk.ko module doesn't match
you linux kernel.

try the one in dvtb in dvsdk?

Thanks for your support.
I'm able to load the kernel module by enabling "module force
load/unload" options.
But it looks like I'm not able to run decode test applications.

I'm getting the following error:
"unable to open decode engine"

What could possibly be wrong here?
Thanks for your concern.

Regards
Amit Pundir

Amit Pundir wrote:

Thanks for your support.
I'm able to load the kernel module by enabling "module force
load/unload" options.
But it looks like I'm not able to run decode test applications.

I'm getting the following error:
"unable to open decode engine"

What could possibly be wrong here?
Thanks for your concern.

Please set

  export CE_DEBUG=2
  
then start your app, post the results here

Please set

   export CE\_DEBUG=2

then start your app, post the results here

Please find the complete log here
http://pastebin.com/m4c4fc285

I have also enabled the debug trace at the time of dsplink build.

Dsplink I'm using is version 1.51, codec-engine version 2.20.01 and
linux kernel 2.6.27.10. Do I need to upgrade to a higher version of
dsplink?

Thanks for your concern.

Regards
Amit Pundir

Amit Pundir wrote:

Please set

         export CE_DEBUG=2

then start your app, post the results here

Please find the complete log here
http://pastebin.com/m4c4fc285

# Entered PROC_attach ()
# Entered DRV_Invoke ()
# drvObj [0x46a18]
# cmdId [0x6c08]
# arg1 [0x40aeed84]
# arg2 [0x0]
#Status: 80008008
#Leaving DRV_Invoke () status [0x80008008]
#Entered _SYNC_USR_leaveCS ()
# csObj [0x46a30]
#Leaving _SYNC_USR_leaveCS () status [0x8000]
#Leaving PROC_attach () status [0x80008008]

the error is in PROC_attach, attaching to the DSP fails.
unfortunately the logs only show the user space part,
the kernel module needs to be recompiled with traces to
see more.

I have also enabled the debug trace at the time of dsplink build.

yes, but not enough it seems, you also have to enable the traces by modifying
a certain file.

Do you have the lpm module loaded?

yes, lpm module is loaded.
I will build the module again with debug traces on.

Thanks for your concern.
Regards
Amit Pundir

yes, but not enough it seems, you also have to enable the traces by modifying
a certain file.

Do you have the lpm module loaded?

yes, lpm module is loaded.
I will build the module again with debug traces on.

I get these additional messages this time:
Assertion failed ((isrObj!= NULL) && (ISR_InstalledIsrs [isrObj->irq]
== isrObj)). File : isr.c Line : 437
Assertion failed ((isrObj!= NULL) && (ISR_InstalledIsrs [isrObj->irq]
== isrObj)). File : isr.c Line : 437

Will upgrading to a newer dsplink and codec engine help me? If yes
then which version combination is known to work with 2.6.27 kernel and
from where can I download them.

I don't have an OE setup and currently I'm building the packages
directly. So it would be really helpful if someone can point me to the
correct resources as I do have a TI account to download the packages.

Thanks for your concern,
Regards
Amit Pundir

I figured out the issue.
I have enabled the dspbridge in kernel configuration which was giving
me this error.

Thanks for your concern.
Regards
Amit Pundir

So we do not need to enable dspbridge or anything related to DSPBIOS
in Kernel itself.
Does Dsplink takes care of DSP BIOS. As far as I know DSPLINK is only
for API which help GPP to talk to DSP.
I am new bie on this tho..