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 08-24-2010, 04:57 AM   #1
rodn5yn
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
Wireless Driver r8169.c


I am attempting to install drivers for Encore ENUWI-N3. Each step in the READ ME leads me to countless forums and video tutorials, due to my lack of understanding. Here is the READ ME:

1. This driver supports RealTek RTL8169s/8110s Gigabit Ethernet driver for Linux kernel 2.4.x.


2. Installation steps:
(1)Compiling r8169.c using 'Makefile'.

"make"

<NOTE>Please remember to ASSIGN "NEW_INCLUDE_PATH" in Makefile according to linux kernel.


(2)Move r8169.o to the directory "/lib/modules/<kernel>/kernel/drivers/net".

"cp r8169.o /lib/modules/<kernel>/kernel/drivers/net"

where <kernel> represents the kernel version, say 2.4.18-3 in Red Hat 7.3


(3)Insert module by

"insmod r8169.o"


(4)Check driver status

"dmesg"



3. The media can be forced to one of the 5 modes as follows.

Cmd: "insmod r8169 media = SET_MEDIA"
For example:
"insmod r8169 media = 0x04" will force PHY to operate in 100Mpbs Half-duplex.

SET_MEDIA can be:
_10_Half = 0x01
_10_Full = 0x02
_100_Half = 0x04
_100_Full = 0x08
_1000_Full = 0x10


Force media type for multiple cards could be performed as:

"insmod r8169 media=0x04,0x10"

which force PHY to operate at 100Mbps half-duplex and 1000Mbps full-duplex.

Could someone please give me step by step instructions?
 
Old 08-24-2010, 07:17 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Encore ENUWI-N3
This seems to be a USB wireless adapter, please confirm this.
Do you have a link to the manufacturer's page?

If it is a wireless USB device, then using a driver for Gigabit Ethernet will not work.

You shouldn't need to compile any modules - they should already be available.

Some Q's:

1] What distro are you using (Eg "Ubuntu 10.04")
2] What is the output of the following commands in a terminal:
Code:
lsusb
ifconfig
iwconfig
uname -a
Welcome to LQ.
 
Old 08-24-2010, 03:03 PM   #3
rodn5yn
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I'm using the driver cd that came with the hardware. When I run iwconfig, I get: lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSIDff/any
Mode:Managed Access Point: Not-Associated Tx-Power=13 dBm
Retry long limit:7 RTS thrff Fragment thrff
Power Managementn
 
Old 08-24-2010, 03:09 PM   #4
rodn5yn
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry, I didn't finish.

When I run ifconfig :ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:9b:89:b4
inet addr:192.168.2.8 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe9b:89b4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55351 errors:0 dropped:0 overruns:0 frame:0
TX packets:42888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:65648227 (65.6 MB) TX bytes:5498545 (5.4 MB)
Memory:fcec0000-fcee0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:88 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9888 (9.8 KB) TX bytes:9888 (9.8 KB)

wlan0 Link encap:Ethernet HWaddr 00:02:6f:6d:fe:dd
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lsusb: Bus 008 Device 002: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 203d:1480
Bus 002 Device 003: ID 0bda:0111 Realtek Semiconductor Corp. Card Reader
Bus 002 Device 002: ID 03f0:2504 Hewlett-Packard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

uname -a: 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
 
Old 08-24-2010, 03:11 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
You didn't answer my questions.

I even numbered some of them for you, hoping you would get the general idea.

Also, if you are going to post code (ie terminal output) please post it in CODE tags so we do not see the "smilies".

To do this, click the "Go Advanced" button in the "Quick Reply" window that you used to post your reply. Then compose your post, you can even click "Preview Post" to see if it reads OK.
 
Old 08-24-2010, 04:49 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
It looks like we cross-posted.

Thank you for the additional information but please answer:
1]
Quote:
This seems to be a USB wireless adapter, please confirm this.
Do you have a link to the manufacturer's page?
2]
Quote:
1] What distro are you using (Eg "Ubuntu 10.04")
It looks like you are running ubuntu, but which version? My ubuntu kernel is 2.6.32-24-generic, yours is 2.6.32-21-generic so have you applied the updates? System - Administration - Update Manager - Check - Install Updates.

3]
Quote:
2] What is the output of the following commands in a terminal:
iwconfig
4] Please also post the output of the command lspci in a terminal (preferably in CODE tags, so it is easier to read, see above)

I ask these questions because I am not sure about what hardware you are using, or the version of linux you are using to handle your hardware. Without this information we cannot help you with the details.

On a positive slant, it looks like your wireless chipset is recognised as
Code:
wlan0 Link encap:Ethernet HWaddr 00:02:6f:6d:fe:dd
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
But it is not being used because you have not configured it.

Meanwhile it looks like your ethernet interface is being used:
Code:
eth0 Link encap:Ethernet HWaddr 00:1b:fc:9b:89:b4
inet addr:192.168.2.8 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe9b:89b4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55351 errors:0 dropped:0 overruns:0 frame:0
TX packets:42888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:65648227 (65.6 MB) TX bytes:5498545 (5.4 MB)
Memory:fcec0000-fcee0000
So it is being seen as eth0

You will run into problems if you have two internet connections (wired and wireless) active simultaneously.

So, please just answer all my questions to you.
 
Old 08-24-2010, 07:14 PM   #7
rodn5yn
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
1. Yes. I am installing a usb adapter. Below is the manufacturer's page.
http://www.encore-usa.com/us/product/ENUWI-N3

2. I've just updated, and now running Ubuntu 10.04 (2.6.32-24)

lspci :
Code:
Linux daddy-desktop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux
daddy@daddy-desktop:~$ lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DC-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
01:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70)
02:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 220] (rev a2)
02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
 
Old 08-25-2010, 05:42 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Please unplug your ethernet cable and then boot your computer.
Open a terminal and post the output of sudo iwlist scan

Do you see your access point listed?

If so, you should be able to use network manager to connect to it.
 
  


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
Fedora 9 eth0 driver r8169 question. howserss Linux - Newbie 3 07-23-2008 08:44 PM
r8169.ko driver automatically activated, card detected but link is down arani Linux - Networking 1 02-14-2008 01:03 PM
Problem compiling r8169 driver BeGosV Linux - Networking 2 02-23-2006 03:25 PM
_very_ strange problems with r8169 nic driver outwardlymobile Linux - Hardware 3 11-24-2004 04:41 PM
Compiling r8169.c network card driver on Alpha... Minuteman Linux - Hardware 1 04-03-2004 07:59 AM


All times are GMT -5. The time now is 03:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration