LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   FC4 - Fail to install nVidia driver (https://www.linuxquestions.org/questions/fedora-35/fc4-fail-to-install-nvidia-driver-335134/)

macarthor 06-19-2005 09:33 AM

FC4 - Fail to install nVidia driver
 
hi all,

i've installed Fedora Core 4 on my box which has a Geforce2 MMX 400 card.

now i have nVidia 7664 driver also.

i invoke this command:
./NVIDIA-7664-pkg1.run --add-this-kernel
and no error occurs.

then i run
./NVIDIA-7664-pkg1-custom.run
and it gives error which is detailed in /var/log/nvidia-install.log

it seems that the installer cannot insmod nVidia's driver module, and that the error relates to gcc-4.0 and 4K stack, but i don't know what to do.

plz help me...

thx

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jun 19 21:53:51 2005

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall              : false
  driver info            : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files    : true
  no questions            : false
  silent                  : false
  no backup              : false
  kernel module only      : false
  sanity                  : false
  add this kernel        : false
  no runlevel check      : false
  no network              : false
  no ABI note            : false
  no RPMs                : false
  force tls              : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix  : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name            : (not specified)
  kernel include path    : (not specified)
  kernel source path      : /usr/src/kernels
  kernel output path      : (not specified)
  kernel install path    : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list          : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> A precompiled kernel interface for kernel 'Linux 2.6.11-1.1369_FC4 #1 Thu
  Jun 2 22:55:56 EDT 2005 i686' has been found here:
  ./usr/src/nv/precompiled/precompiled-nv-linux.o-1.0-7664.1119188878.
  executing: 'cd ./usr/src/nv; /usr/bin/ld -d -r -o nvidia.ko precompiled-nv-l
  inux.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.ko'.  This is most likely
      because the kernel module was built using the wrong kernel source files.
      Please make sure you have installed the kernel source files for your
      kernel; on Red Hat Linux systems, for example, be sure you have the
      'kernel-source' rpm installed.  If you know the correct kernel source
      files are installed, you may specify the kernel source path with the
      '--kernel-source-path' commandline option.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
  -1 Invalid module format
-> Kernel messages:
  Disabled Privacy Extensions on device c03e6820(lo)
  IPv6 over IPv4 tunneling driver
  parport: PnPBIOS parport detected.
  parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
  lp0: using parport0 (interrupt-driven).
  lp0: console ready
  eth0: no IPv6 routers present
  nvidia: no version for "struct_module" found: kernel tainted.
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
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.


macemoneta 06-19-2005 11:41 AM

Install the kernel-devel package (via yum or up2date), and run the nvidia installer with no options. You'll be given the choice to try to download a matching module - say no. The driver installer will then compile a kernel module on your machine, which should load and run fine.

macarthor 06-19-2005 06:04 PM

thx for you kind reply, but it seems that i've got that installed

Code:

[mcarthor@McArthor ~]$ rpm -qa | grep kernel
kernel-doc-2.6.11-1.1369_FC4
kernel-2.6.11-1.1369_FC4
kernel-devel-2.6.11-1.1369_FC4

also, through some thread, i configure selinux as disabled, but it doesn't work either

macemoneta 06-19-2005 06:13 PM

What happens when you run the installer and it attempts to compile the kernel module instead of downloading it?

greg108 06-19-2005 06:40 PM

Aren't you supposed to run command:

sh NVIDIA-Linux-x86-1.0-7664-pkg1.run

and I think you have to run command 'setenforce 0' before you install the driver. It has something to do with SElinux.

macarthor 06-19-2005 07:46 PM

to macemoneta:

when i run
./NVIDIA-7664-pkg1.run
and select "no" for ftp download, it can then compile the driver but seems to fail to insmod the nvidia driver module - a red block appears on the screen and says "... (too long to post here, but same as the red "ERROR" in my first post)".

===============

to greg108:

do u mean to modify /etc/sysconfig/selinux, and change the last line to 0 or diabled or something like this?

greg108 06-19-2005 10:46 PM

I mean as a shell command.
I am not an expert on this one though. You can find more on that in this thread: http://www.linuxquestions.org/questi...hreadid=333111

macarthor 06-20-2005 01:04 AM

i'll be looking to it

thx

adriaanbw 06-20-2005 01:53 AM

Head on over to this thread for FC3. It should be very similar for FC4. I am not sure if you will still need to remove the xorg-x11-Mesa library.

http://www.linuxquestions.org/questi...hreadid=259917.

Have a go and see what happens. I would suggest commenting out the lines in the xorg.conf file rather than deleting. That way if it doesn't work you can always uncomment them and restore the file and still get back to graphical login.

Alternative, make a copy of your xorg.conf file!

macarthor 06-21-2005 09:27 AM

dear all:

i follow all your kind suggestions, but none works

plz give more help ~~~

adriaanbw 06-21-2005 06:08 PM

Well I am curious, does anyone know how much extra performance macarthor would get by installing the offical nVidia drivers as opposed to just using the built in Geforce MX (generic) driver??

macarthor, do you need that extra performance??

browser 06-21-2005 08:31 PM

Hi there, I am not a linux WIZ or anything ,but I have installed my nvidia driver "nvidia glx" etc through yum or apt ,on multiple occasions , and havn't had to change or modify a thing after apt or yum have installed Nvidia and then rebooted to find the nvidia screen popup everytime , Maybe some times a person might have to do it manually on Fedora ,but since Fedora3 came out I think it is, that I havnt had to ,but have had it installed AutoMatically through Yum or Apt. AnyWay maybe you have a reason to do it manually?

macarthor 06-23-2005 07:05 AM

yum list nvidia

it gives nothing

would u plz give your detailed procedure?

thx

Tomasfuego 06-25-2005 11:47 PM

Hey ....
i was just installing NVIDIA on my little brother's machine and I am coming up with the same problems and I am a RHCT!

Its too late for me to want to look at anything to exhaustively or to try to re-compile the kernel itself, but if you comment out the
Load "glx"

with a # it will get X working for ya but without the OpenGL stuff.

I read a Red Hat thread that said that if you appended "selinux=0" to the end of the kernel line in /etc/grub.conf that you could then uncomment the Load "glx" line .... but it hasnt worked for me. I'll give a better try tomorrow.

Tomasfuego 06-26-2005 12:02 AM

Here is an interesting thread to read:

http://www.nvnews.net/vbulletin/showthread.php?t=51972

the guy from NVIDIA at the very bottom seems to imply that this is that 7667 is a crappy driver and you should use the previous version.

anthony1101 06-27-2005 10:22 PM

NVIDIA Driver
 
Man...I wouldn't being saying that your a RHCT too loudly then. Perhaps they should take away your 'DRIVER" license. This is a VERY simple fix and the driver works great (OpenGL and all!!).

Don't shoot me NVIDIA if I get some part of this wrong.
For some time now, NVIDIA has been using a simplified driver installation. In so much as they don't have to keep making up new packages for each Linux distribution that comes along. Therefore in order to compile this driver for your version of Linux the kernel drivers (found in the development packages) are necessary. You can use your favorite method of getting the package (apt, yum, up2date etc) but you need to make sure you get the one (and only one) for the kernel you are running.

Verify your kernel with uname -a and your package should be similar.
Output:
uname -a
Linux [machinename] 2.6.11-1.1369_FC4 .........

you would then get kerenel-devel-2.6.11-1.1369_FC4.ix86.rpm

for example.


-Good Luck

Tomasfuego 06-28-2005 12:37 PM

Look at 6/19/2005 ..... macarthor did a rpm -qa | grep kernel and found that the package is already installed. Building the package is not the problem. Please refer to the thread i posted earlier.

brainfry 06-28-2005 01:31 PM

Hi. Not sure if this will help but I've got SElinux set to 'warn' (did it in the install to see what would happen) and the nvidia driver installs and works fine for me so maybe the post about disabling it is on the right track.

I'm only mentioning it because this is the 2nd time I've installed FC4 and the 1st time I tried SElinux was enabled and all I got was an nvidia splash screen followed by the FC boot screen and nothing but a blank screen after that.

sckain 06-29-2005 07:25 PM

Nvidia
 
OK, here is my 2 cents,

remove the current exisiting nvidia.ko

install the (3) Nvidia packages from livna

reboot

all should be well.

If you cant find livna Google <Livna rpm>

Keep us posted, also, if anything for DVD support and NVIDIA driver support it may be a good idea to add an entry to you yum RPMs for livna.

If it works dont forget to say thanks.

browser 07-02-2005 07:20 PM

G,Day there Mcarthor, im sorry 4 my late reply as I forgot my post I posted inregards to installing Automatically using "yum" or even Synaptic & Smart Package Manager, My favourite is Smart, which still isnt fully commited to Fedora4 just yet but is perfect for Fedora3,but you can modify Repos with the Fedora4 version, .as it also has a big load of repos that are already installed along with it when Smart is installed which saves having to search for the repos. AnyWay my advice is to just use yum for moment & use the "search" function on this forum using the term "repositories" or "yum repositories" & add the ones you can find for Fedora4 to your /etc/yum/sources.list .make sure you can find the livna repo & then maybe Dries,Dag etc to add and then look for the "livna glx" package and install it along with whatever dependencies it wants automatically without having to search for them . I give this example as I am now mainly using Smart Package Manager & Synaptic instead of yum, so I cant show you my Sources.list. If you have already done all this somehow before I wrote this then maybe it will be usefull for other Newbies, AnyWay my point is if you can add the right repos "Livna" etc & then install "nvidia glx" etc using YUM then all should be well , it takes al;ot of hassles out when done using YUM etc I found anyway. You could also just google using the term " yum repositories " or " Fedora4 yum repositories" ect.

linuxted 07-02-2005 07:33 PM

Re: FC4 - Fail to install nVidia driver
 
Quote:

Originally posted by macarthor
hi all,

i've installed Fedora Core 4 on my box which has a Geforce2 MMX 400 card.

now i have nVidia 7664 driver also.

i invoke this command:
./NVIDIA-7664-pkg1.run --add-this-kernel
and no error occurs.

then i run
./NVIDIA-7664-pkg1-custom.run
and it gives error which is detailed in /var/log/nvidia-install.log

it seems that the installer cannot insmod nVidia's driver module, and that the error relates to gcc-4.0 and 4K stack, but i don't know what to do.

plz help me...

thx

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jun 19 21:53:51 2005

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall              : false
  driver info            : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files    : true
  no questions            : false
  silent                  : false
  no backup              : false
  kernel module only      : false
  sanity                  : false
  add this kernel        : false
  no runlevel check      : false
  no network              : false
  no ABI note            : false
  no RPMs                : false
  force tls              : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix  : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name            : (not specified)
  kernel include path    : (not specified)
  kernel source path      : /usr/src/kernels
  kernel output path      : (not specified)
  kernel install path    : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list          : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> A precompiled kernel interface for kernel 'Linux 2.6.11-1.1369_FC4 #1 Thu
  Jun 2 22:55:56 EDT 2005 i686' has been found here:
  ./usr/src/nv/precompiled/precompiled-nv-linux.o-1.0-7664.1119188878.
  executing: 'cd ./usr/src/nv; /usr/bin/ld -d -r -o nvidia.ko precompiled-nv-l
  inux.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.ko'.  This is most likely
      because the kernel module was built using the wrong kernel source files.
      Please make sure you have installed the kernel source files for your
      kernel; on Red Hat Linux systems, for example, be sure you have the
      'kernel-source' rpm installed.  If you know the correct kernel source
      files are installed, you may specify the kernel source path with the
      '--kernel-source-path' commandline option.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
  -1 Invalid module format
-> Kernel messages:
  Disabled Privacy Extensions on device c03e6820(lo)
  IPv6 over IPv4 tunneling driver
  parport: PnPBIOS parport detected.
  parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
  lp0: using parport0 (interrupt-driven).
  lp0: console ready
  eth0: no IPv6 routers present
  nvidia: no version for "struct_module" found: kernel tainted.
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
  nvidia: version magic '2.6.11-1.1369_FC4 preempt PENTIUMIII 4KSTACKS
  gcc-4.0' should be '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0'
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.


Here's what works for me:
0) Check on the Nvidia website if there is a newer run package than
the one you may have downloaded. If there is, download it and use it
as the run file in section 3 instead.

1) As root, modify the /boot/grub/grub.conf such that the timeout is
10 to give you time to modify the command line

2) restart the computer. When the timeout for the kernel selection
starts, hit any key to stop the timer, then "a" and add a " 3
selinux=0" (this tells the computer to disable the X server). Hit
return.

3) Login as root and type
"./NVIDIA-Linux-x86_64-*.run"

4) Hit "Yes" or "Ok" for everything

5) Modify /etc/X11/xorg.conf as follows (only the "dri", "nvidia" and
"GeForce 2" lines are changed):
___________________________________________________________________________
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "record"
Load "freetype"
Load "type1"
# Load "dri"
Load "glx"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 2 MX (generic)"
EndSection
_____________________________________________________________

6) Change /boot/grub/grub.conf so that the timeout is 0 (I hate
waiting :) ).

7) type "reboot". YOU MAY HAVE TO REBOOT TWICE BECAUSE OF SELINUX
WEIRDNESS

8) You're done.

I have a Best Data Arcade FX GeForce 2 MX 400 and runs at 4x on the
AGP port.

Good luck!

Cap'n Skyler 07-10-2005 01:52 AM

Nvidia Help
 
after all my own headaches,i found the best Nvidia help to be in the Nvidia read me file.i had nothing but headaches to install my 3d drivers,and then followed Nvidia's instructions and had it working fine.it seems to me,the help here was over complicated(just like linux) and un necessary.
follow Nvidia's explicit instructions,and see how that goes.if I can do it,anyone can!!!***
wanted to add,i had to fix libs issues i did not know about--ie which libs i neded,so i installed EVERYTHING so when the installer re complied it had everything it needed.
if i knew more about the libs,and how to determine what i do and dont need,i would have only installed exactly what i needed.**** good luck !!!
scott


All times are GMT -5. The time now is 01:23 PM.