LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-05-2009, 02:39 PM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Rep: Reputation: 30
Need help compiling and installing WiFi driver


I've got a Realtek 8187b wifi dongle and need to compile and install the driver. The instructions say the following:

"The driver is composed of several parts:

1. Module source code

stack.tar.gz

drv.tar.gz



2. Script to build the modules

makedrv



3. Script to load/unload modules

wlan0up

wlan0down



4. Script and configuration for DHCP

wlan0dhcp

ifcfg-wlan0

4. Supplicant source code:

wpa_supplicant-0.5.3.tar.gz



5. Example of supplicant configuration file:

wpa1.conf



< Installation >

Runing the scripts can finish all operations of building up modules

from the source code and start the nic.

1. Build up the drivers from the source code

./makedrv



2. load the driver module to kernel and start up nic

./wlan0up

Note: when "insmod: error inserting 'xxxx.ko': -1 File exists" comes out

after run ./wlan0up, please run ./wlan0down first, then it should

be ok.



< Set wireless lan MIBs >

This driver uses Wireless Extension as an interface allowing you to set

Wireless LAN specific parameters.



Current driver supports "iwlist" to show the device status of nic

iwlist wlan0 [parameters]

where

parameter explaination [parameters]

----------------------- -------------

Show available chan and freq freq / channel

Show and Scan BSS and IBSS scan[ning]

Show supported bit-rate rate / bit[rate]

Show Power Management mode power



For example:

iwlist wlan0 channel

iwlist wlan0 scan

iwlist wlan0 rate

iwlist wlan0 power



Driver also supports "iwconfig", manipulate driver private ioctls, to set

MIBs.



iwconfig wlan0 [parameters] [val]"

In the file are a bunch of other files like wlan0up/wlan0down, makedr, etc. Could someone walk me through this process? Thanks.
 
Old 03-05-2009, 02:53 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
You might want to change the thread title to "wifi" driver, not video driver.

Sorry, I can't help with wifi...
 
Old 03-05-2009, 03:55 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
I think the Realtek 8187b is already supported by the kernel. It uses the r8187 module, which is present on my kubuntu 8.04.1 install.
Try
Code:
lsmod | grep r8187
is it listed?
If not do (as root):
Code:
modprobe  r8187
Then maybe re-plug the dongle, and you should be set to go.
Check with
Code:
iwlist scan
Do you see any networks?
 
Old 03-05-2009, 04:27 PM   #4
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Original Poster
Rep: Reputation: 30
Actually, you're right, I'm running Linux Mint 6 and the wifi driver is installed. It's just that it keeps failing and I can't connect. I was advised by the LM forum to do a manual install of the driver but no one there seems to answer this question.
 
Old 03-05-2009, 06:21 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
This is a particularly difficult thread to answer as I do not have your hardware to play with.

And you are not providing us with any real information to help us diagnose your problem.
"I can't connect" and "I was advised" isn't helpful at all because we cannot read the error messages, or where you read the "advice".

Maybe your distro is loading the wrong module?

What's the output of
Code:
lsmod | grep 8187
?

If you see the rtl8187 module, it needs to be "blacklisted" because it will not drive the b version of your chipset.

I think you need the r8187 only
 
Old 03-05-2009, 08:14 PM   #6
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Original Poster
Rep: Reputation: 30
The output of lsmod | grep 8187 give me:

rtl8187 53248 0
mac80211 216820 1 rtl8187
eeprom_93cx6 10240 1 rtl8187
cfg80211 32392 2 rtl8187,mac80211
usbcore 149360 4 rtl8187,usbhid,uhci_hcd

When I first bootup, my wifi works fine then unexpectedly stops connecting and I have to reboot. The Linux Mint forum says it's the driver. Since my dongle is a Realtek 8187B, what should I do here?
 
Old 03-05-2009, 09:18 PM   #7
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Original Poster
Rep: Reputation: 30
I found a site that explained how to install the Win98 driver using ndiswrapper and got the following result in the terminal:

$ ndiswrapper -l
net8187b : driver installed
device (0BDA:8189) present (alternate driver: rtl8187)

Does this mean the Win98 driver is installed and the old rtl8187 isn't?
 
  


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
My wifi doesn't work after re-installing Zenwalk 5.0- RT61 driver, D-link DWL-G510 MilesMayhem Linux - Newbie 1 01-27-2008 06:55 PM
need help installing RT61 Linux driver (wifi pci card) blackdalek Mandriva 10 09-28-2006 08:38 PM
installing a wifi driver gives no such file or directory. please help zonemikel Linux - Hardware 13 09-07-2006 10:48 AM
Installing a driver for an internal wifi card flipflop Linux - Hardware 1 10-03-2005 02:03 PM
Installing new driver for Wifi (prism2) monitor mode.. ? kenmasters Linux - Newbie 6 08-30-2005 02:12 PM


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