[PLUG] Inserting module in 2.4.20-8
sandeepmanekolhapur at gmail.com
Mon Dec 1 01:31:06 PST 2008
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.
On Fri, Dec 7, 2007 at 1:51 PM, Shakthi Kannan <shakthimaan at yahoo.com>wrote:
> --- 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.
> Shakthi Kannan
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> 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