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 |
Quote:
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. |
You should already have the kernel module installed.
run "modprobe r8169" and see if that loads. It should have come prebuilt with fedora 3. |
Quote:
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. |
Quote:
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 .. Code:
[root@penguinux r8169-6.007.00]# depmode -a Code:
[root@penguinux r8169-6.007.00]# insmod ./src/r8169.ko |
Support for that driver has been in the kernel since Fedora 7.
|
Quote:
In that case - my first advise stands... upgrade the distro. FC3 is way wayy too old. @penguinux: how are you getting on? |
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.
|
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. |