LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   fresh install of slackware 14.1 beta issues installing broadcom-sta (http://www.linuxquestions.org/questions/slackware-14/fresh-install-of-slackware-14-1-beta-issues-installing-broadcom-sta-4175478120/)

Bertman123 09-22-2013 05:20 PM

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

turtleli 09-22-2013 06:10 PM

This gentoo broadcom-sta bug report has a patch attached to enable compilation with kernels >= 3.10. Does this work?

Bertman123 09-22-2013 06:47 PM

Quote:

Originally Posted by turtleli (Post 5032711)
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.

Bertman123 09-22-2013 06:56 PM

Quote:

Originally Posted by Bertman123 (Post 5032719)
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.

turtleli 09-22-2013 07:07 PM

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.

Bertman123 09-22-2013 08:12 PM

Quote:

Originally Posted by turtleli (Post 5032727)
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.

turtleli 09-22-2013 08:57 PM

1 Attachment(s)
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.

Bertman123 09-22-2013 09:36 PM

Quote:

Originally Posted by turtleli (Post 5032762)
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.

turtleli 09-22-2013 09:46 PM

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}

ruario 09-23-2013 02:40 AM

Quote:

Originally Posted by turtleli (Post 5032780)
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.

turtleli 09-23-2013 04:13 AM

Quote:

Originally Posted by ruario (Post 5032922)
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.

ruario 09-23-2013 05:09 AM

Fair enough. Didn't mean to sound critical! ;)

turtleli 09-23-2013 05:38 AM

No harm done. (I'm not crying in a corner again by the way. Really. :))

Bertman123 09-23-2013 07:13 AM

Quote:

Originally Posted by turtleli (Post 5032780)
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. :-)


All times are GMT -5. The time now is 11:29 PM.