[PLUG] Inserting module in 2.4.20-8

sandeep mane sandeepmanekolhapur at gmail.com
Mon Dec 1 15:01:06 IST 2008


try with
insmod -f ./hello-1.o

or  check your  makefile into linux source header such as /usr/src/linux
2.4.20-8smp as your kernel source is here.
chanage first four lines according to your module needs then again try to
insert the module.

with regards
Sandeep Mane

On Fri, Dec 7, 2007 at 1:51 PM, Shakthi Kannan <shakthimaan at yahoo.com>wrote:

> Hi,
>
> --- Jayesh Agrawal <jayeshleo at gmail.com> wrote:
> | [root at localhost root]# insmod ./hello-1.o
> | ./hello-1.o: kernel-module version mismatch
> | ./hello-1.o was compiled for kernel version
> | 2.4.20
> | while this kernel is version 2.4.20-8smp.
> \--
>
> This clearly tells you the error. Your kernel headers
> are for 2.4.20, but, your current running kernel is a
> smp kernel.
>
> Always load driver modules to the corresponding
> kernels to which they are built for.
>
> SK
>
> --
> Shakthi Kannan
> http://www.shakthimaan.com
>
>
>
>  ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
> --
> ______________________________________________________________________
> Pune GNU/Linux Users Group Mailing List:      (plug-mail at plug.org.in)
> List Information:  http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail
> Send 'help' to plug-mail-request at plug.org.in for mailing instructions.
>



More information about the Plug-mail mailing list