czwartek, 19 kwietnia 2012

If you are using a Linux 2.4... bla bla bla - czyli problemy z niektórymi kernelami i sterownikami Nvidia

Jeśli na świeżo skompilowanym kernelu przy instalacji sterowników Nvidia z pliku, wyskoczy nam taki coś:

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.
 To możemy ten problem dość łatwo rozwiązać (z konsoli roota):
  1. Musimy przejść do odpowiedniego folderu:
    cd /lib/modules/<nazwa-kernela>/build/arch/x86/include/
  2. Gdy już jesteśmy w tym folderze co trzeba wykanujemy następujące polecenie:
    cp generated/asm/unistd*.h ./asm/
  3. Teraz wystarczy ponownie uruchomić standardową instalację sterowników Nvidia z pliku.