View Single Post
Old 09-04-02, 08:13 PM   #6
Registered User
Join Date: Aug 2002
Location: mallorca
Posts: 65
Default compiling Kernel with Mandrake beta

There is Mandrake 9.0 rc1 ( and posibly rc2 )

When I tried Mandrake betas, I ever had problems for compiling a kernel.

1. Kernel source is not distributed in beta disk

If Kernel source isn't in disk ( I now use RedHat ) download it from

or another mirror

If you only want to compile Nvidia driver, you need Kernel-headers, but not kernel-source. If you dont install kernel-source, have to do 2 symbolic links
/usr/include/linux -> /usr/src/linux/include/linux
/usr/include/asm -> /usr/src/linux/include/asm (or asm-i386 if asm doesnt exit)

I have compiled kernel always, not compile only Nvidia driver.

If you could compile kernel, then installing NVdriver is easy.

Download srpms, instead of rpm

You need to have installed rpm-build too

execute "rpm --rebuild *.srpm"
or "rpmbuild --rebuild *.srpm"

If all is OK, you will have your own RPM's, in.... /usr/src/RPMS/RPMS/ix86 , I don't remember path...

now, install them, with rpm -i where/your/files/are/*.rpm

If you compiled a kernel version diferent that you currently execute, kernel-driver will install in current kernel-directories.
ex, if you run 2.4.18-11, and compile 2.4.18-11custom ( version in /usr/src/linux/Makefile) your Nvidia driver will install in /lib/modules/2.4.18/.... not in 2.4.18custom directory.

Use export TARGET_KERNEL=2.4.18-11custom
or your kernel-version destination before recompile NVidia-kernel

When you have compiled and installed, have to modify manually /etc/X11/XF86Config

And this is ALL ( I hope )
utiel is offline   Reply With Quote