mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Albert Kajakas <Albert.Kajakas@mail.ee>,
	Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 3rdparty modules for 2.5.53
Date: Wed, 1 Jan 2003 19:24:39 +0100	[thread overview]
Message-ID: <20030101182439.GA2293@mars.ravnborg.org> (raw)
In-Reply-To: <200301011719.h01HJOB21702@mail-fe2.tele2.ee>

On Wed, Jan 01, 2003 at 07:19:24PM +0200, Albert Kajakas wrote:
> 
> Hello!
> I have a problem with compiling modules for 2.5.
> i wrote a module for 2.4. For 2.5 (51,52,53) it compiles nicely, but insmod complains about invalid format. I have the latest module init tools of Rusty installed.  I'm usin gcc 3.2. Do i have to use any special compiler/linker options or defines or whatever to generate a working module ? what could be the problem ? Even a simple hello-world module doesnt work. Although, i have a working 2.5.53 modular kernel that was built using same tools.
> 

Try to folllow this reciept posted by Kai G.
-------------
Well, you can do

cd my_module
echo "obj-m := my_module.o" > Makefile
vi my_module.c
make -C <path/to/kernel/src> SUBDIRS=$PWD modules

That's not too bad (and basically works for 2.4 as well)
---------------

	Sam

  reply	other threads:[~2003-01-01 18:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-01 17:19 Albert Kajakas
2003-01-01 18:24 ` Sam Ravnborg [this message]
2003-01-01 18:56 ` Andi Kleen
2003-01-01 22:29   ` Bjoern A. Zeeb
2003-01-01 22:32 Albert Kajakas

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=20030101182439.GA2293@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=Albert.Kajakas@mail.ee \
    --cc=kai@tp1.ruhr-uni-bochum.de \
    --cc=linux-kernel@vger.kernel.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®