Re: Adding the cp210x module to the NAO kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ankur :)

On Wed, Aug 15, 2012 at 1:24 PM, Ankur Sinha <sanjay.ankur@xxxxxxxxx> wrote:
> I built the cp210x module using the NAO kernel tree:
>
>
>> [ankur@ankur aldebaran-linux-aldebaran-66f8749]$ pwd
>> /home/ankur/Documents/work/code/NAO/OS/aldebaran-linux-aldebaran-66f8749
>> [ankur@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@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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux