From: Rusty Russell <rusty@rustcorp.com.au>
To: "Leisner, Martin" <Martin.Leisner@xerox.com>
Cc: linux-kernel@vger.kernel.org, leisner@rochester.rr.com
Subject: Re: force insmod on 2.6
Date: Sat, 10 Feb 2007 21:18:30 +1100 [thread overview]
Message-ID: <1171102710.15356.26.camel@localhost.localdomain> (raw)
In-Reply-To: <556445368AFA1C438794ABDA8901891C034456F2@usa0300ms03.na.xerox.net>
On Fri, 2007-02-09 at 12:27 -0500, Leisner, Martin wrote:
> I had modules which were compiled with another kernel version string
> (same kernel though).
>
> In 2.4, you could do a force in the modules.conf files or in the insmod
> command line.
>
> The current insmod doesn't have a force option.
>
> Modprobe CAN force, but the modules has to be in the modules tree (i.e.
> not arbitrary places on the
> file system)
>
> Is there a way to force load a module at an arbitrary location?
>
> This is very handy for development (not production).
Sure, you simply remove the information from the module, then the kernel
will load it. To strip modversions, remove the __versions section. To
strip the version magic, it's easiest to remove the entire .modinfo
section. You can use objcopy for this...
Hope that helps!
Rusty.
prev parent reply other threads:[~2007-02-10 10:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-09 17:27 Leisner, Martin
2007-02-10 10:18 ` Rusty Russell [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=1171102710.15356.26.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=Martin.Leisner@xerox.com \
--cc=leisner@rochester.rr.com \
--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®