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

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-05-11, 06:56 AM   #1
mbobak
Registered User
 
Join Date: Jan 2009
Posts: 32
Default Problem with Ubuntu 11.04, nvidia-current, and kernel 3.0...

Hi all,

I'm running Ubuntu 11.04, with the lowlatency kernel from the abogani ppa. Recently, that provided me the '3.0.0-7-lowlatency' kernel.

Problem with that is my version of nvidia driver, from 'nvidia-current' package is 270.41.06, which thinks that 3.0 kernel is a development kernel, and the kernel module build fails.

I guess my questions are:
- Has anyone else run into this on Ubuntu 11.04 (or other dists with 3.0 kernel?)
- Will a later version of nvidia driver (280.x) fix the problem?
- Any simple workaround?

Thanks,

-Mark
mbobak is offline   Reply With Quote
Old 08-05-11, 11:04 AM   #2
JoJo19
Registered User
 
Join Date: Oct 2010
Posts: 16
Default Re: Problem with Ubuntu 11.04, nvidia-current, and kernel 3.0...

You could try this patch, that I found somewhere in the internet.
I changed Os to O2. Maybe you need only one part of it. 280.13 might work as is.

Code:
diff -urN work-OLD/kernel/conftest.sh work-NEW/kernel/conftest.sh
--- work-OLD/kernel/conftest.sh   2011-05-30 19:41:31.000000000 -0700
+++ work-NEW/kernel/conftest.sh   2011-05-30 19:47:23.000000000 -0700
@@ -76,7 +76,9 @@
 }

 build_cflags() {
-    BASE_CFLAGS="-D__KERNEL__ \
+    # Adding -Os optimizer option to work around rcupdate.h compiler bug, see here:
+    # http://choon.net/forum/read.php?21,82725
+    BASE_CFLAGS="-O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
 -nostdinc -isystem $ISYSTEM"

diff -urN work-OLD/kernel/nv-linux.h work-NEW/kernel/nv-linux.h
--- work-OLD/kernel/nv-linux.h   2011-05-16 23:32:19.000000000 -0700
+++ work-NEW/kernel/nv-linux.h   2011-05-30 19:46:06.000000000 -0700
@@ -34,6 +34,9 @@
 #  error This driver does not support 2.5 kernels!
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
 #  define KERNEL_2_6
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
+/* For compatibility, pretend all kernels 3.0.0 and higher are "2.6" */
+#  define KERNEL_2_6
 #else
 #  error This driver does not support development kernels!
 #endif
JoJo19 is offline   Reply With Quote
Old 08-05-11, 02:15 PM   #3
mbobak
Registered User
 
Join Date: Jan 2009
Posts: 32
Default Re: Problem with Ubuntu 11.04, nvidia-current, and kernel 3.0...

Yep, that's roughly the same patch I came up with.

If anyone has any idea if this issue has been fixed in the latest version of the driver, I'd be interested to know. Is it even on the radar at this point?

Thanks,

-Mark
mbobak is offline   Reply With Quote
Old 08-05-11, 02:22 PM   #4
gonzo_s
Registered User
 
Join Date: Mar 2009
Posts: 58
Default Re: Problem with Ubuntu 11.04, nvidia-current, and kernel 3.0...

The latest 280 driver builds no problem for me on Debian. Have you tried it?
gonzo_s is offline   Reply With Quote
Old 08-05-11, 10:34 PM   #5
mbobak
Registered User
 
Join Date: Jan 2009
Posts: 32
Default Re: Problem with Ubuntu 11.04, nvidia-current, and kernel 3.0...

Quote:
Originally Posted by gonzo_s View Post
The latest 280 driver builds no problem for me on Debian. Have you tried it?

Not yet. Do you know if there's an alternate repository w/ the 280 driver? I prefer to keep things "Ubuntufied" if you know what I mean. :-)

Thanks,

-Mark
mbobak is offline   Reply With Quote
Old 08-06-11, 01:41 PM   #6
adrianveidt
Registered User
 
Join Date: Aug 2008
Posts: 30
Default Re: Problem with Ubuntu 11.04, nvidia-current, and kernel 3.0...

The x-updates ppa always has the latest stable nvidia driver for Ubuntu.
adrianveidt 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 03:26 PM.


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