LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-06-2011, 07:27 AM   #1
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
Broadcom 802.11 STA insmod segfault


Broadcom updated their 802.11 Linux STA driver on 10/25/2011 - hybrid-portsrc_x86_32-v5_100_82_112.tar.gz. The API patch is no longer needed and the driver compiles without issue. However when I insmod the driver I get a segmentation fault. Does the same thing after a reboot.

Code:
root@imac1337:~/packages/broadcom$ ls
Makefile                                    lib            wl.mod.c
Module.symvers                              modules.order  wl.mod.o
built-in.o                                  src            wl.o
hybrid-portsrc_x86_32-v5_100_82_112.tar.gz  wl.ko
root@imac1337:~/packages/broadcom$ rmmod wl
ERROR: Module wl does not exist in /proc/modules
root@imac1337:~/packages/broadcom$ insmod wl.ko
Segmentation fault
root@imac1337:~/packages/broadcom$ 
Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077076] ------------[ cut here ]------------

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077082] invalid opcode: 0000 [#1] SMP 

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077519] EIP: [<fb3bfd5d>] wl_cfg80211_detach+0x16d/0x180 [wl] SS:ESP 0068:ef43dcb0

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077195] Stack:

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077193] Process insmod (pid: 2433, ti=ef43c000 task=ef6ca200 task.ti=ef43c000)

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077484] Code: c5 8b 83 84 05 00 00 c7 83 98 05 00 00 00 00 00 00 e8 98 f8 d2 c5 89 d8 c7 83 84 05 00 00 00 00 00 00 e8 37 a9 ff ff 5b 5e 5d c3 <0f> 0b 0f 0b eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 90 55 89                                                             

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077216] Call Trace:

Message from syslogd@imac1337 at Sun Nov  6 08:10:28 2011 ...
imac1337 kernel: [  249.077085] last sysfs file: /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0/carrier
 
Old 11-07-2011, 12:06 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
insmod might not be the best option to load a module for your system. The "modprobe" tool works a lot better for this purpose.

However, wl.ko will not by default work with modprobe if you install it using SlackBuilds or a custom compile, and it does require some extra steps to get to autoload correctly.

You first need to symlink it from the directory where ever it was installed to like /lib/modules/*kernel-version*/kernel/extra and create a symlink to /lib/modules/*kernel-version*/kernel/drivers/net/wireless, forexample I use kernel 3.1.0, so I would symlink it using:

Code:
ln -s /lib/modules/3.1.0/kernel/drivers/net/wireless /lib/modules/3.1.0/kernel/extra/wl.ko
This will let the kernel detect the new driver module and autoload the driver correctly, or allow modprobe to load the module and all the module's dependencies.

You also should add the following lines to your /etc/modprobe.d/blacklist file...

blacklist b43
blacklist ssb

...just in case they aren't blacklisted.

Last edited by ReaperX7; 11-07-2011 at 01:28 AM.
 
Old 11-07-2011, 12:27 PM   #3
koenigdavidmj
Member
 
Registered: Oct 2009
Posts: 73

Rep: Reputation: 25
With the build script from slackbuilds.org I have never needed to do the symlink dance that you describe.

Also the newest version of the driver requires blacklisting the 'bcma' module in addition to b43, b43legacy, and ssb.

Like ReaperX7, I recommend that you not use insmod directly instead use modprobe.
 
Old 11-07-2011, 05:35 PM   #4
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 29
Same kernel oops using modprobe as with using insmod. And already had wl.ko installed to both .../extra and .../net/wireless.
 
Old 11-19-2011, 03:37 PM   #5
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 29
Marking it solved. The short answer is forget Broadcom's driver and use the b43 tools from sbopkg. Unfortunately had to install openSUSE to figure this out.
 
  


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
[SOLVED] Problems building Broadcom 802.11 linux STA Driver in Slackware 13.37 Lividium Slackware 3 10-05-2011 09:36 AM
Broadcom 802.11 Linux STA driver (broadcom-wl) - Problems (Fed15) Rian79 Linux - Wireless Networking 1 08-09-2011 10:10 AM
[SOLVED] m-a a-i broadcom-sta j1alu Linux - Networking 7 03-30-2011 05:56 AM
[SOLVED] broadcom-sta loads but does nothing AlvaroG Slackware 21 11-07-2010 06:49 PM
[SOLVED] broadcom-sta won't build with 2.6.33.1 kernel mdynac Slackware 14 05-11-2010 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:30 AM.

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