Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Sep 2017, 07:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Drivers
Nvidia drivers
Post new topic   Reply to topic View previous topic :: View next topic
Page 6 of 10 [140 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Author Message
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sun 06 Sep 2015, 11:32    Post subject: Recent nvidia updates  

There have been other recent updates besides 304.128 on ftp://download.nvidia.com/XFree86/Linux-x86/

e.g.
340.93
346.96
352.41
355.11

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 2976
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 22 Oct 2015, 07:19    Post subject:  

Bonjour,
I am running Puppy Precise 5.7.1 with kernel 3.9.11.
I tried to use getnividia to build a 340.93 NVIDIA driver SFS file.
I loaded the devx, downloaded/loaded the "kernel_src-3.9.11-patched.sfs" from BK repository, installed getnvidia and so on. Unfortunately, getnvidia says that my kernel source package does not match with the running kernel. Shocked
What's wrong?
Thank you for your attention.

Corldialement.
151022_130333_440x320_easyshot.jpg
 Description   
 Filesize   27.81 KB
 Viewed   3459 Time(s)

151022_130333_440x320_easyshot.jpg


_________________

Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 2976
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 22 Oct 2015, 11:04    Post subject:  

Sorry! The "kernel_src-3.9.11-patched.sfs" was in the list of mounted sfs, but only queued and not really loaded: this is why getnvidia displayed the error message. As this may happen to "unexperimented" users like me, I do not delete my message...
Thank you to shinobar for getnvidia which is really amazing and did the work perfectly.

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Wed 23 Dec 2015, 10:41    Post subject: Nvidia driver building for kernel 4.3+  

Heads up!

With kernels 4.3 onwards, if the kernel is configured:
Code:
CONFIG_MODULE_SIG=y
CONFIG_MODULE_SIG_ALL=y
CONFIG_MODULE_SIG_SHA1=y
CONFIG_MODULE_SIG_HASH="sha1"

any new modules compiled for that kernel will need to be cryptographically signed using utility /usr/src/linux/scripts/sign-file
found in the kernel-sources.

GetNvidia will need to be updated to include signing if nvidia drivers are to continue working on kernels 4.3 onwards.

For example, nvidia-304.131 fails to build for stemsee's kernel 4.3.2 because module loading fails because the module is not signed.

(there is a futher problem with stemsee's 4.3.2 that sign-file does not work due to some problem with missing version information for libcrypto).

Cheers
peebee

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rufwoof

Joined: 24 Feb 2014
Posts: 2096

PostPosted: Fri 01 Jan 2016, 21:25    Post subject: Re: Nvidia driver building for kernel 4.3+  

peebee wrote:
Heads up!

With kernels 4.3 onwards, if the kernel is configured:
Code:
CONFIG_MODULE_SIG=y
CONFIG_MODULE_SIG_ALL=y
CONFIG_MODULE_SIG_SHA1=y
CONFIG_MODULE_SIG_HASH="sha1"

any new modules compiled for that kernel will need to be cryptographically signed using utility /usr/src/linux/scripts/sign-file
found in the kernel-sources.

GetNvidia will need to be updated to include signing if nvidia drivers are to continue working on kernels 4.3 onwards.

For example, nvidia-304.131 fails to build for stemsee's kernel 4.3.2 because module loading fails because the module is not signed.

(there is a futher problem with stemsee's 4.3.2 that sign-file does not work due to some problem with missing version information for libcrypto).

Cheers
peebee

I'm running Tahr 6.0.5 with Stemsee's 4.3.2 32bit pae kernel and downloaded/compiled NVIDIA-Linux-x86-340.96.run OK and its apparently working fine with my 8600GT nvidia graphics card (I used Shinobar's getnvidia-1.0.pet to perform the compile).

Looking at the DotConfig the configuration matches what you posted above.

Don't really know what I'm doing, just follow the instructions - but from my perspective it all looks fine !!??
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sat 02 Jan 2016, 03:28    Post subject: Re: Nvidia driver building for kernel 4.3+  

rufwoof wrote:
compiled NVIDIA-Linux-x86-340.96.run OK and its apparently working fine with my 8600GT nvidia graphics card (I used Shinobar's getnvidia-1.0.pet to perform the compile).
from my perspective it all looks fine !!??

Perhaps different versions - mine older 304.131 - yours 340.96 build differently??

Can you do - modinfo nvidia
in a terminal and see if your driver is signed?

Thanks
peebee

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rufwoof

Joined: 24 Feb 2014
Posts: 2096

PostPosted: Sat 02 Jan 2016, 06:22    Post subject: Re: Nvidia driver building for kernel 4.3+  

peebee wrote:
Can you do - modinfo nvidia
in a terminal and see if your driver is signed?

Hi peebee. Don't think it is. I see Licence nvidia ???
modinfo.jpg
 Description   
 Filesize   57.04 KB
 Viewed   3259 Time(s)

modinfo.jpg

Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sat 02 Jan 2016, 08:29    Post subject: Re: Nvidia driver building for kernel 4.3+  

rufwoof wrote:
peebee wrote:
Can you do - modinfo nvidia
in a terminal and see if your driver is signed?

Hi peebee. Don't think it is. I see Licence nvidia ???

Thanks rufwoof

I'm trying to compile 304.131 drivers for slackocurrent (based on slackware current) however the same error occurs for both tahrpup-6.0.5 and slacko-6.3.0

Nvidia Drivers build no problem for k4.1.11 from 01micko and k4.2.5 from stemsee.

But with k4.3.2 from stemsee I get:
Quote:
ERROR: Unable to load the kernel module.
ERROR: Installation has failed.
nvidia: module license 'NVIDIA' taints kernel.
nvidia: module verification failed: signature and/or required key missing - tainting kernel


More investigation is needed....

This link has useful info about module signing:
https://wiki.gentoo.org/wiki/Signed_kernel_module_support

Cheers
peebee

_________________
LxPup = Puppy + LXDE

Last edited by peebee on Sat 02 Jan 2016, 13:05; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
rufwoof

Joined: 24 Feb 2014
Posts: 2096

PostPosted: Sat 02 Jan 2016, 12:08    Post subject:  

Don't know if it has any bearing, but for reference I used the devx from Tahr 6.0.5 - and the kernel source, zdrv, vmlinuz from emsee 4.3.2 (and I appended the Tahr 6.0.5 ID (from DISTRO_SPECS) to zdrv and vmlinuz)
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sat 02 Jan 2016, 12:33    Post subject:  

rufwoof wrote:
Don't know if it has any bearing, but for reference I used the devx from Tahr 6.0.5 - and the kernel source, zdrv, vmlinuz from emsee 4.3.2 (and I appended the Tahr 6.0.5 ID (from DISTRO_SPECS) to zdrv and vmlinuz)

I get the same error message with both slacko-6.3.0 and tahrpup-6.0.5 with k4.3.2 so its not the devx that's the problem after all....this is trying to build the 304.131 driver....

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rufwoof

Joined: 24 Feb 2014
Posts: 2096

PostPosted: Sat 02 Jan 2016, 13:53    Post subject:  

Booted to command prompt using emsee 4.3.2 kernel and tahr 6.0.5 puppy. Ran the getnvidia for my own graphics card (340.96) and ran through to completion OK.

Ran getnvidia for the 304.131 (32 bit linux x86) and it seems to compile but then fails at the end (doesn't build pet's/sfs).

/root/getnvidia.log has 5 lines complaining about unknown symbol mtrr_add

/var/log/nvidia-installer.log has a error near the top ... line 28 onwards of (might not be a actual error, maybe just showing code ???)
Code:
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/4.3.2-EmSee-32-pae/source SYSOUT=/lib/modules/4.3.2-EmSee-32-pae/build'...
   NVIDIA: calling KBUILD...
   make -C /lib/modules/4.3.2-EmSee-32-pae/build KBUILD_SRC=/usr/src/linux \
      -f /usr/src/linux/Makefile modules
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
      echo >&2;                     \
      echo >&2 "  ERROR: Kernel configuration is invalid.";      \
      echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
      echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
      echo >&2 ;                     \
      /bin/false)
   mkdir -p /tmp/selfgz18575/NVIDIA-Linux-x86-304.131/kernel/.tmp_versions ; rm -f /tmp/selfgz18575/NVIDIA-Linux-x86-304.131/kernel/.tmp_versions/*
   make -f /usr/src/linux/scripts/Makefile.build obj=/tmp/selfgz18575/NVIDIA-Linux-x86-304.131/kernel
     cc -Wp,-MD,/tmp/selfgz18575/NVIDIA-Linux-x86-304.131/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.8/include -I/usr/src/linux/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated  -I/usr/src/linux/include -Iinclude -I/usr/src/linu


and last few lines (3538 onwards) of
Code:
   NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
-> Installing both new and classic TLS OpenGL libraries.
-> Uninstalling the previous installation with /bin/nvidia-uninstall.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86' (304.131):
   executing: '/sbin/ldconfig'...
   executing: '/sbin/depmod -aq 4.3.2-EmSee-32-pae'...
-> done.
-> Driver file installation is complete.
ERROR: Unable to load the kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.


Looks to my naive eyes that it compiled/built, but hit problems loading the module, maybe because it conflicts with my hardware ???

Don't know if that's of any help/use.
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sun 03 Jan 2016, 03:44    Post subject: 304 series problem with k4.3  

rufwoof wrote:
/root/getnvidia.log has 5 lines complaining about unknown symbol mtrr_add

I get those errors too....

Looks like it's a known problem introduced with k4.3 but affecting 304.* series drivers only....

https://bugs.archlinux.org/task/47092

https://devtalk.nvidia.com/default/topic/893282/?comment=4758413

so it needs a patch to the kernel - or for nvidia to release an updated 304.*.run

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rufwoof

Joined: 24 Feb 2014
Posts: 2096

PostPosted: Sun 03 Jan 2016, 06:25    Post subject:  

Quote:
Looks like it's a known problem introduced with k4.3 but affecting 304.* series drivers only....

Indeed

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2baa891e42d84159b693eadd44f6fe1486285bdc

The following snippet taken out of this https://raw.githubusercontent.com/manjaro/packages-core/5678aac274a009f1511735238eca5fac79dd352c/linux43/nvidia-304xx-mtrr-unknown-symbol.patch manjaro patch indicates the cause of the problem with the above kernel change

Quote:
+ * With 2baa891e42d84159b693eadd44f6fe1486285bdc the kernel internal
+ * MTRR interfaces (unexport mtrr_add() and mtrr_del()) got removed.
+ * However Nvidia legacy driver 304xx still needs these exports

mtrr_add() and mtrr_del() having been 'removed', but needed by 304 nvidia driver
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sun 21 Feb 2016, 07:56    Post subject: nvidia 304.* patch for >k4.3  

A patch has become available to enable the legacy 304.131 driver to correctly install on >k.4.3

I've done a manual build for k4.4.1 to test - see screenie

It would be very nice if such patches could be applied as part of get-nvidia....

The patch is attached - false .gz
nvidia_mtrr_k4_3.patch.gz
Description 
gz

 Download 
Filename  nvidia_mtrr_k4_3.patch.gz 
Filesize  446 Bytes 
Downloaded  300 Time(s) 
nvidia-k4.4.1.png
 Description   
 Filesize   117.2 KB
 Viewed   2986 Time(s)

nvidia-k4.4.1.png


_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 2860
Location: Worcestershire, UK

PostPosted: Sat 02 Apr 2016, 13:05    Post subject: Re: nvidia 304.* patch for >k4.3  

peebee wrote:
It would be very nice if such patches could be applied as part of get-nvidia....

Just to report that with 666philb's excellent help I have been able to apply the >k4.3 patch to the 304.131 .run file and then use getnvidia to build the sfs.

The secret is knowing that nvidia have used the makeself utility to build the .run files.

You can therefore extract (unpack) the .run file, patch it and then rebuild a patched .run file using the makeself utility which is contained within the .run archive.

The links 666philb gave me to explain this process were:
https://tr.opensuse.org/NVIDIA
http://stephanepeter.com/makeself/

The runes I used were:
Code:
cd directory/where/you/saved/NVIDIA-Linux-x86-304.131.run
./NVIDIA-Linux-x86-304.131.run --extract-only

apply patch

./NVIDIA-Linux-x86-304.131/makeself.sh \
--target-os Linux --target-arch x86 \
NVIDIA-Linux-x86-304.131 \
NVIDIA-Linux-x86-304.131-patched.run \
"NVIDIA driver 304.131 patched for k4.3+" \
./nvidia-installer
If anybody is interested I can upload the patched 304.131 .run file somewhere....

Cheers
peebee

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 6 of 10 [140 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Drivers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0814s ][ Queries: 14 (0.0080s) ][ GZIP on ]