Squeeze, kompilacja 2.6.29 instalacja sterowników Nvidii

Ogólne pytania dotyczące systemu
krystianf
Posty: 24
Rejestracja: 11 października 2007, 11:22
Lokalizacja: Zabrze

Squeeze, kompilacja 2.6.29 instalacja sterowników Nvidii

Post autor: krystianf »

Witam, nie jestem zbyt biegły i mam następujący problem:
  1. Zainstalowałem Squeeze i do uruchomienia wi-fi skompilowałem sobie jądro 2.6.29 Bez problemu przeszła też instalacja sterowników do karty Nvidii (korzystałem z poradników odpowiednio Yampressa i Kaki`)
  2. Zmieniłem układ partycji na dysku.
  3. Ponownie zainstalowałem Squeeze, zainstalowałem też paczki linux-image i linux-headers 2.6.29 skompilowane poprzednio (pkt.1).
  4. Pobrałem sterownik od Nvidia 180.51 i próba instalacji:

    Kod: Zaznacz cały

    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Thu May 14 12:34:41 2009
    installer version: 1.0.7
    
    option status:
      license pre-accepted    : false
      update                  : false
      force update            : false
      expert                  : false
      uninstall               : false
      driver info             : false
      precompiled interfaces  : true
      no ncurses color        : false
      query latest version    : false
      OpenGL header files     : true
      no questions            : false
      silent                  : false
      no recursion            : false
      no backup               : false
      kernel module only      : false
      sanity                  : false
      add this kernel         : false
      no runlevel check       : false
      no network              : false
      no ABI note             : false
      no RPMs                 : false
      no kernel module        : false
      force SELinux           : default
      no X server check       : false
      no cc version check     : false
      force tls               : (not specified)
      X install prefix        : (not specified)
      X library install path  : (not specified)
      X module install path   : (not specified)
      OpenGL install prefix   : (not specified)
      OpenGL install libdir   : (not specified)
      utility install prefix  : (not specified)
      utility install libdir  : (not specified)
      doc install prefix      : (not specified)
      kernel name             : (not specified)
      kernel include path     : (not specified)
      kernel source path      : (not specified)
      kernel output path      : (not specified)
      kernel install path     : (not specified)
      proc mount point        : /proc
      ui                      : (not specified)
      tmpdir                  : /tmp
      ftp mirror              : [url]ftp://download.nvidia.com[/url]
      RPM file list           : (not specified)
    
    Using: nvidia-installer ncurses user interface
    -> License accepted.
    -> Installing NVIDIA driver version 180.51.
    -> 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 ([url]ftp://download.nvidia.com[/url])? (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.
    -> Performing CC sanity check with CC="cc".
    -> Performing CC version check with CC="cc".
    ERROR: Unable to find the kernel source tree for the currently running kernel. 
           Please make sure you have installed the kernel source files for your
           kernel and that they are properly configured; on Red Hat Linux systems,
           for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
           installed.  If you know the correct kernel source files are installed,
           you may specify the kernel source path with the '--kernel-source-path'
           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 [url]www.nvidia.com[/url].
    
    Próbuję kompilować kernel ponownie (według opisu Yampressa i używając konfigu z /boot/).

    Kod: Zaznacz cały

    debian:/usr/src/linux# make-kpkg clean
    exec make kpkg_version=12.013 -f /usr/share/kernel-package/ruleset/minimal.mk clean
    tail: cannot open `debian/changelog' for reading: No such file or directory
    dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
    tail: cannot open `debian/changelog' for reading: No such file or directory
    dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
    egrep: debian/control: Nie ma takiego pliku ani katalogu
    tail: cannot open `debian/changelog' for reading: No such file or directory
    dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
    tail: cannot open `debian/changelog' for reading: No such file or directory
    dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
    tail: cannot open `debian/changelog' for reading: No such file or directory
    dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
    Can't open debian/control: Nie ma takiego pliku ani katalogu at -e line 1.
    Can't open debian/control: Nie ma takiego pliku ani katalogu at -e line 1.
    Can't open debian/control: Nie ma takiego pliku ani katalogu at -e line 1.
    ====== making target minimal_clean [new prereqs: ]======
    This is kernel package version 12.013.
    test ! -f .config || cp -pf .config config.precious
    test ! -e stamp-building || rm -f stamp-building
    test ! -f Makefile || \
                make    ARCH=i386 distclean
    make[1]: Wejście do katalogu `/usr/src/linux-2.6.29.3'
      CLEAN   scripts/basic
      CLEAN   scripts/kconfig
      CLEAN   include/config
      CLEAN   .config .config.old include/linux/autoconf.h
    make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.29.3'
    test ! -f config.precious || mv -f config.precious .config
    rm -f modules/modversions.h modules/ksyms.ver conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs
Ponownie instaluję system, żeby mieć pewność, że czegoś w nim nie zepsułem i to samo.
Czy użytkownicy Squeeze coś takiego zauważyli? Pod Lennym tego nie ma (konsultowałem przez maila z Yampressem).
Mój sprzęt to laptop Fujitsu-Siemens amilo 3540 core2duo Nvidia 9300M GS i 4GB ram
Co z tym począć?
Awatar użytkownika
ilin
Senior Member
Posty: 2292
Rejestracja: 26 sierpnia 2007, 11:54
Lokalizacja: PRLu

Post autor: ilin »

Kod: Zaznacz cały

ERROR: Unable to find the kernel source tree for the currently running kernel. 
       Please make sure you have installed the kernel source files for your 
       kernel and that they are properly configured; on Red Hat Linux systems, 
       for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM 
       installed.  If you know the correct kernel source files are installed, 
       you may specify the kernel source path with the '--kernel-source-path' 
       command line option.
To chyba jasne.

Nie widzi źródel jądra.

Albo wskaż z linii polecen na nagłówki jądra albo zrób ddowiazanie /usr/src/linux na nagłówki jądra.

Drugiego taga to nie wiem po co daleś

Tam sobie zrobileś czyszczenie źródeł kernela i wszystko ok.
krystianf
Posty: 24
Rejestracja: 11 października 2007, 11:22
Lokalizacja: Zabrze

Post autor: krystianf »

Kod: Zaznacz cały

Drugiego taga to nie wiem po co daleś 

Tam sobie zrobileś czyszczenie źródeł kernela i wszystko ok
ale tam wywala błędy i jak potem kompiluję jądro i je zainstaluję to przy starcie wywala kernel panic.
mógłbyś bardziej łopatologicznie z tym dowiązaniem (pisałem że nie jestem orłem)
Awatar użytkownika
ilin
Senior Member
Posty: 2292
Rejestracja: 26 sierpnia 2007, 11:54
Lokalizacja: PRLu

Post autor: ilin »

Te błedy mozesz olać.

To ze masz kernel panic jest sprawką czego innego i trzeba napisać ze tak masz.

Przewalili walniety kernel-package z sida do testinga chyba że to celowo w jakimś celu robią.


Jak zainstalujesz nowo skompilowane jądro to recznie wygeneruj initrd i będzie gut.
W tych paczkach nie ma wlaśnie initrd bo kernel package tego nie robi.
krystianf
Posty: 24
Rejestracja: 11 października 2007, 11:22
Lokalizacja: Zabrze

Post autor: krystianf »

Kod: Zaznacz cały

make-kpkg --initrd --append-to-version=-XXXXXXXX --revision=XX kernel_image kernel_headers
tak kompiluję jądro wg poradnika Yampress, więc initrd chyba się tworzy
klik
Awatar użytkownika
ilin
Senior Member
Posty: 2292
Rejestracja: 26 sierpnia 2007, 11:54
Lokalizacja: PRLu

Post autor: ilin »

ilin pisze:Przewalili walniety kernel-package z sida do testinga chyba że to celowo w jakimś celu robią.


Jak zainstalujesz nowo skompilowane jądro to recznie wygeneruj initrd i będzie gut.
W tych paczkach nie ma wlaśnie initrd bo kernel package tego nie robi.
gielo
Beginner
Posty: 168
Rejestracja: 20 maja 2009, 17:20
Lokalizacja: Che³m

Post autor: gielo »

Jak masz Squeeze, przerób go na Sida. Różnica niewielka a tam masz już gotową paczkę jądra. Doinstaluj tylko potem nagłówki jądra i instalacja sterowników nvidii przebiega bez problemów.
Awatar użytkownika
Yampress
Administrator
Posty: 6417
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

nie trzeba budować sterowników nvidii ze źródeł. Przecież sa gotowe zbudowane paczki z modułem do tego.

Kod: Zaznacz cały

apt-cache search nvidia
potem pyknąć uname -a zobaczyc jaki ma się zainstalowany kernel i zainstalować paczkę ze sterownikiem nvidi pod dany kernel.


np dla zainstalwoanego kernela Linux 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686 GNU/Linux

sa paczki

nvidia-kernel-legacy-96xx-2.6.26-2-686 dla starszych kart nvidii
nvidia-kernel-2.6.26-2-686 dla najnowszych

potem skonfigurować xorg
ODPOWIEDZ