VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: NVIDIA & VLocity 7 (SOLVED)  (Read 8320 times)

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
NVIDIA & VLocity 7 (SOLVED)
« on: September 15, 2012, 11:18:20 am »

Hi everbody,
 Trying to install the NVIDIA drivers,
Q, Which kernel (stripped) sources pkg needs to be installed to enable the installation process ?
I downloaded the latest one from the repository, but when reading the read file it said it was an incomplete pkg. So.....

Thanks for a 64 Vector.
« Last Edit: September 29, 2012, 08:16:53 am by flip city »
Logged

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
Re: NVIDIA & VLocity 7
« Reply #1 on: September 28, 2012, 12:07:54 am »

the message is after trying an install for the latest NVIDIA driver for my graphics card is :
Unable to find the kernel source tree for the currntly running kernel.
What's up ??

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4109
Re: NVIDIA & VLocity 7
« Reply #2 on: September 28, 2012, 04:05:48 am »

The note about "incomplete" probably refers to the "stripped-src" package. It provides a smaller alternative to the complete source package, but contains what is necessary to build the nvidia module.

Find the kernel version you're using: command "uname -a".
Download the corresponding src, or stripped-src, package: http://vectorlinux.osuosl.org/veclinux-7.0/kernels/
Install with the installpkg command, then try the nvidia build.
Logged

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
Re: NVIDIA & VLocity 7
« Reply #3 on: September 28, 2012, 10:58:32 am »

Here is the ERROR: Unable to build the NVIDIA kernel module.

from /var/log/nvidia-installer.log

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Sep 28 13:10:09 2012
installer version: 304.51

PATH: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/X11/bin:/usr/local/games:/usr/games:/usr/lib64/java/bin:/opt/kde3/lib64/qt3/bin:/opt/kde3/bin:/usr/lib64/qt/bin:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.51.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.2.22/source'
-> Kernel output path: '/lib/modules/3.2.22/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.2.22/source SYSOUT=/lib/modules/3.2.22/build'...
   NVIDIA: calling KBUILD...
   make -C /lib/modules/3.2.22/build \
   KBUILD_SRC=/usr/src/linux-3.2.22 \
   KBUILD_EXTMOD="/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel" -f /usr/src/linux-3.2.22/Makefile \
   modules
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
   echo;                        \
   echo "  ERROR: Kernel configuration is invalid.";      \
   echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
   echo;                        \
   /bin/false)
   mkdir -p /tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/.tmp_versions ; rm -f /tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/.tmp_versions/*
   make -f /usr/src/linux-3.2.22/scripts/Makefile.build obj=/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel
     cc -Wp,-MD,/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/include -I/usr/src/linux-3.2.22/arch/x86/include -Iarch/x86/include/generated -Iinclude  -I/usr/src/linux-3.2.22/include -include /usr/src/linux-3.2.22/include/linux/kconfig.h   -I/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO   -I/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.51\" -Wno-unused-function -Wuninitializ
   ed -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/nv.o /tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/nv.c
   /tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/nv.c:1:0: error: code model 'kernel' not supported in the 32 bit mode
   make[4]: *** [/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel/nv.o] Error 1
   make[3]: *** [_module_/tmp/selfgz3913/NVIDIA-Linux-x86_64-304.51/kernel] Error 2
   make[2]: *** [sub-make] 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.

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4109
Re: NVIDIA & VLocity 7
« Reply #4 on: September 29, 2012, 05:11:57 am »

64-bit kernel? The source must match exactly. http://vectorlinux.osuosl.org/VL64-7.0/kernels/
Logged

flip city

  • Packager
  • Vectorite
  • ****
  • Posts: 340
  • Way Out In HyperSpace
Re: NVIDIA & VLocity 7 (SOLVED)
« Reply #5 on: September 29, 2012, 08:20:49 am »

64-bit kernel? The source must match exactly. http://vectorlinux.osuosl.org/VL64-7.0/kernels/

WOOPS...was a bit lazy and let that one pass
Anywho removed the 32-bit source kernel and installed the 64-bit stripped-source kernel.
Reinstalled the NVIDIA driver package and the process was a success !

Thank you Lord nightflier,

rkonrad

  • Member
  • *
  • Posts: 79
Re: NVIDIA & VLocity 7 (SOLVED)
« Reply #6 on: April 05, 2013, 11:28:26 am »

Not quite solved for me though....I followed all the steps but when I tried to install the kernel-stripped I got the following message:

Quote
installpkg /home/rkonrad/Desktop/kernel-stripped-src-3.2.22-x86_64-1vl70.txz

.-----.-----------------------------------------------------------------------.
| 1/1 | Installing kernel-stripped-src-3.2.22-x86_64-1vl70.txz                |
'-----'-----------------------------------------------------------------------'
WARNING: Package has no description.
Executing install script for kernel-stripped-src-3.2.22-x86_64-1vl70...
ln: failed to create symbolic link `usr/src/linux-3.2.22/arch/microblaze/boot/dts/system.dts': No such file or directory


If you installed a new kernel, remember to check your boot loader
configuration and in case of LILO run /sbin/lilo. If you are using
another boot loader, such as GRUB, refer to its manual to learn how
to select the new kernel at boot.
Logged

rkonrad

  • Member
  • *
  • Posts: 79
Re: NVIDIA & VLocity 7 (not solved for me)
« Reply #7 on: April 05, 2013, 11:29:58 am »

Sorry, I thought I should change the subject so help can come my way!
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4109
Re: NVIDIA & VLocity 7 (SOLVED)
« Reply #8 on: April 07, 2013, 04:24:06 am »

@rkonrad: it is better to start a new thread than trying to resurrect an old one.

But.. I assume you are running an amd64 system? That error should be safe to ignore, it refers to a rather obscure processor architecture. What happens when you try to build the nvidia module?
Logged

rkonrad

  • Member
  • *
  • Posts: 79
Re: NVIDIA & VLocity 7 installation failure
« Reply #9 on: April 22, 2013, 08:03:55 pm »

I did as you suggested and ignored the message.  I rebooted into init 2, logged in as root, and tried to sh NVIDIA....but it didn't work.  Here is the var/log message:

Quote
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Apr 22 18:34:19 2013
installer version: 304.88

PATH: /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/bin:/usr/local/games:/usr/lib64/java/bin:/opt/kde3/lib64/qt3/bin:/opt/kde3/bin:/usr/lib64/qt/bin:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.88.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.2.22/source'
-> Kernel output path: '/lib/modules/3.2.22/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.2.22/source SYSOUT=/lib/modules/3.2.22/build'...
   NVIDIA: calling KBUILD...
   make -C /lib/modules/3.2.22/build \
   KBUILD_SRC=/usr/src/linux-3.2.22 \
   KBUILD_EXTMOD="/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel" -f /usr/src/linux-3.2.22/Makefile \
   modules
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
   echo;                        \
   echo "  ERROR: Kernel configuration is invalid.";      \
   echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
   echo;                        \
   /bin/false)
   mkdir -p /tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/.tmp_versions ; rm -f /tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/.tmp_versions/*
   make -f /usr/src/linux-3.2.22/scripts/Makefile.build obj=/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel
     cc -Wp,-MD,/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/include -I/usr/src/linux-3.2.22/arch/x86/include -Iarch/x86/include/generated -Iinclude  -I/usr/src/linux-3.2.22/include -include /usr/src/linux-3.2.22/include/linux/kconfig.h   -I/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO   -I/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitializ
   ed -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/nv.o /tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/nv.c
   /tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/nv.c:1:0: error: code model 'kernel' not supported in the 32 bit mode
   make[4]: *** [/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel/nv.o] Error 1
   make[3]: *** [_module_/tmp/selfgz2758/NVIDIA-Linux-x86_64-304.88/kernel] Error 2
   make[2]: *** [sub-make] 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.
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4109
Re: NVIDIA & VLocity 7 (SOLVED)
« Reply #10 on: April 23, 2013, 03:08:57 am »

Try installing the full kernel source and see if it does any better.
http://vectorlinux.osuosl.org/VL64-7.0/kernels/3.2.22-1vl70/
Logged

rkonrad

  • Member
  • *
  • Posts: 79
Re: NVIDIA & VLocity 7 (SOLVED)
« Reply #11 on: April 23, 2013, 07:07:38 am »

Maybe obvious question:  I should uninstall the stripped version of the kernel first?
Logged

retired1af

  • Packager
  • Vectorian
  • ****
  • Posts: 1310
Re: NVIDIA & VLocity 7 (SOLVED)
« Reply #12 on: April 23, 2013, 01:24:49 pm »

Maybe obvious question:  I should uninstall the stripped version of the kernel first?

No
Logged
ASUS K73 Intel i3 Dual Core 2.3GHz