LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-14-2011, 11:16 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Question Nvidia 2.85.05.09 and Kernel 3.0.4


Has anyone had any level of success getting the latest Nvidia blob drivers to build against kernel 3.0.4 and if so, does anyone have the patches to do so?
 
Old 10-15-2011, 03:28 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,920

Rep: Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040
Not tried 285.* yet, but 280.13 was running fine under 3.0.y for me I'll slap the new one on and report back.

update:
New one works fine on 3.0.6 too (don't have 3.0.4 installed any more). No patches necessary.

Last edited by GazL; 10-15-2011 at 04:05 AM.
 
Old 10-16-2011, 04:56 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Are you using the native Nvidia installer or the SlackBuild?

I keep getting this:

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Oct 16 15:15:26 2011
installer version: 285.05.09

PATH:
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/li
b64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:
/usr/share/texmf/bin

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
  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                : true
  run distro scripts                 : true
  no nouveau check                   : false
  run nvidia-xconfig                 : false
  sigwinch work around               : true
  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)
  installer prefix                   : (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)
  precompiled kernel interfaces path : (not specified)
  precompiled kernel interfaces url  : (not specified)
  proc mount point                   : /proc
  ui                                 : (not specified)
  tmpdir                             : /tmp
  ftp mirror                         : ftp://download.nvidia.com
  RPM file list                      : (not specified)
  selinux chcon type                 : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 285.05.09.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/3.0.4/source'
-> Kernel output path: '/lib/modules/3.0.4/build'
ERROR: 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.
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.

Last edited by ReaperX7; 10-16-2011 at 05:18 PM.
 
Old 10-17-2011, 03:42 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,920

Rep: Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040
I use nvidia's native '.run' installer.

Check that the kernel source that you used to build your kernel is still in-place and that the /lib/modules/$(uname -r)/source and build symlinks point to the correct place for it. That's usually the cause of problem with the nvidia installer.
 
Old 10-17-2011, 08:23 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I'll try and double check those tonight and post an edit if I have any luck.

Edit: I checked my paths and nothing is still working.

I'm not sure but the build and source directory links are both targeting /usr/src/linux as a directory.

Last edited by ReaperX7; 10-18-2011 at 01:45 PM.
 
Old 10-18-2011, 03:24 PM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,920

Rep: Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040Reputation: 5040
Quote:
Originally Posted by ReaperX7 View Post
I'm not sure but the build and source directory links are both targeting /usr/src/linux as a directory.
If that's where the source was when you built your kernel then that is what I would expect.

The other thing to check is that you enabled module support in your kernel config.
 
Old 10-18-2011, 06:01 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Loadable Module Support is enabled... still spitting out the same error as before about kernel 2.4 and 2.6.

Edit:

A new error has popped up. I now have an error stating that file version.h can not be found in path /usr/src/linux/includes/linux. I had the compiler perform a check of the kernel headers and updated them as needed using make headers_install which listed version.h ask CHK and then version.h UPD. I did some checking against kernel-3.0.4 sources and found that kernel-3.0.4 does NOT include the version.h file by default which is different from the 2.6.x kernel series which did in fact include this file. I copied the older version.h file back into my kernel headers at /usr/includes/linux and symlinked it into my kernel sources at the forementioned directory that stated wasn't there and now the original error has returned stating the version.h file is does not match the kernel version number.

I'm not software developer so this is where I'm lost. Is there an edit/patch I need to manually perform on version.h to change the internal listed number to the correct number used by kernel 3.0.4, or did I make a big boo boo somewhere along the way during my initial kernel compile using AlienBOB's reference page (no offense Eric!).

Last edited by ReaperX7; 10-18-2011 at 10:25 PM.
 
Old 10-19-2011, 12:25 AM   #8
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,942

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
Quote:
Originally Posted by ReaperX7 View Post
...updated them as needed using make headers_install...

I copied the older version.h file back into my kernel headers at /usr/includes/linux and symlinked it into my kernel sources at the forementioned directory that stated wasn't there and now the original error has returned stating the version.h file is does not match the kernel version number.
Why did you "make headers_install"? I don't believe Alien BOB's page tells you to mess with the kernel headers. installpkg --upgradepkg --reinstall the original kernel-headers package and hope that the new kernel didn't install any other header files than the original had. And remove the extra symlink you made.

version.h is generated during "make bzImage". (2.6.x tarballs do not have it either.)
 
Old 10-19-2011, 12:32 AM   #9
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by ReaperX7 View Post
..... using make headers_install ...
or did I make a big boo boo somewhere along the way during my initial kernel compile using AlienBOB's reference page (no offense Eric!).
I serious doubt Eric would include make headers install in his kernel guide

You might be able to recover the system by re-installing the stock kernel headers. Search this slackware forum for countless threads on why not to update the kernel headers.

Compiling a kernel is a simple task.

wget $SITE.linux.3.0.bz2
wget $SITE.patch.level.gz

cd /usr/src
tar xf linux.3.0.bz2
cd linux.3.0
zcat /location/patch.level.gz | patch -p1
cp /boot/config-version .config
make oldconfig
make nconfig <-- I like ncurses
make -j# (make defaults to making vmlinux bzImage and modules)
make modules_install
cp arch/x86{_64}/boot/bzImage /boot/vmlinuz-$version
make clean
 
Old 10-19-2011, 02:12 AM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I'm trying now to get kernel-3.0.7 from GIT if kernel.org doesn't hiccup on me. Going to try that kernel and see if it works, if not I'll flush the kernel, modules and source back out and reinstall 2.6.38.7 and pray it works.

Last edited by ReaperX7; 10-19-2011 at 02:56 AM.
 
Old 10-19-2011, 12:34 PM   #11
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,267
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Nvidia-285.05.09 is updated to work for kernel-3.0.0 or greater, so you shouldn't need to patch the nvidia-sources. You can check this via
Code:
sh NVIDIA-Linux-x86_64-285.05.09.run --extract-only
and examining kernel/nv-linux.h

Only thing I can think of is that you skipped a step somewhere. That said, I won't be testing the nvidia.SlackBuild until Slackware-stable uses kernel-3.x.

Also, this may be obvious: you need to boot into the kernel, in a multiuser run level (CLI) and make sure nouveau kernel module is NOT loaded.
 
Old 10-19-2011, 02:49 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Already doing that. Using mode 3 boot with Nouveau Blacklist. Compile should be done by tonight. Praying it actually works.

BTW:

I know uninstalling the header package provided by Patrick isn't a good idea, I forget but don't you have to update glibc or something else after rebuilding the headers, if you so choose to? As I stated, I'm not a programmer.
 
Old 10-19-2011, 03:10 PM   #13
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,267
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Almost everything I know about building the Linux kernel in Slackware (except for a brief side trip to Gentoo), I learned here:
http://alien.slackbook.org/dokuwiki/...kernelbuilding
under the Section "Slackware kernel-headers package"
 
Old 10-19-2011, 04:36 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I "think" I have it working. Not sure if it was the kernel that had a problem of the package but whatever it is now, the error isn't happening on kernel 3.0.7. I don't want to mark this as solved right away but I'm still puzzled as to why 3.0.4 has so many issues with this.
 
Old 10-19-2011, 04:41 PM   #15
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
Nvidia 2.85.05.09 built fine against kernel 3.0.7 on this side. Few pointers:

Never change the installed kernel headers. They need to match the kernel version glibc was compiled against.

The Nvidia installer finds the right kernel source via symlinks in /lib/modules/<kernel version> which in turn is created by
Code:
make modules_install
during the kernel build process.

When the Nvidia libraries are already installed you can build the new kernel module via

Code:
sh NVIDIA-Linux-x86_64-285.05.09.run -a -K -k=<kernel version>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(EE) NVIDIA(0): Failed to initialize the NVIDIA Kernel module latino Linux - Hardware 5 06-03-2008 03:55 AM
(EE) NVIDIA(0): Failed to initialize the nvidia kernel module necbrownie Slackware 18 06-16-2006 02:20 AM
nvidia 6106, kernel 2.6.7, slackware 10, failure to load nvidia.ko Tarball_Phreak Linux - Hardware 3 08-04-2004 03:16 PM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 05:38 AM
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Stan the caddy Linux - Hardware 8 01-18-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration