version mismatch - how to fix ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a kernel compiled by my linux distro. I use
2.4.18, and my distro provide a build optimized for K6
processors called 2.4.18-K6 (with a belive that only
add K6 to EXTRAVERSION). So the kernel is the same. :)

I compile my LKM well, but when i try insmod

test.o: kernel-module version mismatch
        test.o was compiled for kernel version 2.4.18
        while this kernel is version 2.4.18-k6.

Ok, i know that i can force with "insmod -f", but i
want a solution, not a workarround. For example if i
add it to /etc/modules it will not load at boot
startup! :(

How to solve this ?

ps1: I had used the -I flag of gcc to put the path of
my /lib/modules/my-kernel/, but it point to
/usr/src/linux that points to /usr/src/linux-2.4.18.
And my uname -r show 2.4.18-k6! :/

ps2.: I belive don't need recompile my kernel.

Regards.


	
	
		
_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: http://br.acesso.yahoo.com/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux