Benard, I went back to GIT 2.6.25-davinci1 and got the cmem and dsplink to compile successfully using MV4.0 toolchain and DVEVM 1.10 (cmem 1.01, CE 1.02, dsplink 1.30.08.02); they loaded and ran fine with the 2.6.25 kernel and my existing applications. Thanks for the tip. Here's what I had to do in case anyone wants to upgrade to 2.6.25 but is still using DVEVM 1.10.
1) Configure kernel to not use EABI (uncheck "Use the ARM EABI to compile the kernel" under Kernel Features). 2) Apply Kevin's patches (http://www.mail-archive.com/[email protected]/msg03002.html) to cmem and dsplink; you have to manually patch because Kevin's patches are against DVEVM 1.00. 3) Follow advisory note #3 and #4 of Troy Kisky's post (http://www.mail-archive.com/[email protected]/msg04395.html) 4) Add #include <asm-arm/arch-davinci/io.h> in dsplink hal_object.c and hal_rtc.c to resolve IO_ADDRESS reference. Regards, Andy ----- Original Message ---- > From: Bernard Blackham <[EMAIL PROTECTED]> > To: Andy Ngo <[EMAIL PROTECTED]> > Cc: davinci-linux-open-source <[email protected]> > Sent: Wednesday, July 2, 2008 9:43:04 AM > Subject: Re: Building cmemk.ko/dsplink.ko for 2.6.26 GIT using DVEVM 1.10 > > Andy Ngo wrote: > > Hi Kevin / Chris / everyone, > > > > I just finished porting our old kernel (2.6.20-omap1) to the latest GIT > > kernel > (2.6.26-davinci1). > > I'm now trying to rebuild cmemk.ko and dsplinkk.ko to work with the new > > kernel. I'm still using the old dvevm version (1.10) which uses cmem > > 1.01 and dsplink 1.30.08.02. In rebuilding cmem, I getting the errors > > below. Last year I remembered I had to use Kevin's patches when we > > went from 2.6.10 to 2.6.20-omap1 > > (changing class_simple_create to class_create, class_simple_device_add > > to class_device_create, etc). It seems like I'm running into the same > > problem trying to move to the latest GIT kernel (now > > class_device_create, class_device_destroy need to change to the > > equivalent in the new kernel). > > class_create and friends got deprecated in 2.6.26. > > Try changing class_device_create and class_device_destroy to just > device_create and device_destroy instead. That should be all you need. > > I haven't done it myself though, so let us know if it works for you :) > > Cheers, > Bernard. _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
