LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* force insmod on 2.6
@ 2007-02-09 17:27 Leisner, Martin
  2007-02-10 10:18 ` Rusty Russell
  0 siblings, 1 reply; 2+ messages in thread
From: Leisner, Martin @ 2007-02-09 17:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: leisner

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).

marty

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: force insmod on 2.6
  2007-02-09 17:27 force insmod on 2.6 Leisner, Martin
@ 2007-02-10 10:18 ` Rusty Russell
  0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2007-02-10 10:18 UTC (permalink / raw)
  To: Leisner, Martin; +Cc: linux-kernel, leisner

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-10 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-09 17:27 force insmod on 2.6 Leisner, Martin
2007-02-10 10:18 ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).