Broadcom BCM4312 sta module Errors on build [Resolved]

Posts: 21
Jon_J
Joined: 21 Jan 2014
#1
The WL driver is not needed for this chip, I fixed it in post #5

Hi, I have a Dell mini10 netbook and just installed the newest beta MX-14_13.97_386-xfce.iso
I have a Broadcom BCM4312 wireless and the included b43 module doesn't seem to work.
So I read the below thread.
cannot-connect-to-wifi-networks-with-ceni-or-wicd-t3397.html?hilit=bcm4312
Then I went to
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.debian.org/wl#Wheezy"
linktext was:"https://wiki.debian.org/wl#Wheezy"
====================================

I followed instructions to get the broadcom-sta module installed.
Below is output from my attempt to install the broadcom-sta module
(sorry, I couldn't get any of the forum formatting options to work, must be a no-script setting I have in my browser)
Near the bottom is an Error, Am I using the wrong kernel?
I tried looking at the suggested log, but is doesn't exist on my machine after this failed attempt.
Consult /var/lib/dkms/broadcom-sta/5.100.82.112/build/make.log for more information.

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libavcodec54 libavformat54 libavutil52
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common linux-kbuild-3.2
The following NEW packages will be installed:
broadcom-sta-dkms linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common linux-headers-686-pae linux-kbuild-3.2
0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded.
Need to get 6,607 kB of archives.
After this operation, 34.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.us.debian.org/debian/"
linktext was:"http://ftp.us.debian.org/debian/"
====================================
wheezy/non-free broadcom-sta-dkms all 5.100.82.112-8 [2,208 kB]
Get:2
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.us.debian.org/debian/"
linktext was:"http://ftp.us.debian.org/debian/"
====================================
wheezy/main linux-headers-3.2.0-4-common i386 3.2.51-1 [3,561 kB]
Get:3
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.us.debian.org/debian/"
linktext was:"http://ftp.us.debian.org/debian/"
====================================
wheezy/main linux-kbuild-3.2 i386 3.2.17-1 [233 kB]
Get:4
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.us.debian.org/debian/"
linktext was:"http://ftp.us.debian.org/debian/"
====================================
wheezy/main linux-headers-3.2.0-4-686-pae i386 3.2.51-1 [601 kB]
Get:5
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.us.debian.org/debian/"
linktext was:"http://ftp.us.debian.org/debian/"
====================================
wheezy/main linux-headers-686-pae i386 3.2+46 [4,454 B]
Fetched 6,607 kB in 9s (676 kB/s)
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 95173 files and directories currently installed.)
Unpacking broadcom-sta-dkms (from .../broadcom-sta-dkms_5.100.82.112-8_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-4-common.
Unpacking linux-headers-3.2.0-4-common (from .../linux-headers-3.2.0-4-common_3.2.51-1_i386.deb) ...
Selecting previously unselected package linux-kbuild-3.2.
Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.17-1_i386.deb) ...
Selecting previously unselected package linux-headers-3.2.0-4-686-pae.
Unpacking linux-headers-3.2.0-4-686-pae (from .../linux-headers-3.2.0-4-686-pae_3.2.51-1_i386.deb) ...
Selecting previously unselected package linux-headers-686-pae.
Unpacking linux-headers-686-pae (from .../linux-headers-686-pae_3.2+46_i386.deb) ...
Setting up broadcom-sta-dkms (5.100.82.112-8) ...
Loading new broadcom-sta-5.100.82.112 DKMS files...
First Installation: checking all kernels...
Building only for 3.12-0.bpo.1-686-pae
Building initial module for 3.12-0.bpo.1-686-pae
Error! Bad return status for module build on kernel: 3.12-0.bpo.1-686-pae (i686)
Consult /var/lib/dkms/broadcom-sta/5.100.82.112/build/make.log for more information.
Setting up linux-headers-3.2.0-4-common (3.2.51-1) ...
Setting up linux-kbuild-3.2 (3.2.17-1) ...
Setting up linux-headers-3.2.0-4-686-pae (3.2.51-1) ...
Examining / etc/ kernel/header_postinst.d.
run-parts: executing / etc/kernel/header_postinst.d/dkms 3.2.0-4-686-pae
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
Setting up linux-headers-686-pae (3.2+46) ...
Last edited by Jon_J on 29 Jan 2014, 04:04, edited 2 times in total.
anticapitalista
Posts: 5,959
Site Admin
Joined: 11 Sep 2007
#2
It is using the wrong headers. MX-14-beta1 uses 3.12 kernel from Debian backports.

Try
apt-get install -t wheezy-backports linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Posts: 21
Jon_J
Joined: 21 Jan 2014
#3
anticapitalista wrote:It is using the wrong headers. MX-14-beta1 uses 3.12 kernel from Debian backports.

Try
apt-get install -t wheezy-backports linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
I tried installing this again, 3 times.
First I just tried using the above command and modprobe was unable to find"wl"
So I looked around in the filesystem and found wl.ko listed under the wrong kernel and I couldn't find it anywhere else.
I thought since I downloaded the wrong headers initially, this wasn't going to work.

I formatted the partition and re-installed MX-14_13.97 so I could start fresh.
On my 2nd try, I left out a space between sed and 's (the forum makes spaces hard to see sometimes.)
This gave me an error, I didn't have the headers. I tried again, and got the headers. Still got the same Error.
So I figured this is a one shot deal, and if you don't have the headers along with the broadcom-sta-dkms file, it won't compile.
So I installed MX-14_13.97 a third time and made sure I typed every thing correctly. I checked this 3 times before I hit [Enter]
Below is the output with the error. I'm sure this is the same error I got above in my previous 2 attempts.

Code: Select all

root@mx1:/home/jon# apt-get install -t wheezy-backports linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  broadcom-sta-dkms linux-headers-686-pae
0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
Need to get 2,213 kB of archives.
After this operation, 6,215 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ wheezy/non-free broadcom-sta-dkms all 5.100.82.112-8 [2,208 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy-backports/main linux-headers-686-pae i386 3.12+55~bpo70+1 [4,800 B]
Fetched 2,213 kB in 5s (383 kB/s)                 
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 95113 files and directories currently installed.)
Unpacking broadcom-sta-dkms (from .../broadcom-sta-dkms_5.100.82.112-8_all.deb) ...
Selecting previously unselected package linux-headers-686-pae.
Unpacking linux-headers-686-pae (from .../linux-headers-686-pae_3.12+55~bpo70+1_i386.deb) ...
Setting up broadcom-sta-dkms (5.100.82.112-8) ...
Loading new broadcom-sta-5.100.82.112 DKMS files...
First Installation: checking all kernels...
Building only for 3.12-0.bpo.1-686-pae
Building initial module for 3.12-0.bpo.1-686-pae
Error! Bad return status for module build on kernel: 3.12-0.bpo.1-686-pae (i686)
Consult /var/lib/dkms/broadcom-sta/5.100.82.112/build/make.log for more information.
Setting up linux-headers-686-pae (3.12+55~bpo70+1) ...
Thank you for your help,
Jon

Edit: It generated a log this time.

Code: Select all

DKMS make.log for broadcom-sta-5.100.82.112 for kernel 3.12-0.bpo.1-686-pae (i686)
Fri Jan 24 17:10:28 CST 2014
/bin/sh: 1: [: Illegal number: 
/bin/sh: 1: [: Illegal number: 
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/3.12-0.bpo.1-686-pae/build M=/var/lib/dkms/broadcom-sta/5.100.82.112/build
make[1]: Entering directory `/usr/src/linux-headers-3.12-0.bpo.1-686-pae'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_32
  LD      /var/lib/dkms/broadcom-sta/5.100.82.112/build/built-in.o
  CC [M]  /var/lib/dkms/broadcom-sta/5.100.82.112/build/src/shared/linux_osl.o
  CC [M]  /var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.o
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c: In function ‘wl_tkip_printstats’:
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:2975:7: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:2975:7: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:2978:4: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:2978:4: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c: In function ‘wl_reg_proc_entry’:
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:3185:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:3185:22: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:3190:16: error: dereferencing pointer to incomplete type
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:3191:16: error: dereferencing pointer to incomplete type
/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.c:3192:16: error: dereferencing pointer to incomplete type
cc1: some warnings being treated as errors
make[4]: *** [/var/lib/dkms/broadcom-sta/5.100.82.112/build/src/wl/sys/wl_linux.o] Error 1
make[3]: *** [_module_/var/lib/dkms/broadcom-sta/5.100.82.112/build] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.12-0.bpo.1-686-pae'
make: *** [all] Error 2
Posts: 21
Jon_J
Joined: 21 Jan 2014
#4
I tried to get my bcm4312 card working again, but I couldn't make head or tails about the errors given above.
I did a search on the Mepis board and someone mentioned a pkg found in symatic specifically for the bcm4312, it's called"firmware-b43-lpphy-installer 1:015-14.1" It seemed to install, but gave an error at the end, I don't remember now what the error was. I still didn't have a workable wifi connection.
While I was in symatic I also found"broadcom-sta-common" and"broadcom-sta-source" I installed these and it removed"broadcom-sta-dkms" (which wasn't working anyway). It also had errors, it had many errors referring to python.
At this point I think I'll just go back and install"antiX-13.2_386-full" as this version worked out of the box for my gma500 video and bcm4312 wifi chip. I have no idea how antiX-13.2 made the wifi work, but it was using b43 when I checked with lsmod.
Posts: 21
Jon_J
Joined: 21 Jan 2014
#5
I got it working this time in MX-14_13.97 __{{emoticon}}__
I really liked the"Look & Feel" of MX-14_13.97, so I did a fresh install.
Once it booted, and before I did anything else, I plugged in my ethernet cable and went to symatic and refreshed it.
After symatic was updated I could find"firmware-b43-lpphy-installer 1:015-14.1"
I installed this and shut down my mini10. I also unplugged my ethernet cable after the computer shut off.
When I booted back to my desktop, it took a little while for my wifi to get up and running. dmesg says it tried several things that it isn't capable of doing before finally connecting.
So this issue is resolved for me now. I wish I would have known this before I tried the bcm-sta wl thing, it would have been a lot more efficient way for me to get the latest version of antiX on this bugged netbook.
Another note: the firmware loaded for my TV tuner card but not wifi when I first installed MX-14_13.97
Jon
Posts: 667
jdmeaux1952
Joined: 01 Nov 2013
#6
Somebody posted this on another topic elsewhere here.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.debian.org/bcm43xx"
linktext was:"https://wiki.debian.org/bcm43xx"
====================================


Maybe it will help.
Posts: 21
Jon_J
Joined: 21 Jan 2014
#7
jdmeaux1952 wrote:Somebody posted this on another topic elsewhere here.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.debian.org/bcm43xx"
linktext was:"https://wiki.debian.org/bcm43xx"
====================================


Maybe it will help.
Thank you,
I'm using MX-14 beta2 now. A lot more wireless modules are included in this version, including the"wl" module for my BCM4312.

Jon