Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-17-12, 05:04 PM   #1
pjwhite
Registered User
 
Join Date: May 2009
Posts: 7
Question Self compiled kernels 3.5.2 & problems compiling nvidia driver 295.59

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
This installs ( dpkg -i linux-*deb ), but when I install it, I am unable to compile the nvidia driver. I am trying to install NVIDIA-Linux-x86_64-295.59, and it complains with the following error in nvidia-installer.log:

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.
Is there anything I can do? I am pretty sure all the relevant files are there. I am guessing that this kernel *might* be too new for this driver, but it seems that the check in kernel/conftest.sh only checks if LINUX_VERSION_CODE is less than 2.6.0, not greater than some value...
pjwhite is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:24 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.