2003-06-15 06:39:18

by Per Bergqvist

[permalink] [raw]
Subject: 2.5 and module loading

Hi,

This is probably the common question but I haven't been able to find
the proper answer...

Can somebody please explain what is needed to get module loading
working with the 2.5.xx kernels ?

I use redhat 9 as base dist with a modutils 2.4.25,
monolitic kernels work fine but with no luck with modules.

What else is needed ?

BR
Per
=========================================================
Per Bergqvist
Synapse Systems AB
Phone: +46 709 686 685
Email: [email protected]


2003-06-15 06:53:00

by Joshua Kwan

[permalink] [raw]
Subject: Re: 2.5 and module loading

On Sun, Jun 15, 2003 at 08:53:03AM +0300, Per Bergqvist wrote:
> Can somebody please explain what is needed to get module loading
> working with the 2.5.xx kernels ?

ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/

Have fun...

regards
Josh

--
New PGP public key: 0x27AFC3EE


Attachments:
(No filename) (290.00 B)
(No filename) (189.00 B)
Download all attachments

2003-06-15 07:53:15

by Felipe Alfaro Solana

[permalink] [raw]
Subject: Re: 2.5 and module loading

On Sun, 2003-06-15 at 09:06, Joshua Kwan wrote:
> On Sun, Jun 15, 2003 at 08:53:03AM +0300, Per Bergqvist wrote:
> > Can somebody please explain what is needed to get module loading
> > working with the 2.5.xx kernels ?
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/

For RedHat users, there's another pitfall in "/etc/rc.sysinit". During
startup, the script sets up the binary used to dynamically load modules
stored at "/proc/sys/kernel/modprobe". The initscript looks for
"/proc/ksyms" (if my memory servers me well), but since it doesn't exist
in 2.5 kernels, the binary used is "/sbin/true" instead.

This, eventually, will keep modules from working. RedHat users will have
to patch the "/etc/rc.sysinit" script to set "/proc/sys/kernel/modprobe"
to "/sbin/modprobe", even when "/proc/ksyms" doesn't exist.

I can't attach a patch. All my RH9 boxes are manually patched and can't
get access to the original "/etc/rc.sysinit" script :-(

2003-06-15 11:24:23

by Diego Calleja

[permalink] [raw]
Subject: Re: 2.5 and module loading

On 15 Jun 2003 10:07:01 +0200
Felipe Alfaro Solana <[email protected]> wrote:

> For RedHat users, there's another pitfall in "/etc/rc.sysinit". During
> startup, the script sets up the binary used to dynamically load modules
> stored at "/proc/sys/kernel/modprobe". The initscript looks for
> "/proc/ksyms" (if my memory servers me well), but since it doesn't exist
> in 2.5 kernels, the binary used is "/sbin/true" instead.
>
> This, eventually, will keep modules from working. RedHat users will have
> to patch the "/etc/rc.sysinit" script to set "/proc/sys/kernel/modprobe"
> to "/sbin/modprobe", even when "/proc/ksyms" doesn't exist.
>
> I can't attach a patch. All my RH9 boxes are manually patched and can't
> get access to the original "/etc/rc.sysinit" script :-(

Dave, i think it'd be good to have this in your post-halloween document?

Regards,
Your spanish translator :)

2003-06-15 11:52:45

by Dave Jones

[permalink] [raw]
Subject: Re: 2.5 and module loading

On Sun, Jun 15, 2003 at 01:36:30PM +0200, Diego Calleja Garc?a wrote:

> Dave, i think it'd be good to have this in your post-halloween document?

Added to the working version of the next release. Thanks.

Dave