LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2010, 02:02 PM   #1
rodyz
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu, Redhat
Posts: 12

Rep: Reputation: 0
Question Cannot unload or blacklist bcm43xx on Redhat Enterprise Server


I installed Redhat nash version 5.1.19.6 with kernel 2.6.18-128.el5-xen-i686 on a Dell Inspiron 1300 with Broadcom BCM4401 (eth0/LAN) and BCM4318 (eth1/WLAN). eth0 is working fine, but eth1 was causing trouble. After some difficulties with missing packages I managed to install ndiswrapper, blacklisted module bcm43xx in /etc/modprobe.d/blacklist and removed it, loaded module ndiswrapper and had connection. But after reboot module bcm43xx was again loaded. So blacklisting does not seem to work.

And additionally strange to me, I cannot unload module bcm43xx anymore. And if I load ndiswrapper driver bcm43xx is still used as the terminal command 'dmesg' is showing me in the system log, while ndiswrapper was used when the connection was once and only once established.

Is my freshly installed system corrupt? Anyone has any idea?

TIA Rodyz
 
Old 01-21-2010, 02:15 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Is it called "b43"?
 
Old 01-21-2010, 03:08 PM   #3
rodyz
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
Nimnull22: afaik, there are 3 drivers, b43, b43legacy, bcm43xx, the last one was installed on my distribution.
 
Old 01-21-2010, 03:21 PM   #4
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Rep: Reputation: 15
Did you try rmmod bcm43xx -f

i have to do this as well to unload bcm43xx or ndiswrapper.

sometimes i have to do it 2 or 3 times before it unloads.
 
Old 01-21-2010, 05:17 PM   #5
rodyz
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
jschofield: Did try 'rmmod bcm43xx -f' as well as 'modeprob -r bcm43xx' several times. Both did not work.
 
Old 01-21-2010, 05:43 PM   #6
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
Have you read through this thread:
http://www.linuxquestions.org/questi...e-card-473194/
 
Old 01-21-2010, 06:16 PM   #7
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
It appears from the following:

http://linux.derkeiler.com/Mailing-L.../msg03699.html

that you need to blacklist b43 module as well, at least for the 2.6.20 kernel that has the bcm43xx driver built-in, I presume that your kernel 2.6.18 suffers the same problem. I had to write a short script, called wireless.sh, to remove the b43 and ssb modules in my debian amd64 2.6.26 kernel, so that I could use ndiswrapper with a 64bit driver.

Hope this helps, if it doesn't then you will need to post the output of: lsmod

Last edited by minrich; 01-21-2010 at 06:53 PM. Reason: forgot the url, changed lspci to lsmod
 
Old 01-21-2010, 06:36 PM   #8
rodyz
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
minrich:
I have read a lot of similar howtos and also now that one you mentioned. At the moment I write this reply I have succeeded to remove module bcm43xx, loaded ndiswrapper and got wlan connection (after countless times typing 'modprobe -r bcm43xx'). I suppose after reboot, I'll have the same trouble as before. The questions are, why does my system not use the blacklist to prevent module bcm43xx from loading at boot time, why is it so difficult and unpredictable to remove the module bcm43xx, are there any workarounds, is my installation corrupt?
 
Old 01-21-2010, 06:58 PM   #9
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
I still think the answer to your most recent question revolves around what modules and drivers are automatically loaded by your kernel, as I suggested, run lsmod (I accidentally typed lspci, and edited my last post - sorry). There you will be able to see what modules are auto loaded, as I said, I have a script to stop b43 and ssb even though my boot.log shows then being loaded when networking starts, and they are blacklisted (like you to no avail) therefore I would expect that if you restart your network you will kill your wireless connection - but this is only a guess, cos I haven't use Redhat or Fedora for ages.
 
Old 01-21-2010, 07:00 PM   #10
rodyz
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
Solved: Without knowing why I moved to trash the files /lib/modules/2.6.18-128.el5/kernel/drivers/net/wireless/bcm43xx/bcm43xx.ko and /usr/src/kernels/2.6.18-128.el5-i686/include/config/bcm43xx.h. Now the module is reproducable not loaded. Now I need still a little help how to load ndiswrapper at boot time. At the moment I have to do it manually.
 
Old 01-21-2010, 07:32 PM   #11
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
If you have a /etc/modules file, first, as root or sudo run the command: ndiswrapper -m

Then edit /etc/modules and add, at the end: ndiswrapper hit Enter and save file. This should autoload the module upon booting.
 
Old 01-21-2010, 08:08 PM   #12
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Do you have file "modprobe.conf" and "modprobe.conf.local" in /etc.

In the last you can add: install bcm43xx /bin/true
 
Old 01-22-2010, 08:05 AM   #13
rodyz
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
Solved the 2nd

nimnull2: Thanks for the hint to modprobe.conf. (But I don't have a modprobe.conf.local)

I am a pretty newbie concerning linux. But I dare to play around with it. I opened modprobe.conf with gedit. There was a line

'alias eth1 bcm43xx'

I replaced with

'alias eth1 ndiswrapper'

and voila module bcm43xx is not loading anymore and module ndiswrapper is loading at boot time. No need to delete the files mentioned in my previous post.
 
Old 01-22-2010, 10:11 AM   #14
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
You have to be careful with modprobe.conf, it can be changed with updates.
You need to edit modprobe.conf.local.
 
  


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
RedHat Enterprise Linux 5.0 and SUSE Linux Enterprise Server 10 available in French?? FrenchQAtestengineer Linux - Newbie 1 02-21-2008 11:26 AM
where is redhat-config-bind? (RedHat enterprise server) Linux8 Linux - Newbie 1 12-17-2006 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:52 PM.

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