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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-26-07, 08:12 PM   #13
bugmeplz
*BANNED*
 
bugmeplz's Avatar
 
Join Date: Sep 2006
Posts: 427
Thumbs up Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Will NVIDIA fix it upstream?
bugmeplz is offline   Reply With Quote
Old 07-26-07, 08:17 PM   #14
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Yes, we plan on addressing this in the regular and legacy drivers, eventually.
zander is offline   Reply With Quote
Old 07-27-07, 10:18 PM   #15
snaboofypop
Registered User
 
Join Date: Aug 2003
Posts: 29
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Hi. I'm running 9639. I've patched the nv source, and am running the 2.6.23-rc1-git3 kernel. The build seems to go okay, but when I try to load the kernel, it refuses. On closer inspection, nv.c line 110 gives an error message: nv.c: At top
level:
/data/kernel/temp/nv/NVIDIA-Linux-x86-1.0-9639-pkg1/usr/src/nv/nv.c:110: err
or: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ bef
ore ‘*’ token
... so it seems that its trying to perform a mathematical product, rather than declaring a pointer (and setting its value), the line being (on my slightly modified nv.c file)
static kmem_cache_t *nv_pte_t_cache = NULL;
(lines following the first error message from other files stating that nv_pte_t_cache is undeclared. So it seems that somehow kmem_cache_t is not recognized as a data type. I can go back to 2.6.22-git2 as everything was still working then.
snaboofypop is offline   Reply With Quote
Old 08-06-07, 04:54 PM   #16
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

@snaboofypop: please see post #9 (http://www.nvnews.net/vbulletin/show...86&postcount=9).
zander is offline   Reply With Quote
Old 08-27-07, 09:09 PM   #17
johngeeaswell
Registered User
 
Join Date: Nov 2005
Posts: 4
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Replacing with 'void *' it builds fine but trying to load it I get:
nvidia: Unknown symbol __you_cannot_kmalloc_that_much

nv ver: 9631
kern ver: 2.6.23-rc3

I understand the sentiment that it's a beta kernel so what do you expect, etc. etc. Sometimes it can't be helped when trying to get new hardware devices working.

Any ideas are welcome


PS: Nvidia site insists on linking to the 9755 driver for GeForce4 and under....... ?
johngeeaswell is offline   Reply With Quote
Old 08-27-07, 10:35 PM   #18
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

@johngeeaswell: you can avoid the __you_cannot_kmalloc_that_much unresolved symbol problem by either using the SLUB allocator or removing the '-O' compiler flag from ../usr/src/nv/Makefile.kbuild.
zander is offline   Reply With Quote
Old 08-27-07, 11:05 PM   #19
johngeeaswell
Registered User
 
Join Date: Nov 2005
Posts: 4
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Excellent,
I removed the -0 from the EXTRA_CFLAGS and recompiled. It loaded no problem.

Thanks zander



Curious, the absence of that setting will probably slow things down a little, would that be correct?
johngeeaswell is offline   Reply With Quote
Old 08-30-07, 07:36 PM   #20
crow
Registered User
 
Join Date: Jan 2004
Posts: 43
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

What about patching 8776? That's the latest version that works with interlaced modes (see various threads on 1080i).
crow is offline   Reply With Quote

Old 09-27-07, 10:21 AM   #21
Iceberg69
Registered User
 
Iceberg69's Avatar
 
Join Date: Sep 2007
Posts: 1
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Quote:
Originally Posted by zander
@sangu: you may be able to get 1.0-9755 to build by replacing the 'kmem_cache_t' references with 'void *'.
'void *' is not the proper replacement for 'kmem_cache_t'. The driver compilation was broken by this patch: http://git.kernel.org/?p=linux/kerne...bc51c94e127fbc
I therefore suggest the following patch:

Code:
diff -urN a/nv/nv.c b/nv/nv.c
--- a/nv/nv.c	2007-08-16 14:04:49.000000000 +0200
+++ b/nv/nv.c	2007-09-27 16:19:36.000000000 +0200
@@ -107,7 +107,7 @@
 
 static int nv_mmconfig_failure_detected = 0;
 
-static kmem_cache_t *nv_pte_t_cache = NULL;
+static struct kmem_cache *nv_pte_t_cache = NULL;
 
 // allow an easy way to convert all debug printfs related to events
 // back and forth between 'info' and 'errors'
BTW, kmem_cache_t has been deprecated since 2.6.20 (since the beggining of February).
Iceberg69 is offline   Reply With Quote
Old 09-27-07, 11:43 AM   #22
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

Older kernels have 'struct kmem_cache_s'/'kmem_cache_t', but not the recently introduced 'struct kmem_cache'. Handling the type difference across kernels would require a compile test; since the NVIDIA Linux graphics driver doesn't use the cache pointer directly, using 'void *' and avoiding the addition of another compile test was deemed a better choice.
zander is offline   Reply With Quote
Old 10-11-07, 09:00 AM   #23
CraigG4C
Registered User
 
Join Date: Mar 2007
Posts: 7
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

There's my patch for 9755 to allow it to compile under 2.6.23 at
http://home.hiwaay.net/~craigg/linux/NV_patch.html

-- 100 doesn't restore my screen correctly.
CraigG4C is offline   Reply With Quote
Old 10-18-07, 09:24 AM   #24
hvw59601
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: To build nvidia kernel module failed in kernel-2.6.23-0.41.rc0.git14.fc8

I had the failure in the 9631 driver on 2.6.23.1 with the ck patch applied.

Your patch fit with offset and appears to fix the problem.

Thanks.

Hugo
hvw59601 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
Regression with 295.33 and GeForce GT 240 maro NVIDIA Linux 16 06-29-12 06:47 PM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM

All times are GMT -5. The time now is 01:24 PM.


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