nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Driver 256.53 on Ubuntu Natty (http://www.nvnews.net/vbulletin/showthread.php?t=163068)

odin89 06-02-11 05:36 AM

Driver 256.53 on Ubuntu Natty

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:

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
          echo "        Run 'make oldconfig && make prepare' on kernel src to fix it
  .";        \
          echo;                                                                \
  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
    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-
  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
  _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
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c
  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
                    from include/linux/poll.h:14,
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv-l
                    from /tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel/nv.c
  /usr/src/linux-headers-2.6.38-8-generic/arch/x86/include/asm/uaccess_64.h: I
  n function ‘copy_from_user’:
  :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
  make[2]: *** [_module_/tmp/selfgz3290/NVIDIA-Linux-x86_64-256.53/kernel] Feh
  ler 2
  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?


stecklum 06-02-11 03:48 PM

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

KDE 06-03-11 07:07 AM

Re: Driver 256.53 on Ubuntu Natty
This patch for nvidia-drivers could help

--- 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,
    .unlocked_ioctl = nv_kern_unlocked_ioctl,
+    .ioctl    = nv_kern_ioctl,
 #if defined(NVCPU_X86_64) && defined(HAVE_COMPAT_IOCTL)
    .compat_ioctl = nv_kern_compat_ioctl,

odin89 06-07-11 09:09 AM

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?

stecklum 06-07-11 10:57 AM

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

odin89 06-07-11 11:09 AM

Re: Driver 256.53 on Ubuntu Natty
thank you for the answer.
When I do it i get the following in the Terminal

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?

stecklum 06-07-11 03:35 PM

Re: Driver 256.53 on Ubuntu Natty
1 Attachment(s)
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.

odin89 06-07-11 05:25 PM

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

stecklum 06-07-11 06:34 PM

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.

odin89 06-07-11 06:41 PM

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

All times are GMT -5. The time now is 11:13 PM.

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