LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-19-2007, 03:37 PM   #1
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Rep: Reputation: 16
Blacklisting bcm43xx


Hello,

I am running Mandriva 2007 Power Pack on my laptop. My laptop comes with bcm4318 wireless card, and I use ndiswrapper to work with it.

Mandriva comes with it's own module for my wifi, which is bcm43xx. The problem is, ever time system boots, it loads bcm43xx by default, instead of ndiswrapper module. I have to manually set it back to ndiswrapper everytime I boot, which is kind of annoying.

When I was using other distro before, modprobe usually come with a blacklist function, which is in /etc/modprobe.d/blacklist where you can blacklist module prevent kernel from loading it. However, I cannot find this file nor anything simular under mandriva07PP. Also I tried adding my own /etc/modprobe.d/blacklist but no good.

Any suggestions how to blacklist hardware under mandriva 2007 please? Am I missing some packages? Appriciate your help.

salud,

D
 
Old 03-19-2007, 04:11 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure on Mandriva. You can create the directory /etc/modprobe.d and then create a text file in it can call it blacklist. Worth a shot.

Brian
 
Old 03-20-2007, 12:34 AM   #3
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
It is usually best to configure your hardware using the tools provided by Mandriva which includes a Network Configuration Utility in MCC (The Mandriva Control Center). I do not use a wireless connection here on my desktop workstation, but (IIUC) wireless configuration is supported.

If all else fails, the files that control module installation are /etc/modprobe.conf and /etc/modprobe.preload.

HTH,
 
Old 03-20-2007, 05:23 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
You could always recompile the kernel without the modules you don't want.

I would choose only the ones I specifically don't want to load and thats all.

Recompiling the kernel methods can be found here under tutorials.
 
Old 03-20-2007, 05:26 AM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
http://www.linuxquestions.org/linux/...Fedora_Systems

Recompiling your installed kernel, use config old and you won't have to find a new kernel as mentioned in the first part.

If you selected Dev at the install stage, most, if not all, of the packages required should be installed.

This tute is a bit old, you might find a better and more recent one with kernel-doc(version number).rpm (on the mandy disk) You will need the kernel-sources and ncursors-dev.

If you've been able to install 3d graphics, you've probably got all the packages you'll need. GW

Last edited by GlennsPref; 03-20-2007 at 05:34 AM.
 
Old 03-20-2007, 06:48 AM   #6
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Original Poster
Rep: Reputation: 16
Thanks for the replies. I tried every possible files and MCC but still no good, mandriva decided to load bcm43xx regardless. Recompiling kernel sounds good to me. Since I never done it before, gonna ask a few questions, what's difference between compiling the module in to kernel and load it using modprobe? is the first one faster?
 
Old 03-20-2007, 05:01 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Usually there is little benefit if as a module or in the kernel. If in the kernel the kernel image is larger. If it is a module you have the ability to unload it but this seems to be one of your problems. Making it stay unloaded. One other benefit is if a portion of the kernel needs changed and if it is a module then it can be pulled and a different one can be loaded.

Brian
 
Old 03-21-2007, 06:26 PM   #8
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Brian1
Usually there is little benefit if as a module or in the kernel. If in the kernel the kernel image is larger. If it is a module you have the ability to unload it but this seems to be one of your problems. Making it stay unloaded. One other benefit is if a portion of the kernel needs changed and if it is a module then it can be pulled and a different one can be loaded.

Brian

Thanks Brian, your answer clears a lot of questions for me. hum, I am thinking of something else, does deleting/renaming bcm43xx module(the file itself) help?
 
Old 03-21-2007, 07:15 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might want to grep your /etc/modprobe.conf and the files in /etc/modprobe.d/.

Look for a line that says something like:
install bcm43xx
If you find it comment it out.
Using grep on all the files in /etc may reveal other config files such as a list for early loaded modules.

Running "depmod -a" and then "mkinitrd" may help as well if it results in a bcm43xx module being removed from the initrd ramdisk.

If you decide recompile your kernel without bcm43xx support, run "make oldconfig" to first replicate your current .config settings so that you only need to make one change.
 
Old 03-24-2007, 10:33 AM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Never done it but as jschiwal says delete the bcm module from /lib/modules/*******/ where ever it is located and then run ' depmod -a ' to update the /boot/system.map file for the version of kernel running. It is used so the system knows where modules exist. Not sure if mkinitrd needs to run afterwards or not.

Brian
 
Old 03-28-2007, 10:57 AM   #11
mrballcb
LQ Newbie
 
Registered: Mar 2007
Location: Los Angeles, CA
Distribution: CentOS, Mandriva, Gentoo
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by diego_cn
Mandriva comes with it's own module for my wifi, which is bcm43xx. The problem is, ever time system boots, it loads bcm43xx by default, instead of ndiswrapper module. I have to manually set it back to ndiswrapper everytime I boot, which is kind of annoying.
Code:
echo 'alias bcm43xx off' >> /etc/modprobe.conf
depmod -a
That will fix it so that the bcm43xx module is not ever loaded, even if you run 'modprobe bcm43xx' from the commandline.

Enjoy!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
blacklisting bcm43xx crashsystems Linux - Wireless Networking 3 10-29-2006 12:52 PM
blacklisting bcm43xx BCarey Slackware 2 09-26-2006 11:01 PM
IPcop and IP blacklisting English_Man Linux - Security 1 07-01-2005 06:20 PM
amavisd-new blacklisting TLDs packetz Linux - Software 0 04-11-2005 01:07 PM
Blacklisting hardware?? Jeebizz Slackware 11 01-20-2005 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration