Page: 1, 2  Next

sgfxi: Nvidia-driver does not compile yet with Kernel 3.10
reiner
Status: Contributor
Joined: 28 Jul 2009
Posts: 119
Location: Germany
Reply Quote
Hello,
I just tried to upgrade to Kernel 3.10 (siduction).
The latest nvidia-driver 319.23 and the newest beta-driver (325.08) do not compile with this kernel yet. Neither via sgfxi nor manual calling of the ru-file.

Did go back to 3.9.8.

regards

Reiner
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4126
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
oh, thank you for noting that.
Back to top
arclance
Status: Interested
Joined: 26 May 2012
Posts: 41
Reply Quote
There is a patch for 325.08 (the new beta) here on the Nvidia forums.
I have not tried it myself but you could try it if it looks okay to you.
Back to top
reiner
Status: Contributor
Joined: 28 Jul 2009
Posts: 119
Location: Germany
Reply Quote
I think I will give it a try during the weekend.

Thanks and regards

Reiner
Back to top
drb
Status: Contributor
Joined: 09 Jul 2009
Posts: 130
Reply Quote
h2

Is this patch (easily) buildable into sgfxi?
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4126
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
there are at least 3 patches on that page, one is for 319, one for 325.

I can get these in provided that the patches actually work on standard kernels, there's also a question on that page about which kernel works on which patch.

A good patch can be run without any change directly inside the extracted driver directory. 2 of these look ok, one looks bad.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4126
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
By the way, following the nvidia forum thread, I note that the patches are not working for people, so here's how it will work here:

List the kernel, only standard main branch kernels will be supported, no beta or pre stable releases will be supported, it's too time consuming and the kernels often change at stable release making tracking the stuff too hard.

Locate a patch for the kernel/driver in question, make sure it works on the driver package once extracted, then link me to that specific patch (NOT, note, to a thread that links to 4 or 5 patches where it is unclear which patch is meant for what). The patch must run inside of the unzipped directory, and it must be confirmed to work on that specific driver.

If there is a working patch for the 319 latest driver, include a link to that.

I had a big waste of time last time I ran patches for fglrx and something like a new kernel, and didn't get it working until I had a few patch sets applied, so I'm not anxious to repeat that experience.

In general, this will be how to get patches in sgfxi, download driver, extract, run patch directly inside of extracted directory, make sure it runs cleanly with no hunk failures, then make sure the driver actually works after install.

Sometimes there is a single patch, usually in fact there is for nvidia, but this one looks unclear and somewhat disorganized so I'm only going to use a patch in sgfxi once it has been confirmed to work by a tester running 3.10.
Back to top
kmathern
Status: Interested
Joined: 11 Jan 2010
Posts: 13
Reply Quote
I think I have a patch that will work with the 3.10 kernel and the 173.14.37 legacy driver.

I used/extracted the 'fix-build-with-linux-3.10' patch file from a mageia src rpm file here: ftp://fr2.rpmfind.net/linux/mageia/distrib/cauldron/SRPMS/nonfree/release/nvidia173-173.14.37-4.mga4.nonfree.src.rpm. I did need to make some minor changes to the paths in that patch file.

Here's a dropbox link to my editted version of the 'fix-build-with-linux-3.10' patch: dl.dropboxusercontent.com/u/18456966/fix-build-with-linux-3.10.patch

Below is the terminal output from extracting the .run installer (NVIDIA-Linux-x86-173.14.37-pkg1.run) and applying the patch.
:: Code ::
$ bash NVIDIA-Linux-x86-173.14.37-pkg1.run -x
Creating directory NVIDIA-Linux-x86-173.14.37-pkg1
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.14.37.............................................................................................................................................................................................................................................................................................
$
$ cd NVIDIA-Linux-x86-173.14.37-pkg1
$
$ patch -p1 <../fix-build-with-linux-3.10.patch --verbose
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From c3248bb6c976c112e9efa9e8f202590b2f9b40a5 Mon Sep 17 00:00:00 2001
|From: Alberto Milone <alberto.milone@canonical.com>
|Date: Tue, 18 Jun 2013 15:16:18 +0200
|Subject: [PATCH 1/1] Add support for Linux 3.10
|
|---
| nv-i2c.c   |   13 +--
| nv-linux.h |    1 +
| nv.c       |  375 ++++++++++++++++++++++++++++++++++++++----------------------
| 3 files changed, 241 insertions(+), 148 deletions(-)
|
|diff -Nurp a/usr/src/nv/nv.c b/usr/src/nv/nv.c
|--- a/usr/src/nv/nv.c  2013-03-07 04:58:57.000000000 +0200
|+++ b/usr/src/nv/nv.c  2013-07-15 23:28:43.734781501 +0300
--------------------------
patching file usr/src/nv/nv.c
Using Plan A...
Hunk #1 succeeded at 291.
Hunk #2 succeeded at 332.
Hunk #3 succeeded at 625.
Hunk #4 succeeded at 650.
Hunk #5 succeeded at 687.
Hunk #6 succeeded at 710.
Hunk #7 succeeded at 790.
Hunk #8 succeeded at 3070.
Hunk #9 succeeded at 3100.
Hunk #10 succeeded at 3139.
Hunk #11 succeeded at 3211.
Hunk #12 succeeded at 3230.
Hunk #13 succeeded at 3319.
Hunk #14 succeeded at 3330.
Hunk #15 succeeded at 3347.
Hunk #16 succeeded at 3361.
Hunk #17 succeeded at 3371.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Nurp a/usr/src/nv/nv-i2c.c b/usr/src/nv/nv-i2c.c
|--- a/usr/src/nv/nv-i2c.c      2013-03-07 04:58:57.000000000 +0200
|+++ b/usr/src/nv/nv-i2c.c      2013-07-15 23:28:43.730781466 +0300
--------------------------
patching file usr/src/nv/nv-i2c.c
Using Plan A...
Hunk #1 succeeded at 307.
Hunk #2 succeeded at 318.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Nurp a/usr/src/nv/nv-linux.h b/usr/src/nv/nv-linux.h
|--- a/usr/src/nv/nv-linux.h    2013-03-07 04:58:58.000000000 +0200
|+++ b/usr/src/nv/nv-linux.h    2013-07-15 23:28:43.731781470 +0300
--------------------------
patching file usr/src/nv/nv-linux.h
Using Plan A...
Hunk #1 succeeded at 163.
done
$

The patched installer runs okay and installs the 173.xx driver on a siduction 3.10 kernel. I don't have any terminal output from that, but I can post the /var/log/nvidia-installer.log if you want it.

Below is the inxi report running from the siduction 3.10 kernel and using the 173.xx nvidia driver
:: Code ::

$ inxi -bxxx
System:    Host: mepis1 Kernel: 3.10-0.towo-siduction-686 i686 (32 bit, gcc: 4.8.1)
           Desktop: KDE 4.10.5 (Qt 4.8.5) info: plasma-desktop dm: kdm Distro: Debian GNU/Linux jessie/sid
Machine:   Mobo: N/A model: nVidia-nForce Bios: Phoenix version: 6.00 PG date: 08/04/2004
CPU:       Single core AMD Athlon XP 3000+ (-UP-) clocked at 2171.00 MHz
Graphics:  Card: NVIDIA NV34 [GeForce FX 5200] bus-ID: 02:00.0 chip-ID: 10de:0322
           X.Org: 1.12.4 driver: nvidia Resolution: 1024x768@50.0hz
           GLX Renderer: GeForce FX 5200/AGP/SSE/3DNOW! GLX Version: 2.1.2 NVIDIA 173.14.37 Direct Rendering: Yes
Network:   Card: Realtek RTL-8139/8139C/8139C+ driver: 8139too ver: 0.9.28 port: d400 bus-ID: 01:0b.0 chip-ID: 10ec:8139
Drives:    HDD Total Size: 243.0GB (45.3% used)
Info:      Processes: 125 Uptime: 13:56 Memory: 796.8/1009.7MB Runlevel: 3 Gcc sys: 4.8.1 alt: 4.6/4.7
           Client: Shell (bash 4.2.45 running in yakuake) inxi: 1.9.12





The patched installer also works with the Debian 3.10 kernel that showed up in Debian Unstable/Sid yesterday. Actually the installer failed when I first tried it yesterday [I removed this post yesterday because of that]. The linux-kbuild-3.10 package received an update today ( 3.10-1 --> 3.10-2 ) and with that update the patched installer can now also build the 173.xx nvidia driver for the Debian 3.10 kernel. Here's it's inxi report:
:: Code ::

$ inxi -bxxx
System:    Host: mepis1 Kernel: 3.10-1-486 i686 (32 bit, gcc: 4.7.3)
           Desktop: KDE 4.10.5 (Qt 4.8.5) info: plasma-desktop dm: kdm Distro: Debian GNU/Linux jessie/sid
Machine:   Mobo: N/A model: nVidia-nForce Bios: Phoenix version: 6.00 PG date: 08/04/2004
CPU:       Single core AMD Athlon XP 3000+ (-UP-) clocked at 2166.528 MHz
Graphics:  Card: NVIDIA NV34 [GeForce FX 5200] bus-ID: 02:00.0 chip-ID: 10de:0322
           X.Org: 1.12.4 driver: nvidia Resolution: 1024x768@50.0hz
           GLX Renderer: GeForce FX 5200/AGP/SSE/3DNOW! GLX Version: 2.1.2 NVIDIA 173.14.37 Direct Rendering: Yes
Network:   Card: Realtek RTL-8139/8139C/8139C+ driver: 8139too ver: 0.9.28 port: d400 bus-ID: 01:0b.0 chip-ID: 10ec:8139
Drives:    HDD Total Size: 243.0GB (43.1% used)
Info:      Processes: 101 Uptime: 1 min Memory: 244.2/1009.9MB Runlevel: 5 Gcc sys: 4.8.1 alt: 4.6/4.7
           Client: Shell (bash 4.2.45 running in yakuake) inxi: 1.9.12

Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4126
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
thanks for the update, I'll add that in soon, maybe the other patches too for the current / beta drivers.

I'm not convinced the other ones though work, no verification yet.
Back to top
DeepDayze
Status: Contributor
Joined: 21 May 2009
Posts: 128
Reply Quote
Any update for sgfxi being able to build the 319.xx or 325.xx drivers on 3.10? Currently on 3.9.8 kernel still so waiting on verified patches before I upgrade the kernel.
Back to top
Display posts from previous:   
Page: 1, 2  Next
All times are GMT - 8 Hours