SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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#
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?
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.
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.
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#
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.