[3.2.2] [x64] NVIDIA 340.xx series support

Technical issues/questions of an intermediate or advanced nature.
Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

[3.2.2] [x64] NVIDIA 340.xx series support

Post#1 by Oracle » 17 Jan 2017, 01:08

http://dl.porteus.org/x86_64/Porteus-v3 ... 64-1bp.xzm

How about 340.xx or 375.xx series support? Is it officially available or user need to create themselves?
Could anyone send me some guides, links to DIY? Probably need a lot of help and love since I am very new into Linux, Thanks.

According to NVIDIA website,
http://www.nvidia.com/object/unix.html
Linux x86_64/AMD64/EM64T
Latest Long Lived Branch version: 375.26
Latest Short Lived Branch version: 370.28
Latest Legacy GPU version (340.xx series): 340.101
Latest Legacy GPU version (304.xx series): 304.134
Latest Legacy GPU Version (71.86.xx series): 71.86.15
Latest Legacy GPU Version (96.43.xx series): 96.43.23
Latest Legacy GPU Version (173.14.xx series): 173.14.39
340.xx
GeForce 800M Series (Notebooks):
GeForce GTX 880M, 870M, 860M, 850M,
GeForce 845M, 840M, 830M, 825M, 820M, 810M

GeForce 700 Series:
GeForce GTX TITAN Z, Black, GeForce GTX TITAN,
GeForce GTX 780 Ti, 780, 770, 760, 760 Ti (OEM), 750 Ti, 750, 745,
GeForce GT 740, 730, 720, 710, 705

GeForce 700M Series (Notebooks):
GeForce GTX 780M, 770M, 765M, 760M,
GeForce GT 755M, 750M, 745M, 740M, 735M, 730M, 720M, 710M,
GeForce 720M, 710M, 705M

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#2 by ncmprhnsbl » 17 Jan 2017, 01:24

at the moment we have : http://forum.porteus.org/viewtopic.php?f=39&t=6391
and this might be helpful : http://forum.porteus.org/viewtopic.php?f=39&t=6397
though i did see fulalas reporting(somewhere) some difficulty with the 340 driver and the latest kernel(4.9)..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#3 by fulalas » 17 Jan 2017, 05:51

Yeah, ncmprhnsbl, I still can't create a 340.xx (currently 340.101) Nvidia driver module with the new kernel 4.9.

Oracle, it seems that Bogomips has some clue about this subject. Take a look here: http://forum.porteus.org/viewtopic.php?f=49&t=6523

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#4 by Bogomips » 17 Jan 2017, 23:15

340.98 should be all go. However don't think my card stretches so far. Can help you there if you start topic in Intermediate/Advanced Section. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#5 by Oracle » 18 Jan 2017, 00:07

I would really appreciate if mod could move this post to Intermediate/Advanced Section. Thanks. :Bravo:

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#6 by Bogomips » 18 Jan 2017, 10:56

  1. For starters, using link in this post http://forum.porteus.org/viewtopic.php? ... 600#p50598 need to download NViIDIA..x86_64..run for 340.98.
  2. On a real filesystem

    Code: Select all

    mkdir  nvd
  3. Extract to Directory

    Code: Select all

    sh  NViIDIA..x86_64..run  -x  --target /Path/to/nvd/nv340.98
  4. Feed back that got so far awaited.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#7 by Oracle » 18 Jan 2017, 18:11

Hi Bogomips,
based on your suggestion, I downloaded NVIDIA-Linux-x86_64-340.101.run, extracted it to /mnt/sda1/nvidia/nv340.101/ already.

340.101
I share some of the possibly to be patched files in mega.nz (based on information on your thread viewtopic.php?f=49&t=6523)
https://mega.nz/#F!4pAw3aSS!mY0Y9yBGDNA9_72jqhUyQw

kernel/nv-linux.h
kernel/nv-drm.c
kernel/os-mlock.c

Currently taking a quick 101 Google course, how to use Linux patch :%)

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#8 by Bogomips » 18 Jan 2017, 18:46

Afraid there are Issues with 340.101, however 340.98 is known to run on Kernel 4.9. Can make do with 340.98 for time being?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#9 by Oracle » 18 Jan 2017, 18:55

Bogomips wrote:Afraid there are Issues with 340.101, however 340.98 is known to run on Kernel 4.9. Can make do with 340.98 for time being?
Sure, getting http://us.download.nvidia.com/XFree86/L ... 340.98.run

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#10 by Bogomips » 18 Jan 2017, 18:59

See also http://forum.porteus.org/viewtopic.php? ... 997#p51977 in order to get an idea of what we are about.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#11 by Oracle » 18 Jan 2017, 20:01

Code: Select all

root@porteus:/# pushd /mnt/sda1/nvidia/340.98
/mnt/sda1/nvidia/340.98 /

root@porteus:/mnt/sda1/nvidia/340.98# patch -p0 -i /mnt/sda1/nvidiap.patch 
patching file kernel/nv-linux.h
Hunk #1 FAILED at 254.
Hunk #2 succeeded at 2067 (offset 176 lines).
1 out of 2 hunks FAILED -- saving rejects to file kernel/nv-linux.h.rej
can't find file to patch at input line 39
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kernel/nv-mlock.c   2016-12-09 20:30:08.000000000 +0000
|+++ kernel/nv-mlock.c  2016-12-31 21:17:37.000000000 +0000
--------------------------
File to patch: 
I did something wrong up there? Now I am confused what file are patched :%)

Here the content for nv-linux.h.rej

Code: Select all

--- kernel/nv-linux.h   2016-12-09 20:30:08.000000000 +0000
+++ kernel/nv-linux.h  2016-12-31 21:17:37.000000000 +0000
@@ -254,6 +254,15 @@
 #include <linux/seq_file.h>
 #endif
 
+/*
+ * As of version 304.131, os-agp.c and os-mtrr.c still use deprecated
+ * kernel APIs for mtrr which are no longer exported since 4.3, causing
+ * the module to error out when loaded.
+ */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
+#undef CONFIG_MTRR
+#endif
+
 #if !defined(NV_VMWARE) && defined(CONFIG_MTRR)
 #include <asm/mtrr.h>
 #endif
Original files for 340.98
https://mega.nz/#F!s5ASEKIR!ar3UQDuno3b-bmV1W4l0NA
kernel/nv-linux.h
kernel/nv-drm.c
kernel/os-mlock.c

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#12 by Bogomips » 18 Jan 2017, 20:16

^ No need to patch as root.

Code: Select all

sudo rm -r  /mnt/sda1/nvidia/340.98
Now extract again, no need to be root. Check the patch file, etc.

UPDATE

Downloaded the .run to see if it patches OK.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#13 by Oracle » 18 Jan 2017, 20:23

I think I should use the patch here, http://pastebin.com/raw/0XE0e8Wx

The patch you provided http://forum.porteus.org/viewtopic.php? ... 997#p51977 is for version 304.

Let me try again.

Good news.
root@porteus:/mnt/sda1/nvidia/340.98# patch -p0 < n.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-drm.c
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-linux.h
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/os-mlock.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 46 with fuzz 2.
https://www.drupal.org/node/60116
patch unexpectedly ends in middle of line
This error seems to occur when the patch file ends on a line that includes nothing but whitespace characters. Patch files should always end with a Unix return character. If you encounter this error, check to see that the last line of your patch does not contain whitespace characters.
Lesson learned, must press ENTER at the last line of patch file.
root@porteus:/mnt/sda1/nvidia/340.98# patch -p0 < a.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-drm.c
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-linux.h
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/os-mlock.c

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#14 by Bogomips » 18 Jan 2017, 20:42

Good news? Still an error. Check drm.c against patched extract here: http://forum.porteus.org/viewtopic.php? ... 843#p51807

I'll have a go at patching it next, and see if come up with same error. Should be clean.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] NVIDIA 340.xx series support

Post#15 by Oracle » 18 Jan 2017, 21:00

According to your thread http://forum.porteus.org/viewtopic.php?f=49&t=6523
Next step is :
4. Boot into Text Mode, blacklisting Nouveau > Compile
5. Save Changes > Enter init 4

I know how to boot into text mode, but what is blacklisting Nouveau > Compile?
I suppose I should boot into text mode, and run /mnt/sda1/nvidia/340.98/nvidia-installer

According to thread http://forum.porteus.org/viewtopic.php?f=39&t=6391
etc/modprobe.d/nvidia-installer-disable-nouveau.conf

Code: Select all

# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0
Because the nvidia-installer doesn't want to run when nouveau is loaded ( I guess so )

Post Reply