On 12/1/08, sandeep mane <[EMAIL PROTECTED]> wrote:
>> --- Jayesh Agrawal <[EMAIL PROTECTED]> wrote:
>> | [EMAIL PROTECTED] root]# insmod ./hello-1.o
>> | ./hello-1.o: kernel-module version mismatch
>> | ./hello-1.o was compiled for kernel version
>> | 2.4.20
>> | while this kernel is version 2.4
try with
insmod -f ./hello-1.o
or check your makefile into linux source header such as /usr/src/linux
2.4.20-8smp as your kernel source is here.
chanage first four lines according to your module needs then again try to
insert the module.
with regards
Sandeep Mane
On Fri, Dec 7, 2007 at 1:51 PM
Hi,
--- Jayesh Agrawal <[EMAIL PROTECTED]> wrote:
| [EMAIL PROTECTED] root]# insmod ./hello-1.o
| ./hello-1.o: kernel-module version mismatch
| ./hello-1.o was compiled for kernel version
| 2.4.20
| while this kernel is version 2.4.20-8smp.
\--
This clearly tells you the error. Your kernel header
Hi Jayesh,
I'm not sure, but this should work. I'd done it long before.*
Try this
insmod hello1.o
*
_
Yogesh Chaudhari
On Dec 7, 2007 11:19 AM, Jayesh Agrawal <[EMAIL PROTECTED]> wrote:
> Hello !
>
>
Hello !
I have written a hello.c program
#define MODULE
#define LINUX
#define __KERNEL__
#include
#include
#include
#include
int init_module(void)
{
printk("<1> Hello World 1.\n");
return 0;
}
void cleanup_module(void)
{
printk("<1> Bye World");
}
I have also written a Makefile for it...
T