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 Wed 19 Jun 2013, 20:24
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
NVIDIA drivers in puppy 4.x
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Author Message
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Tue 18 Nov 2008, 04:33    Post subject:  NVIDIA drivers in puppy 4.x  

Who here has had any luck installing nvidia drivers on puppy 4.0 4.10 or 4.11? Me, I've tried all of Gray's pet packages to no avail. The initial pet dialogue comes up, but then after that nothing happens.

I've also tried using the NVIDIA-Linux-x86-177.82-pkg1.run program from nvidia's website... but it cannot find the source directory it needs to be able to compile the driver.

Does anyone have any words of wisdom to offer me, here?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 18 Nov 2008, 05:22    Post subject:  

to complile the driver, you need devx_410.sfs, and the kernel sources.
You also might need to compile the kernel if I remember well, because that creates files required by the installer, like version.h.
Just compile, not install the kernel.

For instructions of kernel compilation, see:
http://www.murga-linux.com/puppy/viewtopic.php?t=34186

The problem with the nvidia drivers is, that you only can compile them, if your computer has a matching graficscard.

That makes it impossible for packagers to create pets, if they do not have such a card.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Tue 18 Nov 2008, 16:41    Post subject:  

Thank you SO much for your help, Mu.

I was able to find Barry's instructions on recompiling here, and found it was pretty straightforward to unwrap the sources and prepare them for compiling a kernel. I'm almost there now. However, your config file you mentioned in that explanation isn't on the web anymore, and I seem to be experiencing an error while compiling using "make" after using "make defconfig."


Code:

make[2]: ***[arch/x86/boot/compressed/misc.o] Error 1
make[1]: ***[arch/x86/boot/compressed/vmlinux] Error 2


After I run make, nvidia is a lot more amicable about running its own installer. But it still hangs up next to a place where it can't find "nvidia.ko." And then there's a long message about a possible mismatch between the source and the actual installation.

Do you have another default .config file available for the kernel 2.6.25.16?

I realize that this method is the best way to get the most recent nvidia drivers into my machine. I find it odd, however, that there isn't an easier way to install one of the older nvidia drivers. I have an instance of WNOP 0.2 installed on this machine as well, and I see that there, the nvidia drivers have been installed automatically.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 18 Nov 2008, 19:23    Post subject:  

Pupys original config:
http://puptrix.org/sources/kernel-2.6.25.16/DOTconfig-K2.6.25.16-26AUG08-STANDARD


I also attach the config for the smp-kernel.
Mark
config-smp-2.6.25.16.tar.gz
Description 
gz

 Download 
Filename  config-smp-2.6.25.16.tar.gz 
Filesize  18.31 KB 
Downloaded  157 Time(s) 

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Wed 19 Nov 2008, 01:29    Post subject:  

All right, Mu... again, let me thank you for your patience with me.

Thanks to the configuration files you gave me I was able to compile the puppy kernel successfully. But yet and still, I'm having a hang up with the nvidia driver creator.

What do you make of this error message which it spits out?

Code:
Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the nvidia kernel module from obtaining ownership of the NVIDIA graphics device(s).

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.


In the nvidia-installer.log I can see that it appears that the nvidia driver was created and compiled successfully. However, I think this message is telling me that there was an error when it was loading. Looking through the modules section of puppy 4.1.1, indeed I find both of the offending files which this message mentions in the source files but not in the current puppy installation.

I've tried removing the offending files, rebooting, and doing the NVIDIA-Linux-x86-177.82-pkg1.run program again. But again, the same error shows up.

So, the upshot is, that as of yet, I cannot eke out that nvidia driver for my 8500gt chipset. Do you have any more thoughts about this?

Danke Schön.

Last edited by glassparrot on Wed 19 Nov 2008, 06:31; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 19 Nov 2008, 01:33    Post subject:  

please type:
modprobe nvidia
Then copy&paste the error you get here.
You may select the text with the mouse, then middle-click in the forum message, to paste.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Wed 19 Nov 2008, 01:38    Post subject:  

Ahhh so you CAN copy text from an rxvt window...! That's good to know... it simply says that the module is not found.

Code:
FATAL: Module nvidia not found.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 19 Nov 2008, 01:42    Post subject:  

ok, so try
depmod -a
modprobe nvidia


If it still is not found, there might have gone something wrong during compilation.

then type:
gzip /var/log/nvidia-installer.log

Then please attach the log /var/log/nvidia-installer.log.gz here.
I might answer in some hours, when I took some sleep, if I have an idea with help of the log.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Wed 19 Nov 2008, 01:50    Post subject:  

Thanks Mark. I hate to take up your time with this sort of thing. Perhaps in the future this process of installing graphics card drivers can be made easier for folks.

There was no change when I typed depmod -a before typing modprobe nvidia
nvidia-installer.log.gz
Description 
gz

 Download 
Filename  nvidia-installer.log.gz 
Filesize  4.17 KB 
Downloaded  176 Time(s) 
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 19 Nov 2008, 02:02    Post subject:  

No need to apologize, the nvidia drivers are difficult, but together we might create a solution.

From the log:
Quote:
echo " ERROR: Kernel configuration is invalid.";
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it


Ok, I think you might have used the config for the smp kernel.
Please use the other one:
http://puptrix.org/sources/kernel-2.6.25.16/DOTconfig-K2.6.25.16-26AUG08-STANDARD
Save it as:
/usr/src/2.6.25.16/.config

Then type:
cd /usr/src/2.6.25.16/
make oldconfig && make prepare


This should create the correct kernel includes required by the nvidia installer.
Then run the installer again.
If it works now, please share the module with us.
Search it:
cd /lib/modules
find . -name nvidia.ko


That will tell you the full path, where it is.
Then package it:
cd /lib/modules/...the path.../
tar -czvf nvidia.ko.tar.gz nvidia.ko


Then attach the new nvidia.ko.tar.gz.
I then could try to create a pet next week (I'm too busy this week).
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Wed 19 Nov 2008, 02:19    Post subject:  

Ok, Mark... guten Nacht.

It looks like I need to take another half an hour to run "make" again first, then... I'll get back to you and post that nvidia.ko file, if I succeed at this.

Tchüss.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Wed 19 Nov 2008, 03:35    Post subject:  

Yes! You were exactly right, Mark. I used the wrong kernel configuration file. Ahhh... glassparrot sighs... how refreshing to have a large screen area to work with! The glaciers look so much brighter on that horizon now.

OK.. so now at least I have the nvidia drivers installed. I hope that others can get them up and running too.

Therefore here is the nvidia.ko module file which you requested. It was in the folder /lib/modules/2.6.25.16/kernel/drivers/video. It was created with puppy 4.1.1, an 8500GT nvidia chipset, and the latest driver from the nvidia website: NVIDIA-Linux-x86-177.82-pkg1.run. Do you need a copy of my modified xorg.conf file as well?

(Somehow John Murga's bulletin board software does not seem to be allowing uploads anymore tonight, so I gave you a web link instead.)
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 19 Nov 2008, 07:36    Post subject:  

great, and thanks for sharing your module Smile
No, xorg.conf is not needed.
I installed the driver a while ago using a different kernel, so can use those files. I just needed the new kernelmodule from you.

thanks, Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
glassparrot


Joined: 01 Jun 2008
Posts: 285
Location: Durango, Colorado - USA

PostPosted: Wed 19 Nov 2008, 14:47    Post subject:  

Please post a note back on this thread when you have finished that pet package, Mark. I still haven't found a way to get that module transferred over to a frugal puppy installation. And it'd be nice to have that file for the future. Do you know of any discussion posts where someone explains all the things that the nvidia installer does, so that one can replicate the steps manually?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 19 Nov 2008, 15:35    Post subject:  

I usually look in /initrd/pup_rw what files are new there.
You also could extract a existing nvidia.pet to see, what files it contains.
Rename it to nvidia.pet.tgz, then you can extract it.

Then you could copy the new nvidia files from your working system to a temporary folder, and package them.

This is basically, what I will do to create the pet.

Then one just must run the nvidia configuration utility, to create a new xorg.conf.

I don't remember the name of it, wait...
Code:
nvidia-xconfig --add-argb-glx-visuals --allow-glx-with-composite --disable-glx-root-clipping --render-accel --composite --depth=24


This command is used by the Puppy derivates, that use "cfwizard" to set up the graficscard.
Like wNop2 or tigerpup.
http://www.murga-linux.com/puppy/viewtopic.php?t=31939

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0810s ][ Queries: 13 (0.0120s) ][ GZIP on ]