LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   realtek 8169 driver installation problem in fedora3 (https://www.linuxquestions.org/questions/linux-newbie-8/realtek-8169-driver-installation-problem-in-fedora3-671527/)

penguinux 09-22-2008 04:34 AM

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

shvnsen 09-22-2008 05:39 AM

Quote:

Originally Posted by penguinux (Post 3288034)
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.

whansard 09-22-2008 05:43 AM

You should already have the kernel module installed.
run "modprobe r8169" and see if that loads. It should have come prebuilt with fedora 3.

shvnsen 09-22-2008 05:47 AM

Quote:

Originally Posted by whansard (Post 3288079)
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.

Simon Bridge 09-22-2008 06:24 PM

Quote:

Originally Posted by penguinux (Post 3288034)
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?

jay73 09-22-2008 06:31 PM

Support for that driver has been in the kernel since Fedora 7.

Simon Bridge 09-23-2008 12:26 AM

Quote:

Originally Posted by jay73 (Post 3288688)
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?

whansard 09-23-2008 10:57 AM

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.

whansard 09-24-2008 04:10 AM

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


All times are GMT -5. The time now is 10:21 PM.