Jump to content

10.1 community - Nvidia driver problems


lets-eat-gary
 Share

Recommended Posts

Hi Just upgraded to 10.1 community and for the 1st time ever i cannot get the nvidia drivers to install.

I have never had a problems before (mandrake 9 -10 ).

 

I have tried both 1.0-6106 & 1.0-6111 verstions (the 1.0-6106 worked in mandrake 10)

 

I have instaled the kernel-source and i have also tried the --extract-only , then make install and get the same reults.

 

I have a Nvidia geforce 3 ti 200.

 

Here is my log.

 

------------------------------------------------------------------------------------------------------------------------

nvidia-installer log file '/var/log/nvidia-installer.log'

creation time: Tue Sep 21 13:58:35 2004

 

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 : false

no questions : false

silent : false

X install prefix : /usr/X11R6

OpenGL install prefix : /usr

Installer install prefix: /usr

kernel source path : (not specified)

kernel install path : (not specified)

proc mount point : /proc

ui : (not specified)

tmpdir : /root/tmp

ftp site : ftp://download.nvidia.com

 

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: No)

-> No precompiled kernel interface was found to match your kernel; this means

that the installer will need to compile a new kernel interface.

-> Kernel source path: '/lib/modules/2.6.8.1-10mdk/build'

-> Performing cc_version_check with CC="cc".

-> Performing rivafb check.

-> Performing rivafb module check.

WARNING: Your kernel was configured to include rivafb support as

a loadable kernel module.

 

The rivafb driver conflicts with the NVIDIA driver; the

NVIDIA kernel module will still be built and installed,

but be aware that the NVIDIA driver will not be able to

function properly if the rivafb module is loaded!

-> Cleaning kernel module build directory.

executing: 'cd ./usr/src/nv; make clean'...

rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interfa

ce.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 *~

-> Building kernel module:

executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.8.1-10mdk/b

uild SYSOUT=/lib/modules/2.6.8.1-10mdk/build'...

Your kernel was configured to include rivafb support as

a loadable kernel module.

 

The rivafb driver conflicts with the NVIDIA driver; the

NVIDIA kernel module will still be built and installed,

but be aware that the NVIDIA driver will not be able to

function properly if the rivafb module is loaded!

 

*** Failed rivafb module sanity check, but continuing! ***

 

 

NVIDIA: calling KBUILD...

make -C /lib/modules/2.6.8.1-10mdk/build \

KBUILD_SRC=/usr/src/linux-2.6.8.1-10mdk KBUILD_VERBOSE=1 \

KBUILD_CHECK= KBUILD_EXTMOD="/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-

pkg1/usr/src/nv" \

-f /usr/src/linux-2.6.8.1-10mdk/Makefile modules

mkdir -p /root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp

_versions

make -f /usr/src/linux-2.6.8.1-10mdk/scripts/Makefile.build obj=/root/tmp/se

lfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv

echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/tmp/selfgz579

3/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv_compiler.h

cc -Wp,-MD,/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/

.nv.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/

usr/src/linux-2.6.8.1-10mdk/include -I/root/tmp/selfgz5793/NVIDIA-Linux-x86

-1.0-6111-pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-stri

ct-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -fno

-unit-at-a-time -march=i686 -I/usr/src/linux-2.6.8.1-10mdk/include/asm-i386/

mach-default -Iinclude/asm-i386/mach-default -O2 -Wdeclaration-after-stateme

nt -I/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -

Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -W

pointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-

error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LO

OSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSI

ON=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UD

EBUG -U_DEBUG -DNDEBUG -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS

_SIMPLE_PRESENT -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o

/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.o /root/tm

p/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c

/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c: In func

tion `nv_acpi_event':

/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: er

ror: `PM_SAVE_STATE' undeclared (first use in this function)

/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: er

ror: (Each undeclared identifier is reported only once

/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: er

ror: for each function it appears in.)

make[4]: *** [/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv

/nv.o] Error 1

make[3]: *** [_module_/root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/us

r/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.

----------------------------------------------------------------------------------------------------------------

 

Any ideas, cheers.

Edited by lets-eat-gary
Link to comment
Share on other sites

I haven't tried this myself yet, but check out artee's post near the end of the page here:

 

http://mandrakeusers.org/index.php?showtopic=18638&st=15

 

That's for rc-1 but apparently the same problem exists in mdk10.1 Community. Bottom line, it appears you have to patch the kernel before you can install the nvidia driver. Really sucks that they didn't fix this since the problem existed in rc-1.

Link to comment
Share on other sites

There was a change to kernel header file include/linux/pm.c in kernels 2.6.8.1-5mdk and later that breaks Nvidia's driver code in MDK10.1-CE.

root/tmp/selfgz5793/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: er

ror: `PM_SAVE_STATE' undeclared (first use in this function)

 

To fix this problem. unpack the Nvidia driver files using the NVIDIA-Linux-x86-1.0-6111-pkg1.run --extract-only command, then edit the file NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c to change PM_SAVE_STATE to PM_SUSPEND at line 3697. Then run ./nvidia-installer from directory NVIDIA-Linux-x86-1.0-6111-pkg1. The driver should now compile and install successfully (at least it did for me).

 

There are a few other problems you may run into.

 

The nvidia driver module will load if and only if it is compiled with the correct kernel-source matching your running kernel AND the same /usr/src/linux .config file. During the compile a magic string is created that contains the value of uname -r, the machine arch type (e.g. 686, K7) and gcc version (e.g. gcc-3.4). If any of these don't match the module will fail to load and you will get an 'invalid' module message. You can check the exact value of the magic string by running the command "strings nv.ko | fgrep vermagic" on the file in the Nvidia source directory (you can also run this on any .ko file in /lib/modules ).

 

I found that the X server will fail to load the NVIDIA driver after a system reboot. To work around this add nvdia to /etc/modprobe.preload.

 

Finally, Nvidia expects the files /dev/nvdia0 and /dev/nvdiactl to have permissions 0666. By default, they are set to 0660 by udev. To fix this, edit /etc/udev/permission.d/00-udev.permissions and change the line for nvidia to read: nvidia*:root:video:0666 . It would probably be better to change the ownership of the devices but I haven't researched how to do this with udev yet.

 

Good luck

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...