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
08-19-2012, 10:44 PM
Invalid module format
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
08-20-2012, 10:35 AM
Hinnerk van Bruinehsen
Invalid module format
-----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/
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>
>
08-20-2012, 04:29 PM
Invalid module format
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
08-21-2012, 02:04 AM
Tamer Higazi
Invalid module format
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>
>>>
>>
>
08-21-2012, 07:53 AM
Alex Schuster
Invalid module format
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:
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
08-21-2012, 09:14 AM
Hinnerk van Bruinehsen
Invalid module format
-----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/
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
>
08-21-2012, 08:36 PM
Tamer Higazi
Invalid module format
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
>