Inserting the module
Hi,
I am new to kernel, And I am using 3.12.0 kernel version. I wrote my first Hello.c file and compile using 3.2.0-57-generic-pae linux header. Compilation was done nicely but when I try to execute the insmod Hello.ko "An error msg is displayed-- invalid maodule format." How could I use my newer version for compiling , inserting and to dispaly the message on the older linux. I am using linux 3.2.0. I don't want to remove the old version. Please help.... |
please give information like how did you compile the code. What flags did you provide to compile. This post may help you.
Code:
1.2.1.3. Compiling Issues and Kernel Version You can find in the following file: Code:
http://www.tldp.org/LDP/lkmpg/2.4/html/x49.html |
Inserting the module
Actually I have installed the linux kernel 3.12.0. And now compilation is not a problem. When I am inserting module is the problem. Compilation is done succesfully when using linux-headers-3.2.0.57 but it's unable to insert. But when I am changing linux-headers-3.2.0.57 to linux-3.12 it's nicely inserted, but the problem with compilation remains.
Any help?? |
All times are GMT -5. The time now is 08:19 PM. |