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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-30-05, 06:00 AM   #1
Xaphir
Registered User
 
Xaphir's Avatar
 
Join Date: Jun 2005
Posts: 3
Default Kernel Source Related Problem with Core 3 and 7667

I have searched the forums and I have not been able to find any information on this topic. The situation is that recently the update mirrors had kernel 2.6.12-1.1372_FC3 uploaded to them, then I installed it to get the latest kernel. I ran the Nvidia installer after updating the kernel, and it gave an error message about possibly no kernel source. Red Hat no longer supplies kernel-source packages, instead they require you to download the kernel<version>src.rpm, and then after installing it with rpm -ivh you have to go to the /usr/src/redhat/SPECS directory and run:

rpmbuild -bp --target=<arch> kernel.spec

(Where <arch> is the desired target architecture.)

According to the Fedora docs, the kernel tree will be located in /usr/src/redhat/BUILD/. Since the Nvidia installer looks for /usr/src/linux, I created a symlink to the source tree output in /usr/src/redhat/BUILD/. This made /usr/src/linux look the way it was supposed to, meaning that the source tree was there for the finding.

The Nvida installer will not compile the modules even with the above steps having been taken. The error it gives now however is different:

__________________________________________________ _________________
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Jul 29 00:51:26 2005

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : true
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel source path: '/usr/src/linux'
-> Performing CC test with CC="cc".
ERROR: 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.
ERROR: Installation has failed. Please see the file
__________________________________________________ ________________


I am at a loss here as to what to do next. Searching the forums has been unproductive for me so far. Does anyone have any suggestions as to what might be going on.

One more thing, I did actually try setting the SYSSRC environment variable, but it didn't make any difference. It's possible that I didn't do it exactly right. Also, I really didnt have any problems getting the Nvidia installer to complete until this kernel was released. Any assistance here appreciated.
Xaphir is offline   Reply With Quote
Old 07-30-05, 07:30 AM   #2
arokh
Registered User
 
arokh's Avatar
 
Join Date: Jun 2004
Posts: 287
Default Re: Kernel Source Related Problem with Core 3 and 7667

You are not required to get the kernel source. The kernel-devel packages will allow you to build external modules.
__________________
Asus A8N32-SLI : AMD64 3700+ @ 2.85GHz : 2GB PC4000 OCZ Platinum EB : 2x 7800GT SLI
arokh is offline   Reply With Quote
Old 07-30-05, 10:32 AM   #3
Xaphir
Registered User
 
Xaphir's Avatar
 
Join Date: Jun 2005
Posts: 3
Default Re: Kernel Source Related Problem with Core 3 and 7667

Quote:
Originally Posted by arokh
You are not required to get the kernel source. The kernel-devel packages will allow you to build external modules.
Historically having the kernel source installed (as long as it matches the running kernel) has always worked. I've always been able to get working Nvidia modules, until this kernel. The question that I have posed is, why is it not working now? Especially given the fact that it's always worked before now.

Other versions of the Fedora kernel have been fine with the nvidia installer, except for this one.
Xaphir is offline   Reply With Quote
Old 07-30-05, 10:54 AM   #4
Xaphir
Registered User
 
Xaphir's Avatar
 
Join Date: Jun 2005
Posts: 3
Default Re: Kernel Source Related Problem with Core 3 and 7667

I downloaded the kernel-devel package and the nvidia-installer worked. I don't understand why the source approach isn't working anymore, but at least thanks to arokh, it's working.

Thanks for the tip, arokh
Xaphir is offline   Reply With Quote
Old 07-31-05, 08:22 PM   #5
arokh
Registered User
 
arokh's Avatar
 
Join Date: Jun 2004
Posts: 287
Default Re: Kernel Source Related Problem with Core 3 and 7667

Just doing an "rpmbuild -bp kernel.spec" doesn't configure the sources like your running kernel. Better copy /boot/config-`uname -r` to $KERNEL_SRC/.config and run a "make oldconfig".
__________________
Asus A8N32-SLI : AMD64 3700+ @ 2.85GHz : 2GB PC4000 OCZ Platinum EB : 2x 7800GT SLI
arokh is offline   Reply With Quote
Old 08-01-05, 12:25 PM   #6
ctilburg
Registered User
 
Join Date: Aug 2005
Posts: 15
Default Re: Kernel Source Related Problem with Core 3 and 7667

before attempting a build in the source directory, do an 'su -'... the - is
important... if using the full installer, do an 'su -' and not an 'su'.
ctilburg 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:27 AM.


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