Hi Chaitannya, On Thu, Dec 9, 2010 at 5:51 PM, Chaitannya Mahatme <chaitannya@xxxxxxxxx> wrote: > > Hello everyone, > > I am trying to compile a hello world module given over here > > I have followed the following step. > > Downloaded Linux kernel 2.6.35-rc5 > extracted to directory /general/source/linux > Complied the entire kernel. > created a dir test in the linux folder. > Created and complied a hello world module as mentioned there. > > when I run the insmod command, I get this error > > insmod: error inserting 'hello.ko': -1 Invalid module format > > What I have read is that the error is result of kernel mismatch. How do I > sort out this error? Are you running the 2.6.35-rc5 kernel? If you run modinfo on the module, look for the vermagic string. You can get most of the information about the kernel that you're running by using cat /proc/version The kernel version, compiler version and stuff like SMP, PREEMPT 4KSTACKS etc all have to match with the vermagic info from your module. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ