LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2009, 08:23 AM   #1
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
wireless in slackware 12.2


i remember in ubuntu i was using some proprietary driver for my wireless device broadcom bcm4312.. here is the output of lspci |tail
Code:
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
02:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
02:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
02:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
02:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
02:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 12)
0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
from where can i download the precompiled binaries(anything like synaptic package manager in ubutnu)??

thanks in advance
mobin
 
Old 09-10-2009, 08:34 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'm not sure what exactly are the packages at the link I'll give you, but it seems Broadcom has actually released Linux drivers for that device.

Have a look here: http://www.broadcom.com/support/802.11/linux_sta.php
and here: http://jomcode.com/fadhil/?p=59

Though you may wish to do a little more searching, as there's probably a Slack-package around somewhere too.

Sasha
 
Old 09-10-2009, 08:45 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

I started out yesterday with Slackware (loving it by the way), and found the driver for my network card here. I've seen the Broadcom 43xx listed there too.

Kind regards,

Eric
 
Old 09-10-2009, 09:02 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You should look at 'SlackBuilds' for 'bcm for 12.2'.

If you do a search here on LQ you will find loads of posts for howto use the firmware cutter.

This link and others can be found at 'Slackware-Links'. More than just Slackware® links!
 
Old 09-10-2009, 09:59 AM   #5
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
i tried as stated in readme file.it gives me following error
Code:
bash-3.1# make -C /lib/modules/2.6.27.7-smp/build M=`pwd` clean
make: Entering directory `/usr/src/linux-2.6.27.7'
  CLEAN   /root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9/.tmp_versions
make: Leaving directory `/usr/src/linux-2.6.27.7'
bash-3.1# make -C /lib/modules/2.6.27.7-smp/build M=`pwd`
make: Entering directory `/usr/src/linux-2.6.27.7'

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /usr/src/linux-2.6.27.7/Module.symvers
           is missing; modules will have no dependencies and modversions.

  LD      /root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9/built-in.o
  CC [M]  /root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9/src/wl/sys/wl_linux.o
/root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9/src/wl/sys/wl_linux.c:1: error: code model 'kernel' not supported in the 32 bit mode
/root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9/src/wl/sys/wl_linux.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [/root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9/src/wl/sys/wl_linux.o] Error 1
make: *** [_module_/root/Desktop/hybrid-portsrc-x86_32-v5_10_91_9] Error 2
make: Leaving directory `/usr/src/linux-2.6.27.7'
bash-3.1#
i cant understand reading the error.what should i do to install my wireless driver?

edit:sorry i didnt notice the post above..reading it now.

Last edited by mobinskariya; 09-10-2009 at 10:18 AM.
 
Old 09-10-2009, 10:34 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

Assuming you have the kernel source code installed on this machine, then the above message that the build gave you, would be where I'd start to try solving that build error.

Your running kernel config file should be either in the kernel source code folder, called .config, or it's located in /proc and called config.gz which will need to be unzipped and copied to the kernel source folder.

With that file in place, execute the command make oldconfig && make prepare inside the kernel source, to fix up the sourcecode.

Sasha
 
Old 09-10-2009, 11:45 AM   #7
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
there was no kernel source under /usr/src/.. output of
Code:
ls -l /lib/modules/2.6.27.7-smp/build
lrwxrwxrwx 1 root root 23 2009-09-07 20:21 /lib/modules/2.6.27.7-smp/build -> /usr/src/linux-2.6.27.7
so i copied the linux-2.6.27.7.tar.bz2 from slackware dvd and extracted it into /usr/src/
when following the above instruction i get a new error
Code:
 make -C /lib/modules/2.6.27.7-smp/build M=`pwd`
make: Entering directory `/usr/src/linux-2.6.27.7'

  WARNING: Symbol version dump /usr/src/linux-2.6.27.7/Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: scripts/mod/modpost: No such file or directory
make[1]: *** [__modpost] Error 127
make: *** [modules] Error 2
make: Leaving directory `/usr/src/linux-2.6.27.7'
bash-3.1#
 
Old 09-10-2009, 12:02 PM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by GrapefruiTgirl View Post
Your running kernel config file should be either in the kernel source code folder, called .config, or it's located in /proc and called config.gz which will need to be unzipped and copied to the kernel source folder.

With that file in place, execute the command make oldconfig && make prepare inside the kernel source, to fix up the sourcecode.

Sasha
Ok, so you now have your kernel source. Did you continue to follow the step(s) above?

Did you grab your kernel's .configuration file from /proc/config.gz (or from the kernel source archive IF it was in there, but it may not be..) and unzip the config file, and move it into the kernel source folder and execute the `make` command shown above?

Sasha
 
Old 09-10-2009, 12:15 PM   #9
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
yes i did that.. and the error is posted above..
thanks for helping me so far.
 
Old 09-10-2009, 02:57 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
can you post the output of:

shell# uname -r

please?

Also, just to make sure, you DO have the kernel-headers package installed too, right?

Thanks for your patience.

Sasha
 
Old 09-10-2009, 08:49 PM   #11
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
Code:
bash-3.1# uname -r
2.6.27.7-smp
bash-3.1#
how can i know whether kernel-headers package is installed?? if not how can i install them?
 
Old 09-10-2009, 09:32 PM   #12
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I would run `pkgtool` and scroll down to the K section. Alternately, you can look in /var/log/packages to see if there is a PAK file for the kernel-headers. This would mean it's installed.

Also, I will mention another step you should do, though NORMALLY this would not be necessary, but I'm finding it a bit weird that you are having the trouble you are having. Maybe your installation is not completely as it should be.

You executed the MAKE OLDCONFIG and MAKE PREPARE commands already, but here's another command you should execute, from within the kernel source folder:

shell# make modules_install

This should make sure that the kernel modules are installed properly, and that depmod (update module dependencies) is complete.

OH -- and in the case that your kernel-headers package is NOT installed, you can download it from a Slackware mirror, or get it from your CD or DVD, and install it using the pkgtool command "installpkg"
Sasha

Last edited by GrapefruiTgirl; 09-10-2009 at 09:33 PM.
 
Old 09-10-2009, 09:40 PM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
If you're still having trouble after the above, I'd be interested in you providing the link to the driver package you downloaded, so me or someone else can have a look at it and see what the heck's going on with it..

Unfortunately, I have both Slack 11 and Slack 13, but I do not have Slack 12.x installed, so I don't know if I will be able to build the exact package you're working with. However, I could at least check out the documentation and maybe advise you in a more concise way, of the step by step build & install process.

Aside from that, you may be interestd to follow Onebucks advice above, and see if you can get a Slackbuild script and associated source-code, for Slack 12.x, and try building that.

Sasha
 
Old 09-10-2009, 09:56 PM   #14
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Original Poster
Rep: Reputation: 55
i can find the pak file for kernel-headers /var/log/packages..here is the output for make oldconfig && make prepare and make modules_install
Code:
bash-3.1# make oldconfig && make prepare
scripts/kconfig/conf -o arch/x86/Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf -s arch/x86/Kconfig
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
bash-3.1# make modules_install
cp: cannot stat `/usr/src/linux-2.6.27.7/modules.order': No such file or directory
make: *** [_modinst_] Error 1
bash-3.1#
 
Old 09-10-2009, 11:27 PM   #15
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
mobinskariya, reading through this thread, as GrapefruiTgirl hinted, it sounds like you didn't properly install the kernel and kernel-headers (and maybe kernel modules - are there other errors in the logs?) packages from the original Slackware 12.2 dvd (or cd set). Without these in their default and expected locations you won't be able to compile kernel driver modules, either bcm or proprietary broadcom-sta. Did you install Slack-12.2 full or select packages from menus? Look in your dvd for slackware/d/kernel-headers-*.tgz and slackware/k/kernel-source-*.tgz packages and use upgradepkg --install-new --reinstall ...

Anyway, once that is taken care of you can try the bcm driver and instructions on slackbuids.org but since your wireless report as bcm4312 I don't expect you will have any luck. Didn't work on my ACER laptop. The proprietary driver http://www.broadcom.com/support/802.11/linux_sta.php does work in Slackware 12.2, 13 and Slamd64 12.2

Here is my broacom.SlackBuild for the Broadcom 802.11 Linux STA driver for Slackware64 13.0 - change arch to x86 for 32 bit:
Code:
#!/bin/sh
# Build script for proprietary Broadcom 802.11 Linux STA driver
# see http://www.broadcom.com/support/802.11/linux_sta.php
# Copyright (c) 2009 Edward W. Koenig <kingbeowulf@gmail.com>
# Distributed under the terms of the GNU General Public License, version 2.
# Enjoy.  

CWD=`pwd`

set -e

ARCH=${ARCH:-x86_64}
VERSION=${VERSION:-v5_10_91_9}
BUILD=1
DISTRO=${DISTRO:-slackware}

if [ $DISTRO = slackware ]; then
	PKGARCH=$ARCH
else
	PKGARCH=${ARCH}_${DISTRO}
fi

KERNEL=${KERNEL:-`uname -r`}

PKG=/tmp/package-broadcom
SRC=/tmp/broadcom-$VERSION
rm -rf $PKG
rm -rf $SRC
mkdir $PKG
mkdir $SRC
cd $SRC
tar zxfv $CWD/hybrid-portsrc-$ARCH-$VERSION.tar.gz

# Apply patch if 2.6.29 kernel version, uncomment if needed

#patch p1 <$CWD/patch_2.6.29_kernels

make -C /lib/modules/$KERNEL/build M=`pwd`

cd $PKG
install -D $SRC/wl.ko $PKG/lib/modules/$KERNEL/kernel/drivers/net/wireless/bcmhybrid/wl.ko
mkdir install
cat $CWD/slack-desc > install/slack-desc
echo "/sbin/depmod -ae" > install/doinst.sh

makepkg -l y -c n ../broadcom-${VERSION}_$(echo $KERNEL | sed 's#-#_#g')-$PKGARCH-$BUILD.tgz
and slack-desc
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in.  You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

        |-----handy-ruler------------------------------------------------|
broadcom: broadcom wireless 802.11a/b/g/n drivers
broadcom: 
broadcom: Wireless drivers for broadcom-chipset wireless cards.
broadcom: Broadcom's IEEE 802.11a/b/g/n hybrid Linux® device
broadcom: or use with Broadcom's BCM4311-, BCM4312-, BCM4321-,
broadcom: and BCM4322-based hardware
broadcom: 
broadcom: http://www.broadcom.com/support/802.11/linux_sta.php
broadcom: 
broadcom: 
broadcom:
Check the output of lsmod to make sure there aren't any bcm modules loading; blacklist if needed in /etc/modprobe.d/blacklist

Enjoy.
 
  


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
Wireless in slackware kalnaren Linux - Hardware 3 09-13-2006 10:35 AM
Wireless card..Wireless router.. Slackware 10.2 ..Problems with Internet Connection. Storm Bringer Linux - Wireless Networking 4 03-23-2006 06:25 AM
wireless in slackware netman86 Linux - Hardware 9 11-11-2004 04:12 PM
Wireless on Slackware 10 hayesben Slackware 11 10-15-2004 09:14 AM

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

All times are GMT -5. The time now is 10:57 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