mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: <linuxmodule@altern.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test3 module compilation
Date: Wed, 20 Aug 2003 09:54:08 -0700	[thread overview]
Message-ID: <20030820095408.68d9dea9.rddunlap@osdl.org> (raw)
In-Reply-To: <S261663AbTHTQkp/20030820164045Z+1122@vger.kernel.org>

On Wed, 20 Aug 2003 18:39:19 +0200 (CEST) <linuxmodule@altern.org> wrote:

| I am trying to compile a module on 2.6.0-test3 kernel. The makefile i am using is a pretty normal one : 
| 
| CFLAGS = -D__KERNEL__ -DMODULE -I/usr/src/linux-2.6.0-test3/include -O
| dummy.o: dummy.c
| 
| The module i am trying to compile is taken from the kernel itself (dummy network device driver). The
| compilation works flawlessly but when i try to insert the module i get : invalid module format.
| What am i doing wrong because i have modutils and module-init and both work, since the same module (dummy)
| compiled with the kernel itself can be inserted and removed without the previous error message.
| Is there something i should know about the compilation process ? The kernel-compiled module (dummy.ko) has
| about 10 Kbytes and dummy.ko compiled by me has only 2 Kbytes :(

Please wrap lines near 70-72 characters.

Can you try a Makefile and instructions like this?

# makefile for dummy module
# usage:
# cd /path/to/kernel/source && make SUBDIRS=/path/to/source/dummymod/ modules

obj-m := dummy.o

clean-files := *.o


--
~Randy   [MOTD:  Always include kernel version.]
"Everything is relative."

  reply	other threads:[~2003-08-20 16:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-20 16:39 linuxmodule
2003-08-20 16:54 ` Randy.Dunlap [this message]
2003-08-20 17:19 ` Richard B. Johnson
2003-08-20 18:47 ` Sam Ravnborg
2003-08-20 19:06 Jose Luis Alarcon Sanchez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030820095408.68d9dea9.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxmodule@altern.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®