LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-22-2008, 04:34 AM   #1
penguinux
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
Arrow realtek 8169 driver installation problem in fedora3


Hello everyone,

i have fedora core3 dual boot with windows XP. im installing the driver of realtek RTL8169 ethernet card on fedora core 3 (kernel 2.6.9) and facing the following error:


[root@penguinux ~]# cd ..
[root@penguinux /]# cd usr/src/
[root@penguinux src]# cd r8169-6.007.00
[root@penguinux r8169-6.007.00]# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_version s Module.symvers Modules.symvers rset modules.order
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
make -C /lib/modules/2.6.9-1.667smp/build SUBDIRS=/usr/src/r8169-6.007.00/src mo dules
make[2]: Entering directory `/lib/modules/2.6.9-1.667smp/build'
CC [M] /usr/src/r8169-6.007.00/src/r8169_n.o
/usr/src/r8169-6.007.00/src/r8169_n.c: In function `rtl8169_tx_clear':
/usr/src/r8169-6.007.00/src/r8169_n.c:3078: warning: unused variable `dev'
/usr/src/r8169-6.007.00/src/r8169_n.c: At top level:
/usr/src/r8169-6.007.00/src/r8169_n.c:2296: warning: `rtl8169_phy_power_down' de fined but not used
LD [M] /usr/src/r8169-6.007.00/src/r8169.o
Building modules, stage 2.
MODPOST
Warning: could not find versions for .tmp_versions/r8169.mod
CC /usr/src/r8169-6.007.00/src/r8169.mod.o
LD [M] /usr/src/r8169-6.007.00/src/r8169.ko
make[2]: Leaving directory `/lib/modules/2.6.9-1.667smp/build'
strip --strip-debug r8169.ko
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
[root@penguinux r8169-6.007.00]# make install
make -C src/ install
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
install -m 744 -c r8169.ko /lib/modules/2.6.9-1.667smp/kernel/drivers/net/
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
[root@penguinux r8169-6.007.00]# depmode -a
bash: depmode: command not found
[root@penguinux r8169-6.007.00]# depmod
[root@penguinux r8169-6.007.00]# depmod -a
[root@penguinux r8169-6.007.00]# insmod ./src/r8169.ko
insmod: error inserting './src/r8169.ko': -1 Invalid module format
[root@penguinux r8169-6.007.00]#


please tell me how to get through this thing, im new in linux. thank u beforehand

./penguinux

Last edited by penguinux; 09-22-2008 at 04:51 AM. Reason: more accurate
 
Old 09-22-2008, 05:39 AM   #2
shvnsen
Member
 
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Rep: Reputation: 15
Quote:
Originally Posted by penguinux View Post
Hello everyone,

i have fedora core3 dual boot with windows XP. im installing the driver of realtek RTL8169 ethernet card on fedora core 3 (kernel 2.6.9) and facing the following error:


[root@penguinux ~]# cd ..
[root@penguinux /]# cd usr/src/
[root@penguinux src]# cd r8169-6.007.00
[root@penguinux r8169-6.007.00]# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_version s Module.symvers Modules.symvers rset modules.order
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
make -C /lib/modules/2.6.9-1.667smp/build SUBDIRS=/usr/src/r8169-6.007.00/src mo dules
make[2]: Entering directory `/lib/modules/2.6.9-1.667smp/build'
CC [M] /usr/src/r8169-6.007.00/src/r8169_n.o
/usr/src/r8169-6.007.00/src/r8169_n.c: In function `rtl8169_tx_clear':
/usr/src/r8169-6.007.00/src/r8169_n.c:3078: warning: unused variable `dev'
/usr/src/r8169-6.007.00/src/r8169_n.c: At top level:
/usr/src/r8169-6.007.00/src/r8169_n.c:2296: warning: `rtl8169_phy_power_down' de fined but not used
LD [M] /usr/src/r8169-6.007.00/src/r8169.o
Building modules, stage 2.
MODPOST
Warning: could not find versions for .tmp_versions/r8169.mod
CC /usr/src/r8169-6.007.00/src/r8169.mod.o
LD [M] /usr/src/r8169-6.007.00/src/r8169.ko
make[2]: Leaving directory `/lib/modules/2.6.9-1.667smp/build'
strip --strip-debug r8169.ko
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
[root@penguinux r8169-6.007.00]# make install
make -C src/ install
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
install -m 744 -c r8169.ko /lib/modules/2.6.9-1.667smp/kernel/drivers/net/
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
[root@penguinux r8169-6.007.00]# depmode -a
bash: depmode: command not found
[root@penguinux r8169-6.007.00]# depmod
[root@penguinux r8169-6.007.00]# depmod -a
[root@penguinux r8169-6.007.00]# insmod ./src/r8169.ko
insmod: error inserting './src/r8169.ko': -1 Invalid module format
[root@penguinux r8169-6.007.00]#


please tell me how to get through this thing, im new in linux. thank u beforehand

./penguinux

Hi
If u have any tar.gz file then unzip it and then enter into the directory and then do make and after then do make install.
then note this line /lib/modules/<kernel-version>kernel/drivers/..
it will specify the path where it has installed that particular driver as module and then do insmod to insert the module into the kernel.
I hope this helps.
 
Old 09-22-2008, 05:43 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
You should already have the kernel module installed.
run "modprobe r8169" and see if that loads. It should have come prebuilt with fedora 3.
 
Old 09-22-2008, 05:47 AM   #4
shvnsen
Member
 
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Rep: Reputation: 15
Quote:
Originally Posted by whansard View Post
You should already have the kernel module installed.
run "modprobe r8169" and see if that loads. It should have come prebuilt with fedora 3.
yes that could be the possibility iff u have actually checked that particular driver as Module while setting the configuration.

U can check the particular module by this command locate 8169 and it will list the all the module names just post the result of this command.
 
Old 09-22-2008, 06:24 PM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by penguinux View Post
Hello everyone,

i have fedora core3 dual boot with windows XP. im installing the driver of realtek RTL8169 ethernet card on fedora core 3 (kernel 2.6.9) and facing the following error:
Well... there will be problems right there... you are using an ultra-legacy distro.

So.

1. Do you have a compelling reason to continue struggling with such an old distro? If not - upgrade. Most of your problems will vanish right there.

2. Where did you get the driver from?
Somehow you got some source code/tree and put it in /usr/src/r8169-6.007.00, then attempted to run the top level makefile.

3. Why try compile a new driver at all? What are you trying to achieve?

It helps to know how the code got there, and which kernel you are compiling against. However - from below, you don't have a compile problem.

Code:
[root@penguinux ~]# cd ..
[root@penguinux /]# cd usr/src/
[root@penguinux src]# cd r8169-6.007.00
[root@penguinux r8169-6.007.00]# make clean modules
<color=brown>[snip]</color>
Warning: could not find versions for .tmp_versions/r8169.mod
  CC      /usr/src/r8169-6.007.00/src/r8169.mod.o
  LD [M]  /usr/src/r8169-6.007.00/src/r8169.ko
<color=brown>[snip]</color>
[root@penguinux r8169-6.007.00]# make install
make -C src/ install
make[1]: Entering directory `/usr/src/r8169-6.007.00/src'
install -m 744 -c r8169.ko /lib/modules/2.6.9-1.667smp/kernel/drivers/net/
make[1]: Leaving directory `/usr/src/r8169-6.007.00/src'
All this means the module compiled correctly

Code:
[root@penguinux r8169-6.007.00]# depmode -a
bash: depmode: command not found
[root@penguinux r8169-6.007.00]# depmod
[root@penguinux r8169-6.007.00]# depmod -a
Good - you think about, and correct, your own mistakes.

Code:
[root@penguinux r8169-6.007.00]# insmod ./src/r8169.ko
insmod: error inserting './src/r8169.ko': -1 Invalid module format
This is the important error - perhaps you are trying to install the latest version of the driver?

Last edited by Simon Bridge; 09-22-2008 at 06:26 PM.
 
Old 09-22-2008, 06:31 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Support for that driver has been in the kernel since Fedora 7.
 
Old 09-23-2008, 12:26 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by jay73 View Post
Support for that driver has been in the kernel since Fedora 7.
Not as early as fedora 3? Oh well.

In that case - my first advise stands... upgrade the distro. FC3 is way wayy too old.

@penguinux: how are you getting on?

Last edited by Simon Bridge; 09-23-2008 at 12:28 AM.
 
Old 09-23-2008, 10:57 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
I still have an old copy of kernel 2.6.11 on my machine and it has support for that card in it. He doesn't to upgrade his whole system if just a slightly newer kernel would take care of it. He might can find a rpm of a slightly newer kernel for fedora 3, or use the .config from his old kernel, run make oldconfig with it and compile.
 
Old 09-24-2008, 04:10 AM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Here's a walkthru for upgrading the kernel specific for what you have. Fedora Core 3.


http://www.unix.com/tips-tutorials/3...compiling.html
 
  


Reply

Tags
driver, installation, realtek



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
Realtek 8139/8168/8169 on 2.6.21.3 or newer Gato Azul Linux - Networking 6 05-05-2009 09:56 PM
installing Realtek 8169 NIC on Redhat ...? adelshehri Linux - Hardware 1 08-30-2007 06:49 AM
Debian not seeing my Realtek 8169 nic teh_zero Linux - Networking 7 05-05-2007 06:32 PM
Realtek 8169 NIC Not Recognised dodgydodgy Linux - Networking 7 01-19-2007 02:19 AM
Realtek 8169 no ip with DHCP on SuSE 10 hendrixx Linux - Hardware 0 04-01-2006 06:10 PM

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

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