Nvidia Driver and the 2.6.25 rc kernels

Share your own howto's etc. Not for support questions!

Nvidia Driver and the 2.6.25 rc kernels

Postby Jackiebrown » 2008-03-04 00:37

I realize this how-to will be dated very soon, but to save some searching.

Download the latest rc kernel.

Download the latest nvidia driver.

Here are the patches.

http://www.nvnews.net/vbulletin/showpos ... stcount=54

Now extract the kernel enter the top level kernel directory.

Code: Select all
patch -p1 </[path to patch]/2.6.25-nvidia-fix.patch


Then make any changes you want to the kernel and compile it.

Code: Select all
fakeroot make-kpkg --initrd kernel_headers kernel_image


Now extract the nvidia installer

Code: Select all
sh NVIDIA-Linux-x86_64-169.12-pkg2.run -x

Code: Select all
cd NVIDIA-Linux-x86_64-169.12-pkg2

Code: Select all
patch -p1 </[path to patch]/nvidia-drivers-169.12-kernel.patch


Reboot into your new kernel

Do not run the Nvidia installer. Instead go to the Nvidia directory that was created when you extracted the driver.
Code: Select all
./nvidia-installer


Should be good to go.
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby mzilikazi » 2008-04-24 20:11

Anyone successfully appllied this patch to Debians nvidia-kernel-source? I really don't like to use the Nvidia script.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby Jackiebrown » 2008-04-27 16:41

More "offical" patch

http://www.nvnews.net/vbulletin/showthr ... b&t=110088

mzilikazi - I am going to mess with it today and see if I can. (I don't like to use the nvidia script either)
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby Jackiebrown » 2008-04-27 16:48

Actually, there is a bug with instructiions on how to apply the patch on the tracker

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476504


***edit***

Got it working. If anyone needs the modified kernel-source package for 64 bit sys, I can email it you. (It's pretty easy though. Just follow the directions in the bug report but take care to note the path changes. I just use dpkg-repack to rebuild the deb.)
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby mzilikazi » 2008-04-27 18:42

Jackiebrown wrote:Actually, there is a bug with instructiions on how to apply the patch on the tracker

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476504


***edit***

Got it working. If anyone needs the modified kernel-source package for 64 bit sys, I can email it you. (It's pretty easy though. Just follow the directions in the bug report but take care to note the path changes. I just use dpkg-repack to rebuild the deb.)

Did you get it working with nvidia-kernel source or the legacy source? I had no luck with nvidia-kernel source. It keeps asking for the file to patch.
Code: Select all
/usr/src/modules/nvidia-kernel# patch -p3 -s </home/glenn/Downloads/NVIDIA_kernel-169.12-2286310.diff.txt
The text leading up to this was:
--------------------------
|diff -ru usr/src/nv/Makefile.kbuild usr/src/nv.2286310/Makefile.kbuild
|--- usr/src/nv/Makefile.kbuild   2008-03-16 14:13:10.000000000 -0700
|+++ usr/src/nv.2286310/Makefile.kbuild   2008-03-16 14:37:47.204131496 -0700
--------------------------
File to patch:
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby Jackiebrown » 2008-04-27 23:31

the nvidia-kernel source.

I had to move the nv directory directly to /usr/src so that the paths would match the patch. Otherwise I would get the same error you are getting.

I suppose a sym link might work.

To be safe, I started with a clean extract
cp /usr/src/nvidia-kernel-source.bz2 /home/username/

unp nvidia-kernel-source.bz2

mv /home/username/modules/nvidia-kernel/nv /usr/src/ (could try a sym link instead)

cd /usr/src/nv/

patch -p3 -s < /home/username/NVIDIA_kernel-169.12-2286310.diff.txt

mv /usr/src/nv /home/username/modules/nvidia-kernel/

rm /home/username/nvidia-kernel-source.bz2

tar -cjf nvidia-kernel.tar.bz2 nvidia-kernel-source.bz2

mv /home/username/nvidia-kernel-source.bz2 /usr/src/
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby Jackiebrown » 2008-04-27 23:35

probably, it could be condensed to
unp /usr/src/nvidia-kernel.tar.bz2
ln -s /usr/src/modules/nvidia-kernel/nv /usr/src/
cd /usr/src/
patch -p3 -s </home/glenn/Downloads/NVIDIA_kernel-169.12-2286310.diff.txt
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby mzilikazi » 2008-04-28 01:36

Jackiebrown wrote:the nvidia-kernel source.
I suppose a sym link might work.

I tried that but no workie. Maybe I should've started with a clean source.

Thanks for the writeup. :)
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby rickh » 2008-04-28 02:02

I see that 2.6.25 is in the "new" queue. Sure hope this issue is cleared up quickly.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3475
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby HP-X » 2008-04-29 01:49

mzilikazi wrote:Anyone successfully appllied this patch to Debians nvidia-kernel-source? I really don't like to use the Nvidia script.


Ok, so I didn't really patch the drivers although I guess ops solution would work (haven't tried it).

I'm running a custom kernel and since the nvidia-kernel-source wouldn't compile against 2.6.25 without patching I downloaded the beta drivers for nvidia which had this fixed.

Non-working. :O

Anyone knows how to export DEBIAN/control etc from a deb?

Found this link here: http://www.xs4all.nl/~carlo17/howto/nvidia.html I will try both patching and this link when I get home on sunday.
HP-X
 
Posts: 8
Joined: 2008-04-27 19:16

Postby rickh » 2008-04-30 14:05

2.6.25 kernel is now in Sid, but the nvidia-kernel-source is still 169.12

Looking at Nvidia's pages, it appears that there have been a couple betas since 169.12. Do any of you know what kernel-source version I should wait for to avoid this patching exercise.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3475
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby Eck » 2008-05-01 17:44

Carefully read any release note type information provided on the nvnews forum for these beta series drivers.

I recall seeing there with the initial beta that 3D glx hadn't been implemented yet for at least the late model cards these beta series drivers add support for and possibly (I was unclear when reading it) just installing them on the 2.6.25 Kernel.

I think the work around in the sticky below the beta driver sticky over there may be the better way to go, still using the 169.12 driver which fully implements glx.

There have been threads started over there from folks complaining of the beta driver only offering 2D.

Yeah, I sure hope NVidia is busy trying to get us an official release for both the new Kernels and new cards. Not sure how fast we'll be getting 2.6.25 in Lenny but I'd hate to see us unable to get our 3D going. And I sure understand Sid users wanting this solved fast.

Edit -

I was just over there and saw that the lack of GLX is only on the experimental support for xserver-xorg-1.5. Since no version of that is in Debian yet, that's one problem we don't need to worry about.

The beta's do support 3D via GLX. Just not on the sometime in the future 1.5 xorg.
Lenovo z560 Laptop Nvidia GeForce 310m Hitachi 500GB HD Intel HD Audio 4GB RAM
Eck
 
Posts: 738
Joined: 2007-06-27 16:13

Postby Jackiebrown » 2008-05-03 02:51

I read that 2d sucks on it
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby Hadret » 2008-05-06 12:32

http://www.nvidia.com/object/linux_disp ... 73.08.html

Restored compatibility with recent Linux 2.6 kernels


(:
#404378
User avatar
Hadret
 
Posts: 354
Joined: 2007-07-19 13:04
Location: Wroclaw, Poland

Postby Jackiebrown » 2008-05-06 15:39

Yeah, but the Debian maintainer does not usually package the beta drivers.

The link you gave doesn't mention it is a beta (or I missed it.)

See http://www.nvnews.net/vbulletin/showthread.php?t=111460
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable