* [gentoo-user] prevent udev from loading a kernel module
@ 2006-06-12 8:53 Bo Ørsted Andresen
2006-06-12 9:46 ` Richard Fish
0 siblings, 1 reply; 8+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-12 8:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
I haven't been able to figure out how to prevent that the new udev (090) loads
the ipw2100 (wireless lan) during boot. I don't use it very often, and I have
set the button that enables/disables the transmitter to also load/unload the
kernel module. Any hints or pointers appreciated?
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 8:53 [gentoo-user] prevent udev from loading a kernel module Bo Ørsted Andresen
@ 2006-06-12 9:46 ` Richard Fish
2006-06-12 11:10 ` Bo Ørsted Andresen
0 siblings, 1 reply; 8+ messages in thread
From: Richard Fish @ 2006-06-12 9:46 UTC (permalink / raw
To: gentoo-user
On 6/12/06, Bo Ørsted Andresen <bo.andresen@zlin.dk> wrote:
> I haven't been able to figure out how to prevent that the new udev (090) loads
> the ipw2100 (wireless lan) during boot. I don't use it very often, and I have
> set the button that enables/disables the transmitter to also load/unload the
> kernel module. Any hints or pointers appreciated?
The most reliable method I have found is to remove the ipwNNNN lines
from /lib/modules/`uname -r`/modules.alias and modules.pcimap.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 9:46 ` Richard Fish
@ 2006-06-12 11:10 ` Bo Ørsted Andresen
2006-06-12 16:23 ` Richard Fish
0 siblings, 1 reply; 8+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-12 11:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
On Monday 12 June 2006 11:46, Richard Fish wrote:
> The most reliable method I have found is to remove the ipwNNNN lines
> from /lib/modules/`uname -r`/modules.alias and modules.pcimap.
Surely they must have plans to make this possible in a config file? Anyway it
works. Thx.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 11:10 ` Bo Ørsted Andresen
@ 2006-06-12 16:23 ` Richard Fish
2006-06-12 17:08 ` Bo Ørsted Andresen
2006-06-12 17:21 ` Neil Bothwick
0 siblings, 2 replies; 8+ messages in thread
From: Richard Fish @ 2006-06-12 16:23 UTC (permalink / raw
To: gentoo-user
On 6/12/06, Bo Ørsted Andresen <bo.andresen@zlin.dk> wrote:
> On Monday 12 June 2006 11:46, Richard Fish wrote:
> > The most reliable method I have found is to remove the ipwNNNN lines
> > from /lib/modules/`uname -r`/modules.alias and modules.pcimap.
>
> Surely they must have plans to make this possible in a config file? Anyway it
> works. Thx.
Ok, here is the 'correct' way to do it (I was too lazy to figure it
out until now...)
In /lib/modules/`uname -r`/modules.alias, you will find lines for the
ipw adapter liike this (run depmod -a to regenerate this file after
following my previous advice)
alias pci:v00008086d00004222sv*sd*bc*sc*i* ipw3945
alias pci:v00008086d00004227sv*sd*bc*sc*i* ipw3945
Add those same lines to a file in /etc/modules.d/. I used ipw3945,
you will probably want ipw2100:
grep ipw /lib/modules/`uname -r`/modules.alias >>/etc/modules.d/ipw3945
Now edit the /etc/modules.d/ file and change the last setting from
ipw3945/ipw2100 to 'off':
carcharias rjf # grep alias /etc/modules.d/ipw3945
alias pci:v00008086d00004222sv*sd*bc*sc*i* off
alias pci:v00008086d00004227sv*sd*bc*sc*i* off
Now run modules-update, and udev should no longer load the module for
the ipw adapater.
HTH,
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 16:23 ` Richard Fish
@ 2006-06-12 17:08 ` Bo Ørsted Andresen
2006-06-12 17:21 ` Neil Bothwick
1 sibling, 0 replies; 8+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-12 17:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
On Monday 12 June 2006 18:23, Richard Fish wrote:
> Ok, here is the 'correct' way to do it (I was too lazy to figure it
> out until now...)
Excellent. It does work. Thank you very much. :)
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 16:23 ` Richard Fish
2006-06-12 17:08 ` Bo Ørsted Andresen
@ 2006-06-12 17:21 ` Neil Bothwick
2006-06-12 17:36 ` Bo Ørsted Andresen
1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2006-06-12 17:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
On Mon, 12 Jun 2006 09:23:28 -0700, Richard Fish wrote:
> Ok, here is the 'correct' way to do it (I was too lazy to figure it
> out until now...)
Before doing this, try listing the module in /etc/hotplug/blacklist, this
is supposed to prevent its automatic loading.
--
Neil Bothwick
Don't let the computer bugs bite!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 17:21 ` Neil Bothwick
@ 2006-06-12 17:36 ` Bo Ørsted Andresen
2006-06-12 18:02 ` Richard Fish
0 siblings, 1 reply; 8+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-12 17:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
On Monday 12 June 2006 19:21, Neil Bothwick wrote:
> Before doing this, try listing the module in /etc/hotplug/blacklist, this
> is supposed to prevent its automatic loading.
$ grep ipw /etc/hotplug/blacklist
# Don't hotplug ipw2100
ipw2100
$ ls -l /etc/hotplug/blacklist
-rw-r--r-- 1 root root 829 2006-06-07 11:48 /etc/hotplug/blacklist
So I did that 5 days ago. Didn't work. :)
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] prevent udev from loading a kernel module
2006-06-12 17:36 ` Bo Ørsted Andresen
@ 2006-06-12 18:02 ` Richard Fish
0 siblings, 0 replies; 8+ messages in thread
From: Richard Fish @ 2006-06-12 18:02 UTC (permalink / raw
To: gentoo-user
On 6/12/06, Bo Ørsted Andresen <bo.andresen@zlin.dk> wrote:
> On Monday 12 June 2006 19:21, Neil Bothwick wrote:
> > Before doing this, try listing the module in /etc/hotplug/blacklist, this
> > is supposed to prevent its automatic loading.
>
> $ grep ipw /etc/hotplug/blacklist
> # Don't hotplug ipw2100
> ipw2100
> $ ls -l /etc/hotplug/blacklist
> -rw-r--r-- 1 root root 829 2006-06-07 11:48 /etc/hotplug/blacklist
>
> So I did that 5 days ago. Didn't work. :)
Yep, that only works for when udev runs /sbin/udev_run_hotplugd.
The current 090 udev appears to do two things for a pci 'hotplug' event:
1. /sbin/modprobe pci:v...
2. /sbin/udev_run_hotplugd pci
My alias tricks above take care of #1, but you still need blacklist to
take care of #2.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-06-12 18:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-12 8:53 [gentoo-user] prevent udev from loading a kernel module Bo Ørsted Andresen
2006-06-12 9:46 ` Richard Fish
2006-06-12 11:10 ` Bo Ørsted Andresen
2006-06-12 16:23 ` Richard Fish
2006-06-12 17:08 ` Bo Ørsted Andresen
2006-06-12 17:21 ` Neil Bothwick
2006-06-12 17:36 ` Bo Ørsted Andresen
2006-06-12 18:02 ` Richard Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox