Originally Posted by penguinux
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.
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.
[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
Warning: could not find versions for .tmp_versions/r8169.mod
LD [M] /usr/src/r8169-6.007.00/src/r8169.ko
[root@penguinux r8169-6.007.00]# make install
make -C src/ install
make: 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: Leaving directory `/usr/src/r8169-6.007.00/src'
All this means the module compiled correctly
[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.
[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?