Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wifi-card Broadcom BCM4318 stops working after few seconds
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
elko
n00b
n00b


Joined: 02 Feb 2010
Posts: 55

PostPosted: Tue Feb 02, 2010 1:52 pm    Post subject: Wifi-card Broadcom BCM4318 stops working after few seconds Reply with quote

Hello, I am quite new to Gentoo and this forums and I hope this is the right place for this topic.

I have troubles with my wifi card in HP Compaq nx6110 notebook.

Quote:

# lspci -vnn
...
02:04.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller [14e4:4318] (rev 02)
Subsystem: Hewlett-Packard Company Broadcom 802.11b/g WLAN [103c:1356]
Flags: bus master, fast devsel, latency 64, IRQ 11
Memory at d0000000 (32-bit, non-prefetchable) [size=8K]
Kernel driver in use: ndiswrapper
...


I have followed http://en.gentoo-wiki.com/wiki/Broadcom_43xx. Using kernel driver didn't work for me at all. I tried both emerging b43-fwcutter and compiling as the b43-fwcutter (version 12 instead of 11 from portage) described in http://linuxwireless.org/en/users/Drivers/b43 ("You are using the b43 driver from linux-2.6.25 or newer"). It is not possible to get the card running.

Quote:

# ifconfig wlan0 up
SIOCSIFFLAGS: Unknown Error 132
# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down


So I have recompiled the kernel and removed the b43 driver and tried ndiswrapper following http://en.gentoo-wiki.com/wiki/Ndiswrapper. I have tried several drivers (from HP and Asus sites) but everyone behaves the same. When the notebook is booting up it is possible to see the networks around me. But when the boot is complete it is not possible to connect to any network because no one is visible.

Later I have tried unloading and modprobing ndiswrapper module and it helps but only for few moments:

Quote:

# rmmod ndiswrapper
# modprobe ndiswrapper
# iwlist wlan0 scan


I can see the networks once or twice but after few seconds I am stuck with:

Quote:

# iwlist wlan0 scan
wlan0 No scan results


However, once and only once I was able to use my wifi card for longer time (around 30-60 minutes) using ndiswrapper. Then I decided to reboot and see what happen and the behavior was the same as before - I can see the networks but only few moments.

Quote:

ndiswrapper -l
bcmwl5 : driver installed
device (14E4:4318) present


Quote:

# ifconfig wlan0 down
# ifconfig wlan0 up
# iwlist wlan0 scan
wlan0 No scan results


Lines above do not help but " ifconfig wlan0 up" results in "ADDRCONF(NETDEV_UP): wlan0: link is not ready" added to the "dmesg" output.

Quote:

# rmmod ndiswrapper
# dmesg
...
[12904.060081] ndiswrapper: device wlan0 removed
[12904.060105] ndiswrapper 0000:02:04.0: PCI INT A disabled
# modprobe ndiswrapper
# dmesg
[12964.364151] ndiswrapper version 1.55 loaded (smp=no, preempt=no)
[12964.434959] ndiswrapper: driver bcmwl5 (Broadcom,04/21/2005, 3.100.65.1) loaded
[12964.435567] ndiswrapper 0000:02:04.0: PCI INT A -> Link[C0EF] -> GSI 11 (level, low) -> IRQ 11
[12964.448372] ndiswrapper: using IRQ 11
[12964.841462] wlan0: ethernet device 00:14:a5:xx:yy:zz using NDIS driver: bcmwl5, version: 0x3644101, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4318.5.conf
[12964.841516] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
[12966.245940] ADDRCONF(NETDEV_UP): wlan0: link is not ready


I have tried to google someone having similar problems as I do. But internet is full of cards not working at all that suddenly start working and no one has claimed that the card is working for only few moments.

Previously I have been using Ubuntu on this notebook and the card was running perfectly probably using the b43 kernel module but I am not 100% sure.

I would like to ask if anyone has seen anything similar to my problem or if anyone has a suggestion what to try next.

EDIT: one of the links corrected


Last edited by elko on Sat Feb 20, 2010 3:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Feb 02, 2010 4:43 pm    Post subject: Reply with quote

Thanks dude, I'm with you.

BCM4311
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Thu Feb 04, 2010 2:09 pm    Post subject: Reply with quote

You guys are probably carrying a so called LP (Low-Power) variant of the broadcom card. The reason it does not work under Gentoo is that because the kernel is too old to support it *properly* *OR* that is because Ubuntu uses different firmware. Basically (as far as I know) there are three types of firmware as of today:

- Firmware (& driver?) from broadcom specifically for Linux (Broadcom STA)
- Firmware 'taken' from drivers of other vendors (ie. messing around with fwcutter etc, this variant is shown on the linuxwireless site)
- Opensource firmware

So... , you better start comparing :)

P.S. Support for the LP variant is being worked on, using the latest git kernel should give you a good connection...
Back to top
View user's profile Send private message
elko
n00b
n00b


Joined: 02 Feb 2010
Posts: 55

PostPosted: Fri Feb 05, 2010 10:56 pm    Post subject: Reply with quote

Thanks for the posts.

Rexilion wrote:

- Firmware (& driver?) from broadcom specifically for Linux (Broadcom STA)
- Firmware 'taken' from drivers of other vendors (ie. messing around with fwcutter etc, this variant is shown on the linuxwireless site)
- Opensource firmware


The Broadcom STA driver is not an option for me because I have unsupported card (http://www.broadcom.com/support/802.11/linux_sta.php). However, the comment may still be helpful for another users.

Yes, I was messing up with different firmware a lot. It is still possible that there exists some firmware that I didn't try and works better than my current one.

Thank for pointing that open source firmware exists, too. If somebody is interested, read http://lwn.net/Articles/314313/ and http://www.ing.unibs.it/openfwwf/.

Rexilion wrote:
You guys are probably carrying a so called LP (Low-Power) variant of the broadcom card. P.S. Support for the LP variant is being worked on, using the latest git kernel should give you a good connection...


Nice to know that something like LP exists and that is being worked on. I guess that it is possible that kernel in Ubuntu may had these pathches included in earlier version of kernel. BTW my current kernel is 2.6.31-gentoo-r6 so it is rather old.

I have an update about my current situation. I have found out that if I boot and I don't have a wired connection pluged in, I am able to make my broadcom card run. All my three tries were successful and wifi was up and running for hours. Either right after the boot or after removing and modprobing the ndiswrapper driver. I plan to test it more when I'll have more suitable conditions.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Feb 06, 2010 1:54 pm    Post subject: Reply with quote

Good progress! You could also try compiling the wireless compat, that might already include patches for LP devices. This is very convenient, because it won't force you to upgrade to, for example, a git kernel.
Back to top
View user's profile Send private message
szmytson
n00b
n00b


Joined: 29 Apr 2009
Posts: 20
Location: UK

PostPosted: Sat Feb 06, 2010 10:29 pm    Post subject: Reply with quote

elko wrote:

BTW my current kernel is 2.6.31-gentoo-r6 so it is rather old.

I successfully set up my wifi card using b43 with compaq v3000 (hp 2000 series) some time ago (I think my kernel was older than yours).
I definitely recommend using b43 instead of ndiswrapper.
Your card seems to be supported by the driver (http://linuxwireless.org/en/users/Drivers/b43)

Did you get any errors in /var/log/messages when trying to set it up ?

--
szmytson
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Sat Feb 13, 2010 5:41 am    Post subject: Reply with quote

Rexilion wrote:
The reason it does not work under Gentoo is that because the kernel is too old to support it *properly* *OR* that is because Ubuntu uses different firmware.


I don't think this is correct. I just started having trouble with my b43 wireless card after UPGRADING my kernel to 2.6.32. I was using 2.6.25 on this machine before and my wireless always worked fine with the b43legacy driver.

I keep getting "Unknown error 132" when I try to associate to an AP.
Back to top
View user's profile Send private message
elko
n00b
n00b


Joined: 02 Feb 2010
Posts: 55

PostPosted: Sat Feb 20, 2010 3:08 pm    Post subject: Reply with quote

I have learnt that it is not entirely true that the card stops working after few moments. It is correct that searching for available networks is unsuccessful. But when I use my network manager wicd to search for available networks (just after I reload ndiswrapper module) I am able to connect to a found network and the connection is stable. So for now I am able to use my card when I need it. Often the card is connected to a known network when the system is booted up.

When I have more time I will probably use this thread to search for another solution but for the time being I am content that my wifi is working quite well. Thanks all for your contribution to this thread.
Back to top
View user's profile Send private message
luiss
n00b
n00b


Joined: 06 Feb 2008
Posts: 11

PostPosted: Mon Jun 07, 2010 3:26 pm    Post subject: Reply with quote

Hi all,
I got a problem that's very similar to yours, I have a BCM4311 card on a dell xps m1330, I installed the b43-firmware that's in portage, I'm able to make the card run with
iwconfig wlan0 txpower on
iwconfig wlan0 essid networ
ifconfig wlan0 up

But it does not work with /etc/init.d/net.wlan0 start.
It says
* Starting wlan0
SIOCSIFFLAGS: Unknown error 132
SIOCSIFFLAGS: Unknown error 132
SIOCSIFFLAGS: Unknown error 132
* Configuring wireless network for wlan0
* Failed to configure wireless for wlan0 [ !! ]

And if I type "ifconfig wlan0 up" before using iwconfig commands it says
SIOCSIFFLAGS: Unknown error 132
.

My dmesg says nothing, and the only errors seems to be in /var/log/messages:

[ 115.829256] b43 ssb0:0: firmware: requesting b43/ucode5.fw
Jun 7 19:07:07 m1330 kernel: [ 115.903857] b43 ssb0:0: firmware: requesting b43/pcm5.fw
Jun 7 19:07:07 m1330 kernel: [ 115.926650] b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
Jun 7 19:07:07 m1330 kernel: [ 115.956342] b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
Jun 7 19:07:07 m1330 kernel: [ 116.087267] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
Jun 7 19:07:07 m1330 kernel: [ 116.138597] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun 7 19:07:17 m1330 rc-scripts: Failed to configure wireless for wlan0

Any help?
Oh my /etc/conf.d/net is very simple:
config_eth0=("dhcp")
modules=("wpa_supplicant")
wpa_supplicant_wlan0="-Dwext"
config_wlan0=("dhcp")
_________________
So Long, and Thanks for All the Fish
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Mon Jun 07, 2010 4:16 pm    Post subject: Reply with quote

That error: Is the actual wireless switch (ie. the button on your laptop) turned ON ? :mrgreen: .
Back to top
View user's profile Send private message
luiss
n00b
n00b


Joined: 06 Feb 2008
Posts: 11

PostPosted: Mon Jun 07, 2010 4:18 pm    Post subject: Reply with quote

Yes, double checked :D
_________________
So Long, and Thanks for All the Fish
Back to top
View user's profile Send private message
luiss
n00b
n00b


Joined: 06 Feb 2008
Posts: 11

PostPosted: Mon Jun 07, 2010 4:22 pm    Post subject: Reply with quote

I have done
iwconfig wlan0 txpower on;
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf wlan0 -dd &
iwlist wlan0 scan

and it works

with /etc/init.d/net.wlan0 start
It doesn't, it seems he can't power the card or execute wpa_supplicant...
_________________
So Long, and Thanks for All the Fish
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Mon Jun 07, 2010 4:31 pm    Post subject: Reply with quote

luiss wrote:
I have done
iwconfig wlan0 txpower on;
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf wlan0 -dd &
iwlist wlan0 scan

and it works

with /etc/init.d/net.wlan0 start
It doesn't, it seems he can't power the card or execute wpa_supplicant...


You do:
Code:
iwconfig wlan0 txpower on


Questions: Why?

Gentoo's networkscripts don't execute that command (only iwconfig up maybe?). So I guess that fixes it...

Does your method also fail if you don't use that command? If yes, than that's your problem, but you already provided a fix :) .
Back to top
View user's profile Send private message
luiss
n00b
n00b


Joined: 06 Feb 2008
Posts: 11

PostPosted: Mon Jun 07, 2010 4:43 pm    Post subject: Reply with quote

Well it says

#iwconfig wlan0 up
iwconfig: unknown command "up"

Then if I dont execute
#iwconfig wlan0 txpower on

the wpa_supplicant demon says "l2_packet_receive - recvfrom: Network is down" and it doesn't works

BTW yes I found a solution, but I'd like to dig and foind why standard scripts does not works properly...
_________________
So Long, and Thanks for All the Fish
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Mon Jun 07, 2010 5:07 pm    Post subject: Reply with quote

luiss wrote:
Well it says

#iwconfig wlan0 up
iwconfig: unknown command "up"

Then if I dont execute
#iwconfig wlan0 txpower on

the wpa_supplicant demon says "l2_packet_receive - recvfrom: Network is down" and it doesn't works

BTW yes I found a solution, but I'd like to dig and foind why standard scripts does not works properly...


The txpower is your solution. The reason why it doesn't work with the scripts is that it's not 'normal' to execute that command. I suggest you just stick it in there (init scripts) and be done with it ;) .
Back to top
View user's profile Send private message
luiss
n00b
n00b


Joined: 06 Feb 2008
Posts: 11

PostPosted: Mon Jun 07, 2010 8:08 pm    Post subject: Reply with quote

Ok found my solution, I had the driver for the kernel compiled directly into the kernel, I changed to modules, rebooted, and wicd started working like a charm :D
_________________
So Long, and Thanks for All the Fish
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Mon Jun 07, 2010 8:51 pm    Post subject: Reply with quote

Do you guys have the rfkill module loaded?
Back to top
View user's profile Send private message
luiss
n00b
n00b


Joined: 06 Feb 2008
Posts: 11

PostPosted: Mon Jun 07, 2010 11:22 pm    Post subject: Reply with quote

here lsmod gives
nvidia
b43

but I'm quite sure rfkill kernel module I have it compiled in kernel..
_________________
So Long, and Thanks for All the Fish
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Mon Jun 07, 2010 11:32 pm    Post subject: Reply with quote

I found rfkill was disabling my card and causing the error "SIOCSIFFLAGS: Unknown error 132". The particular laptop didn't even have a hardware wifi switch on it. I disabled that module and recompiled the kernel and all is good with my card now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum