Kevin,

I follow your patches and got cmemk.ko to build fine.  However, for 
dsplinkk.ko, I get an undefined
reference to sys_lseek:

make[2]: Entering directory 
`/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/src/pmgr'
echo Generating dsplinkk.o...
Generating dsplinkk.o...
/opt/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ld   -r 
-o/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUILD/PMGR/B
IN/RELEASE/dsplinkk.o  
/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUILD/PMGR/OBJ/RELEASE/drv_pmgr.o
 /opt/dvevm_1_10/ds
plink_1_30_08_02/packages/dsplink/gpp/BUILD/PMGR/OBJ/RELEASE/pmgr_msgq.o 
/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BU
ILD/PMGR/OBJ/RELEASE/pmgr_proc.o   
/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUILD/EXPORT/RELEASE/osal.o
 /opt/dvevm_1
_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUILD/EXPORT/RELEASE/ldrv.o 
/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUI
LD/EXPORT/RELEASE/gen.o
echo Post processing kernel module dsplinkk...
Post processing kernel module dsplinkk...
/opt/montavista/pro/devkit/lsp/ti-davinci_evm-arm_v5t_le/linux-davinci-2.6/scripts/mod/modpost
 -i /opt/montavista/pro/devkit/lsp/ti
-davinci_evm-arm_v5t_le/linux-davinci-2.6/Module.symvers 
/opt/montavista/pro/devkit/lsp/ti-davinci_evm-arm_v5t_le/linux-davinci-2.6
/vmlinux 
/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.o
WARNING: "sys_lseek" 
[/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/BUILD/PMGR/BIN/RELEASE/dsplinkk.ko]
 undefined!
gmake[2]: *** [dsplinkk.o.rel] Error 1
gmake[2]: Leaving directory 
`/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/src/pmgr'
gmake[1]: *** [trgrel] Error 2
gmake[1]: Leaving directory 
`/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/src/pmgr'
gmake: *** [pmgr.trgrel] Error 2
gmake: Leaving directory 
`/opt/dvevm_1_10/dsplink_1_30_08_02/packages/dsplink/gpp/src'

It's being referenced in the file dsplink/gpp/src/osal/Linux/kfile.c if 
DM642_PCI is not defined (I guess from the kernel).  I couldn't find
any reference to it in GIT kernel so I forced #define DM642_PCI at the top of 
kfile.c and the error went away.  Both cmemk.ko and
dsplinkko.ko loaded fine but I have yet to test my application.

Regards,
Andy


----- Original Message ----
From: Kevin Hilman <[EMAIL PROTECTED]>
To: Andy Ngo <[EMAIL PROTECTED]>; Bobby Buck <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Monday, March 12, 2007 10:36:54 AM
Subject: RE: Problem compiling cmemk with GIT kernel




 
 


<!--
 _filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
text-decoration:underline;}
span.EmailStyle17
        {
font-family:Arial;
color:navy;}
 _filtered {
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->






Andy,
 

  
 

At one point I got that patchset working
on 1.10, but I don’t recall if it will work directly in it’s
current state on 1.10.  The tweaks should be minor for 1.10, and they’ll
be mainly in the build environment.
 

  
 

Kevin
 

  
 












From: Andy Ngo
[mailto:[EMAIL PROTECTED] 

Sent: Sunday, March 11, 2007 12:55
PM

To: Bobby Buck; Kevin Hilman

Cc:
[email protected]

Subject: Re: Problem compiling
cmemk with GIT kernel
 




  
 





Thanks. I didn't see those posts earlier.  Kevin, will
your patches work with
 






dvevm version 1.10; I see that your patches reference
version 1.00.  I'll
 






give it a try.  I not interested in the video stuff
(just do some audio
 






compression using the DSP) so hopefully I don't have to
spend much effort.
 






Yeah, I would have been fine with the Montavista version but

 






I couldn't get the MTD NOR JFFS2 support to work with it;
with the GIT
 






kernel, I got the MTD NOR JFFS2 to work fine but now I'm
having to face
 






recompiling cmemk and dsplinkk.
 






 
 






Regards,
 






Andy
 






----- Original Message
----

From: Bobby Buck <[EMAIL PROTECTED]>

To: [EMAIL PROTECTED]

Cc: [email protected]

Sent: Sunday, March 11, 2007 7:10:27 AM

Subject: RE: Problem compiling cmemk with GIT kernel
 



Building cmemk.ko and dsplinkk.ko for the GIT kernel is not a 

straight-forward task. Two weeks ago, I went through exactly what you're 

going through now. After a few frustrating days attempting to build these 

modules, I gave up and decided to revert to the montavista kernel for the 

time being.



Please see a post entitled "Building cmemk.ko and dsplinkk.ko" which
I 

posted on the 28th of February 2007. Kevin's advice and patch files were 

extremely helpful, and will probably solve your current problems, if you are 

confident enough at patching/hacking source files.



Good luck,



Bobby







>From: Andy Ngo <[EMAIL PROTECTED]>

>To: "davinci-linux-open-source @linux.davincidsp.com" 

><[email protected]>

>Subject: Problem compiling cmemk with GIT kernel

>Date: Sun, 11 Mar 2007 00:22:58 -0800 (PST)

>

>Hi,

>

>I recently switched from the Montavista kernel to the GIT
kernel.  I need 

>to rebuild cmemk.ko and dsplinkk.ko

>with the GIT kernel.  When I build cmemk.ko, I get undefined
references to 

>class_simple_*:

>

># make

>make -C 

>/opt/montavista/pro/devkit/lsp/ti-davinci_evm-arm_v5t_le/linux-davinci-2.6 

>M=`pwd` ARCH=arm 

>CROSS_COMPILE=/opt/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le- \

>        
EXTRA_CFLAGS="-DUSE_UDEV=1 -DMAX_POOLS=128" modules

>make[1]: Entering directory 

>`/opt/montavista/pro/devkit/lsp/ti-davinci_evm-arm_v5t_le/linux-davinci-2.6'

>   CC [M]  

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:


>In function `cmem_init':

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:581:


>warning: implicit declaration of function `class_simple_create'

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:581:


>warning: assignment makes pointer from integer without a cast

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:587:


>warning: implicit declaration of function `class_simple_device_add'

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:


>In function `cmem_exit':

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:686:


>warning: implicit declaration of function `class_simple_device_remove'

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:689:


>warning: implicit declaration of function `class_simple_destroy'

>   Building modules, stage 2.

>   MODPOST 1 modules

>WARNING: "class_simple_destroy" 

>[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko]


>undefined!

>WARNING: "class_simple_device_remove" 

>[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko]


>undefined!

>WARNING: "class_simple_device_add" 

>[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko]


>undefined!

>WARNING: "class_simple_create" 

>[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko]


>undefined!

>   CC      

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.mod.o

>   LD [M]  

>/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko

>make[1]: Leaving directory 

>`/opt/montavista/pro/devkit/lsp/ti-davinci_evm-arm_v5t_le/linux-davinci-2.6'

>

>

>When I load cmemk.ko, I get errors for those undefined references:

>

># insmod cmemk.ko phys_start=0x87800000 phys_end=0x88000000 

>pools=1x3145728,3x829440,1x61440,1x10240

>cmemk: module license '(c) Texas Instruments' taints kernel.

>cmemk: Unknown symbol class_simple_device_add

>cmemk: Unknown symbol class_simple_destroy

>cmemk: Unknown symbol class_simple_device_remove

>cmemk: Unknown symbol class_simple_create

>insmod: cannot insert `cmemk.ko': Unknown symbol in module (-1): No such 

>file or directory

>

>I'm using the latest GIT kernel (2.6.20-omap1) and dvevm 1.10.  I
haven't 

>tried compiling dsplinkk.ko yet.  Anyone has this same problem?

>Am I doing something wrong?  Thanks.

>

>Regards,

>Andy

>

>

>





>_______________________________________________

>Davinci-linux-open-source mailing list

>[email protected]

>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source



_________________________________________________________________

Advertisement: 50% off on Xbox 360, PS and Nintendo Wii titles! 

http://www.play-asia.com/SOap-23-83-4lab-71-bn-49-en-84-k-40-extended.html
 









  
 
















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

Reply via email to