Re: Kernel version and modules

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

 



Amit Nadgar wrote:
> guys,
>   I have written a module and compiled and executed it
> on kernel 2.4.7-10. Now I have downloaded the source
> for 2.4.18 , compiled it booted through it. I compiled
> my module with 2.4.18 as my current kernel. When I do
> an insmod it says the module was meant for 2.4.7-10
> and the current kernel is 2.4.18. How do I make my
> module execute on 2.4.xx kernel? Can anybody provide
> some assisstance in this matter?

Hi Amit,

The best way i think it is:

-I/lib/modules/`uname -r`/build/include -c your_module.c

Hope this helps..

Cheers,
Ilker G.

--
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