LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   wireless in slackware 12.2 (https://www.linuxquestions.org/questions/slackware-14/wireless-in-slackware-12-2-a-754154/)

mobinskariya 09-10-2009 08:23 AM

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

GrapefruiTgirl 09-10-2009 08:34 AM

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

EricTRA 09-10-2009 08:45 AM

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

onebuck 09-10-2009 09:02 AM

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!

mobinskariya 09-10-2009 09:59 AM

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.

GrapefruiTgirl 09-10-2009 10:34 AM

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

mobinskariya 09-10-2009 11:45 AM

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#


GrapefruiTgirl 09-10-2009 12:02 PM

Quote:

Originally Posted by GrapefruiTgirl (Post 3677435)
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

mobinskariya 09-10-2009 12:15 PM

yes i did that.. and the error is posted above..
thanks for helping me so far.

GrapefruiTgirl 09-10-2009 02:57 PM

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

mobinskariya 09-10-2009 08:49 PM

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?

GrapefruiTgirl 09-10-2009 09:32 PM

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

GrapefruiTgirl 09-10-2009 09:40 PM

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

mobinskariya 09-10-2009 09:56 PM

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#


kingbeowulf 09-10-2009 11:27 PM

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.


All times are GMT -5. The time now is 12:49 PM.