Fedora Linux Support Community & Resources Center
  #1  
Old 19th November 2006, 03:28 PM
DJ Wings Offline
Registered User
 
Join Date: Nov 2006
Posts: 14
NVidia driver: kernel driver compilation

I'm new to Fedora, but have been using Linux for the past year or so. All in all, I'm impressed with FC6, but I've been having one major problem that I haven't had with other distros: installing an NVidia driver. I use a GeForce 5200FX, and the open-source "nv" driver runs obscenely slow on it (GLXGears reports 160 FPS). So, I downloaded the official driver from NVidia (8776, not 9625), and ran it. After installing the dev tools with pirut, along with the kernel source, it seemed to work fine, until the end, when it said that "building the kernel module failed", or something like that. I have the nvidia-installer.log file, but I'm posting from my other computer. I'll post it when I can. Does anyone have any advice? I'd hate to not be able to try it out because of a glitch in the kernel source (which was what the installer said was the problem, in io.h). I used "--kernel-source-path /usr/src/kernels/2.6*".
Reply With Quote
  #2  
Old 19th November 2006, 11:20 PM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
i have the same problem. i have a geforce2 gts/pro. i get the error that the kernel module could not been build. here goes an url. apparently one has to have the kernel source and linker for the current kernel available under some folder. but i have no idea how to or where to place the kernel source ann linker.
here gors an url where you might find some insight into what is happening. if you fix this, let me know how.
http://download.nvidia.com/XFree86/L...ection-03.html
also chek the "supported product" list for the card you have against these drivers
http://www.nvidia.com/object/linux_display_archive.html
some cards are no longer supported by the legacy drivers!!
Reply With Quote
  #3  
Old 19th November 2006, 11:36 PM
icydog Offline
Registered User
 
Join Date: Nov 2005
Posts: 451
Just install the kmod-nvidia package from livna?
Reply With Quote
  #4  
Old 19th November 2006, 11:43 PM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
hi ...
i did already but my geforce2 gts/pro is no longer supported by the legacy driver. thans why i decided to install the propietary nvidia driver, eventhough doing so might blow some necesary files if i were to remove the nvidia drivers later.
i would like to compile the module to ensure complete functionality. but i get that error: Unable to build the NVIDIA kernel module.
and after reading the readme file i think is because i dont have the kernel source and linker at hand at the moment of building the kernel module.... help.... i dont know how to address this...
Reply With Quote
  #5  
Old 20th November 2006, 12:50 AM
parish Offline
Registered User
 
Join Date: Feb 2005
Posts: 595
Do you have pkgconfig and xorg-x11-server-sdk installed? They're available through yum and I was unable to build/install the drivers until I installed them.

Daniel
Reply With Quote
  #6  
Old 20th November 2006, 01:30 AM
DJ Wings Offline
Registered User
 
Join Date: Nov 2006
Posts: 14
Thanks, everyone. I'll try installing those packages. Remember, I'm a newb to Fedora.
Reply With Quote
  #7  
Old 20th November 2006, 09:49 PM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
Quote:
Originally Posted by parish
Do you have pkgconfig and xorg-x11-server-sdk installed? They're available through yum and I was unable to build/install the drivers until I installed them.

Daniel

hi daniel... i am kind of new. could you please paste the necessary commands to do that.
Reply With Quote
  #8  
Old 20th November 2006, 09:56 PM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 56
Posts: 12,371
Quote:
Originally Posted by cejay
i am kind of new. could you please paste the necessary commands to do that.
Hello:
Have a read through here : http://www.fedorafaq.org/basics/#services
and here : re yum : http://www.fedorafaq.org/

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #9  
Old 21st November 2006, 12:05 AM
DJ Wings Offline
Registered User
 
Join Date: Nov 2006
Posts: 14
Use (as root):
yum install pkgconfig xorg-x11-server-sdk
I'm installing the drivers, I got the packages.
Reply With Quote
  #10  
Old 21st November 2006, 12:47 AM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
thanks steve... thanks dj
i have a operating systems exam tomorrow. so i dont think ill be able to tweak with fc6 much today. thanks for the urls steve. dj here is what i got... i dont think i have yum configured right. either that or something else.
__________________________________________________ ________________
[root@localhost ~]# yum install pkgconfig xorg-x11-server-sdk
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@localhost ~]#
__________________________________________________ ___________________

if i could get some help with compiling the proprietary drivers that would be awesome. i heard that some files that are needed to restore the xserver (if the nvidia ones are removed) are blowmed away by this approach. but i am willing to fore go these because i dont intend to remove them neither to change the kernel.

here is the log file from the nvidia installer.

__________________________________________________ ________________________________
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Nov 20 17:10:27 2006

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : 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
no kernel module : false
force SELinux : default
no X server check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
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.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.18-1.2798.fc6/source'
-> Kernel output path: '/lib/modules/2.6.18-1.2798.fc6/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.18-1.2798.f
c6/source SYSOUT=/lib/modules/2.6.18-1.2798.fc6/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.18-1.2798.fc6/build KBUILD_VERBOSE
=1 -C /lib/modules/2.6.18-1.2798.fc6/source SUBDIRS=/tmp/selfgz3687/NVIDIA-L
inux-x86-1.0-7184-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.18-1.2798.fc6/build \
KBUILD_SRC=/usr/src/kernels/2.6.18-1.2798.fc6-i686 \
KBUILD_EXTMOD="/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv" -
f /usr/src/kernels/2.6.18-1.2798.fc6-i686/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_version
s/*
make -f /usr/src/kernels/2.6.18-1.2798.fc6-i686/scripts/Makefile.build obj=/
tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz3687/NVI
DIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERN
EL__ -Iinclude -Iinclude2 -I/usr/src/kernels/2.6.18-1.2798.fc6-i686/include
-include include/linux/autoconf.h -I/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7
184-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-st
rict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-funct
ion-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log
2 -fno-builtin-puts -mpreferred-stack-boundary=2 -march=i686 -mtune=generic
-mtune=generic -mregparm=3 -ffreestanding -I/usr/src/kernels/2.6.18-1.2798.f
c6-i686/include/asm-i386/mach-generic -Iinclude/asm-i386/mach-generic -I/usr
/src/kernels/2.6.18-1.2798.fc6-i686/include/asm-i386/mach-default -I
include/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tab
les -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign
-I/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv -Wall -Wimplicit
-Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-ar
ith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual
-Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_
VERSION=0 -DNV_PATCHLEVEL=7184 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X8
6 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGP
GART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_C
HOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT
-DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=
Reply With Quote
  #11  
Old 21st November 2006, 12:47 AM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)
" -c -o /tmp/selfgz3687/NVIDIA-Li
nux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz3687/NVIDIA-Linux-x86-
1.0-7184-pkg1/usr/src/nv/nv.c
In file included from /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: No such file or directory
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:564,
from /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function ‘check_signature’:
include/asm/io.h:245: warning: wrong type argument to increment
make[4]: *** [/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [_module_/tmp/selfgz3687/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
__________________________________________________ _________________________________

like i said before. i somehow think i am missing the kernel source. but i dont know where to get it from, dont know where to put it either....

thank you ...... and help!!!
Reply With Quote
  #12  
Old 21st November 2006, 01:26 AM
DJ Wings Offline
Registered User
 
Join Date: Nov 2006
Posts: 14
DUDE... EXACT same error I'm getting! Thanks! Now, fixes...
Where's the kmod-nvidia package icydog was talking about? It sounds like what I want, but it's not in Core or Extras (as far as I can tell)...
Reply With Quote
  #13  
Old 21st November 2006, 02:39 AM
parish Offline
Registered User
 
Join Date: Feb 2005
Posts: 595
Quote:
[root@localhost ~]# yum install pkgconfig xorg-x11-server-sdk
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@localhost ~]#
The yum message "nothing to do" either means the packages can't be found in any repositories or, more likely, they're already installed. To get the kernel headers and development stuff, assuming you are running kernel-2.6.18-1.2798.fc6, use the yum command:

yum install kernel-develop-2.6.18-1.2798.fc6 kernel-headers-2.6.18-1.2798.fc6

What driver version are you installing with the nvidia installer?

Daniel
Reply With Quote
  #14  
Old 21st November 2006, 03:02 AM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
NVIDIA-Linux-x86-1.0-7184-pkg1.run
i checked against nvidia and my geforce2 gts/pro is supported under this version and it is the latest for my card.
Reply With Quote
  #15  
Old 21st November 2006, 03:05 AM
cejay Offline
Registered User
 
Join Date: Nov 2006
Posts: 10
on some other forum i read this:
Try this:


Code:
su -
yum -y install kernel-devel kernel-headers

In order to install the nvidia, samething for ati, do this after installing your kernel sources:


Code:
su -
cd /usr/src
ln -s kernels/2.6.18-1.2798.fc6-i686 linux
touch linux/include/linux/config.h

Note: replace 2.6.18-1.2798.fc6-i686 by whatever directory there is under /usr/src/kernels.

Now you are ready to install your nvidia drivers.

what you think about that last piece of code???
Reply With Quote
Reply

Tags
compilation, driver, kernel, nvidia

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver version / nvidia kernel conflict Wangberg Using Fedora 16 13th June 2007 09:57 AM
Compilation of LIRC driver fails due to missing files from kernel-devel raoul Hardware & Laptops 3 12th October 2005 11:16 AM
Intel Modem Driver compilation problems & FC4 2.6.11 kernel RAGM Using Fedora 1 30th July 2005 08:03 PM
Intel Modem Driver compilation problems & FC4 2.6.11 kernel RAGM Programming & Packaging 1 30th July 2005 08:03 PM
Intel Modem Driver compilation problems & FC4 2.6.11 kernel RAGM Hardware & Laptops 0 30th July 2005 05:28 AM


Current GMT-time: 06:25 (Thursday, 24-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletinģ Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat