Sameer,

I would suggest you pick up a later DSPLink release for e.g. DSPLink release 
1.50. This release officially adds support for a later version of the Linux 
kernel under MVL Pro 5. You can either move to a DVSDK version supporting a 
later DSPLink release or use the code files in a later DSPLink release as 
reference. For e.g. The Linux version specific changes in the make files can be 
seen in $DSPLINK\make\Linux\Davinci, kfile.c in folders 
$DSPLINK\gpp\src\osal\Linux\2.6.18 can be used as reference to make the changes 
in 1.40.05 p1.

The DSPLink release can be downloaded from 
http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/link/index.html

Thanks and Regards,
Deepali Uppal
DSP/BIOS Link
Platform Support Products
________________________________
From: Sameer Naik [mailto:[email protected]]
Sent: Monday, September 21, 2009 3:41 PM
To: Uppal, Deepali
Cc: [email protected]
Subject: Re: Compiling dsplink_140-05p1 for linux-davinci-2.6.23 kernel

That is exactly what i have done, i.e. applied the patches manually.
Attached are my patched files.

Regards
~Sameer
On Mon, Sep 21, 2009 at 3:14 PM, Uppal, Deepali 
<[email protected]<mailto:[email protected]>> wrote:

Sameer,



This error is indicating patch has not been applied correctly.



Older support mails indicate this patch is for an older DVSDK version (1.00 
series). Looking at the patch code, you should be able to patch the DSPLink 
files manually.



Thanks and Regards,
Deepali Uppal
DSP/BIOS Link
Platform Support Products

________________________________

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Sameer Naik
Sent: Monday, September 21, 2009 2:12 PM
To: 
[email protected]<mailto:[email protected]>
Subject: Compiling dsplink_140-05p1 for linux-davinci-2.6.23 kernel



Hello,
I have been trying to compile dsplink_140-05p1 (dvsdk_1_30_01_41) for 2.6.23 
kernel.
I applied the patches provided by Keven Hilman available here: 
http://www.mail-archive.com/[email protected]/msg03002.html

After a few changes, the build process works up until the Module Post 
processing. At this point i get the following error

+--------------------------
echo Post processing kernel module dsplinkk...
Post processing kernel module dsplinkk...
/home/sameersbn/workdir/lsp/linux-davinci-2.6.23/scripts/mod/modpost -i 
/home/sameersbn/workdir/lsp/linux-davinci-2.6.23/Module.symvers 
/home/sameersbn/workdir/lsp/linux-davinci-2.6.23/vmlinux 
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.o
echo "#include <linux/autoconf.h>" >$.tmp
echo "#include <linux/spinlock.h>" >>$.tmp
cat 
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c
 >> $.tmp
cat $.tmp > 
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c
rm -f $.tmp
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc  -c 
-iwithprefix include -Iinclude -Wall  -Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -fno-omit-frame-pointer -mapcs 
-mno-sched-prolog -mlittle-endian -mabi=apcs-gnu -D__LINUX_ARM_ARCH__=5 
-march=armv5t -mtune=arm9tdmi  -msoft-float -Uarm -Wdeclaration-after-statement 
-Os 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/inc 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/inc/Linux
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/inc/Linux/2.6
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/inc/Linux/Davinci
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/src/pmgr
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/src/pmgr/Linux
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/src/pmgr/Linux/2.6
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/src/pmgr/Linux/Davinci
 -I/home/sameersbn/workdir/lsp/linux-davinci-2.6.23/include 
-I/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/include
 
-I/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/INCLUDE
 -nostdinc -include linux/autoconf.h   -DOS_LINUX -DOS_LINUX_2_6 
-DMSGQ_COMPONENT -DMPLIST_COMPONENT -DMPCS_COMPONENT -DPOOL_COMPONENT 
-DPROC_COMPONENT -DPOOL_COMPONENT -DMSGQ_ZCPY_LINK -DZCPY_LINK 
-DDAVINCI_QTVARIANT \
                 -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DKBUILD_MODNAME=dsplinkk 
-DKBUILD_BASENAME=dsplinkk -D"KBUILD_STR(s)=#s" \
                 -c -o 
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.o
 
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c:11:
 error: `dsplinkk' undeclared here (not in a function)
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c:11:
 error: initializer element is not constant
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c:11:
 error: (near initialization for `__this_module.name<http://this_module.name>')
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c:16:
 error: initializer element is not constant
/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.mod.c:16:
 error: (near initialization for `__this_module.arch')
make[2]: *** [dsplinkk.o.rel] Error 1
make[2]: Leaving directory 
`/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/src/pmgr'
make[1]: *** [trgrel] Error 2
make[1]: Leaving directory 
`/home/sameersbn/dvsdk_1_30_01_41/dsplink_140-05p1/packages/dsplink/gpp/src/pmgr'
make: *** [pmgr.trgrel] Error 2

+--------------------------
I tried the changes provided here 
http://www.mail-archive.com/[email protected]/msg03698.html
but that does not seem to help, resulting in the same errors.


Any pointers in this direction would help a great deal.

Regards
~Sameer

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

Reply via email to