Well the first one is that the Nvidia module needs to be compiled with the same C compiler as the kernel. Most people use the gnu C compiler. The current version is gcc-3.3.2. It offers better processor specific optimisations which can make programs run faster but can also make them more unstable. The kernel needs to be stable so it is recommended that you build your kernel with gcc2.95. I, for instance, have to do
Code:
export CC=/opt/gcc-2.95.3/bin/gcc
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
to compile the Nvidia driver as this overrides the default C compiler in my path (gcc-3.3.2) and tells it to use the one in /opt. Actually I don't use those commands. I got fed up of typing all those letters in and renamed it nvidia. So, fix your first problem by installing gcc-2.95. You may find it on your Linux CD's or be able to use apt-get - Is that what those commands are about? I'm not familiar with Debian. When I used to use Mandrake I'd install stuff off the CD's with the Mandrake Control Centre. If I did download an .rpm I'd just click on it to install it. I've still got stuff to learn.
So that's your first problem - get gcc-2.95 and if you've already got it, tell the Nvidia installer to use it.
Can I suggest that you rename /usr/src/kernel-source-2.4.24 /usr/src/linux?
Code:
mv /usr/src/kernel-source-2.4.24 /usr/src/linux
That's just for my convenience In thinking about what commands to tell you. You do what you want. That --kernel-source-path /usr/src/kernel-source-2.4.24 was good work.
The second problem is, I think, because the kernel sources are in their raw state. You need to configure them the same as your current kernel and build the kernel. There should (hopefully) be a copy of your kernel config in /boot
It should be a plain text file called something like config-2.4.24 and if you read it you'll see stuff like this
Code:
#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
and so on. Prepare your kernel sources{code]cd /usr/src/linux
make mrproper[/code]Copy the configuration into your kernel sources
Code:
cp /boot/config-2.4.24 /usr/src/linux/.config
and then compile them
Code:
make CC=/opt/gcc-2.95.3/bin/gcc dep
make CC=/opt/gcc-2.95.3/bin/gcc bzImage
make CC=/opt/gcc-2.95.3/bin/gcc modules
I'll stop there as you don't need to install the kernel but you're close. If you ran the command
Code:
make CC=/opt/gcc-2.95.3/bin/gcc modules_install
It would make the symbolic link that will allow the Nvidia installer to find the kernel sources but it may break something else so it's probably safer to make the link by hand.[cd /lib/modules/2.4.24
ln -sf /usr/src/linux build[/code]Then have another go at the Nvidia installer
Code:
export CC=/opt/gcc-2.95.3/bin/gcc
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
Good luck.