LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 13.1 BCM4312 Wireless Setup (http://www.linuxquestions.org/questions/slackware-14/slackware-13-1-bcm4312-wireless-setup-837062/)

neurobot 10-08-2010 08:08 PM

Slackware 13.1 BCM4312 Wireless Setup
 
This is my first time posting to a forum, hope it goes well. I'm on a Dell Latitude E6500, and I'm switching from Windows 7 to Slackware 13.1; I've never used linux before. I'm trying to set up wireless internet, and it doesn't seem like there's any standard way of doing it for my system.

When I run the "lspci -v" command, I find this:
Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
Kernel driver in use: b43-pci-bridge
Kernel modules: ssb

When I run the "lsmod" command, This comes up:
Module Size Used by
...
b43 162121 0
...
ssb 40527 1 b43[/FONT]
...

Yesterday I spend the day figuring out how to install b43-fwcutter-013.tar.bz2 and broadcom-wl-4.150.10.5.tar.bz2, so that I could use the driver (firmware?) for my card on slackware.

I read this tutorial, http://alien.slackbook.org/dokuwiki/...ckware:network explaining how to configure the /etc/rc.d/rc.inet1.conf. I ended up making changes that look like this:

# Configuration information for wlan0 (using DHCP).
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="speedstream (my host name)"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=frontierACAD (the SSID of my Wireless network)
WLAN_MODE[4]=Managed
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="***************************"

And the wireless doesn't work. I'm stumped, and I throw myself at the mercy of the forums.

bnguyen 10-08-2010 08:17 PM

Have the same wireless chip here on a Dell Inspiron 1545. And it works fine after I installed the two pkg you mentioned, except that I use SlackBuilds from SBo to build 2 packages:

http://slackbuilds.org/repository/13.../b43-fwcutter/
http://slackbuilds.org/repository/13.../b43-firmware/

And I didn't have to change anything. It just worked after installing the 2 pkgs and reboot the system.

rfernandez 10-08-2010 08:34 PM

I have the same laptop as bnguyen, but I built b43-fwcutter and installed the b43-firmware myself, following the tutorial at http://wireless.kernel.org/en/users/...entioned_above and everything works fine.

Beware that you're looking for b43, not b43-legacy on this tutorial.

neurobot 10-09-2010 12:29 PM

I installed both those files, as per this tutorial http://www.slackword.net/?p=32. So I'm pretty sure I have the firmware up and running. I'm just at a loss as to what the next step is.

rfernandez 10-09-2010 12:38 PM

Then you'll have to setup your network connection. If you are using a WPA encrypted connection, you'll have to look at /etc/wpa_supplicant.conf and configure it to connect to your router. From your rc.inet1.conf

Code:

# Configuration information for wlan0 (using DHCP).
IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="speedstream (my host name)"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=frontierACAD (the SSID of my Wireless network)
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="auto"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
WLAN_WPAWAI[4]="10"

The bold lines are those that are setup for my rc.inet1.conf so wpa_supplicant works.

Nonetheless, you can look for wicd, which is a graphical network manager with easy use and configuration. It is on the /extra packages or just "# slackpkg install wicd".

maxmiorim 10-09-2010 12:44 PM

REMOVED: The above poster beat me to it. :)

piratesmack 10-09-2010 12:55 PM

Wicd makes it easy to connect to wireless networks. You can install it from /extra.

But which BCM4312 do you have?
Code:

# lspci -vnn | grep 14e4
If you see '14e4:4315', then you have the LP-PHY version and need v4.174.64.19 of Broadcom's firmware.

*If you don't actually have to LP-PHY version, then you can ignore the rest of this post*

You can follow instructions here or just use the SlackBuild to install v4.174.64.19 of Broadcom's firmware.

This card seems to have problems on some systems with Intel processors and Phoenix BIOS. If wireless still isn't working, check dmesg:
Code:

dmesg | grep b43
If you see something like:
Code:

b43-phy0 ERROR: Fatal DMA error: 0x00000800, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000
b43-phy0 ERROR: This device does not support DMA on your system. Please use PIO instead.

Then create a file /etc/modprobe.d/b43.conf with:
Code:

options b43 pio=1 qos=0
Then reload b43

*Note: the b43.conf file doesn't seem to be required with kernel 2.6.35+ (at least not on my system)*

neurobot 10-09-2010 01:10 PM

Wireless is working!! Thanks rfernandez!! No one explained to me that all you have to do to get wicd is "slackpkg install wicd". It works perfectly, and it was extremely simple.

rfernandez 10-09-2010 01:17 PM

I'm glad you got it working. :)

neurobot 10-09-2010 01:18 PM

piratesmack: I did see '14e4:4315', so I do have the LP-PHY version. I did see both of those 'b43-phy0 ERROR:', specifically this showed up when I typed dmesg | grep b43:
Code:

b43-pci-bridge 0000:0c:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
b43-pci-bridge 0000:0c:00.0: setting latency timer to 64
b43-phy0: Broadcom 4312 WLAN found (core revision 15)
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
b43 ssb0:0: firmware: requesting b43/ucode15.fw
b43 ssb0:0: firmware: requesting b43/lp0initvals15.fw
b43 ssb0:0: firmware: requesting b43/lp0bsinitvals15.fw
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 ERROR: Fatal DMA error: 0x00000800, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000
b43-phy0 ERROR: This device does not support DMA on your system. Please use PIO instead.
b43-phy0: Controller RESET (DMA error) ...
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Controller restarted
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)

Now that I'm using wicd, my wireless works, but should I still add the /etc/modprobe.d/b43.conf file? I'd like to figure out how to manage my wireless with scripts, as this whole slackware thing is just for me to learn about computers.

piratesmack 10-09-2010 01:30 PM

Quote:

Originally Posted by neurobot (Post 4122303)
piratesmack: I did see '14e4:4315', so I do have the LP-PHY version. I did see both of those 'b43-phy0 ERROR:', specifically this showed up when I typed dmesg | grep b43:
Code:

b43-pci-bridge 0000:0c:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
b43-pci-bridge 0000:0c:00.0: setting latency timer to 64
b43-phy0: Broadcom 4312 WLAN found (core revision 15)
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
b43 ssb0:0: firmware: requesting b43/ucode15.fw
b43 ssb0:0: firmware: requesting b43/lp0initvals15.fw
b43 ssb0:0: firmware: requesting b43/lp0bsinitvals15.fw
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 ERROR: Fatal DMA error: 0x00000800, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000
b43-phy0 ERROR: This device does not support DMA on your system. Please use PIO instead.
b43-phy0: Controller RESET (DMA error) ...
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Controller restarted
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)

Now that I'm using wicd, my wireless works, but should I still add the /etc/modprobe.d/b43.conf file? I'd like to figure out how to manage my wireless with scripts, as this whole slackware thing is just for me to learn about computers.

It looks like it's falling back to PIO mode anyway so no need to create the conf file (unless you want to get rid of the error message). Weird that your wireless is working with the older firmware though, have you tried connecting to a network? (Mine can scan for networks, but can't actually connect to them with the older firmware.)

neurobot 10-10-2010 12:59 AM

Yeah, it scans and connects perfectly. Got lucky I guess :)

piratesmack 10-10-2010 01:17 AM

Quote:

Originally Posted by neurobot (Post 4122673)
Yeah, it scans and connects perfectly. Got lucky I guess :)

I must have been using a different version when I couldn't connect.

It does work with 4.150.10.5 according to this:
http://forums.opensuse.org/english/g...ml#post2040197


All times are GMT -5. The time now is 09:05 AM.