Nvidia 275.09 en linux kernel 3.0.0-rc1

Recien, probando el ultimo release candidate del kernel de linux, tuve algunos problemas para compilar el driver proprietario de NVIDIA.

Aparentemente, los scripts de NVIDIA no estaban preparados para el cambio de versión, de 2.6.x a 3.x.x, tanto es asi que el modulo en si compila sin problemas, los limitantes estan en los scripts que verifican la configuración, aca va el contenido del patch que posteó un desarrollador de nvidia:

--- conftest.sh.orig	2011-05-30 12:24:39.770031044 -0400
+++ conftest.sh	2011-05-30 12:25:49.059315428 -0400
@@ -76,7 +76,7 @@
 }

 build_cflags() {
-    BASE_CFLAGS="-D__KERNEL__ \
+    BASE_CFLAGS="-O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
 -nostdinc -isystem $ISYSTEM"

--- nv-linux.h.orig	2011-05-30 12:27:09.341819608 -0400
+++ nv-linux.h	2011-05-30 12:27:28.854951411 -0400
@@ -32,7 +32,7 @@
 #  define KERNEL_2_4
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
 #  error This driver does not support 2.5 kernels!
-#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
 #  define KERNEL_2_6
 #else
 #  error This driver does not support development kernels!

Recuerden, para aplicar el patch tienen que seguir estas instrucciones:

  1. ./NVIDIA-Linux-x86_64-275.09.run -x
  2. cd NVIDIA-Linux-x86_64-275.09/kernel
  3. cp /path/to/kernel-3.0-rc1.patch.txt .
  4. patch -p0 < kernel-3.0-rc1.patch.txt
  5. cd ../ && ./nvidia-installer

Eso es todo!

Share

Enlaces Relacionados