Peter, Thanks for the tip, I've updated my patchset accordingly.
Kevin > -----Original Message----- > From: Peter Wippich [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 3:21 AM > To: Kevin Hilman > Cc: Andy Ngo; Bobby Buck; davinci-linux-open-source@linux.davincidsp.com > Subject: RE: Problem compiling cmemk with GIT kernel > > > Hi, > > the solution is much simpler because there is already a version which does > not use GPL_EXPORT functions : > > Add: > > /* this avoids the linking of GPL export symbols from the kernel ! */ > #ifndef DM642_PCI > # define DM642_PCI > #endif > > to kfile.c (in gpp/src/osal/linux/ ) > > Ciao, > > Peter > > On Mon, 12 Mar 2007, Kevin Hilman wrote: > > > Yes, DSPlink needs to be fixed for newer kernels where sys_lseek is not > > exported to modules. > > > > > > > > In the mean time, I have patched my kernel with the attached patch to > > export the symbol. > > > > > > > > Kevin > > > > > > > > > > > > ________________________________ > > > > From: Andy Ngo [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 12, 2007 3:14 PM > > To: Kevin Hilman; Bobby Buck > > Cc: davinci-linux-open-source@linux.davincidsp.com > > Subject: Re: Problem compiling cmemk with GIT kernel > > > > > > > > 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/R > > ELEASE/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/REL > > EASE/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/R > > ELEASE/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: davinci-linux-open-source@linux.davincidsp.com > > Sent: Monday, March 12, 2007 10:36:54 AM > > Subject: RE: Problem compiling cmemk with GIT kernel > > > > 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: davinci-linux-open-source@linux.davincidsp.com > > 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: davinci-linux-open-source@linux.davincidsp.com > > 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" > > ><davinci-linux-open-source@linux.davincidsp.com> > > >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/cm > > emk.o > > >/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cm > > emk.c: > > >In function `cmem_init': > > >/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cm > > emk.c:581: > > >warning: implicit declaration of function `class_simple_create' > > >/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cm > > emk.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/cm > > emk.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/cm > > emk.c: > > >In function `cmem_exit': > > >/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cm > > emk.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/cm > > emk.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/c > > memk.ko] > > >undefined! > > >WARNING: "class_simple_device_remove" > > >[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/c > > memk.ko] > > >undefined! > > >WARNING: "class_simple_device_add" > > >[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/c > > memk.ko] > > >undefined! > > >WARNING: "class_simple_create" > > >[/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/c > > memk.ko] > > >undefined! > > > CC > > >/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cm > > emk.mod.o > > > LD [M] > > >/opt/dvevm_1_10/cmem_1_01/packages/ti/sdo/linuxutils/cmem/src/module/cm > > emk.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 > > >Davinci-linux-open-source@linux.davincidsp.com > > >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.ht > > ml > > > > > > > > > > > > > > > | Peter Wippich Voice: +49 30 46776411 | > | G&W Instruments GmbH fax: +49 30 46776419 | > | Gustav-Meyer-Allee 25, Geb. 12 Email: [EMAIL PROTECTED] | > | D-13355 Berlin / Germany | _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source