LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   My test module is failing to load (https://www.linuxquestions.org/questions/linux-kernel-70/my-test-module-is-failing-to-load-4175424246/)

PercyZA 08-27-2012 11:45 AM

My test module is failing to load
 
Hi Team,

Please assist, I'm trying initialise my very first module (test module) and I keep getting the below error:

insmod: error inserting "nothing.c": -1 Invalid module format

I'm using Fedora 8 and the name of my module is nothing.

I'll greatly appreciate your assistance.
PercyZA

Didier Spaier 08-27-2012 01:16 PM

Hi PercyZA and welcome to LQ.

If nothing.c is a source file, as its name make me assume, sure the error message is sound.

The module should first be compiled against the kernel source you are using. Is it?


All times are GMT -5. The time now is 10:25 PM.