LinuxQuestions.org
Help answer threads with 0 replies.
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 09-22-2013, 04:20 PM   #1
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 220

Rep: Reputation: 28
fresh install of slackware 14.1 beta issues installing broadcom-sta


I just did a fresh install of slackware 14.1 beta and am having trouble installing the broadcom-sta driver.

It looks like broadcom updated their driver source so the slackbuild is not working at the moment.

I'm trying to install the driver from the software from broadcom's website but am running into errors. Below are the errors that I'm getting when using the "make" command. Anyone know how I can get the broadcom-sta driver installed?

bash-4.2# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-3.10.12'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
LD /home/justin/hybrid_wl/built-in.o
CC [M] /home/justin/hybrid_wl/src/shared/linux_osl.o
CC [M] /home/justin/hybrid_wl/src/wl/sys/wl_linux.o
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_printstats':
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3246:7: warning: passing argument 1 of 'wl->tkipmodops->print_stats' from incompatible pointer type [enabled by default]
wl->tkip_bcast_data[idx]);
^
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3246:7: note: expected 'struct seq_file *' but argument is of type 'char *'
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3249:4: warning: passing argument 1 of 'wl->tkipmodops->print_stats' from incompatible pointer type [enabled by default]
wl->tkipmodops->print_stats(debug_buf, wl->tkip_ucast_data);
^
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3249:4: note: expected 'struct seq_file *' but argument is of type 'char *'
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_reg_proc_entry':
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3470:2: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]
if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
^
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3470:22: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
^
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3475:16: error: dereferencing pointer to incomplete type
wl->proc_entry->read_proc = wl_proc_read;
^
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3476:16: error: dereferencing pointer to incomplete type
wl->proc_entry->write_proc = wl_proc_write;
^
/home/justin/hybrid_wl/src/wl/sys/wl_linux.c:3477:16: error: dereferencing pointer to incomplete type
wl->proc_entry->data = wl;
^
cc1: some warnings being treated as errors
make[2]: *** [/home/justin/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/home/justin/hybrid_wl] Error 2
make[1]: Leaving directory `/usr/src/linux-3.10.12'
make: *** [all] Error 2
 
Old 09-22-2013, 05:10 PM   #2
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware 14.1
Posts: 135

Rep: Reputation: Disabled
This gentoo broadcom-sta bug report has a patch attached to enable compilation with kernels >= 3.10. Does this work?
 
Old 09-22-2013, 05:47 PM   #3
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 220

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by turtleli View Post
This gentoo broadcom-sta bug report has a patch attached to enable compilation with kernels >= 3.10. Does this work?
how would I install the patch? When I type make and hit enter I still get the error.
 
Old 09-22-2013, 05:56 PM   #4
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 220

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by Bertman123 View Post
how would I install the patch? When I type make and hit enter I still get the error.
And When I try to download the source from slackbuilds I get a page not found error. I found the new source, but couldn't get the slackbuild to compile.
 
Old 09-22-2013, 06:07 PM   #5
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware 14.1
Posts: 135

Rep: Reputation: Disabled
Try in the driver source directory:
Code:
patch -p1 -i /path/to/patch
You may need to change "-p1" to "-p0" or "-p2". If it patches successfully without errors you can run make and hopefully it'll give you a working driver.

The SlackBuild requires minor modifications for it to work with the newer driver source.
 
Old 09-22-2013, 07:12 PM   #6
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 220

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by turtleli View Post
Try in the driver source directory:
Code:
patch -p1 -i /path/to/patch
You may need to change "-p1" to "-p0" or "-p2". If it patches successfully without errors you can run make and hopefully it'll give you a working driver.

The SlackBuild requires minor modifications for it to work with the newer driver source.
Sorry to sound ignorant... does this go in the slackbuild? I'm not really sure how to install the patch or modify the slackbuild for the new source.
 
Old 09-22-2013, 07:57 PM   #7
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware 14.1
Posts: 135

Rep: Reputation: Disabled
I've attached a modified slackbuild script for the newer driver. Normal SlackBuild procedures, rename the gentoo patch to bc_wl_abiupdate.patch (the name of the old patch).

It should work, but I do not know for sure since I am using Slackware 14.0 and kernel 3.4.xx and do not personally need the driver myself.
Attached Files
File Type: txt broadcom-sta.SlackBuild.txt (1.6 KB, 95 views)

Last edited by turtleli; 09-22-2013 at 08:50 PM. Reason: Fix stupid mistake in uploaded script.
 
Old 09-22-2013, 08:36 PM   #8
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 220

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by turtleli View Post
I've attached a modified slackbuild script for the newer driver. Normal SlackBuild procedures, rename the gentoo patch to bc_wl_abiupdate.patch (the name of the old patch).

It should work, but I do not know for sure since I am using Slackware 14.0 and kernel 3.4.xx and do not personally need the driver myself.
Okay, it seemed to get a little further. The output with the error looks different this time.

I really appreciate your help with this.


bash-4.2# ./broadcom-sta.SlackBuild
Makefile
lib/
lib/wlc_hybrid.o_shipped
lib/LICENSE.txt
src/
src/shared/
src/shared/linux_osl.c
src/shared/bcmwifi/
src/shared/bcmwifi/include/
src/shared/bcmwifi/include/bcmwifi_channels.h
src/shared/bcmwifi/include/bcmwifi_rates.h
src/include/
src/include/typedefs.h
src/include/bcmdefs.h
src/include/bcmendian.h
src/include/linuxver.h
src/include/wlioctl.h
src/include/bcmutils.h
src/include/osl.h
src/include/linux_osl.h
src/include/packed_section_end.h
src/include/packed_section_start.h
src/include/pcicfg.h
src/include/epivers.h
src/common/
src/common/include/
src/common/include/proto/
src/common/include/proto/ethernet.h
src/common/include/proto/bcmeth.h
src/common/include/proto/bcmip.h
src/common/include/proto/bcmevent.h
src/common/include/proto/ieee80211_radiotap.h
src/common/include/proto/802.11.h
src/common/include/proto/802.1d.h
src/common/include/proto/wpa.h
src/wl/
src/wl/sys/
src/wl/sys/wl_cfg80211_hybrid.c
src/wl/sys/wl_export.h
src/wl/sys/wl_dbg.h
src/wl/sys/wlc_key.h
src/wl/sys/wlc_ethereal.h
src/wl/sys/wl_linux.c
src/wl/sys/wl_linux.h
src/wl/sys/wl_cfg80211_hybrid.h
src/wl/sys/wl_iw.c
src/wl/sys/wl_iw.h
src/wl/sys/wlc_types.h
src/wl/sys/wlc_pub.h
src/wl/sys/wlc_utils.h
patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 3236 (offset 7 lines).
Hunk #2 succeeded at 3254 (offset 7 lines).
Hunk #3 succeeded at 3417 (offset 7 lines).
Hunk #4 succeeded at 3447 (offset 7 lines).
Hunk #5 succeeded at 3483 (offset 7 lines).
make: Entering directory `/usr/src/linux-3.10.12'
scripts/Makefile.clean:17: /usr/src/linux-3.10.12/./SBo/build-broadcom-sta/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.10.12/./SBo/build-broadcom-sta/Makefile'. Stop.
make: *** [_clean_./SBo/build-broadcom-sta] Error 2
make: Leaving directory `/usr/src/linux-3.10.12'
bash-4.2# make
make: *** No targets specified and no makefile found. Stop.
 
Old 09-22-2013, 08:46 PM   #9
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware 14.1
Posts: 135

Rep: Reputation: Disabled
Whoops, accident. This is what happens when you work from a Mac and forget what changes you make.

Edit the Slackbuild and change
Code:
TMP=${TMP:-./SBo}
to
Code:
TMP=${TMP:-/tmp/SBo}
 
1 members found this post helpful.
Old 09-23-2013, 01:40 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
Quote:
Originally Posted by turtleli View Post
Whoops, accident. This is what happens when you work from a Mac and forget what changes you make.

Edit the Slackbuild and change
Code:
TMP=${TMP:-./SBo}
to
Code:
TMP=${TMP:-/tmp/SBo}
Why did you change it anyway? Just set TMP in your local environment, no need to edit the script.

Last edited by ruario; 09-23-2013 at 01:41 AM.
 
Old 09-23-2013, 03:13 AM   #11
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware 14.1
Posts: 135

Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
Why did you change it anyway? Just set TMP in your local environment, no need to edit the script.
Well... I wasn't thinking. The script was already open for editing for the few modifications I needed to make so changing TMP was in some way convenient to me.
 
Old 09-23-2013, 04:09 AM   #12
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
Fair enough. Didn't mean to sound critical!
 
Old 09-23-2013, 04:38 AM   #13
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware 14.1
Posts: 135

Rep: Reputation: Disabled
No harm done. (I'm not crying in a corner again by the way. Really. )
 
Old 09-23-2013, 06:13 AM   #14
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 220

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by turtleli View Post
Whoops, accident. This is what happens when you work from a Mac and forget what changes you make.

Edit the Slackbuild and change
Code:
TMP=${TMP:-./SBo}
to
Code:
TMP=${TMP:-/tmp/SBo}
That worked perfectly, thanks for your help, it is much appreciated. :-)
 
  


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
problems getting broadcom 80211 sta driver to install doodlyboy15 Linux - Newbie 4 06-15-2013 08:56 AM
[SOLVED] Problems building Broadcom 802.11 linux STA Driver in Slackware 13.37 Lividium Slackware 3 10-05-2011 09:36 AM
how to install broadcom STA wireless driver WITHOUT wired connection? Ubunoob001 Fedora 1 07-17-2011 06:17 PM
[SOLVED] ubuntu 10.04 (64-bit) wireless issues (broadcom STA driver) bbb125 Linux - Newbie 5 08-20-2010 09:15 AM
How to install broadcom 4322 sta driver for backtrack 3? klienes Linux - Wireless Networking 1 11-12-2009 07:13 AM


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

Main Menu
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