[SOLVED] nvidia kernel module with custom kernel
Hi,
I use Debian Squeeze with a custom kernel but I have a problem when I want to build the Nvidia kernel module. I extracted Debian's linux-source to my home directory where I compiled a custom kernel-image and kernel-headers. I used this command: Code:
MAKEFLAGS="CC=/usr/lib/ccache/gcc-4.3" make-kpkg --rootcmd fakeroot --initrd --append-to-version=-c0.6 --revision=2.6.32 kernel-image kernel-headers However, if I remove the linux-source from my home directory then I can't build the kernel module: Code:
ERROR: Unable to find the kernel source tree for the currently running kernel. |
Never mind the error. It's a standard one. You need
1. To be running a kernel 2. To have that compiled kernel source somewhere. So when you build your kernel do not run 'make clean.' If you did, go back and run make again. 3. A symlink in /lib/modules/kernel-version/build pointing to your compiled kernel source In the words of the fictional Capt.Luc Picquard "Make it so" and try again. |
Thanks business_kid, that comment helped.
So it turned out the symlink in /lib/modules/kernel-version/build was pointing to the compiled kernel source in my home directory instead of pointing to the kernel-headers in /usr/src/linux-headers-kernel-version. Creating the correct symlink solved my problem. |
All times are GMT -5. The time now is 11:55 PM. |