Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1342 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Hardware

  Drivers Nvidia et custom kernel...

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Drivers Nvidia et custom kernel...

n°1195953
anapivirtu​a
Boh.
Posté le 30-01-2010 à 00:40:54  profilanswer
 

Bonsoir les barbichettes,

 

Problème bizarre en ce vendredi soir, j'essaye de passer en 2.6.33-rc5 mon laptop, jusque là aucun problème.

 

Sauf pour recompiler le driver Nvidia, j'ai le droit à un beau:

 

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 195.30.
-> There appears to already be a driver installed on your system (version: 195.
   30).  As part of installing this driver (version: 195.30), the existing driv
   er will be uninstalled.  Are you sure you want to continue? ('no' will abort
   installation) (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.33-rc5-dell/source'
-> Kernel output path: '/lib/modules/2.6.33-rc5-dell/build'
ERROR: If you are using a Linux 2.4 kernel, please make sure
       you either have configured kernel sources matching your
       kernel or the correct set of kernel headers installed
       on your system.

 

      If you are using a Linux 2.6 kernel, please make sure
       you have configured kernel sources matching your kernel
       installed on your system. If you specified a separate
       output directory using either the "KBUILD_OUTPUT" or
       the "O" KBUILD parameter, make sure to specify this
       directory with the SYSOUT environment variable or with
       the equivalent nvidia-installer command line option.

 

      Depending on where and how the kernel sources (or the
       kernel headers) were installed, you may need to specify
       their location with the SYSSRC environment variable or
       the equivalent nvidia-installer command line option.
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.

 

Et je ne comprend pas pourquoi, mes sources sont bien installées et disponibles et tout pointe au bon endroit:

 

ii  linux-headers-2.6.33-rc5-dell        2.6.33-rc5-dell-10.00.Custom            Header files related to Linux kernel, specific.

 

Et j'ai bien ce qu'il faut dans mon lib/modules/'uname -r'


lrwxrwxrwx 1 root root     21 29 janv. 23:18 build -> /usr/src/kernel/linux
lrwxrwxrwx 1 root root     21 29 janv. 23:18 source -> /usr/src/kernel/linux

 

J'ai essayé de lui forcer la main à coup de --kernel-source-path mais pas moyen.

 

Note: ca marche sans problème en 2.6.32.3, le même script a été utilisé et la même conf lors de la compilation.

 

A vos stylos !

 

Merci d'avance.


Message édité par anapivirtua le 30-01-2010 à 00:41:52

---------------
Si vis pacem, para bellum.
mood
Publicité
Posté le 30-01-2010 à 00:40:54  profilanswer
 

n°1195957
anapivirtu​a
Boh.
Posté le 30-01-2010 à 01:00:25  profilanswer
 

Bon, problème résolu:
 
2.6.33 change l'arbo de certains fichiers :o
 
Il a donc fallut appliquer ceci:
 

Index: usr/src/nv/conftest.sh
===================================================================
--- usr/src/nv/conftest.sh  
+++ usr/src/nv/conftest.sh 2010-01-14 06:15:40.000000000 +0530
@@ -33,14 +33,14 @@
     # CONFIG_XEN and CONFIG_PARAVIRT are present, text_xen() treats
     # the kernel as a stand-alone kernel.
     #
-    FILE="linux/autoconf.h"
+    FILE="generated/autoconf.h"
 
     if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then
         #
         # We are looking at a configured source tree; verify
         # that it's not a Xen kernel.
         #
-        echo "#include <linux/autoconf.h>
+        echo "#include <generated/autoconf.h>
         #if defined(CONFIG_XEN) && !defined(CONFIG_PARAVIRT)
         #error CONFIG_XEN defined!
         #endif
@@ -110,7 +110,7 @@
     fi
 }
 
-CONFTEST_PREAMBLE="#include <linux/autoconf.h>
+CONFTEST_PREAMBLE="#include <generated/autoconf.h>
     #if defined(CONFIG_XEN) && \
         defined(CONFIG_XEN_INTERFACE_VERSION) &&  !defined(__XEN_INTERFACE_VERSION__)
     #define __XEN_INTERFACE_VERSION__ CONFIG_XEN_INTERFACE_VERSION
@@ -1305,10 +1305,10 @@
         RET=1
         FILE=""
 
-        if [ -f $HEADERS/linux/utsrelease.h ]; then
-            FILE="$HEADERS/linux/utsrelease.h"
-        elif [ -f $OUTPUT/include/linux/utsrelease.h ]; then
-            FILE="$OUTPUT/include/linux/utsrelease.h"
+        if [ -f $HEADERS/generated/utsrelease.h ]; then
+            FILE="$HEADERS/generated/utsrelease.h"
+        elif [ -f $OUTPUT/include/generated/utsrelease.h ]; then
+            FILE="$OUTPUT/include/generated/utsrelease.h"
         elif [ -f $HEADERS/linux/version.h ]; then
             FILE="$HEADERS/linux/version.h"
         elif [ -f $OUTPUT/include/linux/version.h ]; then
@@ -1365,7 +1365,7 @@
         #
         RET=1
         VERBOSE=$7
-        FILE="linux/autoconf.h"
+        FILE="generated/autoconf.h"
 
         if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then
             #
@@ -1419,7 +1419,7 @@
         #
         RET=1
         VERBOSE=$7
-        FILE="linux/autoconf.h"
+        FILE="generated/autoconf.h"
 
         if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then
             #
Index: usr/src/nv/nvacpi.c
===================================================================
--- usr/src/nv/nvacpi.c  
+++ usr/src/nv/nvacpi.c 2010-01-14 06:09:00.000000000 +0530
@@ -48,6 +48,10 @@
 };
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
+#define acpi_walk_namespace(a,b,c,d,e,f) acpi_walk_namespace(a,b,c,d,e,f,NULL)
+#endif
+
 static struct acpi_driver *nv_acpi_driver;
 static acpi_handle nvif_handle = NULL;
 static acpi_handle dsm_handle  = NULL;


 
A coller dans un fichier patch.file et à appliquer:
 

./NVIDIA-Linux-x86_64-195.30-pkg2.run --apply-patch patch.file


 
Puis reste plus qu'à balancer la sauce avec le nouveau .run (custom).
 
Testé en 2.6.33-rc5 / 195.30 / 64bit.
 
On est jamais mieux servi que par soi même :o


---------------
Si vis pacem, para bellum.

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Hardware

  Drivers Nvidia et custom kernel...

 

Sujets relatifs
Boot floppy / kernel sur cdNvidia Vanta sur Ubuntu 9.04
[Gnu/linux][compilation kernel] hda drive not ready for commanduseflag custom-optimization
installation drivers nvidiaComment installer des drivers TV sous ubuntu 9.04
Drivers ATI sur une install d'ubuntu 9.04 server[Xorg] Problème config écran driver nvidia (en cours)
Plus de sujets relatifs à : Drivers Nvidia et custom kernel...


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR