lkml.org 
[lkml]   [2005]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectHelp Regarding putting my module into the kernel
Hello linux-experts,
I am intercepting a few syscalls in kernel
2.4.28. My module name is rsched.c. To put it in the
kernel, I created a new subdirectory with the name
rsched under /linux-2.4.28 source directory. I created
the Makefile for it. I included the rsched
subdirectory in the list of kernel subdirectories in
the toplevel Makefile as
SUDIRS := (all-available subdirectories) rsched
But when I build the kernel depmod showed the
following error:

depmod: cannot read ELF header from
/lib/modules/2.4.28-rsched/kernel/rsched/rsched.o

How can I correct it and add my module into the
kernel?
Can anyone help me regarding this? I have also
attached the Makefile here.

Thanks,
selva

Makefile
--------
O_TARGET := rsched.o


obj-m := $(O_TARGET)

include $(TOPDIR)/Rules.make
----------

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.023 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site