You are not logged in.

#1 2008-07-28 18:07:52

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

How to blacklist modules that are compiled into the kernel?

Suppose my kernel has a driver compiled into it that is causing problems, and I want to disable it. How would I do that? What would I append to the kernel line in GRUB to prevent a specific driver from loading, when it is *not* compiled as a module?

Offline

#2 2008-07-29 05:50:59

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: How to blacklist modules that are compiled into the kernel?

Okay, I have discovered the hwprobe boot option, which is apparently supposed to do as I've described (if used as "hwprobe=-foo"). Problem is, it doesn't do anything at all, as far as I can tell, at least when used with LILO. What am I doing wrong here?

Last edited by Gullible Jones (2008-07-29 05:51:16)

Offline

#3 2008-07-29 06:36:44

Square
Member
Registered: 2008-06-11
Posts: 435

Re: How to blacklist modules that are compiled into the kernel?

Isn't that done through /etc/modprobe.conf by adding a line?

Such as:

blacklist snd_ac97_codec

or prefixing them with a ! as written here http://www.archlinux.it/wiki/index.php?title=Rc.conf

Last edited by Square (2008-07-29 06:41:56)


 

Offline

#4 2008-07-29 08:02:06

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: How to blacklist modules that are compiled into the kernel?

I think the best way would be to add the kernel boot parameter disablemodules=module1,module2,etc when booting.


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#5 2008-07-29 16:44:11

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: How to blacklist modules that are compiled into the kernel?

Square wrote:

Isn't that done through /etc/modprobe.conf by adding a line?

Such as:

blacklist snd_ac97_codec

or prefixing them with a ! as written here http://www.archlinux.it/wiki/index.php?title=Rc.conf

No, this is for drivers compiled into the kernel, such as the IDE and PATA subsystems (on distros other than Arch).

kishd wrote:

I think the best way would be to add the kernel boot parameter disablemodules=module1,module2,etc when booting.

Thanks, I'll try that...

Offline

#6 2008-07-29 16:48:15

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: How to blacklist modules that are compiled into the kernel?

Gullible Jones wrote:

Suppose my kernel has a driver compiled into it that is causing problems, and I want to disable it. How would I do that? What would I append to the kernel line in GRUB to prevent a specific driver from loading, when it is *not* compiled as a module?

Perhaps you should call the thread "How to blacklist drivers that are compiled into the kernel", since you have gotten like 6 incorrect responses due to your misnaming?

Offline

#7 2008-07-29 17:18:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: How to blacklist modules that are compiled into the kernel?

There was a way to do this, and I thought it had to do with sysfs or sysctl or something. When we had ip6 compiled in to the kernel, people used to disable it all the time.

Offline

#8 2008-07-29 18:38:49

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: How to blacklist modules that are compiled into the kernel?

I wrote:
kishd wrote:

I think the best way would be to add the kernel boot parameter disablemodules=module1,module2,etc when booting.

Thanks, I'll try that...

Nope this doesn't work either. Bah.

Edit: okay I found the sysctl.conf method (here) but it looks a little difficult to apply to an arbitrary driver. Anyone know how I would do that?

Last edited by Gullible Jones (2008-07-29 18:42:41)

Offline

#9 2008-07-29 18:42:00

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: How to blacklist modules that are compiled into the kernel?

Going with what phrak said, maybe this will help:
http://linuxshellaccount.blogspot.com/2 … ables.html


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#10 2008-07-30 02:27:57

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: How to blacklist modules that are compiled into the kernel?

1) this is incorrect (taken from IPv6 example)

How can I enable forwarding between IPv6 enabled interfaces?

In /etc/sysctl.conf add the line

net/ipv6/conf/all/forwarding=1

it should be:
net.ipv6.conf.all.forwarding=1


2) not sure if system calls will help
to check if you can manipulate something with sysctl, first run

sysctl -a | grep your_module_name

if your stuff is not listed, then obviously sysctl will not help

Last edited by broch (2008-07-30 02:28:24)

Offline

Board footer

Powered by FluxBB