LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem while insmod in 2.6 fedore core (https://www.linuxquestions.org/questions/linux-newbie-8/problem-while-insmod-in-2-6-fedore-core-525746/)

sanjeevsharmaengg 02-05-2007 08:45 AM

Problem while insmod in 2.6 fedore core
 
hi i am newbie to linux.
i am trying to load a module on 2.6 kernel fedore core..

i compiled code successfully.and .o is created.
while insmod
it gives following error

insmod: error inserting 'test.o': -1 Invalid module format

could anybody help me out.

regards
sanjeev sharma

colucix 02-05-2007 08:59 AM

Normally kernel modules have the .ko extension. A file with extension .o usually is an object file that has been compiled from source code, but that have to be still linked in an executable. Double check the instructions on how to compile the module, beacuse probably you missed some final step. I guess.


All times are GMT -5. The time now is 06:21 AM.