Траблы с установкой дров от NVIDIA (Can't build kernel!)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Калий
Сообщения: 100
ОС: Ubuntu

Траблы с установкой дров от NVIDIA

Сообщение Калий »

Чудеса творятся. Выхожу из иксов, захожу под рутом, набираю sh <имя_файла> (Файл уже не txt, a run), Далее идет установка. Принимаю условия соглашения, потом строка с процентами и "ERROR: Unable to build the NVIDIA kernel module.". Что делать?
ЗЫ: Mandrake Linux 10.0 Official
Данные из лога:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Apr 10 13:21:15 2005

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall              : false
  driver info            : false
  no precompiled interface: true
  no ncurses color        : false
  query latest driver ver : false
  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                  : /root/tmp
  ftp site                : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Not probing for precompiled kernel interfaces.
-> Kernel include path: '/lib/modules/2.6.3-7mdk/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.3-7md
  k/build/include'...
  echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 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=4496  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86      -DREMAP_PA
  GE_RANGE_5  -I. -I/lib/modules/2.6.3-7mdk/build/include -Wno-cast-qual nv.c
  In file included from 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: No such file or directory
  nv-linux.h:78:75: linux/wrapper.h: No such file or directory
  In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20,
                    from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
                    from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.
  h:11,
                    from nv-linux.h:79,
                    from nv.c:14:
  /lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No suc
  h file or directory
  In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
                    from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.
  h:11,
                    from nv-linux.h:79,
                    from nv.c:14:
  /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undec
  lared here (not in a function)
  In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72,
                    from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,
                    from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.
  h:11,
                    from nv-linux.h:79,
                    from nv.c:14:
  /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTOR
  S' undeclared here (not in a function)
  /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' unde
  clared here (not in a function)
  In file included from nv.c:14:
  nv-linux.h: In function `NV_IRQL_IS_RAISED':
  nv-linux.h:490: warning: implicit declaration of function `__save_flags'
  nv.c: At top level:
  nv.c:48: error: parse error before "nv_dev_handle"
  nv.c:48: warning: type defaults to `int' in declaration of `nv_dev_handle'
  nv.c:48: warning: data definition has no type or storage class
  nv.c:49: error: parse error before "nv_ctl_handle"
  nv.c:49: warning: type defaults to `int' in declaration of `nv_ctl_handle'
  nv.c:49: warning: data definition has no type or storage class
  nv.c: In function `nvos_malloc_pages':
  nv.c:400: warning: implicit declaration of function `mem_map_reserve'
  nv.c:413: warning: implicit declaration of function `mem_map_unreserve'
  nv.c: In function `init_module':
  nv.c:772: warning: implicit declaration of function `devfs_register_chrdev'
  nv.c:783: error: `devfs_handle_t' undeclared (first use in this function)
  nv.c:783: error: (Each undeclared identifier is reported only once
  nv.c:783: error: for each function it appears in.)
  nv.c:787: warning: implicit declaration of function `devfs_register'
  nv.c:788: error: `DEVFS_FL_DEFAULT' undeclared (first use in this function)
  nv.c:807: error: invalid use of undefined type `struct tq_struct'
  nv.c:808: error: dereferencing pointer to incomplete type
  nv.c:809: error: dereferencing pointer to incomplete type
  nv.c:810: error: dereferencing pointer to incomplete type
  nv.c:852: warning: implicit declaration of function `devfs_unregister_chrdev
  '
  nv.c: In function `cleanup_module':
  nv.c:917: warning: implicit declaration of function `devfs_unregister'
  nv.c: In function `nv_kern_vma_open':
  nv.c:958: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modul
  es/2.6.3-7mdk/build/include/linux/module.h:502)
  nv.c: In function `nv_kern_vma_release':
  nv.c:992: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modul
  es/2.6.3-7mdk/build/include/linux/module.h:514)
  nv.c: At top level:
  nv.c:1083: warning: initialization from incompatible pointer type
  nv.c: In function `nv_kern_open':
  nv.c:1189: warning: passing arg 2 of `request_irq' from incompatible pointer
  type
  nv.c:1210: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modu
  les/2.6.3-7mdk/build/include/linux/module.h:502)
  nv.c: In function `nv_kern_close':
  nv.c:1303: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modu
  les/2.6.3-7mdk/build/include/linux/module.h:514)
  nv.c: In function `nv_kern_mmap':
  nv.c:1470: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modu
  les/2.6.3-7mdk/build/include/linux/module.h:502)
  nv.c: In function `nv_kern_ioctl':
  nv.c:1568: error: structure has no member named `uc'
  nv.c: In function `nv_kern_isr':
  nv.c:1711: warning: implicit declaration of function `queue_task'
  nv.c:1711: error: `tq_immediate' undeclared (first use in this function)
  nv.c:1712: warning: implicit declaration of function `mark_bh'
  nv.c:1712: error: `IMMEDIATE_BH' undeclared (first use in this function)
  nv.c: In function `nv_kern_ctl_open':
  nv.c:1834: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modu
  les/2.6.3-7mdk/build/include/linux/module.h:502)
  nv.c: In function `nv_kern_ctl_close':
  nv.c:1877: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modu
  les/2.6.3-7mdk/build/include/linux/module.h:514)
  nv.c: In function `nv_kern_read_agpinfo':
  nv.c:2012: error: structure has no member named `name'
  nv-linux.h: At top level:
  nv.c:41: error: storage size of `nv_bottom_halves' isn't known
  make: *** [nv.o] Ошибка 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.

Надеюсь на вашу помощь
Ждём релиза Ubuntu 7.04 :)
Спасибо сказали:
oakhead
Сообщения: 49

Re: Траблы с установкой дров от NVIDIA

Сообщение oakhead »

Там написано:
nv-linux.h:51:4: #error This driver does not support 2.6.x or newer kernels!
Что на ридний мове значит : этот драйвер не поддерживает 2.6.х или более новые ядра!
Спасибо сказали:
Аватара пользователя
clx
Сообщения: 3121
Статус: Think Different !
ОС: Mac OS X

Re: Траблы с установкой дров от NVIDIA

Сообщение clx »

Установи kernel-source и последние драйвера от nVIDIA.
iMac 20" Core Duo.
Спасибо сказали:
Калий
Сообщения: 100
ОС: Ubuntu

Re: Траблы с установкой дров от NVIDIA

Сообщение Калий »

Сейчас сижу и качаю дрова новые. По заявлению НВидиа, включена поддержка 2.6.х. 10 метров весят :(, а на даял-апе долго придется качать :(

Калий добавил в 14.04.2005 06:47

Как настроить иксы? У меня глюки с ними. Черный экран, а в иксы не входит :(
Ждём релиза Ubuntu 7.04 :)
Спасибо сказали:
Аватара пользователя
clx
Сообщения: 3121
Статус: Think Different !
ОС: Mac OS X

Re: Траблы с установкой дров от NVIDIA

Сообщение clx »

(Калий @ Четверг, 14 Апреля 2005, 6:47) писал(а):Как настроить иксы? У меня глюки с ними. Черный экран, а в иксы не входит :(


А какую ошибку выдает?
iMac 20" Core Duo.
Спасибо сказали:
Калий
Сообщения: 100
ОС: Ubuntu

Re: Траблы с установкой дров от NVIDIA

Сообщение Калий »

Все сделал, спасибо! Прочитал ReadMe ещё раз :) :) :) Спасибо большое! Тему можно закрыть

[I]оффтоп: классное кол-во постов :)/I]
Ждём релиза Ubuntu 7.04 :)
Спасибо сказали: