public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] preventing a module from being loaded
@ 2007-02-10 16:58 marco restelli
  2007-02-10 18:05 ` [gentoo-user] " Remy Blank
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: marco restelli @ 2007-02-10 16:58 UTC (permalink / raw
  To: gentoo-user

Hi list,
   I have just upgraded to udev-104-r9.

Now, at boot, the module bcm43xx is loaded, while
I have been using ndiswrapper. I have thus to do
the following:

modprobe -r ndiswrapper
modprobe -r bcm43xx
modprobe ndiswrapper

My question is: how can I prevent bcm43xx from
being loaded? (Adding bcm43xx to
/etc/hotplug/blacklist does not seem to work.)

Thank you
   Marco
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: preventing a module from being loaded
  2007-02-10 16:58 [gentoo-user] preventing a module from being loaded marco restelli
@ 2007-02-10 18:05 ` Remy Blank
  2007-02-10 22:32 ` Remy Blank
  2007-02-11 22:29 ` [gentoo-user] " Neil Bothwick
  2 siblings, 0 replies; 5+ messages in thread
From: Remy Blank @ 2007-02-10 18:05 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

marco restelli wrote:
> Now, at boot, the module bcm43xx is loaded, while
> I have been using ndiswrapper.

I had the same problem here. You can block the automatic loading of the
module by udev as follows:

Find out the module alias used by udev:

  cat /sys/class/net/wlan0/device/modalias

(Replace wlan0 by the name of your interface). Here this gives:

  pci:v000014E4d00004324sv00001028sd00000003bc02sc80i00

Create the file /etc/modules.d/blacklist with the following content:

  alias pci:v000014E4d00004324sv00001028sd00000003bc02sc80i00 off

(Use the alias you got with the command above). Then run modules-update.

Easy, isn't it? ;-)

-- Remy


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* [gentoo-user]  Re: preventing a module from being loaded
  2007-02-10 16:58 [gentoo-user] preventing a module from being loaded marco restelli
  2007-02-10 18:05 ` [gentoo-user] " Remy Blank
@ 2007-02-10 22:32 ` Remy Blank
  2007-02-11 16:55   ` marco restelli
  2007-02-11 22:29 ` [gentoo-user] " Neil Bothwick
  2 siblings, 1 reply; 5+ messages in thread
From: Remy Blank @ 2007-02-10 22:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

(Sorry if this appears twice, but I sent the message three hours ago and
it hasn't appeared on the list yet)

marco restelli wrote:
> Now, at boot, the module bcm43xx is loaded, while
> I have been using ndiswrapper.

I had the same problem here. You can block the automatic loading of the
module by udev as follows:

Find out the module alias used by udev:

  cat /sys/class/net/wlan0/device/modalias

(Replace wlan0 by the name of your interface). Here this gives:

  pci:v000014E4d00004324sv00001028sd00000003bc02sc80i00

Create the file /etc/modules.d/blacklist with the following content:

  alias pci:v000014E4d00004324sv00001028sd00000003bc02sc80i00 off

(Use the alias you got with the command above). Then run modules-update.

Easy, isn't it? ;-)

-- Remy


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Re: preventing a module from being loaded
  2007-02-10 22:32 ` Remy Blank
@ 2007-02-11 16:55   ` marco restelli
  0 siblings, 0 replies; 5+ messages in thread
From: marco restelli @ 2007-02-11 16:55 UTC (permalink / raw
  To: gentoo-user

On 2/10/07, Remy Blank <remy.blank@pobox.com> wrote:
> (Sorry if this appears twice, but I sent the message three hours ago and
> it hasn't appeared on the list yet)
>
> marco restelli wrote:
> > Now, at boot, the module bcm43xx is loaded, while
> > I have been using ndiswrapper.
>
> I had the same problem here. You can block the automatic loading of the
> module by udev as follows:
>
> Find out the module alias used by udev:
>
>   cat /sys/class/net/wlan0/device/modalias
>
> (Replace wlan0 by the name of your interface). Here this gives:
>
>   pci:v000014E4d00004324sv00001028sd00000003bc02sc80i00
>
> Create the file /etc/modules.d/blacklist with the following content:
>
>   alias pci:v000014E4d00004324sv00001028sd00000003bc02sc80i00 off
>
> (Use the alias you got with the command above). Then run modules-update.

Remy, it works. Thanks very much.

>
> Easy, isn't it? ;-)

Uh, I am glad we have this great mailing list and great community!
    Marco
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] preventing a module from being loaded
  2007-02-10 16:58 [gentoo-user] preventing a module from being loaded marco restelli
  2007-02-10 18:05 ` [gentoo-user] " Remy Blank
  2007-02-10 22:32 ` Remy Blank
@ 2007-02-11 22:29 ` Neil Bothwick
  2 siblings, 0 replies; 5+ messages in thread
From: Neil Bothwick @ 2007-02-11 22:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

On Sat, 10 Feb 2007 17:58:48 +0100, marco restelli wrote:

> Now, at boot, the module bcm43xx is loaded, while
> I have been using ndiswrapper.

If you would really prefer to run Windows code as root instead of using
the open source driver, why not compile your kernel without bcm43xx in the
first place?


-- 
Neil Bothwick

If I want your opinion, I'll ask you to fill out the necessary form.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-02-11 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-10 16:58 [gentoo-user] preventing a module from being loaded marco restelli
2007-02-10 18:05 ` [gentoo-user] " Remy Blank
2007-02-10 22:32 ` Remy Blank
2007-02-11 16:55   ` marco restelli
2007-02-11 22:29 ` [gentoo-user] " Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox