LinuxQuestions.org
Review your favorite Linux distribution.
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 02-25-2010, 02:40 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
problem compiling nvidia on 2.6.33


Hello!

I cannot compile the NVIDIA-Linux-x86-190.53-pkg1 against kernel 2.6.33. It does compile against 2.6.32.9. Here is what I get when attempting to compile against 2.6.33:
Code:
./nvidia-kernel.SlackBuild
Creating directory NVIDIA-Linux-x86-190.53-pkg1
Verifying archive integrity... OK              
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 190.53............................................................................................................................................................................................................................................................................................................
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.

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
sh-3.1#
I use the nvidia-kernel.slackbuild script from slackbuilds.org. I have set the KERNEPATH variable to /lib/modules/2.6.33-mai/build and I do have such a directory on the system, I copied the kernel sources there:

Code:
sh-3.1# ls /lib/modules/2.6.33-mai/build
COPYING        Module.symvers  crypto    ipc              net       usr
CREDITS        README          drivers   kernel           samples   virt
Documentation  REPORTING-BUGS  firmware  lib              scripts   vmlinux
Kbuild         System.map      fs        mm               security  vmlinux.o
MAINTAINERS    arch            include   modules.builtin  sound
Makefile       block           init      modules.order    tools
sh-3.1#

Any suggestions will be appreciated.

Regards,
Martin
 
Old 02-25-2010, 02:47 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

This is because some header files are in different directories in the new kernel tree (autoconf.h being one of them).
If you want to compile the nvidia kernel module use this patch

Regards
 
1 members found this post helpful.
Old 02-25-2010, 03:38 AM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by bathory View Post
Hi,

This is because some header files are in different directories in the new kernel tree (autoconf.h being one of them).
If you want to compile the nvidia kernel module use this patch

Regards
Thank you very much for your reply.

Unfortunately this didn't work. There was an API version mismatch error.
Maybe I should wait until they release an nvidia driver version compatible with the 2.6.33 kernel version.
 
Old 02-25-2010, 03:52 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

It works for me with NVIDIA-Linux-x86-190.53-pkg1.run driver (32bit). I'm using it since 2.6.33-rc7. Maybe it's because of the slackbuild.
Anyway if you want to use the Nvidia driver and not the slackbuild, you have to do this:
Code:
sh NVIDIA-Linux-x86-190.53-pkg1.run --extract-only
cd NVIDIA-Linux-x86-190.53-pkg1
patch -p0 < /path/to/nvidia-betasam-2.6.33.patch.txt
./nvidia-installer
 
Old 02-25-2010, 04:02 AM   #5
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by bathory View Post
Hi,

It works for me with NVIDIA-Linux-x86-190.53-pkg1.run driver (32bit). I'm using it since 2.6.33-rc7. Maybe it's because of the slackbuild.
Anyway if you want to use the Nvidia driver and not the slackbuild, you have to do this:
Code:
sh NVIDIA-Linux-x86-190.53-pkg1.run --extract-only
cd NVIDIA-Linux-x86-190.53-pkg1
patch -p0 < /path/to/nvidia-betasam-2.6.33.patch.txt
./nvidia-installer
Dear bathory,

I solved the problem. I had forgotten to update the nvidia-driver package.

Now I have 190.53 and 2.6.33 working together. Thank you!

Regards,
Martin
 
Old 03-03-2010, 03:56 PM   #6
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 228

Rep: Reputation: 37
and the 96.43.14 also had a patch???
 
Old 03-03-2010, 04:48 PM   #7
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
There is a new version of the nvidia driver out and you may wish to read this thread http://www.linuxquestions.org/questi...515/page4.html

samac
 
  


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
[SOLVED] Problem compiling nvidia drivers under Mandriva 2008.0 81bones Mandriva 8 03-11-2008 07:23 AM
compiling NVIDIA errors terfy Linux - Software 3 11-05-2007 03:34 AM
failure compiling NVidia module micder Slackware 3 11-18-2006 08:05 AM
problem compiling NVIDIA drives in SuSE 9.1 mjm70 SUSE / openSUSE 5 12-28-2004 02:52 PM
Compiling NVIDIA Drivers cipherForge Linux - Newbie 1 08-04-2003 04:46 AM

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

All times are GMT -5. The time now is 01:27 AM.

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