FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 02-05-2009, 10:11 AM
Andrey Zhidenkov
 
Default Kernel version in binary and source packages differs

Hello.

I want to recompile a kernel module, but I have a problem. My current kernel version is 2.6.27.11.

When I download a kernel source package and build a module (ipw2200.ko) modprobe tells me that this module has an incorrect format.


Code:

[ibm-t43][mutex]~/build> sudo modprobe ipw2200
FATAL: Error inserting ipw2200 (/lib/modules/2.6.27-11-generic/kernel/drivers/net/wireless/ipw2200.ko): Invalid module format

In Makefile I found that EXTRAVERSION for this kernel is 10:


[ibm-t43][mutex]/usr/src/linux-source-2.6.27> cat Makefile | grep EXTRAVERSION
EXTRAVERSION = .10

Is there a reason? I've also tried to get sources from Ubuntu git tree, but has the same result.


Differene between modules:

[ibm-t43][mutex]~/backup> diff ok notok
1c1
< filename: ipw2200.ko.ok
---
> filename: ipw2200.ko
29,30c29,30
< depends: ieee80211
< vermagic: 2.6.27-11-generic SMP mod_unload modversions 586

---
> depends:
> vermagic: 2.6.27.10 SMP mod_unload modversions 586

Thank you.
--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 02-05-2009, 10:33 AM
Tim Gardner
 
Default Kernel version in binary and source packages differs

Andrey Zhidenkov wrote:
> Hello.
>
> I want to recompile a kernel module, but I have a problem. My current kernel
> version is 2.6.27.11.
>
> When I download a kernel source package and build a module (ipw2200.ko)
> modprobe tells me that this module has an incorrect format.
>
> Code:
>
> [ibm-t43][mutex]~/build> sudo modprobe ipw2200
> FATAL: Error inserting ipw2200
> (/lib/modules/2.6.27-11-generic/kernel/drivers/net/wireless/ipw2200.ko):
> Invalid module format
>
> In Makefile I found that EXTRAVERSION for this kernel is 10:
>
> [ibm-t43][mutex]/usr/src/linux-source-2.6.27> cat Makefile | grep
> EXTRAVERSION
> EXTRAVERSION = .10
>
> Is there a reason? I've also tried to get sources from Ubuntu git tree, but
> has the same result.
>
> Differene between modules:
>
> [ibm-t43][mutex]~/backup> diff ok notok
> 1c1
> < filename: ipw2200.ko.ok
> ---
>> filename: ipw2200.ko
> 29,30c29,30
> < depends: ieee80211
> < vermagic: 2.6.27-11-generic SMP mod_unload modversions 586
> ---
>> depends:
>> vermagic: 2.6.27.10 SMP mod_unload modversions 586
>
> Thank you.
>
>

You must build your module against the kernel headers for the kernel
that will be running when you insmod the module.

rtg
--
Tim Gardner tim.gardner@canonical.com

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 04:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org