LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Trying to get my wireless work, b43 (https://www.linuxquestions.org/questions/debian-26/trying-to-get-my-wireless-work-b43-706565/)

ram4nd 02-22-2009 02:48 AM

Trying to get my wireless work, b43
 
I have tryed to get my wifi to work. Network manager detects eireless networks, but will not connect to any. And if I start wired connection then it will not detect any wireless networks.

lspci -nn
Code:

02:03.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller [14e4:4318] (rev 02)
iwconfig
Code:

wlan0    IEEE 802.11  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated 
          Tx-Power=20 dBm 
          Retry min limit:7  RTS thr:off  Fragment thr=2352 B 
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

lspci -k
Code:

02:03.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
        Kernel driver in use: b43-pci-bridge
        Kernel modules: ssb


wificraig 02-22-2009 02:55 AM

Kernel driver in use: b43-pci-bridge
 
In the lspci -k output, we want to remove the b43 driver, and want the ndiswrapper driver using that driver.
Did you compile the ndiswrapper?
Do you receive an ERROR when you:
modprobe ndiswrapper
in a terminal?

ram4nd 02-22-2009 03:02 AM

I tryed to use ndiswrapper, but that was fail. My network manager could not detect my wireless card.

repo 02-22-2009 03:07 AM

try
Code:

ifconfig wlan0 up
I find wicd better then networkmanager

wificraig 02-22-2009 03:12 AM

Network-Manager not the problem
 
The Network-Manager is just a GUI that uses the modules that load the drivers. You can actually connect to the internet by simply editing files (which is what the GUI is doing).
I use the exact same wireless card you have, and I am currently running the new stable Debian Lenny release, and doing it through ndiswrapper as I am typing. There are some resources available here on using the b43 driver with firmware, but for me it takes just as much time.

ram4nd 02-22-2009 03:24 AM

Ok i am starting from the beginning, i did it exactly like here -> http://wiki.debian.org/NdisWrapper

ndiswrapper -l
Code:

bcmwl5 : driver installed
        device (14E4:4318) present (alternate driver: ssb)


wificraig 02-22-2009 03:51 AM

Looks good so far.....
 
What happens when you:
depmod -a
modprobe ndiswrapper
Is there an error?

ram4nd 02-22-2009 03:53 AM

no errors

should i uninstall b43-fwcutter?

wificraig 02-22-2009 04:01 AM

should i uninstall b43-fwcutter?
 
Don't know, never had to the one time I used it.

In a Terminal:
rmmod ndiswrapper
rmmod ssb
depmod -a
modprobe ndiswrapper

Do you have a LED light that comes on when the wireless is working?

If so, in a terminal:
ndiswrapper -m
It will either write the wlan0 alias to /etc/modprobe.conf or /etc/modprobe.d/ndiswrapper. Or, it will state that the alias has already been written.

ram4nd 02-22-2009 04:07 AM

Code:

Unknown:/home/ra# rmmod ndiswrapper
ERROR: Module ndiswrapper does not exist in /proc/modules
Unknown:/home/ra# rmmod ssb
ERROR: Module ssb is in use by b43
Unknown:/home/ra# rmmod b43
Unknown:/home/ra# rmmod ssb
Unknown:/home/ra# depmod -a
Unknown:/home/ra# modprobe ndiswrapper
Unknown:/home/ra# ndiswrapper -m
adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Unknown:/home/ra#

Done, what next? Should i do the blacklisting and that other thing you told me in the last forum?

wificraig 02-22-2009 04:27 AM

Lets add the module....
 
Edit /etc/modules
At the bottom (if not listed, can add after loop), add:
ndiswrapper

Did you blacklist b43 and ssb?
If not:
edit /etc/modprobe.d/blacklist
At the bottom of the lists, add:
blacklist b43
blacklist ssb

Edit /etc/rc.local (this is exactly what mine has):
rmmod ndiswrapper
rmmod ssb
modprobe ndiswrapper
exit 0

This last step is necessary since the ssb module is written in the kernel (it's been that way for a while) and the ssb module will call the b43 driver (uses the firmware that it keeps wanting you to download and use fwcutter). You can see that the module called the driver during the boot process if you list:
lsmod
in a terminal. You will also see that ndiswrapper did not load. So, after you reboot, and do another lsmod, you will see ndiswrapper as one of the loaded modules and ssb will not be listed.

Now, you must reboot so that the wireless card/interface can be released and opened for ndiswrapper to use your bcmwl5 driver to attach to the open device.

ram4nd 02-22-2009 04:37 AM

did all of that. Now my wireless card is gone from iwconfig and from network-manager.

wificraig 02-22-2009 04:54 AM

/etc/network/interfaces
 
When you installed the firmware with b43-fwcutter or something else, it may have written to the /etc/network/interfaces file. You only need the loopback interface:

Edit (only uncomment) /etc/network/interfaces:
auto lo
iface lo inet loopback

I'm not sure if you will need to reboot, so instead:
depmod -a

There will be a pause, then:
modprobe ndiswrapper

Then:
dmesg | grep eth
And copy that to your post, I need to see what's happening there.

ram4nd 02-22-2009 05:12 AM

Dodn't change anything:

Code:

Unknown:/home/ra# depmod -a
Unknown:/home/ra# modprobe ndiswrapper
Unknown:/home/ra# dmesg | grep eth
[    2.656252] eth0: RealTek RTL8139 at 0xb800, 00:18:f3:a1:67:xx, IRQ 20
[    2.656302] eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
[  15.469145] eth0: link down
[  17.586212] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  144.913752] eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  144.913752] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  155.744036] eth0: no IPv6 routers present
[  168.900034] eth0: no IPv6 routers present
[  395.236800] hda-intel: Invalid position buffer, using LPIB read method instead.
[  648.310993] ndiswrapper: device eth%d removed
Unknown:/home/ra# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Unknown:/home/ra#


wificraig 02-22-2009 05:52 AM

Need more info....
 
Post:
dmesg | grep ndiswrapper

Post:
lspci -v

I'm starting to get tired, and will get back tomorrow. There may be some info available by searching google:
ndiswrapper: device eth%d removed bcm4318

There's a problem with that line. And check lsmod (don't post, it's too long), just check if anything is calling ssb or b43. I'm not sure if there's a b43legacy driver involved. And fwcutter may need to be removed. I'm sorry this isn't working easily, your system is the most difficult I've tried to troubleshoot. BTW, what brand/model is it?


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