Nvidia bug

Материал из support.qbpro.ru

Исправление ошибки kernel source для nvidia-installer

Сообщение об ошибке:

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.

Решение:

  • Подправить исходники (nvidia-installer не может прочитать версию ядра)
ln -s /usr/src/linux/include/generated/uapi/linux/version.h /usr/src/linux/include/linux/version.h
  • Распаковать бинарник драйверов
./NVIDIA-Linux-x86_64-310.32.bin -x 
  • В папке с распакованным установщиком:
./nvidia-installer --kernel-source-path /home/source/kernel/linux-3.7.8


Как вариант, но не сработало:

#!/bin/sh 
cd /usr/src/linux
make cloneconfig
make prepare
cd /lib/modules/`uname -r`/source/arch/x86/include/
cp -v generated/asm/unistd*.h ./asm/
# the last line (below) must contain the correct path and file name
sh /root/NVIDIA-Linux-x86_64-295.33.run