nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Debian + Nvidia drivers, bad compilation (http://www.nvnews.net/vbulletin/showthread.php?t=452)

Prodigy 08-05-02 10:08 PM

Debian + Nvidia drivers, bad compilation
 
Sorry to bring this thread up again, but I still haven't found the soluton to the problem.

I've had Nvidia's drivers working flawlessly in other distro's (except Suse),
and I just tried installing them in Libranet (Debian). I downloaded the tarballs, and
tried compiling them, but "make" gives an error that
"nv.c:22: linux/modversions.h: No such file or directory". I've donwloaded
the kernel-headers, and installed those, and then copied the linux dir into
/usr/src but now it gives an error that it can't find NVdriver.
GLX seems to install fine, but I still need to have the kernel installed.
Anyone know what's wrong, or had the same problem, have fixed this,
or is there a different driver to download?

Thanks in advance!


Vlado

mtrr 08-05-02 10:30 PM

you have to _configure_ you kernel at least once :(

I'll check if I still have a detailed debian procedure.

CU

Prodigy 08-05-02 10:55 PM

awesome!
 
Very awesome! Thanks very much :)


Vlado

mtrr 08-06-02 10:23 AM

found it, it's from a post in the past (very poetic :) )

if you don't use xfs from sgi, forget about that specific patch.

btw: worked for me

HTH

Prodigy 08-06-02 11:20 AM

hey
 
I don't quite understand what needs to be done though lol. Please post the link to the previous post or whatever if they explained in detail how to compile it :D

Once again, thanks for the reply :)

mtrr 08-06-02 11:54 AM

argh, fat fingers!

found that some months ago on the old forum, here you go:


get the kernel source and make your own kernel.
apt-get install kernel-source-2.4.18 kernel-package nvidia-kernel-src nvidia-glx-src kernel-patch-xfs

cd /usr/src
tar xvjf kernel-source-2.4.18.tar.bz2
tar xvzf nvidia-kernel-src.tar.gz
ln -s kernel-source-2.4.18 linux

cd linux
cp /boot/config-2.4.18-bf?? .config (to get the same conf as your running kernel)

export PATCH_THE_KERNEL=YES (to apply the XFS patch during make-kpkg)
make-kpkg --config=xconfig --revision=custom.1 kernel_image (--config is optional)
make-kpkg modules_image

cd ../nvidia-glx-version
dpkg-buildpackage -us -uc

dpkg -i packages generated in /usr/src

update lilo or grub and reboot

as you see kernel compilation is easy with debian as it is integrated with package management.

read /usr/doc/nvidia-*-src/README.Debian



-----------

can't remember the original poster

Prodigy 08-06-02 11:59 AM

awesome!
 
Hooray!

Once again, thanks for the quick reply! I'll get to recompiling the kernel right away, so I'll post back any results/screwups :D


Vlado

Prodigy 08-06-02 01:22 PM

trouble
 
Hmm...everything went by smoothly, but I don't know how to update grub. I've looked thru the man file and the info file, but it all looks like a bunch of gibberish to me. Is there a single command that I can just execute in order to automatically update?

mtrr 08-06-02 01:27 PM

is grub your boot-loader? if yes, then you're lucky.
way more comfortable than lilo :)

cheers

ps: seems that my ICQ-client is feeling better now....shall we give it another shot?

Prodigy 08-06-02 02:13 PM

yep
 
Sounds good, Just look my number undr my profile. I would suggest using GnomeICU or KXicq. I've had crap and nothing else from Licq, for some damn reason half the messages never got thru, but with Gnomeicu, and kxicq they both had no problems :P

If you're at work or whatever right now and can't use icq, then post the grub re-configuration here.

thanks once more :)

raistlinneo 08-07-02 08:53 PM

Hey mtrr, I was having the same problem, and i tried doing what you said in the above post, but it wont install the new kernel, no matter what i do. even if i put it in lilo manually, it says its too big. am i doing something wrong?

Prodigy 08-14-02 05:39 PM

Hey again mtrr, I've done a clean re-install of the system since my kernel compilation killed my sound and network modules, so I'd like to know whether the instructions above will include them as well, or if it'll just recompile the kernel with the nvidia modules?


Vlado


All times are GMT -5. The time now is 10:08 AM.

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