nVidia driver kernel 3.10

Hello,

I’m not able to build kernel module for nVidia driver. I use driver 304.88 (last available for GeForce 6200) and kernel 3.10.1-2.gd30054a.
Here is part of log file of nvidia installer:

...
   /usr/src/linux-3.10.1-2.gd30054a/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.10.1-2.gd30054a/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
   In file included from /usr/src/linux-3.10.1-2.gd30054a/arch/x86/include/asm/uaccess.h:539:0,
                    from /usr/src/linux-3.10.1-2.gd30054a/include/linux/poll.h:11,
                    from /tmp/selfgz3057/NVIDIA-Linux-x86_64-304.88/kernel/nv-linux.h:111,
                    from /tmp/selfgz3057/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.c:15:
   /usr/src/linux-3.10.1-2.gd30054a/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
   /usr/src/linux-3.10.1-2.gd30054a/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
   /tmp/selfgz3057/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
   /tmp/selfgz3057/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
   make[4]: *** [/tmp/selfgz3057/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.o] Error 1
   make[3]: *** [_module_/tmp/selfgz3057/NVIDIA-Linux-x86_64-304.88/kernel] Error 2
   make[2]: *** [sub-make] 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.

Thanks for help.

You need to patch the nvidia driver to be able to install it on kernel 3.10.
See here f.e.: SlackBlogs: NVidia 304.88, VMWare Workstation, and Linux Kernel 3.10

I’m not able to install the patch:

socool:/home/socool/data/programy/nvidia/NVIDIA-Linux-x86_64-304.88 # patch -p1 < /home/socool/nvidia-linux-3.10.patch 
(Stripping trailing CRs from patch; use --binary to disable.)
patching file trunk/nvidia-linux-3.10.patch
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 638:  

Seems like you’ve missed some lines.
Try this link to download the patch: https://projects.archlinux.org/svntogit/packages.git/patch/trunk/nvidia-linux-3.10.patch?id=787962153c92600e8a6d0756f026e6c9a87e48f8 (right-click on the link and choose “Save as…”)

Thanks for your help. I have patched the driver and it works corectly.