|
|
#1 | |
|
Registered User
Join Date: May 2009
Posts: 7
|
So I have a need to compile my own kernel. This has been somewhat annoying & tricky to figure out, but got to the point where I can generate debs ( linux-image and linux-headers ), but have issues compiling the nvidia driver when installing them. The OS is ubuntu 10.04.
The .config and control-scripts come from the quantal git repos. I generate my kernel like this: Code:
tar xvf linux-3.5.2.tar.bz2
cd linux-3.5.2
cp ~/config-3.5.0-10-generic .config
cp ~/linux-3.5.0/debian/control-scripts/{post*}{pre*} /usr/share/kernel-package/pkg/image/
cp ~/linux-3.5.0/debian/control-scripts/header* /usr/share/kernel-package/pkg/headers/
make oldconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom1 kernel-image kernel-headers
Code:
-> Kernel source path: '/lib/modules/3.5.2-custom1/source' -> Kernel output path: '/lib/modules/3.5.2-custom1/build' ERROR: Running conftest for kernel version... If you are using a Linux 2.4 kernel, please make sure you either have configured kernel sources matching your kernel or the correct set of kernel headers installed on your system. If you are using a Linux 2.6 kernel, please make sure you have configured kernel sources matching your kernel installed on your system. If you specified a separate output directory using either the "KBUILD_OUTPUT" or the "O" KBUILD parameter, make sure to specify this directory with the SYSOUT environment variable or with the equivalent nvidia-installer command line option. Depending on where and how the kernel sources (or the kernel headers) were installed, you may need to specify their location with the SYSSRC environment variable or the equivalent nvidia-installer command line option. |
|
|
|
|
![]() |
| Thread Tools | |
|
|