Re: [newbie] nVidia drivers (again) NEED HELP FROM KERNEL GURU!

2001-07-29 Thread Jeferson Lopes Zacco

I feel so good to be able to help a fellow newbie...two weeks ago and I
didn't know how to compile these drivers myself

>/usr/include/linux/modversions.h:1:2: #error Modules should never use
> kernel-headers system headers,
> /usr/include/linux/modversions.h:2:2: #error but headers from an
> appropriate kernel-source
> make: *** [nv.o] Error 1

this means that your driver (the offending kernel Driver) weren't compiled.
Two possibilities: 1,you haven't the kernel source installed, 2, the kernel
source path is mysconfigured.

I'd bet you haven't got the kernel source. Install them with Software
manager- they are on the second mandrake CD. If you got just the first
cd -like me ;^) - then you can download the rpm from a Mandrake mirror. Make
sure all dependencies are met. If you HAVE the kernel source installed, make
sure the tar.gz from Nvidia are for the right version of your kernel.

A tip: set runlevel to 3 when testing Nvidia drivers-that should be after
editing "/etc/X11/XF86Config-4". then if all goes well you can set it back
to 5.

Goog Luck. :^)

 --Jeferson L. Zacco aka Wooky
 [EMAIL PROTECTED]
 Linux registered user #221896
 -
 Computers are used to solve problems that wouldn't exist if computers
weren't invented in the first place.






Re: [newbie] nVidia drivers (again) NEED HELP FROM KERNEL GURU!

2001-07-24 Thread Kernell32

Hmm glx is installed fine i guess. The kernel wont install thats weird i 
never seen that one before ... did you do any changes to it?
Do you use a custom kernel or is it the default ? What kernel version is it?
The default mandrake8 kernel should work fine.
Thing is i dont know allmost anything about kernel configs i think we need to 
consult a specialist here "Did you hear that civileme?" we need your help =)




On Tuesday 24 July 2001 07:06, Curtis Matthiesen wrote:
> Hi there,
>
> Here is a quote from a previous message I sent, which I didn't get
> responses on, regarding not having the Nvidia drivers installed according
> to the sh file that checks etc., here is what I said:
>
> "Hi there everyone,
>
> I just installed the RPM's for my Nvidia card and then I modified my XFree
> file, and then I ran the nv_check.sh, and this is what my results show, I
> understand everything except the last portion:
>
>
>
>
> Welcome to the NVidia Driver Installation Checker.
> This shell script is meant to help you debug your installation
> of the beta NVidia Linux drivers.  It is not 100% foolproof.
> In particular, you will definitely want to make sure you have
> the correct options in your XF86Config to make X work properly.
> This script cannot debug your X setup. That being said, it
> should prove useful if are having problems with the drivers and
> want to check the validity of your driver install.
>
> At no time will this script EVER make changes to your system.
> It is simply a diagnostic tool - fixes of any kind will have to
> come from you.
>
> Press enter to continue...
>
> OK, the first thing we need to do is make sure your XF86Config file
> is set up correctly.  In order to do this, I'm first going to try
> and find where this file might be...
> checking /usr/X11R6/lib/X11/XF86Config...
> not found
> checking /usr/X11R6/etc/X11/XF86Config...
> not found
> checking /etc/XF86Config...
> not found
> checking /etc/X11/XF86Config...
> found
> checking /etc/X11/XF86Config-4...
> found
> I'm going to be doing my checking using /etc/X11/XF86Config-4.  If this is
> not
> actually your X config, then quit this script with Ctrl-C, remove
> or rename the file, then run this script again.
> Press enter to continue
>
> I'm going to check your XF86Config file for the following things:
> 1) Loading the GLcore and glx modules
> 2) Specifying the nvidia driver instead of nv
>
> Checking for the Load glx statement...
> Load"glx"
> It seems to be intact.  Now lets see if you're loading the correct
> video driver...
> Driver  "nvidia"
> Everything seems fine in your X config file.  This is not 100%
> guaranteed to be accurate, but lets continue anyway (press enter)...
>
> The next step involves making sure you have the proper files in
> the right places, and that the kernel module loaded correctly.
> Press enter to begin the test.
>
> First lets make sure you don't have the old modules still present
> by mistake...
> Checking /usr/X11R6/lib/modules/extensions/libglx.a...
> Checking /usr/X11R6/lib/modules/extensions/libGLcore.a...
> You don't appear to have any conflicting older drivers.  Now lets check
> if the new driver files are in place...
> Checking /usr/X11R6/lib/modules/drivers/nvidia_drv.o...
> Checking /usr/X11R6/lib/modules/extensions/libglx.so...
> Checking /usr/lib/libGL.so...
> libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x4003e000)
> Checking /usr/lib/libGLcore.so.1...
> All the files seem to exist.  Now I'm going to see if your kernel
> module is loaded correctly...
>
> Here is what I don't understand:
>
> "the NVdriver kernel module does not seem to be loaded.  The 3D
> drivers will not work without it...please compile it for your
> kernel, set it up to insert the module on boot, then run
> this script again.
> Remember if you are having trouble compiling the module,
> try adding -D_LOOSE_KERNEL_NAMES to the Makefile."
>
> Now, I read your message and I removed the RPMS and then proceeded to do
> what you suggested regarding the TAR's, and this is what happened when I
> did the make installs:
>
> This is what happened when I did the command in the NVIDIA_kernel folder:
>
> [root@cs821261-a NVIDIA_kernel-1.0-1251]# make install
> rm -f nv.o os-interface.o os-registry.o Module-linux NVdriver
> cc -c -Wall -Wno-unknown-pragmas -Wno-multichar -O  -D__KERNEL__ -DMODULE
> -D_LOOSE_KERNEL_NAMES -D_X86_=1
> -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR
> -D_LOOSE_KERNEL_NAMES
> -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=1251  -I.
> -I/usr/src/linux/include nv.c
> In file included from nv.c:50:
> /usr/include/linux/modversions.h:1:2: #error Modules should never use
> kernel-headers system headers,
> /usr/include/linux/modversions.h:2:2: #error but headers from an
> appropriate kernel-source
> make: *** [nv.o] Error 1
> [root@cs821261-a NVIDIA_kernel-1.0-1251]# rpm -e NVIDIA_kernel
> error: removing these packages would break dependencies:
>

Re: [newbie] nVidia drivers (again)

2001-07-23 Thread Kernell32

On Monday 23 July 2001 21:18, Terry C wrote:
> Thanks. I already used the nv_check.sh script and it
> said that everything was OK. Based on the information
> I have been seeing I am thinking that I need to try
> installing the 1251 drivers from the tarball instead
> of the rpm. Should I uninstall the drivers I installed
> from the rpm first and then install the tar files?

Its worth a try i would say and i would also say NOT to use force and nodeps 
it naturally wakes up some bad feelings in me and i know its not necessary. 
Sooner or later something gets messed up if you use the --force option.
especially if its about system stuff like drivers etc.

>
> TC
>
> --- james <[EMAIL PROTECTED]> wrote:
> > i used to get segmentation errors when using OpenGL
> > - it was because i hadnt
> > installed the kernel properly - there is a shell
> > script called nv check
> > which checks if everything is installed ok
> > get it at :
>
> http://www.lokigames.com/~heimdall/nvidia/nv_check.sh
>
> > just cd to the dir and type :
> > $ sh nv_check.sh
> >
> > oh year - with rpms you may want to type :
> > $ rpm -i NV_GLX.blahblah.rpm --nodeps --force
> >
> > this will force the install of rpms even if your
> > system says it is already
> > installed
> >
> > - Original Message -
> > From: Terry C <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 23, 2001 5:09 PM
> > Subject: [newbie] nVidia drivers (again)
> >
> > > I am wondering if I may be able to resolve the
> > > segmentation fault errors I am getting trying to
> >
> > run
> >
> > > Chromium, or Tuxracer by changing to the nVidia
> >
> > 769
> >
> > > drivers instead of using the 1251 drivers. Has
> >
> > anyone
> >
> > > tried this to resolve the seg. fault problems?
> > > I have already made sure that I am not using KDM,
> >
> > I
> >
> > > have tried booting into run level 3 and using
> >
> > startx,
> >
> > > & I have tried using gdm. The black screen and
> >
> > seg.
> >
> > > fault errors started after I tried to run BZflag
> >
> > and
> >
> > > it locked up. No GL games have worked since.
> > > Also, what exactly is a segmentation fault?
> > > Thanks.
> > >
> > > TC
> > >
> > > __
> > > Do You Yahoo!?
> > > Make international calls for as low as $.04/minute
> >
> > with Yahoo! Messenger
> >
> > > http://phonecard.yahoo.com/
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/




Re: [newbie] nVidia drivers (again)

2001-07-23 Thread Terry C

Thanks. I already used the nv_check.sh script and it
said that everything was OK. Based on the information
I have been seeing I am thinking that I need to try
installing the 1251 drivers from the tarball instead
of the rpm. Should I uninstall the drivers I installed
from the rpm first and then install the tar files?

TC

--- james <[EMAIL PROTECTED]> wrote:
> i used to get segmentation errors when using OpenGL
> - it was because i hadnt
> installed the kernel properly - there is a shell
> script called nv check
> which checks if everything is installed ok
> get it at :
>
http://www.lokigames.com/~heimdall/nvidia/nv_check.sh
> 
> just cd to the dir and type :
> $ sh nv_check.sh
> 
> oh year - with rpms you may want to type :
> $ rpm -i NV_GLX.blahblah.rpm --nodeps --force
> 
> this will force the install of rpms even if your
> system says it is already
> installed
> 
> - Original Message -
> From: Terry C <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 5:09 PM
> Subject: [newbie] nVidia drivers (again)
> 
> 
> > I am wondering if I may be able to resolve the
> > segmentation fault errors I am getting trying to
> run
> > Chromium, or Tuxracer by changing to the nVidia
> 769
> > drivers instead of using the 1251 drivers. Has
> anyone
> > tried this to resolve the seg. fault problems?
> > I have already made sure that I am not using KDM,
> I
> > have tried booting into run level 3 and using
> startx,
> > & I have tried using gdm. The black screen and
> seg.
> > fault errors started after I tried to run BZflag
> and
> > it locked up. No GL games have worked since.
> > Also, what exactly is a segmentation fault?
> > Thanks.
> >
> > TC
> >
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> >
> 
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




Re: [newbie] nVidia drivers (again)

2001-07-23 Thread james

i used to get segmentation errors when using OpenGL - it was because i hadnt
installed the kernel properly - there is a shell script called nv check
which checks if everything is installed ok
get it at : http://www.lokigames.com/~heimdall/nvidia/nv_check.sh

just cd to the dir and type :
$ sh nv_check.sh

oh year - with rpms you may want to type :
$ rpm -i NV_GLX.blahblah.rpm --nodeps --force

this will force the install of rpms even if your system says it is already
installed

- Original Message -
From: Terry C <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 5:09 PM
Subject: [newbie] nVidia drivers (again)


> I am wondering if I may be able to resolve the
> segmentation fault errors I am getting trying to run
> Chromium, or Tuxracer by changing to the nVidia 769
> drivers instead of using the 1251 drivers. Has anyone
> tried this to resolve the seg. fault problems?
> I have already made sure that I am not using KDM, I
> have tried booting into run level 3 and using startx,
> & I have tried using gdm. The black screen and seg.
> fault errors started after I tried to run BZflag and
> it locked up. No GL games have worked since.
> Also, what exactly is a segmentation fault?
> Thanks.
>
> TC
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
>





Re: [newbie] nVidia drivers (again)

2001-07-23 Thread Kernell32

Here is a snip of the nvidias own readme that you find from the same section 
of nvidias homepage there where you can download the tars.
This snip concerns the tar install prozess . I repeat: Use the tars not the 
rpms and follow the instructions from THIS readme DONT use the instructions 
that you find inside the tars!!! They are wrong.

snip

Installing/Upgrading by Tar file

Instructions for the Impatient:

$ tar xvzf NVIDIA_kernel.tar.gz
$ tar xvzf NVIDIA_GLX.tar.gz
$ cd NVIDIA_kernel
$ make install
$ cd ../NVIDIA_GLX
$ make install

Instructions:
To install from tar file, unpack each file:
$ tar xzf NVIDIA_kernel.tar.gz
$ tar xzf NVIDIA_GLX.tar.gz
cd into the NVIDIA_kernel directory.  Type 'make install'.  This will
compile the kernel interface to the NVdriver, link the NVdriver, copy
the NVdriver into place, and attempt to insert the NVdriver into the
running kernel:
$ cd NVIDIA_kernel
$ make install
Next, move into the NVIDIA_GLX directory.  Type 'make install' -- this
will copy the files into place:
$ cd ../NVIDIA_GLX
$ make install
Note that the "make install" for each package will remove any previously
installed NVIDIA drivers.
-
(sec-03) EDITING YOUR XF86CONFIG FILE
=
When XFree86 4.0 was released, it used a slightly different XF86Config
file syntax than the 3.x series did, and so to allow both 3.x and 4.x
versions of XFree86 to co-exist on the same system, it was decided that
XFree86 4.x was to use the configuration file "/etc/X11/XF86Config-4"
if it existed, and only if that file did not exist would the file
"/etc/X11/XF86Config" be used (actually, that is an over-simplification of
the search criteria; please see the XF86Config manpage for a complete
description of the search path).  Please make sure you know what
configuration file XFree86 is using.  If you are in doubt, look for a
line beginning with "(==) Using config file:" in the your XFree86 log
file ("/var/log/XFree86.0.log").  This README will use "XF68Config"
to refer to your configuration file, whatever it is named.
If you do not have a working XF86Config file, there are several ways
to start: there is a sample config file that comes with XFree86, and
there is a sample config file included with the NVIDIA_GLX package
(it gets installed in the /usr/share/doc tree).  You could also use a
program like 'xf86config'; some distributions provide their own tool
for generating an XF86Config file.  For more on XF86Config file syntax,
please refer to the manpage.
If you already have an XF86Config file working with a different driver
(such as the 'nv' driver), then all you need to do is find the relevant
Device section and replace the line:
Driver "nv" 
with 
Driver "nvidia"  
In the Module section, make sure you have:
Load   "glx"
You should also remove the following lines:
  
Load  "dri"
Load  "GLcore"
if they exist.  There are also numerous options that can be added to
the XF86Config file to fine-tune the NVIDIA XFree86 driver.  Please see
Appendix D for a complete list of these options.
Once you have configured your XF86Config file, you are ready to restart
X and begin using the accelerated OpenGL libraries.  After you restart X,
you should be able to run any OpenGL application and it will automatically
use the new NVIDIA libraries.  If you encounter any problems, please
see the troubleshooting section below...

snip 

Details on http://www.nvidia.com/view.asp?IO=linux_readme_install



On Monday 23 July 2001 19:09, Terry C wrote:
> I am wondering if I may be able to resolve the
> segmentation fault errors I am getting trying to run
> Chromium, or Tuxracer by changing to the nVidia 769
> drivers instead of using the 1251 drivers. Has anyone
> tried this to resolve the seg. fault problems?
> I have already made sure that I am not using KDM, I
> have tried booting into run level 3 and using startx,
> & I have tried using gdm. The black screen and seg.
> fault errors started after I tried to run BZflag and
> it locked up. No GL games have worked since.
> Also, what exactly is a segmentation fault?
> Thanks.
>
> TC
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/