Adding the cp210x module to the NAO kernel

Ankur Sinha sanjay.ankur at gmail.com
Wed Aug 15 22:47:03 EDT 2012


On Thu, 2012-08-16 at 10:52 +1000, Ankur Sinha wrote:
> Is there a way I can compile this module for the GEODE on another
> system
> (Cross compile?)? I also seem to have gotten the wrong kernel version
> (rt24 vs rt31). I'll go find the correct kernel version from their
> git[1] and retry. 

Hi folks,

It seems I'm a little out of luck :/

I downloaded the correct version kernel source, and it appears to not
contain the cp210x module at all:

> [ankur at ankur aldebaran-linux-aldebaran-68edb2f]$ find . -name "*cp21*" -print
> ./drivers/net/irda/mcp2120-sir.c
> ./drivers/usb/serial/cp2101.o
> ./drivers/usb/serial/.cp2101.o.cmd
> ./drivers/usb/serial/cp2101.c
> [ankur at ankur aldebaran-linux-aldebaran-68edb2f]$ pwd
> /home/ankur/Documents/work/code/NAO/OS/aldebaran-linux-aldebaran-68edb2f
> [ankur at ankur aldebaran-linux-aldebaran-68edb2f]$

How do I proceed? Can i take the module source from a newer kernel and
build it with this one? Or will I have to just use a newer kernel tree
altogether and replace the kernel they ship?

On a positive note, I do seem to have built the other modules correctly
(vermagic is same to the actual kernel modules now):


> [ankur at ankur aldebaran-linux-aldebaran-68edb2f]$ modinfo drivers/usb/serial/usbserial.ko
> filename:       /home/ankur/Documents/work/code/NAO/OS/aldebaran-linux-aldebaran-68edb2f/drivers/usb/serial/usbserial.ko
> license:        GPL
> description:    USB Serial Driver core
> author:         Greg Kroah-Hartman, greg at kroah.com, http://www.kroah.com/linux/
> depends:
> vermagic:       2.6.29.6-rt24-aldebaran-rt preempt mod_unload modversions
> parm:           debug:Debug enabled or not (bool)
> 

It misses a "GEODE" at the end though. What does that imply?

Actual kernel modules:

> [root at ankur ~]# !chroot
> chroot /run/media/ankur/OpenNao-system/
> bash: /dev/null: Permission denied
> root at ankur [0] / $ modinfo /lib/modules/2.6.29.6-rt24-aldebaran-rt/kernel/drivers/usb/serial/
> ftdi_sio.ko   usbserial.ko
> root at ankur [0] / $ modinfo /lib/modules/2.6.29.6-rt24-aldebaran-rt/kernel/drivers/usb/serial/usbserial.ko
> filename:       /lib/modules/2.6.29.6-rt24-aldebaran-rt/kernel/drivers/usb/serial/usbserial.ko
> license:        GPL
> description:    USB Serial Driver core
> author:         Greg Kroah-Hartman, greg at kroah.com, http://www.kroah.com/linux/
> depends:
> vermagic:       2.6.29.6-rt24-aldebaran-rt preempt mod_unload modversions GEODE
> parm:           debug:Debug enabled or not (bool)
> root at ankur [0] / $

-- 
Thanks again, 
Warm regards,
Ankur: "FranciscoD"

Please only print if necessary. 

Looking to contribute to Fedora? Look here: https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120816/86f87d60/attachment.bin 


More information about the Kernelnewbies mailing list