nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Help installing NVIDIA Debian AMD64 (http://www.nvnews.net/vbulletin/showthread.php?t=45446)

mushroomboy 02-06-05 02:36 PM

Help installing NVIDIA Debian AMD64
 
Ok I'm running a Debian AMD64 system with sid-netinstall. I currently have kernel 2.6.10-9 and kernel 2.6.8-10 installed, both under amd-generic(kernel-image-2.6.xx-amd64-generic). Now my problem first was that it complained about the kernel source, so I grabbed both the 2.6.10 source and the kernel-headers-2.6.xx-amd64-generic and tried both with a no go. I'm running KDE 3.3 with both gcc 3.3 and 3.4 installed and seeminly running fine. I've tried the --kernel-source=/ and all that. I haven't found my problem anywhere here =( so I'm going to post it.

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Feb  6 13:50:01 2005

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
  OpenGL header files    : false
  no questions            : false
  silent                  : 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
  force tls              : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix  : /usr
  compat32 install prefix : /emul/ia32-linux
  installer install prefix: /usr
  utility install prefix  : /usr
  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              : ftp://download.nvidia.com
  RPM file list          : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> 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: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
  this means that the installer will need to compile a kernel interface for
  your kernel.
-> Kernel source path: '/lib/modules/2.6.10-9-amd64-generic/build'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Performing rivafb module check.
WARNING: Your kernel was configured to include rivafb support as
        a loadable kernel module.
       
        The rivafb driver conflicts with the NVIDIA driver; the
        NVIDIA kernel module will still be built and installed,
        but be aware that the NVIDIA driver will not be able to
        function properly if the rivafb module is loaded!
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
  rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
  agp.o os-interface.o os-registry.o nvidia.mod.o
  rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
  rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
  rm -f -rf .tmp_versions
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.10-9-amd64-
  generic/build SYSOUT=/lib/modules/2.6.10-9-amd64-generic/build'...
  Your kernel was configured to include rivafb support as
  a loadable kernel module.
 
  The rivafb driver conflicts with the NVIDIA driver; the
  NVIDIA kernel module will still be built and installed,
  but be aware that the NVIDIA driver will not be able to
  function properly if the rivafb module is loaded!
 
  *** Failed rivafb module sanity check, but continuing! ***
 
 
  NVIDIA: calling KBUILD...
  make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.10-9-amd64-generic/build SU
  BDIRS=/home/mboy/NVIDIA-Linux-x86_64-1.0-6629-pkg2/usr/src/nv modules
  mkdir -p /home/mboy/NVIDIA-Linux-x86_64-1.0-6629-pkg2/usr/src/nv/.tmp_versio
  ns
  make -f scripts/Makefile.build obj=/home/mboy/NVIDIA-Linux-x86_64-1.0-6629-p
  kg2/usr/src/nv
  make[3]: scripts/Makefile.build: No such file or directory
  make[3]: *** No rule to make target `scripts/Makefile.build'.  Stop.
  make[2]: *** [_module_/home/mboy/NVIDIA-Linux-x86_64-1.0-6629-pkg2/usr/src/n
  v] Error 2
  NVIDIA: left KBUILD.
  nvidia.ko failed to build!
  make[1]: *** [module] Error 1
  make: *** [module] Error 2
-> 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.

oh and the kernel source isn't specified because I made a link to /usr/src/ which has linux pointing to /usr/src/kernel-headers-2.6.10-9-amd64-generic at the moment.

Roots 03-27-05 11:37 AM

Re: Help installing NVIDIA Debian AMD64
 
I'm having the exact same problem. I have no idea what's going on but I can not get the nvidia installer to....well install. :rolleyes: Here's my kernel and everything I've installed/done. I'm using this guide: http://serios.net/content/debian/nvi...ay-drivers.php

O/S: Debian sarge, with some packages from unstable (mostly just the kernel)

Video card: nVidia GeForce 6800GT

Kernel: 2.6.10-9-amd64-k8, kernel image installed from Debian package repositories
CHECK

Kernel headers installed? /usr/src/kernel-headers-2.6.10-9-amd64-k8/
CHECK

Symbolic link setup correctly?
Code:

ls -l /lib/modules/2.6.10-9-amd64-k8/build
lrwxrwxrwx  1 root root 41 2005-03-19 13:39 /lib/modules/2.6.10-9-amd64-k8/build -> /usr/src/kernel-headers-2.6.10-9-amd64-k8

nvidia driver version being installed: NVIDIA-Linux-x86_64-1.0-7167-pkg2.run
CHECK

Now I booted into the right kernel, and I have X shutdown so I can get into the installer menu. After accepting the license agreement it says no pre-compiled interface or something found for your kernel, so then it tries to compile it and fails. Here's the /var/log/nvidia-installer.log output.

Code:

creation time: Sun Mar 20 06:35:15 2005

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
  OpenGL header files    : false
  no questions            : false
  silent                  : 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
  force tls              : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix  : /usr
  compat32 install prefix : /emul/ia32-linux
  installer install prefix: /usr
  utility install prefix  : /usr
  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              : ftp://download.nvidia.com
  RPM file list          : (not specified)

Using: nvidia-installer ncurses user interface
  that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.10-9-amd64-k8/build'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Performing change_page_attr() check.
WARNING: Your Linux kernel has problems in its implementation of
        the change_page_attr kernel interface.  The NVIDIA kernel
        module will attempt to work around these problems, but
        system stability may be affected.  It is recommended that
        you update to a 2.6.11 or newer kernel.
       
        Please see APPENDIX N: KNOWN ISSUES in NVIDIA's README for
        more details.
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
  rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
  agp.o os-interface.o os-registry.o nvidia.mod.o
  rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
  rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
  rm -f -rf .tmp_versions
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.10-9-amd64-
  k8/build SYSOUT=/lib/modules/2.6.10-9-amd64-k8/build'...
 
  NVIDIA: calling KBUILD...
  make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.10-9-amd64-k8/build SUBDIRS
  =/tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv modules
  mkdir -p /tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/.tmp_v
  ersions
  make -f scripts/Makefile.build obj=/tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7
  167-pkg2/usr/src/nv
  echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz4523/NVI
  DIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/nv_compiler.h
    cc -Wp,-MD,/tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/.n
  v.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-
  prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2    -fomit-fr
  ame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-block
  s    -Wno-sign-compare -fno-asynchronous-unwind-tables  -I/tmp/selfgz4523/N
VI
  DIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Ws
  witch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multich
  ar  -W
  error -O -fno-common -mno-red-zone -MD  -Wsign-compare -Wno-cast-qual -Wno-
  error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D
  _GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=
  1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7167  -DNV_UNIX  -DNV_LINUX  -DNV_INT
  64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL
  _STRUCT_RLIM -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT 
  -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz4523/
  NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/.tmp_nv.o /tmp/selfgz4523/NVIDI
  A-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/nv.c
  /tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/nv.c:1: error:
  code model `kernel' not supported in the 32 bit mode
  make[3]: *** [/tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/src/nv/n
  v.o] Error 1
  make[2]: *** [_module_/tmp/selfgz4523/NVIDIA-Linux-x86_64-1.0-7167-pkg2/usr/
  src/nv] Error 2
  NVIDIA: left KBUILD.
  nvidia.ko failed to build!
  make[1]: *** [module] Error 1
  make: *** [module] Error 2
-> 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.

I think this is another wonderful 64-bit/32-bit problem I've been having lately. :rolleyes: I went through the readme but I couldn't find anything that helped me fix this problem. If anyone has any ideas at all how to fix this please help. I've been at this for a couple days now and it's getting to be really frusterating. :fu:

chunkey 03-27-05 01:50 PM

Re: Help installing NVIDIA Debian AMD64
 
hmm, what says "gcc -v"/"cc -v" ?

Lauwenmark78 03-27-05 01:56 PM

Re: Help installing NVIDIA Debian AMD64
 
I'd say that the guide you gave the URL to is a little incorrect (or outdated ?).

To build modules external to the mainstream kernel, you need the kernel-headers *and* kernel-kbuild packages.

From kernel-kbuild's description:


This package provides kbuild tools for Linux kernel 2.6. It is used together with the kernel-headers packages to build out-of-tree kernel modules.


But the best way (that prevents quite some problems) is to install kernel-source, nvidia-kernel-source and build your own kernel packages using make-kpkg.

Note that if you are using kernel-source (or a vanilla kernel from kernel.org), you need to first configure your kernel (make menuconfig) and *then* install/build the nvidia drivers ('make-kpkg modules' if using debian packages; else launching the binary executable). You cannot properly install the nvidia drivers before having configured the kernel, because some required files are only created during that stage.

EDIT: About the "code model `kernel' not supported in the 32 bit mode", check the following discussion, which seems to match your problem:

http://lists.debian.org/debian-amd64.../msg00107.html

(Basically, you are mixing up 32 and 64bit code - you need to cross-compile to solve the problem.)

Hope this helps !

Roots 03-27-05 03:10 PM

Re: Help installing NVIDIA Debian AMD64
 
Code:

roots@harima:~$ gcc -v
Reading specs from /usr/lib/gcc/i486-linux/3.4.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --disable-werror i486-linux
Thread model: posix
gcc version 3.4.4 20041218 (prerelease) (Debian 3.4.3-6)


I already have kernel-kbuild and nvidia-kernel-sources installed. I've compiled my own kernel on this machine, but it always turns out to be an i686 kernel even if I select AMD64 as my processor in make confing, because (like you said) I need to cross-compile my kernel. I've tried cross-compiling my kernel several times and it always ends in failure (I think it's because I don't have gcc and some libraries setup correctly for a 64-bit compile). That's why I am trying to use the stock kernel from the Debian archives as the kernel to install the nvidia drivers onto, but it seems from what you said that I have to use cross-compiling on the nvidia drivers in order to do this. :( Unfortunately I'm really busy lately and don't have the time to mess around hacking kernels and such (since I already wasted my past two weekends doing that). So I'll either have to wait until I find an easy step-by-step guide so I don't have to deal with this all, or I'll have to wait until my life gets less hectic.

This is the closests I've found to a good cross-compile guide: http://www.larryowen.org/amd64/kernel.html

chunkey 03-27-05 06:09 PM

Re: Help installing NVIDIA Debian AMD64
 
Hmm, it's a bad idea mixing Debian SID AMD64 with a normal IA32 one together...
So, I would suggest you that you should make some room on your harddrive for an extra "64Bit only" partition so that you don't **** ** your current system.

NetInstall ISOs for Debian Sid/Sarge AMD64

Roots 03-27-05 06:55 PM

Re: Help installing NVIDIA Debian AMD64
 
Quote:

Originally Posted by chunkey
Hmm, it's a bad idea mixing Debian SID AMD64 with a normal IA32 one together...
So, I would suggest you that you should make some room on your harddrive for an extra "64Bit only" partition so that you don't **** ** your current system.

NetInstall ISOs for Debian Sid/Sarge AMD64


Yeah I thought about that. In fact I have a SID AMD64 netinstall image already burnt to a CD. It's just that I read the whole portability madness and OpenOffice is a really important app to me right now, so I figured it would be easier to do a mixed system (I was wrong). Once school ends and I find a point to take a couple days off work, maybe I'll backup my data and install 64-bit, since I should have more time to hack around in Linux. Until then, I guess I'm just going to stick with my i686 kernel and install the x86 nvidia drivers.


All times are GMT -5. The time now is 09:46 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.