Opensusse 11.2 and nvidia

Hi!

When i’m trying to compile nvidia closed drivers, i got an error.

I’ve tried binaries one on nvidia suse repo, but as i installed kernel 2.6.32-41 they didn’t work.

My laptop is a lenovo T61, with nvidia quadro nvs 140m, and intel chipset. And i’m trying to instal driver version NVIDIA-Linux-x86_64-100.14.11.

Anyone can point me some light?
thanks!

That’s the error i get when executing nvidia-installer:


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Feb 19 20:56:25 2010

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
  force tls               : (not specified)
  force compat32 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)
  compat32 install chroot : (not specified)
  compat32 install prefix : (not specified)
  compat32 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              : 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.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.32-41-desktop/source'
-> Kernel output path: '/lib/modules/2.6.32-41-desktop/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> 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-i2c.o nvacpi.
   o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.o nvidi
   a.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 -f stprof stprof.o symtab.h Modules.symvers
   rm -f -rf .tmp_versions
   rm -f Makefile
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.32-41-deskt
   op/source SYSOUT=/lib/modules/2.6.32-41-desktop/build'...
   sh ./conftest.sh "cc" "cc" /lib/modules/2.6.32-41-desktop/source /lib/module
   s/2.6.32-41-desktop/build cc_sanity_check full_output
   sh ./conftest.sh "cc" "cc" /lib/modules/2.6.32-41-desktop/source /lib/module
   s/2.6.32-41-desktop/build select_makefile full_output
   make --no-print-directory -f Makefile module
   
   NVIDIA: calling KBUILD...
   make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.32-41-desktop/build KBUILD_VERBOSE
   =1 -C /lib/modules/2.6.32-41-desktop/source SUBDIRS=/tmp/selfgz5498/NVIDIA-L
   inux-x86_64-100.14.11-pkg2/usr/src/nv modules
   make -C /lib/modules/2.6.32-41-desktop/build \
   	KBUILD_SRC=/root/dd/nfs/linux \
   	KBUILD_EXTMOD="/tmp/selfgz5498/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/n
   v" -f /root/dd/nfs/linux/Makefile \
   	modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
   	echo;								\
   	echo "  ERROR: Kernel configuration is invalid.";		\
   	echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";	\
   	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";	\
   	echo;								\
   	/bin/false)
   mkdir -p /tmp/selfgz5498/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_
   versions ; rm -f /tmp/selfgz5498/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/
   nv/.tmp_versions/*
   make -f /root/dd/nfs/linux/scripts/Makefile.build obj=/tmp/selfgz5498/NVIDIA
   -Linux-x86_64-100.14.11-pkg2/usr/src/nv
   (cat /dev/null; ) > /tmp/selfgz5498/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/s
   rc/nv/modules.order
   make -f /root/dd/nfs/linux/scripts/Makefile.modpost
     scripts/mod/modpost -m -a -i /usr/src/linux-2.6.32-41-obj/x86_64/desktop/M
   odule.symvers -I /tmp/selfgz5498/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/
   nv/Module.symvers  -o /tmp/selfgz5498/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr
   /src/nv/Module.symvers -S -w   -s
   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.


Rename the nvidia.ko file:


cd /lib/modules/2.6.31.12-0.1-default/kernel/drivers/video/
mv nvidia.ko nvidia.ko.backup

.
and try to build again.

I only have this file:


kernel/drivers/video/nvidia/nvidiafb.ko

Is that one what i have to rename?

An other question, how did you see that throught the log i posted?

thanks for the quick reply :slight_smile:

Hi
That can stay there, have you installed the kernel-syms? Generally to
compile the driver, you need kernel-source, kernel-syms,
linux-kernel-headers, make and gcc installed.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 Milestone 2 (i586) Kernel 2.6.33-rc7-3-default
up 21:51, 3 users, load average: 0.02, 0.03, 0.00
GPU GeForce 6600 TE/6200 TE - Driver Version: 195.36.03

Hi!
Yes, i’ve installed all of them. And still the same problem :frowning:

alberich2k5 wrote:

>
> Hi!
>
> When i’m trying to compile nvidia closed drivers, i got an error.
snip
> echo " ERROR: Kernel configuration is invalid.";
> echo " include/linux/autoconf.h or include/config/auto.conf are
> mis
> sing.";
> echo " Run ‘make oldconfig && make prepare’ on kernel src to fix
> it
Have you done this?

OK, read it all, and here it is:

You have the wrong driver. Here’s how you’ll get it working:

Start the software installer and make sure these kernel-packages have been installed. Maybe it’s better to reinstall them by now.


kernel-syms-2.6.32-41.1.x86_64
kernel-default-devel-2.6.32-41.1.x86_64
kernel-default-base-2.6.32-41.1.x86_64
kernel-default-2.6.32-41.1.x86_64
kernel-source-2.6.32-41.1.noarch
kernel-desktop-devel-2.6.32-41.1.x86_64
kernel-debug-devel-2.6.32-41.1.x86_64

Open a terminal window and do, as normal user:


cd 
wget ftp://download.nvidia.com/XFree86/Linux-x86_64/195.30/NVIDIA-Linux-x86_64-195.30-pkg2.run

This downloads the driver for your card. Now logout, hit Ctrl-Alt-F1 to get to the console, login as normal user, and do this, enter rootpassword when asked for:


su -c 'init 3'
su -c 'mv /etc/X11/xorg.conf  /etc/X11/xorg.conf.obsolete'
su -c 'sh NVIDIA-Linux-x86_64-195.30-pkg2.run -q'

Accept the license, OK,OK,OKDO NOT RUN sax2 !!
Then the last one, and you should be OK:


su -c 'init 5 && exit'

That should do it. Please let know how you got on.

[QUOTE=Knurpht;2125224]OK, read it all, and here it is:

You have the wrong driver. Here’s how you’ll get it working:

Start the software installer and make sure these kernel-packages have been installed. Maybe it’s better to reinstall them by now.


kernel-syms-2.6.32-41.1.x86_64
kernel-default-devel-2.6.32-41.1.x86_64
kernel-default-base-2.6.32-41.1.x86_64
kernel-default-2.6.32-41.1.x86_64
kernel-source-2.6.32-41.1.noarch
kernel-desktop-devel-2.6.32-41.1.x86_64
kernel-debug-devel-2.6.32-41.1.x86_64

I get dependency fail: kernel-xen-devel 2.6.32-41 is needed. But there’s no such version in opensuse factory or 11.2 repo. :frowning:

Ignore this one, if you’re not using a xen kernel. I forgot to mention this.

Thank you!!!

It worked :))

thanks again :slight_smile:

Cheers. Two smilies make my day.