LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2008, 01:33 AM   #1
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Rep: Reputation: 15
ndiswrapper 1.31 error


hey,

i am trying to install ndiswrapper 1.31 because it is one that the website (http://ndiswrapper.sourceforge.net/joomla/) said would work with my card. My wireless card is a linksys WMP300N. I have downloaded the tar file and unzipped it. when i use the make command this is what i get:

[root@localhost ndiswrapper-1.31]# make
make -C driver
make[1]: Entering directory `/home/Eric/Download/ndiswrapper-1.31/driver'
Can't find kernel build files in /lib/modules/2.6.24.5-85.fc8/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/Eric/Download/ndiswrapper-1.31/driver'
make: *** [all] Error 2

I have installed the kernel-header files for 2.6.24.5-85

Anyways, any help would be appreciated.
 
Old 05-08-2008, 08:27 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
You need to install the kernel source code for your running kernel, not just the headers. By the way, there are lots of new drivers out, so there may be a native linux driver for your card. If you post the output of lspci, we might be able to point you in a better direction than ndiswrapper.
 
Old 05-09-2008, 01:14 AM   #3
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
here is the output.

[root@localhost Eric]# /sbin/lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: ATI Technologies Inc RV530 [Radeon X1600]
01:00.1 Display controller: ATI Technologies Inc RV530 [Radeon X1600] (Secondary)
05:06.0 FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (Link)
05:07.0 Network controller: Broadcom Corporation BCM43XG (rev 01)
05:0b.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
[root@localhost Eric]#
 
Old 05-09-2008, 08:19 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
Network controller: Broadcom Corporation BCM43XG (rev 01)
That is one of the more obscure Broadcom chipsets. There is potentially a native linux driver for that and according to the b43 site, other cards using that chipset do work with the b43 driver. So this means it's decision time for you:

1) You can use the native b43/b43-legacy driver. Given the kernel version you're running, it may already be there (check the output of lsmod to see) in which case if you install the firmware the card needs, you may be good to go.

2) Stick with ndiswrapper. If you do this, then you will need to blacklist the b43 driver to prevent it from interfering with ndiswrapper.
 
Old 05-12-2008, 03:12 AM   #5
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
well, i figure using a native diver is better than ndiswrapper so i went to that website that you posted. i found that i was supposed to use the b43 firmware for my kernel. i searched google for an rpm to install. i found this file: b43-fwcutter-011-1mdv2009.0.i586.rpm. when i ran it with the installer it told me that it was already installed. i used the network configuration program to see what drivers were available. i didnt notice one that like something i was looking for. i went back to the website and found this:

----------------------------------------------------------------------------
You are using the b43 driver from linux-2.6.24

If you are using the b43 driver from linux-2.6.24, follow these instructions.

Use version 011 of b43-fwcutter.
Download, extract the b43-fwcutter tarball and build it:

wget http://bu3sch.de/b43/fwcutter/b43-fwcutter-011.tar.bz2
tar xjf b43-fwcutter-011.tar.bz2
cd b43-fwcutter-011
make
cd ..

Use version 4.80.53.0 of Broadcom's proprietary driver.
Download and extract the firmware from this driver tarball:

export FIRMWARE_INSTALL_DIR="/lib/firmware"
wget http://downloads.openwrt.org/sources...0.53.0.tar.bz2
tar xjf broadcom-wl-4.80.53.0.tar.bz2
cd broadcom-wl-4.80.53.0/kmod
sudo ../../b43-fwcutter-011/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o

Note that you must adjust the FIRMWARE_INSTALL_DIR path to your distribution. The standard place where firmware is installed to is /lib/firmware. However some distributions put firmware in a different place.
----------------------------------------------------------------------------

since the installer told me i already had the driver installed i skipped to the firmware download and extract instructions and followed them. that worked well. i was able to get all the .fw files into /lib/firmware yet still nothing in the network configuration program. i then tried to follow the first set of instructions on downloading and installing b43-fwcutter. i got it downloaded and extracted but when i tried the make command this is what happened:

[root@localhost Download]# tar xjf b43-fwcutter-011.tar.bz2
[root@localhost Download]# cd b43-fwcutter-011
[root@localhost b43-fwcutter-011]# make
cc -Os -fomit-frame-pointer -std=c99 -Wall -pedantic -D_BSD_SOURCE -DFWCUTTER_VERSION_=011 -c -o fwcutter.o fwcutter.c
make: cc: Command not found
make: *** [fwcutter.o] Error 127
[root@localhost b43-fwcutter-011]#
 
Old 05-12-2008, 07:34 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Do you have gcc installed? If not, you'll need to install it. Also, you're not doing everything as root are you? If so, this is bad practice and you should use a regular use account for day to day things (compiling things generally doesn't need to be done as root, but installing does).
 
Old 05-12-2008, 07:26 PM   #7
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Nylex,
i have been doing everything as root but i just reinstalled so i havent done much. anyways, what is the reason for not doing everything in root?
 
Old 05-13-2008, 12:25 AM   #8
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
installing gcc worked but i have no idea where to go from here. it is all installed and im not sure what the driver name looks like in the network configuration program.
 
Old 05-13-2008, 08:23 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
You really just need to re-do what you did to create an fwcutter executable. So cd into the fwcutter directory and run make again. With gcc installed, it should actually compile the fwcutter program. You then run fwcutter against a Windows driver to extract the firmware files. It should look something like this:

fwcutter WindowsDriverFileName


That will create a bunch of files ending in .fw, and those are the firmware files. You can either copy them to /lib/firmware or run make installfw (as root) and that will copy them for you.

Quote:
i have been doing everything as root but i just reinstalled so i havent done much. anyways, what is the reason for not doing everything in root?
Always running as root creates a greater problem with security. The way Linux is built, normal users have relatively limited access to system files, but root does not. So if your root account gets compromised, your machine is well and truly cracked. If a user account gets compromised, the damage is generally limited and fixable without a full re-install. Also, root presents a situation where normal command errors can suddenly nuke your system. The most famous example is running rm * / as root. That deletes everything. Run as a normal user, at least your system would be intact. When you're first setting up a system, you'll feel the need to be root all the time, but this is the perfect time to develop the habit of only running as root when you absolutely need to.
 
Old 05-14-2008, 01:58 AM   #10
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
do you know what name it will have on the network configuration menu? i am not seeing anything new.
 
Old 05-14-2008, 01:59 AM   #11
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Post the output of iwconfig.
 
Old 05-16-2008, 01:58 AM   #12
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
[Eric@localhost ~]$ /sbin/iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

[Eric@localhost ~]$
 
Old 05-16-2008, 02:01 AM   #13
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you do a modprobe to load the driver?
 
Old 05-19-2008, 11:29 PM   #14
ericbowler300
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
no i hadnt but even after i did im still getting the same output for iwconfig
i ran /sbin/modprobe b43
 
Old 05-20-2008, 01:38 AM   #15
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What does dmesg say after you run modprobe? Only post the relevant bits please (i.e. the last 10 lines or so).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ndiswrapper Error:couldn't add module alias: at /usr/sbin/ndiswrapper-1.9 line 717. Skuggi Linux - Wireless Networking 1 06-07-2007 12:57 PM
Ndiswrapper error Tanel Mandriva 4 08-03-2005 10:22 AM
ndiswrapper error asb Linux - General 5 04-16-2005 10:10 AM
ndiswrapper error microsoft/linux Linux - Laptop and Netbook 1 03-15-2005 05:21 PM
ndiswrapper error FXRS Slackware 1 04-18-2004 09:42 PM


All times are GMT -5. The time now is 08:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration