Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-20-02, 02:14 PM   #13
adnans
Geforce FX5200Go
 
Join Date: Aug 2002
Posts: 21
Default

I can confirm that the NVidia module works perfectly with a gcc 3.2 compiled kernel and module:

$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA NVdriver Kernel Module 1.0-2960 Tue May 14 07:41:42 PDT 2002
GCC version: gcc version 3.2 20020809 (Debian prerelease)

$ cat /proc/version
Linux version 2.4.19 (root@phobos) (gcc version 3.2 20020809 (Debian prerelease))

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2ds0/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2 20020809 (Debian prerelease)

-adnans
adnans is offline   Reply With Quote
Old 08-20-02, 02:38 PM   #14
akay
Guest
 
Posts: n/a
Default

Ug. Darn modules... After forcing it to load with 'insmod -f NVdriver', it squaked about licensing and gcc, then it finally loaded. I doubt the module will load on its own if I ever reboot my machine again, but atleast I know the workaround now.

The error just seemed to glaringly point in gcc's direction as the root of the problem. Odd.

% cat /proc/driver/nvidia/version
NVRM version: NVIDIA NVdriver Kernel Module 1.0-2960 Tue May 14 07:41:42 PDT 2002
GCC version: gcc version 3.2 (Red Hat Linux Rawhide 3.2-1)
  Reply With Quote
Old 08-20-02, 06:11 PM   #15
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

compiled the kernel (2.4.19) with gcc 3.2, intel e100 driver, emu10k1
cvs checkout _and_ (!) the NVdriver, loaded without any squirks,
no need to force the driver in, the warning about the license is normal.


as I said before: _redhat_ brrrr


cheers

btw: glxgears runs with approx. 7800 fps
mtrr is offline   Reply With Quote
Old 08-23-02, 06:59 AM   #16
robibe_79uk
Guest
 
Posts: n/a
Question linux newbie question...

Ok, I'm pretty much a linux newbie, just finding my way around the basics. Been using it for a month or so now (have completely ditched Windows) and love it.

However, I've got problems now!!

Decided to start running Red Hat Linux Null (which I have to say looks much better than 7.2!) but, of course, my NVdriver doesn't work!

This is my first foray into compilation of stuff, apart from the pretty standard application things. I've got a fair idea of what I have to do... it's just actually doing it!

I've got the kernel-source RPM installed for Null (2.4.18-11) and have downloaded the tar.gz of the NVidia drivers. The make completes okay, but I get the error message "this was compiled using gcc 2 and you need version 3" basically.


So, on a completely fresh install, how do I go about getting the NVidia drivers to compile against this (and any, going forward) kernel that isn't supported by NVidia's distribution?

If I can get it working in the meantime, I'll post a mini-howto to the board if it helps people!

Thanks for all the info I've already got from the board though!

Rob
  Reply With Quote
Old 08-23-02, 04:28 PM   #17
Alan666
Registered User
 
Join Date: Aug 2002
Location: Portland, OR
Posts: 14
Default Still not working...

I am using GCC 3.2 with the Redhat 7.3.94 beta. I have compiled the nVIDIA kernel module with GCC 3.2 from the source RPM. The module refuses to load.

1:NVIDIA_kernel ########################################### [100%]
/lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver: The module you are trying to load (/lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
/lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver: insmod /lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver failed
/lib/modules/2.4.18-11smp/kernel/drivers/video/NVdriver: insmod NVdriver failed

I have tried setting the CC environment variable as suggested. That does not work.

I have checked for old object files. There are none.

Evidently the driver can be "forced", but that is a hacky solution.

Any plans to build a version of the source RPMs that will install cleanly? (I use a dual athalon system so I tend to build from source.)
Alan666 is offline   Reply With Quote
Old 08-24-02, 05:53 AM   #18
adnans
Geforce FX5200Go
 
Join Date: Aug 2002
Posts: 21
Default Re: linux newbie question...

Quote:
Originally posted by robibe_79uk

So, on a completely fresh install, how do I go about getting the NVidia drivers to compile against this (and any, going forward) kernel that isn't supported by NVidia's distribution?
modutils 2.4.19 will load the NVdriver without the -f option. It will still print out a warning because the NVidia module is not GPL, but that can be ignored. So it really looks like a Redhat problem. BTW, the nv_drv.o that Redhat ships with null only supports Geforce4 based cards at 320x200, which really sucks.

-adnans
adnans is offline   Reply With Quote
Old 08-24-02, 10:23 AM   #19
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default

RH created this "problem" themself. Since it isn't a great idea to use drivers compiled using a different gcc version, RH made a patch for modutils. The version of modutils RH uses now is 2.4.18-2. A short time ago they used 2.4.18-1. The only difference between those versions is a patch that checks for gcc 2.x code in modules when they're being loaded under a 3.x built kernel.

To realfix for the problem will be new driver packages from nvidia since mixing drivers compiled using different gcc versions can cause strange problems.

For now the fix is to switch back to modutils 2.4.18-1 from RH or to compile a modutils from source (for example 2.4.19).
Thunderbird is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] nvidia crashes kernel with 'Xid 13' and attempted to yield the CPU while atomic rockob NVIDIA Linux 36 09-26-12 08:48 AM
upgrade to xorg server 1.13 damaged Geforce 7300 GT KDE NVIDIA Linux 2 09-07-12 09:04 AM
Fatal upgrade: from bad (8800 GTS) to worse 9GTX 560 Ti) ssnyder NVIDIA Linux 1 07-01-12 09:14 PM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 05:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 12:04 PM

All times are GMT -5. The time now is 06:21 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.