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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-23-08, 12:59 PM   #1
dhawalthakker
Registered User
 
Join Date: Sep 2008
Posts: 2
Default GeForce 9200M GS + 2.6.27-rc6

I tried to install nvidia drivers on above kernel it comes up with compilation error.
I tried NVIDIA-Linux-x86-169.12-pkg1.run and
NVIDIA-Linux-x86-173.14.12-pkg1.run.

Error ------


In file included from /tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/us
r/src/nv/nv.c:14:
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv-linux.h:10
7:27: error: asm/semaphore.h: No such file or directory
In file included from /tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/us
r/src/nv/nv-linux.h:109,
from /tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/us
r/src/nv/nv.c:14:
include/linux/highmem.h: In function 'zero_user_segments':
include/linux/highmem.h:134: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:134: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:134: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:134: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:137: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:137: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:137: warning: pointer of type 'void *' used in arith
metic
include/linux/highmem.h:137: warning: pointer of type 'void *' used in arith
metic
In file included from /tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/us
r/src/nv/nv.c:14:
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv-linux.h: I
n function 'nv_execute_on_all_cpus':
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv-linux.h:66
7: error: too many arguments to function 'on_each_cpu'
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c: In func
tion 'nvos_proc_create':
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:614: err
or: 'proc_root_driver' undeclared (first use in this function)
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:614: err
or: (Each undeclared identifier is reported only once
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:614: err
or: for each function it appears in.)
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c: In func
tion 'nv_kern_cpu_callback':
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:1289: er
ror: too many arguments to function 'smp_call_function'
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:1296: er
ror: too many arguments to function 'smp_call_function'
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c: In func
tion 'nv_kern_vma_nopage':
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:1834: er
ror: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c: At top
level:
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:1841: er
ror: unknown field 'nopage' specified in initializer
/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv/nv.c:1841: wa
rning: initialization from incompatible pointer type
make[4]: *** [/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/usr/src/nv
/nv.o] Error 1
make[3]: *** [_module_/tmp/selfgz9708/NVIDIA-Linux-x86-169.12-pkg1-custom/us
r/src/nv] 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



any help would be appreciated ! ! !
dhawalthakker is offline   Reply With Quote
Old 09-23-08, 02:19 PM   #2
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: GeForce 9200M GS + 2.6.27-rc6

I've already posted in one of those threads, but:

http://forums.gentoo.org/viewtopic-p...5.html#5212035

Code:
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/nv.c NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c
--- usr/src/nv/nv.c   2008-07-18 03:42:50.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c   2008-08-12 00:35:45.000000000 +0200
@@ -1296,14 +1296,22 @@
             if (get_cpu() == cpu)
                 __nv_setup_pat_entries(NULL);
             else
+          #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+      smp_call_function(__nv_setup_pat_entries, hcpu, 1);
+      #else
                 smp_call_function(__nv_setup_pat_entries, hcpu, 1, 1);
+      #endif
             put_cpu();
             break;
         case CPU_DOWN_PREPARE:
             if (get_cpu() == cpu)
                 __nv_restore_pat_entries(NULL);
             else
+          #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+      smp_call_function(__nv_restore_pat_entries, hcpu, 1);
+      #else
                 smp_call_function(__nv_restore_pat_entries, hcpu, 1, 1);
+      #endif
             put_cpu();
             break;
     }
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/nv-linux.h NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h
--- usr/src/nv/nv-linux.h   2008-07-18 03:42:51.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h   2008-08-12 00:44:27.000000000 +0200
@@ -104,7 +104,10 @@
 #endif
 
 #include <linux/spinlock.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+#else
 #include <asm/semaphore.h>
+#endif
 #include <linux/completion.h>
 #include <linux/highmem.h>
 
@@ -665,13 +668,21 @@
 #if defined(preempt_disable)
     preempt_disable();
 #endif
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = smp_call_function(func, info, 1);
+    #else
     ret = smp_call_function(func, info, 1, 1);
+    #endif
     func(info);
 #if defined(preempt_enable)
     preempt_enable();
 #endif
 #else
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = on_each_cpu(func, info, 1);
+    #else
     ret = on_each_cpu(func, info, 1, 1);
+    #endif
 #endif
     return ret;
 }
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/os-interface.c NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c
--- usr/src/nv/os-interface.c   2008-07-18 03:42:50.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c   2008-08-12 00:48:07.000000000 +0200
@@ -48,7 +48,11 @@
 #endif
     local_bh_disable();
     atomic_set(&os_smp_barrier, 1);
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = smp_call_function(ipi_handler, NULL, 0);
+    #else
     ret = smp_call_function(ipi_handler, NULL, 1, 0);
+    #endif
 #endif
     return (ret == 0) ? RM_OK : RM_ERROR;
 }
@@ -704,7 +708,9 @@
     U032 sig
 )
 {
+    #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
     return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+    #endif
 }
 
 /*******************************************************************************/
here you go
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 09-23-08, 03:24 PM   #3
dhawalthakker
Registered User
 
Join Date: Sep 2008
Posts: 2
Default Re: GeForce 9200M GS + 2.6.27-rc6

Thanks for your message.

I have tried your patch with NVIDIA-Linux-x86-177.68-pkg1.run. And it fails!!

I hope i am using the right NVDIA driver.


Thanks.
dhawalthakker is offline   Reply With Quote
Old 09-23-08, 04:50 PM   #4
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: GeForce 9200M GS + 2.6.27-rc6

Quote:
Originally Posted by dhawalthakker View Post
Thanks for your message.

I have tried your patch with NVIDIA-Linux-x86-177.68-pkg1.run. And it fails!!

I hope i am using the right NVDIA driver.


Thanks.
of course it was prone to fail with 177.68 !

it's meant to be used with 173.* or 169.*, the other drivers you mentioned

177*, afaik don't need that patch
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 09-23-08, 05:50 PM   #5
spion
Registered User
 
Join Date: Sep 2008
Posts: 44
Default Re: GeForce 9200M GS + 2.6.27-rc6

indeed.. the 177 drivers work great with my 2.6.27-rc6 kernel.
spion 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia GeForce 301.42 WHQL drivers DSC NVIDIA Windows Graphics Drivers 5 05-29-12 11:12 PM
Enhance Max Payne 3, Diablo III with GeForce R300 Drivers News Archived News Items 0 05-22-12 07:30 PM
New GPU from Nvidia Announced Today, the GeForce GTX 670 News Archived News Items 0 05-10-12 02:50 PM
Gainward Unleashes the Sexy GeForce GTX 670 Phantom Graphics Card, Also launches the News Archived News Items 0 05-10-12 10:28 AM

All times are GMT -5. The time now is 06:09 PM.


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