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

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-02-11, 06:36 AM   #1
odin89
Registered User
 
Join Date: Jun 2011
Posts: 6
Default Driver 256.53 on Ubuntu Natty

Hello,

I tried to install the driver 256.53 on my new Linux Mint 11 (based on natty) because with the 270 Driver I have tearing problems with my Movies.
But when i run the installer i got the following error:
ERROR: Unable to build the NVIDIA kernel module.

Here´s the log file:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jun  2 12:24:27 2011
installer version: 256.53

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
  no cc version check     : false
  force tls               : (not specified)
  force compat32 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)
  compat32 install chroot : (not specified)
  compat32 install prefix : (not specified)
  compat32 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.
-> Installing NVIDIA driver version 256.53.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Continue installation 
   anyway? (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.38-8-generic/build'
-> Kernel output path: '/lib/modules/2.6.38-8-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/2.6.38-8-generic/bu
   ild SYSOUT=/lib/modules/2.6.38-8-generic/build'...
   NVIDIA: calling KBUILD...
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
   	echo;								\
   	echo "  ERROR: Kernel configuration is invalid.";		\
   	echo "         include/generated/autoconf.h or include/config/auto.conf are
   missing.";\
   	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";	\
   	echo;								\
   	/bin/false)
   mkdir -p /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/.tmp_versions ; r
   m -f /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/.tmp_versions/*
   make -f scripts/Makefile.build obj=/tmp/selfgz3290/NVIDIA-Linux-x86_64-256.5
   3/kernel
     cc -Wp,-MD,/tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/.nv.o.d  -nos
   tdinc -isystem /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include 
   -I/usr/src/linux-headers-2.6.38-8-generic/arch/x86/include -Iinclude  -inclu
   de include/generated/autoconf.h -Iubuntu/include  -D__KERNEL__ -Wall -Wundef
   -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-
   implicit-function-declaration -Wno-fo
   rmat-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-r
   ed-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-
   protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_S
   ECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-un
   wind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 
   -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-
   statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_
   ASM_GOTO -I/tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel -Wall -MD -Wsig
   n-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSIO
   N_STRING=\"256.53\" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG 
   -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD
   _MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.5
   3/kernel/.tmp_nv.o /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c
   In file included from include/linux/kernel.h:17:0,
                    from include/linux/sched.h:55,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv-l
   inux.h:27,
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c
   :13:
   include/linux/bitops.h: In function ‘hweight_long’:
   include/linux/bitops.h:49:41: warning: signed and unsigned type in condition
   al expression
   In file included from /usr/src/linux-headers-2.6.38-8-generic/arch/x86/inclu
   de/asm/uaccess.h:573:0,
                    from include/linux/poll.h:14,
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv-l
   inux.h:84,
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c
   :13:
   /usr/src/linux-headers-2.6.38-8-generic/arch/x86/include/asm/uaccess_64.h: I
   n function ‘copy_from_user’:
   /usr/src/linux-headers-2.6.38-8-generic/arch/x86/include/asm/uaccess_64.h:54
   :6: warning: comparison between signed and unsigned integer expressions
   /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c: At top level:
   /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c:426:5: error: unknown
   field ‘ioctl’ specified in initializer
   /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c:426:5: warning: initi
   alization from incompatible pointer type
   make[3]: *** [/tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.o] Fehler
   1
   make[2]: *** [_module_/tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel] Feh
   ler 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Fehler 1
   make: *** [module] Fehler 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.
Can someone please help me?

odin89
odin89 is offline   Reply With Quote
Old 06-02-11, 04:48 PM   #2
stecklum
Registered User
 
Join Date: Feb 2009
Posts: 56
Default Re: Driver 256.53 on Ubuntu Natty

Hi odin89,

I use this driver with 2.6.38-9 kernel, and install works like a charm. I don't invoke the NVIDIA run file but extract its contents first, and install then with sudo ./nvidia-installer -b --no-opengl-headers

Regards, Bringfried
stecklum is offline   Reply With Quote
Old 06-03-11, 08:07 AM   #3
KDE
Registered User
 
Join Date: Nov 2007
Posts: 50
Default Re: Driver 256.53 on Ubuntu Natty

This patch for nvidia-drivers could help
Code:
--- kernel/nv.c.orig    2010-09-06 14:45:15.854189159 +0200
+++ kernel/nv.c 2010-09-06 14:45:35.972189393 +0200
@@ -423,9 +423,10 @@
 static struct file_operations nv_fops = {
     .owner     = THIS_MODULE,
     .poll      = nv_kern_poll,
-    .ioctl     = nv_kern_ioctl,
 #if defined(HAVE_UNLOCKED_IOCTL)
     .unlocked_ioctl = nv_kern_unlocked_ioctl,
+#else
+    .ioctl     = nv_kern_ioctl,
 #endif
 #if defined(NVCPU_X86_64) && defined(HAVE_COMPAT_IOCTL)
     .compat_ioctl = nv_kern_compat_ioctl,
KDE is offline   Reply With Quote
Old 06-07-11, 10:09 AM   #4
odin89
Registered User
 
Join Date: Jun 2011
Posts: 6
Default Re: Driver 256.53 on Ubuntu Natty

sorry for my late answer.
When I extract the Driver first and then install doesnt work.
How do i use the Patch?
odin89 is offline   Reply With Quote
Old 06-07-11, 11:57 AM   #5
stecklum
Registered User
 
Join Date: Feb 2009
Posts: 56
Default Re: Driver 256.53 on Ubuntu Natty

Save the patch to a file, say nv_patch. Then change to the directory of the extracted driver, and do

cat path_to_nv_patch/nv_patch | patch -p1

this will apply the patch (you might use "--dry-run" beforehand as another argument to patch to see whether it applies fine). Then go ahead and compile. Good luck! Bringfried
stecklum is offline   Reply With Quote
Old 06-07-11, 12:09 PM   #6
odin89
Registered User
 
Join Date: Jun 2011
Posts: 6
Default Re: Driver 256.53 on Ubuntu Natty

thank you for the answer.
When I do it i get the following in the Terminal
Code:
patching file /home/odin/Downloads/nvidia/kernel/nv.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 423 with fuzz 1.
I think thats not correct. Or am i wrong?
odin89 is offline   Reply With Quote
Old 06-07-11, 04:35 PM   #7
stecklum
Registered User
 
Join Date: Feb 2009
Posts: 56
Default Re: Driver 256.53 on Ubuntu Natty

Strange. If the patch succeeded indeed, you should just try to compile the driver, and see what happens. BTW. I tried the patch as well but it was already included in my distribution for whatever reason. You might try with the attached nv.c file the above attempt fails. Regards.
Attached Files
File Type: gz nv.c.gz (32.6 KB, 85 views)
stecklum is offline   Reply With Quote
Old 06-07-11, 06:25 PM   #8
odin89
Registered User
 
Join Date: Jun 2011
Posts: 6
Default Re: Driver 256.53 on Ubuntu Natty

thanks with your nv.c i can install the driver. but the module doesnt load because the Version of the X-Server is to new
odin89 is offline   Reply With Quote

Old 06-07-11, 07:34 PM   #9
stecklum
Registered User
 
Join Date: Feb 2009
Posts: 56
Default Re: Driver 256.53 on Ubuntu Natty

Too bad. I cannot help with that since I am still using Intrepid, with a 2.6.38 kernel though.
stecklum is offline   Reply With Quote
Old 06-07-11, 07:41 PM   #10
odin89
Registered User
 
Join Date: Jun 2011
Posts: 6
Default Re: Driver 256.53 on Ubuntu Natty

well i tried the 270 Driver again and now i have no tearing.
I disabled Composite and Dithering in the xorg.conf and it works. With older Driver it works without these options. But big thanks anyway
odin89 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:53 PM.


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