realtek 8169 driver installation problem in fedora3
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.