LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network Card Driver Installation on Gutsy (TP-LINK TG-3269) (https://www.linuxquestions.org/questions/linux-networking-3/network-card-driver-installation-on-gutsy-tp-link-tg-3269-a-631288/)

Zabzoo 03-28-2008 11:29 AM

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.

Zabzoo 03-28-2008 02:32 PM

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!!!

Zabzoo 03-28-2008 03:57 PM

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!

Zabzoo 03-28-2008 04:37 PM

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!

mcun 04-05-2008 01:20 PM

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.

fukawi2 06-26-2008 08:31 PM

Quote:

Originally Posted by Zabzoo (Post 3103501)
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)


All times are GMT -5. The time now is 10:42 AM.