Adding the cp210x module to the NAO kernel

Mulyadi Santosa mulyadi.santosa at gmail.com
Wed Aug 15 09:08:35 EDT 2012


Hi Ankur :)

On Wed, Aug 15, 2012 at 1:24 PM, Ankur Sinha <sanjay.ankur at gmail.com> wrote:
> I built the cp210x module using the NAO kernel tree:
>
>
>> [ankur at ankur aldebaran-linux-aldebaran-66f8749]$ pwd
>> /home/ankur/Documents/work/code/NAO/OS/aldebaran-linux-aldebaran-66f8749
>> [ankur at ankur aldebaran-linux-aldebaran-66f8749]$ file drivers/usb/serial/cp210x.ko
>> drivers/usb/serial/cp210x.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), BuildID[sha1]=0x61274b6a395ca0bbb45729b87283f361c04b396f, not stripped
>> [ankur at ankur aldebaran-linux-aldebaran-66f8749]$
>>
>
> I placed this into the drivers/usb/serial directory in the NAO system,
> but it didn't work (no surprise there!). It gave me an error:
>
> "Invalid module format" when I tried modprobe or insmod.


Just a quick test, what happen if you do:
insmod -f /path/to/the/module.ko
?

IMHO, quite likely the message you saw happened since you compile the
kernel  module with different version of gcc and/or different gcc
parameter, that somehow yield binary incompatibility.

Another thought, what arch do you use when you compile that kernel
module? AMD Geode too?



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list