Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-07-04, 11:12 AM   #13
Soluzar
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: Compiling linux drivers on Debian

The standard convention us to unpack it into "/usr/src/linux-x.y.z" where x.y.z is the version number, and then create a symlink to the sources for the current kernel at "/usr/src/linux".

One reason for this is so that you can have several versions of the source, for upgrading for example, without having to overwrite the older one in case you need to fall back to it. If you just execute 'tar -xvjf kernel-source-2.6.7.tar.bz2' when in '/usr/src' then that will untar and unbzip it into the correct directory.

As others have pointed out, it's not difficult to install the drivers on Debian, just there are a few more steps. You'll also probably want to use APT-GET to install 'kernel-package' if you want to do things 100% the 'Debian way'.

@Lithorus: That HOWTO you posted the link to refers to Gentoo as a 'derivative' of Debian. Is that correct? It does not use the .deb package format AFAICT...
Soluzar is offline   Reply With Quote
Old 10-07-04, 12:10 PM   #14
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

<ignore : email notification activated>
omry_y is offline   Reply With Quote
Old 10-07-04, 12:10 PM   #15
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Soluzar, thanks for your quick reply.
I did as you suggested:
inside /usr/src, I have this:
kernel-source-2.6.7
linux -> kernel-source-2.6.7

extracted the kernel sources to kernel-source-2.6.7, and created a linux symlink.
I got a new error this time, which means something is finally moving:

"
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 appropriate nvidia-installer command line option.
"
since I used 2.6, It means I need to configure my kernel sources to match the actual kernel I have.
I should use make config, right? how will I know the correct options?
omry_y is offline   Reply With Quote
Old 10-07-04, 12:29 PM   #16
gabuzo
Registered User
 
gabuzo's Avatar
 
Join Date: Sep 2004
Posts: 15
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by omry_y
my kernel version is 2.6.7-1-386, so I got kernel-source-2.6.7 from apt.
now, it gave me the file '/usr/src/kernel-source-2.6.7.tar.bz2'
I tried to run the installer, and it said I can't find the source to the kernel - so I guess I should uncomress the source somewhere.
First question, what branch of debian are you using?

Anyway, to use the nvidia installer, you need to install the kernel header package, not the kernel_source.
__________________
Avatar by the GruikMaster
gabuzo is offline   Reply With Quote
Old 10-07-04, 12:40 PM   #17
andyrock
Registered User
 
andyrock's Avatar
 
Join Date: Jan 2004
Location: EU / Portugal
Posts: 110
Default Re: Compiling linux drivers on Debian

Maybe you have a 2.6.7-1-386.config in /boot/

if you have it, copy that file to /usr/src/linux-X-Y-Z/.config
cd /usr/src/linux-X-Y-Z
make prepare-all

then re-run the installer with --kernel-source-path=/usr/src/linux-X-Y-Z

good luck
__________________
AndyRock

--
1. Toshiba M30-742 | Centrino/Pentium-M 1700mhz | Geforce FX 5200Go
2. Celeron (Tualatin) 1400mhz | Geforce Ti 4800SE
andyrock is offline   Reply With Quote
Old 10-07-04, 12:47 PM   #18
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by gabuzo
First question, what branch of debian are you using?

Anyway, to use the nvidia installer, you need to install the kernel header package, not the kernel_source.
I use Sarge with 2.6.7-1.
as for the kernel headers, I tried it:
I got the kernel-headers-2.6.7-1 package, it installed into /usr/src/kernel-headers-2.6.7-1.
I symlinked it to /usr/src/linux, but I got the same error as in my previous message.
omry_y is offline   Reply With Quote
Old 10-07-04, 12:48 PM   #19
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by andyrock
Maybe you have a 2.6.7-1-386.config in /boot/

if you have it, copy that file to /usr/src/linux-X-Y-Z/.config
cd /usr/src/linux-X-Y-Z
make prepare-all

then re-run the installer with --kernel-source-path=/usr/src/linux-X-Y-Z

good luck

Nope, no such file.
I did not compile the kernel myself, maybe thats why its not there.
omry_y is offline   Reply With Quote
Old 10-07-04, 02:55 PM   #20
Soluzar
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: Compiling linux drivers on Debian

First off: Don't panic. This is still going to work. My advice to you would be to compile a custom kernel. There are options which might be in the standard Debian kernel which may conflict with the nVidia driver.
Since you will be compiling your own kernel, you may or may not need to remove the 'kernel-headers' package. I think since you are building your own kernel it is unneeded at best, and counterproductive at worst.
As for what kernel-config options to choose, provide a full spec of your hardware, and I can tell you what you probably need. It's not too hard. It's easiest to learn by doing, and once you've done it a few times you'll be an old hand at it.
Soluzar is offline   Reply With Quote

Old 10-07-04, 03:51 PM   #21
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Soluzar, what would building a custom kernel achieve?
can you please contact me in a more direct way? to get faster response times?
icq/msn messenger/yahoo messenger/irc, tell me which you prefer, if any, and I`ll give you the contact info.
omry_y is offline   Reply With Quote
Old 10-07-04, 06:43 PM   #22
Soluzar
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: Compiling linux drivers on Debian

Custom kernels are usually faster, and there is at least a couple of kernel options that are usually compiled into standard kernels which may conflict with the nvidia driver. If you'd rather not compile a custom kernel, then you can do without. As to more direct contact, check your PMs.
Soluzar is offline   Reply With Quote
Old 10-08-04, 03:42 AM   #23
Lithorus
Registered User
 
Lithorus's Avatar
 
Join Date: Sep 2004
Posts: 783
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Soluzar
@Lithorus: That HOWTO you posted the link to refers to Gentoo as a 'derivative' of Debian. Is that correct? It does not use the .deb package format AFAICT...
To be honest I just did a google for a howto and it was one of the first to show up, I never read it completely and I'm sure it would help the guy.

@omry_y : If you are using a stock kernel(if it came with debian) you can just add non-free to your sources.list and install the one that fits your kernel. They have the latest drivers in the apt database. If you are unsure of what I'm talking about, you should get a little familiar with the apt system in debian, it's worth the time, beleive me. The how-to I linked to explains a little about it, also about installing them with custom kernels(eventhough he might be wrong about where gentoo came from )
Lithorus is offline   Reply With Quote
Old 10-08-04, 09:41 AM   #24
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Lithorus
To be honest I just did a google for a howto and it was one of the first to show up, I never read it completely and I'm sure it would help the guy.

@omry_y : If you are using a stock kernel(if it came with debian) you can just add non-free to your sources.list and install the one that fits your kernel. They have the latest drivers in the apt database. If you are unsure of what I'm talking about, you should get a little familiar with the apt system in debian, it's worth the time, beleive me. The how-to I linked to explains a little about it, also about installing them with custom kernels(eventhough he might be wrong about where gentoo came from )

I already have none-free in my sources.list, but all I get when I search are binary modules for kernel 2.4.
omry_y is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia Linux drivers with Linux on Mac, help? Thetargos NVIDIA Linux 0 05-13-12 12:52 PM
EA gains Linux Attention. Better Quality Drivers Please! Ruinairas NVIDIA Linux 4 05-09-12 01:12 PM
Installing nForce drivers on Debian 3.0 Doink NVIDIA Linux 4 09-14-02 08:34 PM
Debian + Nvidia drivers, bad compilation Prodigy NVIDIA Linux 16 09-10-02 07:13 PM
Debian Woody 3.0r0 and Problems with Geforce drivers vogt NVIDIA Linux 3 09-09-02 02:07 PM

All times are GMT -5. The time now is 12:57 AM.


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