LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-04-2004, 10:39 PM   #1
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Rep: Reputation: 15
Redhat 8.0 NIC Drivers


Hi everyone.
I am really in trouble. I am the newest newbie. I have just installed Redhat 8.0 and I need to know how to install my Network Card Driver. It is a Realtek RTL8169 Gigabit
I have the driver and I think I got 3 files with it a Readme which wasn't really much of a help and a "makefile" and a "r8169.c"

Thanks Brad
brad@gwsc.org.au
 
Old 01-04-2004, 10:57 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Firstly you need the kernel sources and a C compiler(GCC), you can install them from your redhat CD, and make sure the kernel sources matches your current running kernel(if you ran up2date to update the kernel you need to update the sources as well).
Then you should be able to compile the driver by running "make" in the directory, a r8169.o will be generated and you can then copy it to /lib/modules/<kernel version>/kernel/drivers/net
run "/sbin/depmod -a"
put "alias eth0 r8169" in /etc/modules.conf (or eth1 if its the second NIC)
and modify the ifup scripts (or use the network configuration tool) to activate the device.
If it didnt compile for some reason, take another look at the readme or the Makefile, maybe there's some variables you have to modify yourself (like location of kernel sources etc)
 
Old 01-06-2004, 06:22 PM   #3
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
This is what come up when I try and do the make command.

[root@localhost Brad]# make
make: *** No rule to make target `/usr/include/linux/version.h', needed by `r8169.o'. Stop.
 
Old 01-06-2004, 07:43 PM   #4
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Oki now I get a whole heap geberish and at the end it says this

make: *** [r8169.o] Error 1

Does it make any sence to any one?

Thanks Brad
 
Old 01-06-2004, 10:52 PM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
open the Makefile and try changing /usr/src/linux-2.4.18-3 to /usr/src/linux
 
Old 01-06-2004, 11:55 PM   #6
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Tried that didn't make any diff.
But then I tried to find the folder linux-2.4.18-3 or linux but nothing was under /usr/src just a Folder called Redhat.

Any thoughts
 
Old 01-07-2004, 08:10 AM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
you dont have the kernel sources installed, install them from your redhat CD
shoulld be under kernel development if you use the add/remove packages tool.
 
  


Reply



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
Compiling Drivers for a www.startech.com "UE1205CB" PCMCIA NIC in RedHat 9 vipernicus42 Linux - Newbie 1 01-31-2005 09:20 PM
Can't install drivers of a second NIC klennepette Linux - Newbie 6 04-28-2004 05:47 PM
installing nic drivers mindseye Linux - Newbie 1 10-12-2003 01:36 PM
Trying to install drivers for Linksys WUSB11 NIC v2.5 on RedHat 9 Golbez Linux - Newbie 5 04-08-2003 02:46 PM
NewBee and Nic Drivers ra2833 Linux - Networking 4 10-26-2002 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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