Linux.com

Invalid module format

Link to this post 31 Aug 11

I have googled this and found a thousand answers, but none of them seem to answer my problem.

I have been using the distro kernels (Mandriva), but needed to install a current kernel directly from kernel.org.

When doing a modprobe on some modules I get this error.
This error usually means that one thing is using a different version, but I can't find where that is happening.

I have a lot of kernels installed, but while the distro kernels don't give me that error, any kernel I install from source from Kernel.org, I get the error on a few modules.

Wayne Sallee
Wayne@WayneSallee.com

Link to this post 31 Aug 11

You probably neglected to build and install the kernel modules from the previous kernel. That's why you should use the previous kernels config file when building the new kernel. Then if you follow the steps correctly, the modules in the old kernel are also updated for the new kernel.
I'm a kernel noob, so, what I'm telling you is just an assumption of what you did wrong. Maybe check out the steps you took to build the kernel, and see if you left something out.

Link to this post 04 Sep 11

Goineasy9 wrote:

You probably neglected to build and install the kernel modules from the previous kernel. That's why you should use the previous kernels config file when building the new kernel. Then if you follow the steps correctly, the modules in the old kernel are also updated for the new kernel.
I'm a kernel noob, so, what I'm telling you is just an assumption of what you did wrong. Maybe check out the steps you took to build the kernel, and see if you left something out.

It makes no differeence whether I use the old config, or a fresh config.

The problem is that when an attempt to install the module is made, that I get the error.

Wayne Sallee
Wayne@WayneSallee.com

Link to this post 21 May 12

I'm still having trouble with this. Is there anyone here that is knowledgeable on this issue that can help me with this?

Wayne Sallee
Wayne@WayneSallee.com

Link to this post 22 May 12

As far as I know the Mandriva team customize their kernels with patches that are not in the vanilla kernels, so if that is the case then a vanilla install may cause issues.

now to give you what you need, to get the modules used in the stock mandriva kernel installed in a new vanilla kernel you can do the following:

#Boot into a stock kernel

# copy the running kernel config into the new kernel directory
zcat /proc/config.gz>/usr/src/linux-??????/

cd /usr/src/linux-??????

# Run the configure command to customize the kernel
# Run the make and install commands to build the kernel and output the necessary files

Link to this post 22 May 12

That does not fix the problem.

Wayne Sallee
Wayne@WayneSallee.com

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board