mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Michal Sojka <sojka@planetarium.cz>
Cc: linux-kernel@vger.kernel.org,
	Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Subject: Re: Insmod failed
Date: Tue, 7 Jan 2003 18:23:08 +0100	[thread overview]
Message-ID: <20030107172308.GA1472@mars.ravnborg.org> (raw)
In-Reply-To: <3E1B0985.6050100@planetarium.cz>

On Tue, Jan 07, 2003 at 06:08:21PM +0100, Michal Sojka wrote:
> Hi,
> 
> I'am porting driver for my USB 2.0 device to 2.5 and when I try insmod 
> my module I get the following:
> 
> Error inserting '/lib/modules/2.5.54/misc/usb-emise.o': -1 Invalid 
> module format
> 
> 
> I compile my module separate of kernel tree with Makefile similar to 
> that in Linux Device Drivers book (Rubini, Corbet). What is the right 
> way to compile standalone modules?

Kai posted the following a few weeks ago:
-----
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
-----

Let me know if this solves the problem,

	Sam

      parent reply	other threads:[~2003-01-07 17:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07 17:08 Michal Sojka
2003-01-07 17:21 ` Randy.Dunlap
2003-01-07 17:23 ` Sam Ravnborg [this message]

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=20030107172308.GA1472@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=kai@tp1.ruhr-uni-bochum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sojka@planetarium.cz \
    /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®