* [gentoo-user] Invalid module format
@ 2012-08-19 18:22 Tamer Higazi
2012-08-19 22:44 ` covici
0 siblings, 1 reply; 10+ messages in thread
From: Tamer Higazi @ 2012-08-19 18:22 UTC (permalink / raw
To: gentoo-user
Hi people!
I have installed through the freeswitch overlay, the wanpipe package.
What I figure out, that If I "modprobe" a driver, I recevie this error:
"Invalid module format"
here is the output:
tamer@office ~ $ sudo modprobe wanpipe
Passwort:
WARNING: Deprecated config file /etc/modprobe.conf, all config files
belong into /etc/modprobe.d/.
WARNING: Error inserting wanrouter
(/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko): Invalid
module format
FATAL: Error inserting wanpipe
(/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko): Invalid
module format
What does it have to mean? I am not getting smart.
For any help, I would thank you a lot.
Tamer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-19 18:22 [gentoo-user] Invalid module format Tamer Higazi
@ 2012-08-19 22:44 ` covici
2012-08-20 10:35 ` Hinnerk van Bruinehsen
0 siblings, 1 reply; 10+ messages in thread
From: covici @ 2012-08-19 22:44 UTC (permalink / raw
To: gentoo-user
Tamer Higazi <th982a@googlemail.com> wrote:
> Hi people!
> I have installed through the freeswitch overlay, the wanpipe package.
> What I figure out, that If I "modprobe" a driver, I recevie this error:
> "Invalid module format"
>
> here is the output:
>
> tamer@office ~ $ sudo modprobe wanpipe
> Passwort:
> WARNING: Deprecated config file /etc/modprobe.conf, all config files
> belong into /etc/modprobe.d/.
> WARNING: Error inserting wanrouter
> (/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko): Invalid
> module format
> FATAL: Error inserting wanpipe
> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko): Invalid
> module format
>
>
>
> What does it have to mean? I am not getting smart.
Usually, it means you have compiled a module which is not the same
version as your running kernel -- make sure your /usr/src/linux is set
correctly.
Hope this helps.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-19 22:44 ` covici
@ 2012-08-20 10:35 ` Hinnerk van Bruinehsen
2012-08-20 16:14 ` Tamer Higazi
0 siblings, 1 reply; 10+ messages in thread
From: Hinnerk van Bruinehsen @ 2012-08-20 10:35 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20.08.2012 00:44, covici@ccs.covici.com wrote:
> Tamer Higazi <th982a@googlemail.com> wrote:
>
>> Hi people! I have installed through the freeswitch overlay, the
>> wanpipe package. What I figure out, that If I "modprobe" a
>> driver, I recevie this error: "Invalid module format"
>>
>> here is the output:
>>
>> tamer@office ~ $ sudo modprobe wanpipe Passwort: WARNING:
>> Deprecated config file /etc/modprobe.conf, all config files
>> belong into /etc/modprobe.d/. WARNING: Error inserting wanrouter
>> (/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko):
>> Invalid module format FATAL: Error inserting wanpipe
>> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko):
>> Invalid module format
>>
>>
>>
>> What does it have to mean? I am not getting smart.
>
> Usually, it means you have compiled a module which is not the same
> version as your running kernel -- make sure your /usr/src/linux is
> set correctly.
>
> Hope this helps.
>
You could also check for which kernel the module is compiled by
issuing modinfo <path-to-module>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJQMhLzAAoJEJwwOFaNFkYctSAH/1wTS1jX08LcGjSAs613UpCX
WqvDtT9rbrz1nhjabCdHOK7K9D0XPt0059lZ9Ii9EbSRL90T+VxAfBI2dJ8jEPmS
aeDSjXxpRwhTBn1/TTCSOv6bg8dyfocXqD+XuvzyuKqD1Ape6sq1/cFUJXDt78Ob
wYaYYUTFqduER/jSaeiVPlJMGy+tps1W7laTTOmoGTvht9xvhyn8yzpsCmG1MIMD
7kqhOX0ES6Wk0IEyIrv1aajsI9yXEn5HbWMxr+69vIp1sCnKgI9Qj3uY+GZzFMJ5
pTmP9V2tcwlQro3oX6kulT8hxykW1Y4ZVysdUoKcVbEG4IWzpXkeRnoy8P1hLJg=
=08l7
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-20 10:35 ` Hinnerk van Bruinehsen
@ 2012-08-20 16:14 ` Tamer Higazi
2012-08-20 16:29 ` covici
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Tamer Higazi @ 2012-08-20 16:14 UTC (permalink / raw
To: gentoo-user
Hi Hinnerk!
I did what you say, now the magic issue comes, the kernel drivers ARE
BUILT for this kernel, here the modinfo output:
tamer@office ~ $ sudo modinfo
/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
+filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
license: GPL
description: Sangoma WANPIPE: WAN Multi-Protocol Driver
author: Nenad Corbic <ncorbic@sangoma.com>
depends: sdladrv,wanrouter
vermagic: 3.3.8-gentoo SMP mod_unload modversions
tamer@office ~ $ sudo modinfo
/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanrouter.ko
tamer@office ~ $ sudo modinfo
/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
filename: /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
license: GPL
description: Sangoma WANPIPE: Proc & User Interface
author: Nenad Corbic <ncorbic@sangoma.com>
depends: sdladrv
vermagic: 3.3.8-gentoo SMP mod_unload modversions
tamer@office ~ $ sudo modprobe sdladrv
WARNING: Deprecated config file /etc/modprobe.conf, all config files
belong into /etc/modprobe.d/.
FATAL: Error inserting sdladrv
(/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko): Invalid
module format
tamer@office ~ $ sudo modinfo
/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
license: GPL
description: Sangoma WANPIPE: HW Layer
author: Alex Feldman <al.feldman@sangoma.com>
depends:
vermagic: 3.3.8-gentoo SMP mod_unload modversions
I am running the 3.3.8 SMP kernel, and I don't know why he doesn't load
the modules. This is what droves me crazy about it....
any other ideas?!
Tamer
Am 20.08.2012 12:35, schrieb Hinnerk van Bruinehsen:
> On 20.08.2012 00:44, covici@ccs.covici.com wrote:
>> Tamer Higazi <th982a@googlemail.com> wrote:
>
>>> Hi people! I have installed through the freeswitch overlay, the
>>> wanpipe package. What I figure out, that If I "modprobe" a
>>> driver, I recevie this error: "Invalid module format"
>>>
>>> here is the output:
>>>
>>> tamer@office ~ $ sudo modprobe wanpipe Passwort: WARNING:
>>> Deprecated config file /etc/modprobe.conf, all config files
>>> belong into /etc/modprobe.d/. WARNING: Error inserting wanrouter
>>> (/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko):
>>> Invalid module format FATAL: Error inserting wanpipe
>>> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko):
>>> Invalid module format
>>>
>>>
>>>
>>> What does it have to mean? I am not getting smart.
>
>> Usually, it means you have compiled a module which is not the same
>> version as your running kernel -- make sure your /usr/src/linux is
>> set correctly.
>
>> Hope this helps.
>
>
> You could also check for which kernel the module is compiled by
> issuing modinfo <path-to-module>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-20 16:14 ` Tamer Higazi
@ 2012-08-20 16:29 ` covici
2012-08-21 2:04 ` Tamer Higazi
2012-08-21 7:53 ` Alex Schuster
2012-08-21 9:14 ` Hinnerk van Bruinehsen
2 siblings, 1 reply; 10+ messages in thread
From: covici @ 2012-08-20 16:29 UTC (permalink / raw
To: gentoo-user
I would contact sangoma or file a bug on the freeswitch gira.
Tamer Higazi <th982a@googlemail.com> wrote:
> Hi Hinnerk!
> I did what you say, now the magic issue comes, the kernel drivers ARE
> BUILT for this kernel, here the modinfo output:
>
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
> +filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
> license: GPL
> description: Sangoma WANPIPE: WAN Multi-Protocol Driver
> author: Nenad Corbic <ncorbic@sangoma.com>
> depends: sdladrv,wanrouter
> vermagic: 3.3.8-gentoo SMP mod_unload modversions
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanrouter.ko
>
>
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
> filename: /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
> license: GPL
> description: Sangoma WANPIPE: Proc & User Interface
> author: Nenad Corbic <ncorbic@sangoma.com>
> depends: sdladrv
> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>
>
> tamer@office ~ $ sudo modprobe sdladrv
> WARNING: Deprecated config file /etc/modprobe.conf, all config files
> belong into /etc/modprobe.d/.
> FATAL: Error inserting sdladrv
> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko): Invalid
> module format
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
> filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
> license: GPL
> description: Sangoma WANPIPE: HW Layer
> author: Alex Feldman <al.feldman@sangoma.com>
> depends:
> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>
>
> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't load
> the modules. This is what droves me crazy about it....
>
>
> any other ideas?!
>
>
>
> Tamer
>
>
> Am 20.08.2012 12:35, schrieb Hinnerk van Bruinehsen:
> > On 20.08.2012 00:44, covici@ccs.covici.com wrote:
> >> Tamer Higazi <th982a@googlemail.com> wrote:
> >
> >>> Hi people! I have installed through the freeswitch overlay, the
> >>> wanpipe package. What I figure out, that If I "modprobe" a
> >>> driver, I recevie this error: "Invalid module format"
> >>>
> >>> here is the output:
> >>>
> >>> tamer@office ~ $ sudo modprobe wanpipe Passwort: WARNING:
> >>> Deprecated config file /etc/modprobe.conf, all config files
> >>> belong into /etc/modprobe.d/. WARNING: Error inserting wanrouter
> >>> (/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko):
> >>> Invalid module format FATAL: Error inserting wanpipe
> >>> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko):
> >>> Invalid module format
> >>>
> >>>
> >>>
> >>> What does it have to mean? I am not getting smart.
> >
> >> Usually, it means you have compiled a module which is not the same
> >> version as your running kernel -- make sure your /usr/src/linux is
> >> set correctly.
> >
> >> Hope this helps.
> >
> >
> > You could also check for which kernel the module is compiled by
> > issuing modinfo <path-to-module>
> >
>
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-20 16:29 ` covici
@ 2012-08-21 2:04 ` Tamer Higazi
0 siblings, 0 replies; 10+ messages in thread
From: Tamer Higazi @ 2012-08-21 2:04 UTC (permalink / raw
To: gentoo-user
Even though they couldn't help......
Am 20.08.2012 18:29, schrieb covici@ccs.covici.com:
> I would contact sangoma or file a bug on the freeswitch gira.
>
> Tamer Higazi <th982a@googlemail.com> wrote:
>
>> Hi Hinnerk!
>> I did what you say, now the magic issue comes, the kernel drivers ARE
>> BUILT for this kernel, here the modinfo output:
>>
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
>> +filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
>> license: GPL
>> description: Sangoma WANPIPE: WAN Multi-Protocol Driver
>> author: Nenad Corbic <ncorbic@sangoma.com>
>> depends: sdladrv,wanrouter
>> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanrouter.ko
>>
>>
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
>> filename: /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
>> license: GPL
>> description: Sangoma WANPIPE: Proc & User Interface
>> author: Nenad Corbic <ncorbic@sangoma.com>
>> depends: sdladrv
>> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>>
>>
>> tamer@office ~ $ sudo modprobe sdladrv
>> WARNING: Deprecated config file /etc/modprobe.conf, all config files
>> belong into /etc/modprobe.d/.
>> FATAL: Error inserting sdladrv
>> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko): Invalid
>> module format
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
>> filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
>> license: GPL
>> description: Sangoma WANPIPE: HW Layer
>> author: Alex Feldman <al.feldman@sangoma.com>
>> depends:
>> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>>
>>
>> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't load
>> the modules. This is what droves me crazy about it....
>>
>>
>> any other ideas?!
>>
>>
>>
>> Tamer
>>
>>
>> Am 20.08.2012 12:35, schrieb Hinnerk van Bruinehsen:
>>> On 20.08.2012 00:44, covici@ccs.covici.com wrote:
>>>> Tamer Higazi <th982a@googlemail.com> wrote:
>>>
>>>>> Hi people! I have installed through the freeswitch overlay, the
>>>>> wanpipe package. What I figure out, that If I "modprobe" a
>>>>> driver, I recevie this error: "Invalid module format"
>>>>>
>>>>> here is the output:
>>>>>
>>>>> tamer@office ~ $ sudo modprobe wanpipe Passwort: WARNING:
>>>>> Deprecated config file /etc/modprobe.conf, all config files
>>>>> belong into /etc/modprobe.d/. WARNING: Error inserting wanrouter
>>>>> (/lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko):
>>>>> Invalid module format FATAL: Error inserting wanpipe
>>>>> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko):
>>>>> Invalid module format
>>>>>
>>>>>
>>>>>
>>>>> What does it have to mean? I am not getting smart.
>>>
>>>> Usually, it means you have compiled a module which is not the same
>>>> version as your running kernel -- make sure your /usr/src/linux is
>>>> set correctly.
>>>
>>>> Hope this helps.
>>>
>>>
>>> You could also check for which kernel the module is compiled by
>>> issuing modinfo <path-to-module>
>>>
>>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-20 16:14 ` Tamer Higazi
2012-08-20 16:29 ` covici
@ 2012-08-21 7:53 ` Alex Schuster
2012-08-21 20:33 ` Tamer Higazi
2012-08-21 9:14 ` Hinnerk van Bruinehsen
2 siblings, 1 reply; 10+ messages in thread
From: Alex Schuster @ 2012-08-21 7:53 UTC (permalink / raw
To: gentoo-user
Tamer Higazi writes:
> I did what you say, now the magic issue comes, the kernel drivers ARE
> BUILT for this kernel, here the modinfo output:
>
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
> +filename: /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
> license: GPL
> description: Sangoma WANPIPE: WAN Multi-Protocol Driver
> author: Nenad Corbic <ncorbic@sangoma.com>
> depends: sdladrv,wanrouter
> vermagic: 3.3.8-gentoo SMP mod_unload modversions
Does modinfo say exactly the same for another, regular kernel module you
compiled when building the kernel?
> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't load
> the modules. This is what droves me crazy about it....
>
> any other ideas?!
Did you use the same compiler version for building the kernel and for
wanpipe?
Maybe enabling CONFIG_MODVERSIONS in your kernel will help (Enable
loadable module support --> Module versioning support), but I doubt it.
Wonko
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-20 16:14 ` Tamer Higazi
2012-08-20 16:29 ` covici
2012-08-21 7:53 ` Alex Schuster
@ 2012-08-21 9:14 ` Hinnerk van Bruinehsen
2012-08-21 20:36 ` Tamer Higazi
2 siblings, 1 reply; 10+ messages in thread
From: Hinnerk van Bruinehsen @ 2012-08-21 9:14 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20.08.2012 18:14, Tamer Higazi wrote:
> Hi Hinnerk! I did what you say, now the magic issue comes, the
> kernel drivers ARE BUILT for this kernel, here the modinfo output:
>
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
> +filename:
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
> license: GPL description: Sangoma WANPIPE: WAN
> Multi-Protocol Driver author: Nenad Corbic
> <ncorbic@sangoma.com> depends: sdladrv,wanrouter vermagic:
> 3.3.8-gentoo SMP mod_unload modversions tamer@office ~ $ sudo
> modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanrouter.ko
>
>
> tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
> filename:
> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
> license: GPL description: Sangoma WANPIPE: Proc & User
> Interface author: Nenad Corbic <ncorbic@sangoma.com>
> depends: sdladrv vermagic: 3.3.8-gentoo SMP mod_unload
> modversions
>
>
> tamer@office ~ $ sudo modprobe sdladrv WARNING: Deprecated config
> file /etc/modprobe.conf, all config files belong into
> /etc/modprobe.d/. FATAL: Error inserting sdladrv
> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko):
> Invalid module format tamer@office ~ $ sudo modinfo
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
> filename:
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
> license: GPL description: Sangoma WANPIPE: HW Layer
> author: Alex Feldman <al.feldman@sangoma.com> depends:
> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>
>
> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't
> load the modules. This is what droves me crazy about it....
>
>
> any other ideas?!
>
<SNIP>
>
>
I would try to recompile the kernel. You should also set the
/usr/src/linux symlink accordingly (to your actual kernel sources).
Reboot to machine after rebuilding the kernel and then rebuild the
module itself.
Maybe try - as Wonko stated in another mail - module versioning support.
For the whole process make sure that you use a consistent toolchain
(gcc, linux-headers, kernel-sources, glibc, binutils come to mind)
WKR
Hinnerk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJQM1F5AAoJEJwwOFaNFkYcncMH/i3sUwg7Vdo82Olx45eemGNh
i003wxAd/3I5Kr0jHK/1VTWnOb6mHIku1BJQRGUSMMCVelqyYVDFh4hO+DfNok17
hOYXY/sxCsgP0f3oMMZxb7W+6aoLfGtm2vDIOdkthp3+O4z+BTyjjq/ikyaHJtDp
l+4xuHc1E0SYlUJf2JsBcKQjEWHmUNfCcZoratDjgghgNS9zYGNv3NJo7A1Bpx1N
M3dwh2S2aL9bs5kqWARgX/zYdX5mJOrxjP5gxRc4xqNzBoQBEVsCMtbt89VtVV4A
uZI/KqECQBm6kajbMMRR5ELbu2MkeyVXw6xhKqmZqkgsWhij5gZrARzUSmLA7No=
=Qa3/
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-21 7:53 ` Alex Schuster
@ 2012-08-21 20:33 ` Tamer Higazi
0 siblings, 0 replies; 10+ messages in thread
From: Tamer Higazi @ 2012-08-21 20:33 UTC (permalink / raw
To: gentoo-user
I even use the same headers for gentoo-3.3.8 (linux-headers-3.3),
recompiled the entire kernel and rebooted.
And the same nonsense....
Am 21.08.2012 09:53, schrieb Alex Schuster:
> Tamer Higazi writes:
>
>> I did what you say, now the magic issue comes, the kernel drivers ARE
>> BUILT for this kernel, here the modinfo output:
>>
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
>> +filename:
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
>> license: GPL
>> description: Sangoma WANPIPE: WAN Multi-Protocol Driver
>> author: Nenad Corbic <ncorbic@sangoma.com>
>> depends: sdladrv,wanrouter
>> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>
> Does modinfo say exactly the same for another, regular kernel module you
> compiled when building the kernel?
>
>> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't load
>> the modules. This is what droves me crazy about it....
>>
>> any other ideas?!
>
> Did you use the same compiler version for building the kernel and for
> wanpipe?
>
> Maybe enabling CONFIG_MODVERSIONS in your kernel will help (Enable
> loadable module support --> Module versioning support), but I doubt it.
>
> Wonko
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Invalid module format
2012-08-21 9:14 ` Hinnerk van Bruinehsen
@ 2012-08-21 20:36 ` Tamer Higazi
0 siblings, 0 replies; 10+ messages in thread
From: Tamer Higazi @ 2012-08-21 20:36 UTC (permalink / raw
To: gentoo-user
I set the sysmbolic link at the right direction, as well recompiled the
entire kernel with the matched linux-headers.
I have only 1 kernel, built with the same compiler I build the wanpipe
module.
Nividia Drivers are being compiled out of the box, and are running ou
tof the box without errors.
Am 21.08.2012 11:14, schrieb Hinnerk van Bruinehsen:
> On 20.08.2012 18:14, Tamer Higazi wrote:
>> Hi Hinnerk! I did what you say, now the magic issue comes, the
>> kernel drivers ARE BUILT for this kernel, here the modinfo output:
>
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
>> +filename:
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko
>> license: GPL description: Sangoma WANPIPE: WAN
>> Multi-Protocol Driver author: Nenad Corbic
>> <ncorbic@sangoma.com> depends: sdladrv,wanrouter vermagic:
>> 3.3.8-gentoo SMP mod_unload modversions tamer@office ~ $ sudo
>> modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanrouter.ko
>
>
>> tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
>> filename:
>> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko
>> license: GPL description: Sangoma WANPIPE: Proc & User
>> Interface author: Nenad Corbic <ncorbic@sangoma.com>
>> depends: sdladrv vermagic: 3.3.8-gentoo SMP mod_unload
>> modversions
>
>
>> tamer@office ~ $ sudo modprobe sdladrv WARNING: Deprecated config
>> file /etc/modprobe.conf, all config files belong into
>> /etc/modprobe.d/. FATAL: Error inserting sdladrv
>> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko):
>> Invalid module format tamer@office ~ $ sudo modinfo
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
>> filename:
>> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko
>> license: GPL description: Sangoma WANPIPE: HW Layer
>> author: Alex Feldman <al.feldman@sangoma.com> depends:
>> vermagic: 3.3.8-gentoo SMP mod_unload modversions
>
>
>> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't
>> load the modules. This is what droves me crazy about it....
>
>
>> any other ideas?!
>
> <SNIP>
>
>
>
> I would try to recompile the kernel. You should also set the
> /usr/src/linux symlink accordingly (to your actual kernel sources).
> Reboot to machine after rebuilding the kernel and then rebuild the
> module itself.
> Maybe try - as Wonko stated in another mail - module versioning support.
>
> For the whole process make sure that you use a consistent toolchain
> (gcc, linux-headers, kernel-sources, glibc, binutils come to mind)
>
> WKR
> Hinnerk
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-08-21 20:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19 18:22 [gentoo-user] Invalid module format Tamer Higazi
2012-08-19 22:44 ` covici
2012-08-20 10:35 ` Hinnerk van Bruinehsen
2012-08-20 16:14 ` Tamer Higazi
2012-08-20 16:29 ` covici
2012-08-21 2:04 ` Tamer Higazi
2012-08-21 7:53 ` Alex Schuster
2012-08-21 20:33 ` Tamer Higazi
2012-08-21 9:14 ` Hinnerk van Bruinehsen
2012-08-21 20:36 ` Tamer Higazi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox