Compiling and Installing Drivers
Hi. This is the first time I install Debian
(and ind it works, the other times... well, you know :P). Now I'm trying to install the modules to make all my devices work.
The first divice I tried to set up was the NIC (VIA Rhine III VT6105). The drivers come with the VIA Rhine card. (source code). When trying to compile:Makefile:[don't remember the line]: *** Linux kernel source not found. Stop.
So, I checked out /usr/src/ and I found that the kernel source was not installed (The Kernel I'm using is: kernel-2.4.18-bf2.4) I tried to get the kernel source with "apt-get" (I do not have internet connection in the debian computer, so every thing I download have as source the 7 debian CD's) but I found that the kernel source I was searching for does not exist. There is just kernel-source-2.4.18 but not kernel-source-2.4.18-bf2.4 I downloaded, untared 'kernel-source-2.4.18.tar.bz2' and made a simbolic link to the source kernel directory with the name 'linux', "perhaps could work" I tought
When compiling:Makefile:34: *** Linux kernel source not configured. - missing version.h. Stop.
After do a: "make /usr/src/linux/include/version.h" and compiling again I recive:find: /lib/modules/2.4.18: No such file or directory
Makefile:107: *** Warnig: kernel source configuration (SMP)
Makefile:108: *** does not match running kernel (up)
Makefile:113: *** Continuing with build,
Makefile:114: *** resulting driver may not be what yoy want
gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -02 -pipe -I/usr/src/linux/include/ -I. -Wstrict-prototypes -fomit-frame-pinter -DVMNS -D__SMP__ -c -o rhine_main.o rhine_main.c
In file included from rhine.h:42,
/usr/src/linux/include/linux/module.h:21: linux/modversions.h: No such file or directory.
In file included from /usr/src/linux/include/linux/mm.h:4,
/usr/src/linux/include/linux/sched.h:799: conlicting types for 'kernel_thread'
/usr/include/asm/processor.h:432: previous declaration of 'kernel_thread'
make: *** [rhine_main.o] Error 1
At this point I don't know that to do, have somebody any clue of how could I install this device?
Beforehand, thank you and please forgive my bad english. Current Mood: curious