Hello everyone,

I am trying to compile a hello world module given over here

I have followed the following step.

  1. Downloaded Linux kernel 2.6.35-rc5
  2. extracted to directory /general/source/linux
  3. Complied the entire kernel.
  4. created a dir test in the linux folder.
  5. 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?

Also please suggest some tools to detect and resolve these kind of errors

Regards,



--
Cheers !!!
Chaitannya

follow me on twitter http://twitter.com/chaitannya

I believe there's a hero in all of us
who keeps us honest, gives us strength, makes us noble, and finally allows us to die with pride,
even though sometimes we have to be steady, and give up the thing we want the most... even our dreams.
- Spider Man 2



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to