LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 05-09-2012, 10:29 AM   #1
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Rep: Reputation: Disabled
Broadcom BCM43222 - Slackware 13.37 - Doesn't YET work


Greetings,

First and foremost, I'd, like to say it's an honor to be running
Slackware 13.37 ... (Debian is awesome too, however I know slackware
is LINUX) ... big shout out to antiX M11 486 (best lightweight
distro, I, know)

MY PROBLEM:

I've a Broadcom BCM43222 mini PCI 802.11 g/g/n wireless adapter
installed.
When I do an
Code:
lspci | grep -i broadcom
I get
Code:
00:10.0 Network controller: Broadcom Corporation Device 4350
I've already downloaded the linux driver from broadcom at:
http://www.broadcom.com/support/802.11/linux_sta.php
I've followed the instructions.

I just can't get any interfaces for this device.

MY OBSERVATIONS:

I've observed that that the driver(s) associated for this
Broadcom BCM43222 aren't running ... therefore ... my first
request is how can I get to run the driver: wl.ko or even the
b43 driver.

MY CONCLUSION:

I thank you all in advance for your support and look forward
in using this mini PCI wireless adapter, so that I could stop
using the PCMIA and USB options ... which run flawlessly at
802.11n
 
Old 05-09-2012, 10:39 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,098

Rep: Reputation: Disabled
Does the driver appear in the list of loaded modules (lsmod)?

Which kernel are you running (uname -rm)?
 
Old 05-09-2012, 11:14 AM   #3
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
SlackBuild attempted results for BCM43222

Greetings,

I'd like to add that I've also downloaded: broadcom-sta.tar.gz from Slackbuilds.org
specifically at:
Code:
http://slackbuilds.org/result/?search=broadcom&sv=13.37

selecting the first option: broadcom-sta
which took me to:

http://slackbuilds.org/repository/13.37/network/broadcom-sta/
(broadcom-sta (5.100.82.112)

I then downloaded: broadcom-sta.tar.gz
After uncompressing: broadcom-sta.tar.gz via execution of the below command:
Code:
tar zvxf broadcom-sta.tar.gz
a directory is created named: broadcom-sta
The contents of broadcom-sta is:
Code:
ls broadcom-sta

README                    doinst.sh
broadcom-sta.SlackBuild*  hybrid-portsrc_x86_32-v5_100_82_112.tar.gz
broadcom-sta.info         slack-desc
I then executed: broadcom-sta.SlackBuild with:
./broadcom-sta.SlackBuild

NOTE: broadcom-sta.SlackBuild should be executable: chmod +x broadcom-sta.SlackBuild
---

The result of this is ... a file is created in the tmp directory:
Code:
broadcom-sta-5.100.82.112_2.6.37.6_smp-i486-1_SBo.tgz
I then (after copying the above tgz file to another directory)
Code:
installpkg broadcom-sta-5.100.82.112_2.6.37.6_smp-i486-1_SBo.tgz
NOTE2: Alternatively you could do a pkgtool (in the tgz file directory)
- Select Current option to Install packages from the current directory
- With the options of: Yes, No, Quit ... select Yes
---

If all went well then the broadcom-sta version:5.100.82.112 for Slackware 13.37 installed successfully.

In my case the broadcom-sta driver installed successfully.

However ... the BCM43222 mini PCI wireless card doesn't get recognized by the OS.

Even with this installation method (Slackbuild) my observation remains the same:
Quote:
Posted on: 05-09-12, 10:29 AM by FreeOS-LuvR
In Thread: Broadcom BCM43222 - Slackware 13.37 - Doesn't YET work

I've observed that that the driver(s) associated for this
Broadcom BCM43222 aren't running ... therefore ... my first
request is how can I get to run the driver: wl.ko or even the
b43 driver.
 
Old 05-09-2012, 11:19 AM   #4
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings Ser Olmy,

Quote:
Does the driver appear in the list of loaded modules (lsmod)?

Which kernel are you running (uname -rm)?
When I do an lsmod it's extensive in content.
Could you give me a criteria to filter it?

Code:
uname -rm
2.6.37.6-smp i686

Last edited by FreeOS-LuvR; 05-09-2012 at 11:21 AM.
 
Old 05-09-2012, 11:49 AM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,098

Rep: Reputation: Disabled
Quote:
Originally Posted by FreeOS-LuvR View Post
Greetings Ser Olmy,
When I do an lsmod it's extensive in content.
Could you give me a criteria to filter it?
The driver is called "wl.ko", so lsmod | grep wl should do the trick.

Have you actually loaded the module with modprobe wl?
 
Old 05-09-2012, 01:15 PM   #6
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings Ser Olmy,
I did load the driver.
I also did the lsmod command you gave.

What I'm finding is that upon reboot the drive isn't running.
I really would like to see the wl.ko or b43* drivers running.
I think maybe this could get us closer to seeing the
BCM43222 running on Slackware 13.37

Thanks for your reply and support.
 
Old 05-09-2012, 05:49 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,098

Rep: Reputation: Disabled
Nothing you do from the command line "survives" a reboot. You need to add the necessary command(s) to a startup script.

Drivers are loaded automatically if either the kernel knows about the driver, or the hotplug subsystem (udev) is configured to autoload a module for a specific device. Since this is a third party driver, it's not part of the kernel proper. It would seem that udev doesn't know about it either.

The easiest way to accomplish what you want, is to simply add the modprobe command to one of the startup scripts. The old rc.netdevice file is more or less ideal for this, since it is run before rc.inet1 (which sets IP addresses on NICs). This file doesn't exist on modern Slackware distributions, but the reference to it in rc.modules still exists. Create it, and it will be executed.

Run these commands as root (cut and paste should work):
Code:
echo #!/bin/bash > /etc/rc.d/rc.netdevice
echo /sbin/modprobe wl >> /etc/rc.d/rc.netdevice
chmod u+x /etc/rc.d/rc.netdevice
This creates the /etc/rc.d/rc.netdevice file, adds a modprobe command to load the wl module, and makes the file executable.
 
Old 05-09-2012, 08:32 PM   #8
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings Ser Olmy,

I followed your instructions and created the file rc.netservice in /etc/rc.d
Code:
########################################################################
## rc.netdevice
## This file is created to troubleshoot: BCM43222 mini PCI wireless card
########################################################################
#!/bin/bash
/sbin/modprobe wl
I ensured that /etc/rc.d/rc.netservice was executable: chmod u+x rc.netservice
I rebooted.
I did an ifconfig and only saw the loopback interface: lo
I then did an ifconfig -a and got the same result: loopback interface
I then ran lsmod | grep wl which returned:
Code:
wl                   2427655  0 
lib80211                3262  1 wl
cfg80211              122542  3 wl,rt2x00lib,mac80211
 
Old 05-09-2012, 09:01 PM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,098

Rep: Reputation: Disabled
I guess "rc.netservice" is a typo, as you've used the correct name (rc.netdevice) in the comments in the file. Note that "#!/bin/bash" must be the very first line of a bash script, but in this case it seems to work anyway, as the module clearly gets loaded. rc.netdevice is probably being included in rc.modules as a "dot" source file.

The output from lsmod indicates that the wl module is not being used by anything (the 0 at the end of the line), which explains why your wlan card doesn't show up in the ifconfig -a list. Are you sure this is the correct driver for your card?

Try unloading and reloading the wl module with rmmod wl and modprobe wl respectively, and see what appears in the kernel log (dmesg).
 
Old 05-09-2012, 10:49 PM   #10
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings Ser Olmy,

You're absolutely right: rc.netservice was a typo.
The file created was indeed rc.netdevice

As a root user:
I removed the wl module with:
Code:
rmmod wl
lsmod | grep wl
Nothing was returned ... means wl unloaded.

I reloaded the wl driver, with:
Code:
bash /etc/rc.d/rc.netdevice
lsmod | grep wl returned the same values:
Code:
wl                   2427655  0 
lib80211                3262  1 wl
cfg80211              122542  3 wl,rt2x00lib,mac80211
 
Old 05-10-2012, 09:09 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,448
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Member response

Hi,

One other possibility is that the 'wl' recognizes the device as 'eth1'.

What do you see with 'ifconfig -a' after 'boot' or doing the 'modprobe'? You sure the firmware is in place?

I would be curious as to the output for the Broadcom wireless device for 'lspci -vv'? What is the device 'ID'?
 
Old 05-10-2012, 09:59 AM   #12
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings onebuck,

I agree with you.

I read in an article that the BCM43222 could work but
the interface doesn't show and the author reported it was
indeed the eth1. The article I'm referring to is:
http://all-things-linux.blogspot.com...reless-on.html

I made the below configuration in /etc/rc.d/rc.inet1.conf
Code:
...
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
...
Results of lspci -vv
Code:
00:10.0 Network controller: Broadcom Corporation Device 4350
	Subsystem: Broadcom Corporation Device 04d2
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at f3ff8000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
Please direct me as to where the firmware drivers would be, I did a
Code:
find / -iname firmware
and there were many returns
 
Old 05-10-2012, 11:58 AM   #13
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings,

I followed in part the instructions from http://www.broadcom.com/docs/linux_sta/README.txt
in 'Common issues:' section (3: Setup to always load at boot time.)
I executed the following successfully:
Code:
...
# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless 
# depmod -a
...
I rebooted.
Then I executed:
Code:
lsmod | grep wl

wl                   2406019  0 
lib80211                3262  1 wl
Now I only have the wl driver running.

BCM43222 isn't working yet for Slackware 13.37
 
Old 05-10-2012, 12:15 PM   #14
FreeOS-LuvR
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Greetings,

** These files were copied before my initial post in this forum **

In my attempt to get the BCM43222 wireless card to work
on Slackware 13.37 ... I had copied the two files below:
Code:
total 0
-rw-r--r-- 1 masters masters 0 May  8 10:13 brcm_bcm43xx-0.fw
-rw-r--r-- 1 masters masters 0 May  8 10:13 brcm_bcm43xx_hdr-0.fw
into /lib/firmware/brcm/

NOTE: the directory 'brcm' did not exist prior.

The instructions came from:
http://althafkbacker.blogspot.com/20...-14e44727.html

Due to the results of working with the wl.ko driver and seeing
that it's loaded once ... I've removed the two firmware files, to fully explore the
possibilities of it working.

The files and brcm directory were removed by:
Code:
rm -r /lib/firmware/brcm/
 
Old 05-10-2012, 07:56 PM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,448
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Member response

Hi,

Slackware 13.0 RC2 X86_64 Broadcom bcm4312 problems' may help you with some of the posted information, dated but should help.

Linux Wireless should be useful to find 'Broadcom Corporation Device 04d2' ID for correct driver. Which I thinks will be the 'b43'.

Another point is that a newer kernel (3.2) does provide support for more Broadcom drivers & firmware. You would get the new kernel & firmware file and then compile for your system.

The above linked thread does provide some early 'wl' issues.

You did try the broadcom-sta from slackbuilds and blacklisted the 'b43' as instructed?

How about trying b43-fwcutter & b43-firmware for 13.37 from Slackbuilds?

Obviously you have found where to place the firmware.

I would probably try the b43-fwcutter & b43-firmware route since you would be using the current source from broadcom-wl-4.178.10.4.tar.bz2

Broadcom can be a pain at times but when you get it working things are stable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
debian(lenny) broadcom wireless doesn't work after reboot. heirloom Linux - Networking 2 11-02-2009 09:55 AM
wireless broadcom(airforce one) on laptop doesn't work GlupFire Slackware 10 04-07-2008 09:54 PM
Broadcom card doesn't work unless boot into vista first ShadowHywind Linux - Wireless Networking 5 11-04-2007 10:06 AM
I have a builtin Broadcom card on a Gateway 7330gz that doesn't work at all hackerarchangel Linux - Wireless Networking 3 10-26-2005 12:01 PM
Broadcom Wireless doesn't work in Linux? technopolis Linux - Wireless Networking 4 02-14-2004 09:40 PM


All times are GMT -5. The time now is 01:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration