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

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [Kernel 2.6.8-1] Problèmes de Kernel-headers !

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Kernel 2.6.8-1] Problèmes de Kernel-headers !

n°548591
LpZ_squall
Posté le 30-08-2004 à 01:35:02  profilanswer
 

Bonsoir tout le monde !
 
J'ai quelques petits problèmes avec mes kernel-headers. Voilà, j'ai compilé pour la première fois un noyau 2.6 (j'ai profité de mon passage rescent en debian SID pour installer le 2.6.8-1, que j'ai patché pour avoir un splashscreen).
Tout s'est passé à merveille, à ma grande surprise le splashcreen marche du premier coup, enfin le pied quoi !
 
Je desside alors d'installer les drivers nvidia et les drivers de mon modem 56K, comme je l'avais fait sans problème sur le 2.4.
 
Mais problème : il me dit qu'il ne trouve pas le fichier /include/linux/modversions.h dans mes headers, chose qu'il ne faisait pas avec la 2.4 ...
Je fais donc une recherche de ce fichier, et je me rend compte qu'il se trouve dans /include/config/ . Bon ... c'est bizarre mais je le copie dans /include/linux en espérant que ça roule.
 
Mais bien évidemment ça roule pas !! je vous donne le contenu du fichier de log nvidia :
 

Citation :


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Aug 30 00:08:56 2004
 
option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  no OpenGL header files  : false
  no questions            : false
  silent                  : false
  XFree86 install prefix  : /usr/X11R6
  OpenGL install prefix   : /usr
  Installer install prefix: /usr
  kernel include path     : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp site                : ftp://download.nvidia.com
 
Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
   4349).  As part of installing this driver (version: 1.0-4349), the existing  
   driver will be uninstalled.  Are you sure you want to continue?  ('no' will  
   abort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel include path: '/lib/modules/2.6.8.1/build/include'
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f nv.o os-agp.o os-interface.o os-registry.o  nv-linux.o nv_compiler.h *
   .d NVdriver nvidia.o
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.6.8.1/b
   uild/include'...
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
   cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
   arentheses -Wpointer-arith -Wcast-qual -Wno-multichar  -O -MD -D__KERNEL__ -
   DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
   _KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
   L=4349  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86      -DREMAP_PA
   GE_RANGE_5  -I. -I/lib/modules/2.6.8.1/build/include -Wno-cast-qual nv.c
   In file included from /lib/modules/2.6.8.1/build/include/linux/list.h:7,
                    from /lib/modules/2.6.8.1/build/include/linux/wait.h:14,
                    from /lib/modules/2.6.8.1/build/include/asm/semaphore.h:41,
                    from /lib/modules/2.6.8.1/build/include/linux/sched.h:18,
                    from /lib/modules/2.6.8.1/build/include/linux/module.h:10,
                    from nv-linux.h:28,
                    from nv.c:14:
   /lib/modules/2.6.8.1/build/include/linux/prefetch.h: Dans la fonction « pref
   etch_range »:
   /lib/modules/2.6.8.1/build/include/linux/prefetch.h:62: attention : usage en
   arithmétique d'un pointeur de type « void * »
   Dans le fichier inclus à partir de nv.c:14:
   nv-linux.h:51:4: #error This driver does not support 2.6.x or newer kernels!
   nv-linux.h:69:75: linux/tqueue.h : Aucun fichier ou répertoire de ce type
   nv-linux.h:78:75: linux/wrapper.h : Aucun fichier ou répertoire de ce type
   Dans le fichier inclus à partir de /lib/modules/2.6.8.1/build/include/linux/
   irq.h:20,
             à partir de /lib/modules/2.6.8.1/build/include/asm/hardirq.h:6,
             à partir de /lib/modules/2.6.8.1/build/include/linux/interrupt.h:1
   2,
             à partir de nv-linux.h:79,
             à partir de nv.c:14:
   /lib/modules/2.6.8.1/build/include/asm/irq.h:16:25: irq_vectors.h : Aucun fi
   chier ou répertoire de ce type
   In file included from /lib/modules/2.6.8.1/build/include/asm/hardirq.h:6,
                    from /lib/modules/2.6.8.1/build/include/linux/interrupt.h:1
   2,
                    from nv-linux.h:79,
                    from nv.c:14:
   /lib/modules/2.6.8.1/build/include/linux/irq.h: Hors de toute fonction :
   /lib/modules/2.6.8.1/build/include/linux/irq.h:70: error: `NR_IRQS' undeclar
   ed here (not in a function)
   In file included from /lib/modules/2.6.8.1/build/include/linux/irq.h:72,
                    from /lib/modules/2.6.8.1/build/include/asm/hardirq.h:6,
                    from /lib/modules/2.6.8.1/build/include/linux/interrupt.h:1
   2,
                    from nv-linux.h:79,
                    from nv.c:14:
   /lib/modules/2.6.8.1/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS'  
   undeclared here (not in a function)
   /lib/modules/2.6.8.1/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undecla
   red here (not in a function)
   In file included from nv.c:14:
   nv-linux.h: Dans la fonction « NV_IRQL_IS_RAISED »:
   nv-linux.h:253: attention : implicit declaration of function `__save_flags'
   nv.c: Dans la fonction « nvos_malloc_pages »:
   nv.c:373: attention : implicit declaration of function `mem_map_reserve'
   nv.c:386: attention : implicit declaration of function `mem_map_unreserve'
   nv.c: Dans la fonction « nvos_create_alloc »:
   nv.c:439: attention : use of cast expressions as lvalues is deprecated
   nv.c:449: attention : use of cast expressions as lvalues is deprecated
   nv.c: Dans la fonction « init_module »:
   nv.c:780: error: invalid use of undefined type `struct tq_struct'
   nv.c:781: error: dereferencing pointer to incomplete type
   nv.c:782: error: dereferencing pointer to incomplete type
   nv.c:783: error: dereferencing pointer to incomplete type
   nv.c: Dans la fonction « nv_kern_vma_open »:
   nv.c:920: attention : `MOD_INC_USE_COUNT' is deprecated (declared at /lib/mo
   dules/2.6.8.1/build/include/linux/module.h:555)
   nv.c: Dans la fonction « nv_kern_vma_release »:
   nv.c:954: attention : `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/mo
   dules/2.6.8.1/build/include/linux/module.h:567)
   nv.c: Hors de toute fonction :
   nv.c:1045: attention : initialisation d'un type pointeur incompatible
   nv.c: Dans la fonction « nv_kern_open »:
   nv.c:1069: attention : use of cast expressions as lvalues is deprecated
   nv.c:1089: attention : `MOD_INC_USE_COUNT' is deprecated (declared at /lib/m
   odules/2.6.8.1/build/include/linux/module.h:555)
   nv.c:1122: attention : passage de l'argument n°2 de « request_irq » d'un typ
   e pointeur incompatible
   nv.c:1158: attention : `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/m
   odules/2.6.8.1/build/include/linux/module.h:567)
   nv.c: Dans la fonction « nv_kern_close »:
   nv.c:1247: attention : `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/m
   odules/2.6.8.1/build/include/linux/module.h:567)
   nv.c: Dans la fonction « nv_kern_mmap »:
   nv.c:1414: attention : `MOD_INC_USE_COUNT' is deprecated (declared at /lib/m
   odules/2.6.8.1/build/include/linux/module.h:555)
   nv.c: Dans la fonction « nv_kern_ioctl »:
   nv.c:1523: error: structure has no member named `uc'
   nv.c: Dans la fonction « nv_kern_isr »:
   nv.c:1666: attention : implicit declaration of function `queue_task'
   nv.c:1666: error: `tq_immediate' undeclared (first use in this function)
   nv.c:1666: error: (Each undeclared identifier is reported only once
   nv.c:1666: error: for each function it appears in.)
   nv.c:1667: attention : implicit declaration of function `mark_bh'
   nv.c:1667: error: `IMMEDIATE_BH' undeclared (first use in this function)
   nv.c: Dans la fonction « nv_kern_ctl_open »:
   nv.c:1761: attention : `MOD_INC_USE_COUNT' is deprecated (declared at /lib/m
   odules/2.6.8.1/build/include/linux/module.h:555)
   nv.c: Dans la fonction « nv_kern_ctl_close »:
   nv.c:1826: attention : `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/m
   odules/2.6.8.1/build/include/linux/module.h:567)
   nv.c: Dans la fonction « nv_kern_read_agpinfo »:
   nv.c:1961: error: structure has no member named `name'
   nv.c: Hors de toute fonction :
   nv.c:39: error: storage size of `nv_bottom_halves' isn't known
   make: *** [nv.o] Erreur 1
-> 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
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.


 
J'ai tout essayé : en compilant le kernel à la main, avec make-kpkg, de faire des make-kpkg kernel-headers dans tous les sens, c'est toujours la même chose !
Bien évidemment les drivers de mon modem qui doivent être compilés de la même manière refusent également de se compiler, alors je suis un peu coincé ...
 
Quelqu'un a une idée pour m'aider ??
 
Merci d'avance ++

mood
Publicité
Posté le 30-08-2004 à 01:35:02  profilanswer
 

n°548811
efimo
Posté le 30-08-2004 à 12:19:30  profilanswer
 

Pour les pilotes nvidia essai de lui dire quel est le noyau
 
sh NVIDIA-Linux-x86-1.0-xxxx-pkg1.run --kernel-name=2.6.8.1


Message édité par efimo le 30-08-2004 à 12:26:45
n°548912
LpZ_squall
Posté le 30-08-2004 à 15:10:05  profilanswer
 

J'ai essayé ça, et ça fait exactement la même chose ...
 
Qqun a une autre idée ??

n°549015
LpZ_squall
Posté le 30-08-2004 à 18:05:41  profilanswer
 

Citation :

nv-linux.h:51:4: #error This driver does not support 2.6.x or newer kernels!


 
Oky, je sors lol !!
 
Pour les drivers nvidia je vais télécharger les nouveaux ça devrait mieux, mais pour mon modem je sais pas si je vais en trouver (j'ai un winmodem et j'avais deja galérer pour trouver les drivers beta de linuxant ...).
 
++


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

  [Kernel 2.6.8-1] Problèmes de Kernel-headers !

 

Sujets relatifs
[Debian] installation de drivers ati ( kernel 2.6.7 ) - RésoluInitialisation du "nvidia kernel modul failed"
[Mandrake 10] Petits problèmes de newBMise à jour manuelle glibc + linux headers + gcc
Ou se trouve le fichier de configue du kernel ?[Debian] Problèmes après reinstall : souris usb et hdparm
sparc1000E au cour de la décompression du kernel : data access excepti[Kernel] 2.4 ou 2.6?
[resolu] ne compiler qu'un seul module du kernel[config kernel] à la knoppix !
Plus de sujets relatifs à : [Kernel 2.6.8-1] Problèmes de Kernel-headers !


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