Nvidia drivers

For drivers and kernel modules.
Post Reply
Message
Author
User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: Nvidia driver building for kernel 4.3+

#81 Post by peebee »

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
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

Re: Nvidia driver building for kernel 4.3+

#82 Post by rufwoof »

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 ???
Attachments
modinfo.jpg
(57.04 KiB) Downloaded 6739 times
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: Nvidia driver building for kernel 4.3+

#83 Post by peebee »

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:
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_ker ... le_support

Cheers
peebee
Last edited by peebee on Sat 02 Jan 2016, 17:05, edited 1 time in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#84 Post by rufwoof »

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)
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#85 Post by peebee »

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....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#86 Post by rufwoof »

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: Select all

-> 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: Select all

   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.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

304 series problem with k4.3

#87 Post by peebee »

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/topi ... nt=4758413

so it needs a patch to the kernel - or for nvidia to release an updated 304.*.run
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#88 Post by rufwoof »

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 ... 1486285bdc

The following snippet taken out of this https://raw.githubusercontent.com/manja ... mbol.patch manjaro patch indicates the cause of the problem with the above kernel change
+ * 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
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

nvidia 304.* patch for >k4.3

#89 Post by peebee »

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
Attachments
nvidia_mtrr_k4_3.patch.gz
(446 Bytes) Downloaded 791 times
nvidia-k4.4.1.png
(117.2 KiB) Downloaded 6378 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: nvidia 304.* patch for >k4.3

#90 Post by peebee »

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: Select all

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
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

304.131 for k4.6

#91 Post by peebee »

Here is the patch needed to get nvidia-304.131 to compile on kernel 4.6

Remove false .gz

This is in addition to the kernel 4.3 patch above.

You can download the patched .run if anybody wants it.

Cheers
peebee
Attachments
nvidia-304.131-k4.6.patch.gz
remove false .gz
(1.76 KiB) Downloaded 580 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

riedzig
Posts: 40
Joined: Thu 01 Oct 2015, 06:14

Nvidia driver for Slacko6.0

#92 Post by riedzig »

Hi peebee,
I can't find the nvidia 304xx driver for
http://lx-pup.weebly.com/slacko60.html
Please let me know if this is available.

btw. unlike any other distros, here the leds Num, Caps and Scroll lock on my keyboard don't light, although the keys work properly. Can this be changed?

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: Nvidia driver for Slacko6.0

#93 Post by peebee »

riedzig wrote:Hi peebee,
I can't find the nvidia 304xx driver for
http://lx-pup.weebly.com/slacko60.html
Please let me know if this is available.

btw. unlike any other distros, here the leds Num, Caps and Scroll lock on my keyboard don't light, although the keys work properly. Can this be changed?
I've uploaded to:

http://smokey01.com/peebee/nvidia/nvidi ... e-s630.sfs

Can't answer the keyboard lights query I'm afraid - suggest you post somewhere else on the forum with more details of your computer hardware....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

mikegarcia
Posts: 2
Joined: Thu 30 Jun 2016, 15:15

#94 Post by mikegarcia »

Hello. Iam new in the linux world, and i need help while installing nvidia drivers.

Kernel - 3.14.20 - PAE
Distribution - tharpup 6.0
Nvidia - Geforce4 440 go 64MB


If possible, i would like to have an already assembled file.

Thanks for the help

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#95 Post by Burn_IT »

I think I have posted about those drivers in the past on Puppy forums.
You can search as well as I can for the posts using my username and "NVIDIA"
"Just think of it as leaving early to avoid the rush" - T Pratchett

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#96 Post by rufwoof »

mikegarcia wrote:Hello. Iam new in the linux world, and i need help while installing nvidia drivers.

Kernel - 3.14.20 - PAE
Distribution - tharpup 6.0
Nvidia - Geforce4 440 go 64MB


If possible, i would like to have an already assembled file.

Thanks for the help
If its not in the "updates" section, there's this http://murga-linux.com/puppy/viewtopic. ... 726#571726 alternative.

chilidog

nvidia-kernel-legacy-71xx and 3.14.20 kernel

#97 Post by chilidog »

I have an old computer (2004 or older) with Geforce256.
I run Tahr6.0.2 happily, but with vesa.

With Wary I can install the proper Invidia driver, legacy-71xx, but with Tahr I cannot because of the newer kernel.

In the package for legacy-71xx in debian wheezy there are patches for this. I haven't tried them: it would be a 'tour de force' for me.
There is also a warning there that "this driver only works with xserver 1.4" and Tahr has xorg 1.15!

Is it worth trying the patches from debian? Could it still work?
If so, did anyone by chance try this before?

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#98 Post by bigpup »

Making graphics drivers does not like me.

Anyone make any Nvidia drivers for Xenialpup 7.0.1?

I need the NVIDIA-Linux-x86-173.14.39 driver.


I downloaded the NVIDIA-Linux-x86-173.14.39.run package from Nvidia web site.
I have loaded the devx and kernel sfs, but I keep getting errors when making the driver.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

version2013
Posts: 503
Joined: Mon 09 Sep 2013, 00:00
Location: Florida, USA
Contact:

#99 Post by version2013 »

bigpup wrote:Making graphics drivers does not like me.

Anyone make any Nvidia drivers for Xenialpup 7.0.1?

I need the NVIDIA-Linux-x86-173.14.39 driver.


I downloaded the NVIDIA-Linux-x86-173.14.39.run package from Nvidia web site.
I have loaded the devx and kernel sfs, but I keep getting errors when making the driver.
What kind of errors are you getting?

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#100 Post by bigpup »

/usr/src/linux/scripts/Makefile.build:258: recipe for target '/tmp/selfgz267
3/NVIDIA-Linux-x86-173.14.39-pkg1/usr/src/nv/nv.o' failed
make[4]: *** [/tmp/selfgz2673/NVIDIA-Linux-x86-173.14.39-pkg1/usr/src/nv/nv.
o] Error 1
/usr/src/linux/Makefile:1391: recipe for target '_module_/tmp/selfgz2673/NVI
DIA-Linux-x86-173.14.39-pkg1/usr/src/nv' failed
make[3]: *** [_module_/tmp/selfgz2673/NVIDIA-Linux-x86-173.14.39-pkg1/usr/sr
c/nv] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:239: recipe for target 'module' failed
make[1]: *** [module] Error 1
makefile:54: recipe for target 'module' failed
make: *** [module] Error 2
-> Error.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Post Reply