LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-28-2008, 12:29 PM   #1
Zabzoo
LQ Newbie
 
Registered: Mar 2007
Location: Pretoria, South Africa
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 16
Network Card Driver Installation on Gutsy (TP-LINK TG-3269)


I request assistance as I am completely new to installing drivers on Ubuntu Linux.

If I am omitting any information, please request it from me!!

I got the drivers with the disc in the folder, this is the files and folder structure -

Code:
Linux-2.4.x  or Linux-2.6.x/Makefile
Linux-2.4.x  or Linux-2.6.x/README
Linux-2.4.x  or Linux-2.6.x/src/Makefile
Linux-2.4.x  or Linux-2.6.x/src/Makefile_linux24x
Linux-2.4.x  or Linux-2.6.x/src/Makefile_linux26x
Linux-2.4.x  or Linux-2.6.x/r8169_n.c
I copied those files to /home/name/drivers.

The README file contains the following instructions -

Quote:
RTL8169s/8110s Linux kernel driver>

Version: 2.2
Date: 2004-08-09

This is the Linux kernel driver released for
RealTek RTL8169s/8110s Gigabit Ethernet controller.

<Requirements>

- kernel source tree (supported versions 2.4.x or 2.6.x)
- compiler/binutils for kernel compilation

<Quick install with proper kernel settings>

Unpack the tarball :
unzip rtl8169_8110S_linuxdrv_vxx.zip

Change to the directory:
cd rtl8169_8110S_linuxdrv

If you are running the target kernel, then you should be
able to do :

make clean modules (as root or with sudo)
make install
depmod -a
The file (marked in red) is nowhere located on the disc.

When I run sudo make clean modules, I am presented with the following ¨errored¨ information -

Code:
make -C src/ clean
make[1]: Entering directory `/home/magnus/drivers/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/home/magnus/drivers/src'
make -C src/ modules
make[1]: Entering directory `/home/magnus/drivers/src'
make -C /lib/modules/2.6.22-14-rt/build SUBDIRS=/home/magnus/drivers/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.22-14-rt/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/magnus/drivers/src'
make: *** [modules] Error 2
After trying make install, more errors are displayd and when I do depmod -a nothing happens.

I used to have a working 10/100 Network card in the machine that works perfectly, but I now upgraded my lan to a gigabit lan and installed this NIC, but I can´t get the drivers to work.

What other information do you need; please provide me with assistance - I will really appreciate it.
 
Old 03-28-2008, 03:32 PM   #2
Zabzoo
LQ Newbie
 
Registered: Mar 2007
Location: Pretoria, South Africa
Distribution: Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 16
I figured out the first problem, but were immediately faced with more problems after solving this.

I've learned that you cannot compile/build without having the linux headers install for your kernel, especially on Ubuntu. A symptom of this problem is that the make program needs information located in a folder on your Ubuntu machine called .../build which is located in /lib/modules/$(uname -r)/build where $(uname -r) substitutes the directory name with the version of your kernel.

After some reading i found that you need to run this command to install the Kernel Headers for your version of linux

sudo apt-get install linux-headers-$(uname -r)

Notice that after this, the following directory now exists

/lib/modules/$(uname -r)/build

AFter installing the Kernel Headers I was able to get more out of running the make command, but now I am faced with more problems!!!
 
Old 03-28-2008, 04:57 PM   #3
Zabzoo
LQ Newbie
 
Registered: Mar 2007
Location: Pretoria, South Africa
Distribution: Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 16
I am using a Compaq EVO D310 - for some reason, even if I disable the NIC in the CMOS it remains active in linux.

I realised that linux already detected the NIC as a Realtek RTL8169 - so there is no need to build the driver --- Thanks Ubuntu Gutsy;

I typed sudo ifconfig eth1 up and linux added the device; however my dhcp server does not yet assign an ip for that interface (cable is plugged in)

I will experiment more and update as I go along!
 
Old 03-28-2008, 05:37 PM   #4
Zabzoo
LQ Newbie
 
Registered: Mar 2007
Location: Pretoria, South Africa
Distribution: Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 16
i guess we can change the topic - because i was able to get it installed; I am having difficulty, because the CMOS does not disable the onboard NIC, so i am stuck with eth0 and eht1 - but (even though the cable is plugged in) I am unable to get an IP for eth1; I think I am tired and not thinking straight anylonger - been at it for 9 hours now!
 
Old 04-05-2008, 02:20 PM   #5
mcun
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Hey Zabzoo ... I'm having the same problem as you do ... and I've tried to follow your instructions, but I'm getting errors. (During the make -C src/ modules thing).

Please PM me if you would like to help me.
 
Old 06-26-2008, 09:31 PM   #6
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Quote:
Originally Posted by Zabzoo View Post
I am unable to get an IP for eth1
Have you actually asked the server for a DHCP lease?
Code:
sudo dhcpcd eth1
(I know this is an old thread, but there's no resolution, so even if it doesn't help the O/P, it might help someone else Googling one day)

Last edited by fukawi2; 06-26-2008 at 09:34 PM.
 
  


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
How to compile D-Link DFE530TX network card driver in RH Linux 7.3 zy101 Linux - Hardware 6 04-25-2008 09:16 AM
Etch continue loading old network card driver after new driver installation rtmex Linux - Networking 3 11-27-2007 07:07 AM
statically link a network card driver into kernel stonux Linux - Hardware 0 04-07-2005 03:57 PM
D-Link DFE550-TX driver installation opossum Debian 2 02-22-2005 06:02 AM
D-Link PCI Network Card driver installation help Kaiser Linux - Networking 9 09-09-2003 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:44 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
Open Source Consulting | Domain Registration