LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-21-2015, 04:40 AM   #1
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
has anyone installed nvidia drivers to f22?


has anyone installed nvidia drivers to f22?

ive got nvidia geforce 630 and have tried to install drivers for it, it fails for different reasons.

so im asking if someone has managed to install'em, post ur process here so i could try it myself.

if none has'em installed/process doesnt work for me ill make a new thread where i post my fails. thanks, //////
 
Old 03-21-2015, 02:27 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you were to inform us as to HOW you are trying
and what the errors are
Then we might be able to help


now you ARE replacing the opensource Nouveau driver with WHAT!!!
the nvidia rpm ( from the repo )?
or the Nvidia.run ?

you might want to read the GUIDE on the fedoraforum
http://www.forums.fedoraforum.org/sh...d.php?t=280750

and the F22 Development Forum
http://www.forums.fedoraforum.org/fo...play.php?f=138
 
Old 03-22-2015, 04:56 AM   #3
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Original Poster
Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Quote:
Originally Posted by John VV View Post
now you ARE replacing the opensource Nouveau driver with WHAT!!!
the nvidia rpm ( from the repo )?
or the Nvidia.run ?
this is what i did :

Code:
downloaded .run from nvidias site (NVIDIA-Linux-x86_64-346.47.run)

su -
init 3
cd /home/ville/Down*
./NVIDIA*
accepted licence
build fails (failed to build kernel module)
here is nvidia build log :
Code:
[root@f22 log]# cat nvidia*
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Mar 22 11:33:40 2015
installer version: 346.47

PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> Detected 4 CPUs online; setting concurrency level to 4.
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 346.47.
-> Performing CC sanity check with CC="/bin/cc".
-> Kernel source path: '/lib/modules/4.0.0-0.rc4.git0.1.fc22.x86_64/source'
-> Kernel output path: '/lib/modules/4.0.0-0.rc4.git0.1.fc22.x86_64/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; /bin/make clean'...
-> Building NVIDIA kernel module:
   executing: 'cd ./kernel; /bin/make module SYSSRC=/lib/modules/4.0.0-0.rc4.git0.1.fc22.x86_64/source SYSOUT=/lib/modules/4.0.0-0.rc4.git0.1.fc22.x86_64/build -j4  NV_BUILD_MODULE_INSTANCES='...
   NVIDIA: calling KBUILD...
   make[1]: Entering directory '/usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64'
   /bin/make -C /lib/modules/4.0.0-0.rc4.git0.1.fc22.x86_64/build KBUILD_SRC=/usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64 \
   -f /usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64/Makefile modules
   make[2]: Entering directory '/usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64'
   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/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/.tmp_versions ; rm -f /tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/.tmp_versions/*
   /bin/make -f /usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64/scripts/Makefile.build obj=/tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel

/snip ...

     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/nv-procfs.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/nv-procfs.o"; fi; fi;
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/nv-usermap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/nv-usermap.o"; fi; fi;
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/nv-vm.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel/nv-vm.o"; fi; fi;
   /usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64/Makefile:1394: recipe for target '_module_/tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel' failed
   make[2]: *** [_module_/tmp/selfgz5791/NVIDIA-Linux-x86_64-346.47/kernel] Error 2
   make[2]: Leaving directory '/usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64'
   Makefile:145: recipe for target 'sub-make' failed
   make[1]: *** [sub-make] Error 2
   make[1]: Leaving directory '/usr/src/kernels/4.0.0-0.rc4.git0.1.fc22.x86_64'
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   nvidia-modules-common.mk:248: recipe for target 'module' failed
   make: *** [module] Error 1
-> Error.
ERROR: Unable to build the NVIDIA 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.
ran following commands :
Code:
[root@f22 log]# cd /usr/src/kernels
[root@f22 kernels]# ls
4.0.0-0.rc3.git0.1.fc22.x86_64  4.0.0-0.rc4.git0.1.fc22.x86_64
[root@f22 kernels]# yum install kernel-devel
Nothing to do
[root@f22 kernels]# cd 4.0.0-0.rc4.git0.1.fc22.x86_64
[root@f22 4.0.0-0.rc4.git0.1.fc22.x86_64]# ls
arch    drivers   include  Kconfig  Makefile        net      security    tools  vmlinux.id
block   firmware  init     kernel   mm              samples  sound       usr
crypto  fs        ipc      lib      Module.symvers  scripts  System.map  virt
[root@f22 4.0.0-0.rc4.git0.1.fc22.x86_64]# make oldconfig
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
ran make prepare :
Code:
[root@f22 4.0.0-0.rc4.git0.1.fc22.x86_64]# make prepare
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: *** No rule to make target 'arch/x86/syscalls/syscall_32.tbl', needed by 'arch/x86/syscalls/../include/generated/asm/syscalls_32.h'.  Stop.
arch/x86/Makefile:181: recipe for target 'archheaders' failed
make: *** [archheaders] Error 2
[root@f22 4.0.0-0.rc4.git0.1.fc22.x86_64]#
 
Old 03-22-2015, 03:05 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so the .run

i take it you did not uninstall the nouveau driver
then rebuild the BOOT intred image ( WITHOUT the nouveau driver in it )

install gcc and all it's needed tools like autotools
Code:
su -
yum groupinstall "Development Tools" 
yum install kernel-devel
the .run
REQUIRES a ton of EXTRA steps
and i do mean a TON
and you will ALSO have to reinstall the .run for EVERY!!! "kernel" and "xorg/x11" and "mesa" update

fedora really nolonger has a "init 3" or a init 1 or 5

but you can simulate that by putting a 3 on the end of the kernel bootline in the grub2 config file

i would USE the already built rpm that is in the rpmfusion repo

as per the guide on the fedoraforum


now

if like me and you have been using the .run driver for the last 10 years
and have been doing all the needed EXTRA steps for many years

then the .run driver is not a issue


but for NEW people
use the provided rpm's

but for the .run

1) BLACKLIST the "nouveau" driver, and uninstall it
2) rebuild the boot image once the nouveau driver is uninstalled and blacklisted
3) make sure gcc and autotools and the kernel source are installed
4) do a TEXT only boot
( edit the grub 2 boot line for that , add a 3 )
cd to the nvidia .run ( i place it on "/" )
then run it
Code:
cd /to/the/location/of/the/driver
sh *.run
agree to everything ( yes and accept)using the ncures text gui interface
( using the arrow keys and <enter> )
5) when done type in "reboot "

Last edited by John VV; 03-22-2015 at 03:14 PM.
 
Old 05-26-2015, 11:35 PM   #5
felix747
LQ Newbie
 
Registered: May 2015
Posts: 7

Rep: Reputation: Disabled
Hi,

Kernel 4.04 (FC22) is broken with the standard NVIDIA proprietary driver. You should attempt to patch the "NVIDIA*.run" file. Many people have reported the below patch working, however I still get the error "patch: **** malformed patch at line 4: unsigned long cr0 = read_cr0();

--- a/nv-pat.c.orig 2015-02-20 02:49:40.000000000 +0100
+++ b/nv-pat.c 2015-02-25 07:56:40.000000000 +0100
@@ -35,8 +35,13 @@
unsigned long cr0 = read_cr0();
write_cr0(((cr0 & (0xdfffffff)) | 0x40000000));
wbinvd();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0)
*cr4 = read_cr4();
if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80);
+#else
+ *cr4 = __read_cr4();
+ if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80);
+#endif
__flush_tlb();
}

@@ -46,7 +51,11 @@
wbinvd();
__flush_tlb();
write_cr0((cr0 & 0x9fffffff));
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0)
if (cr4 & 0x80) write_cr4(cr4);
+#else
+ if (cr4 & 0x80) __write_cr4(cr4);
+#endif

Gentoo Forums :: View topic - nvidia-drivers and kernel-4.0.0
https://forums.gentoo.org/viewtopic-...a51b1ec19c477d

Linux 4.0-rc1 346.47 build error _cr4() functions fix - NVIDIA Developer Forums
https://devtalk.nvidia.com/default/t...functions-fix/
 
Old 05-28-2015, 09:21 PM   #6
felix747
LQ Newbie
 
Registered: May 2015
Posts: 7

Rep: Reputation: Disabled
# NVIDIA-Linux-x86_64-340.76.run -x
# cd NVIDIA-Linux-x86_64-340.76/kernel
# vi nv-pat.c
# make changes from
https://devtalk.nvidia.com/default/t...functions-fix/
# cd .. ; nvidia-installer
enjoy
 
  


Reply

Tags
nvidia drivers fedora 22



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installed the latest nVidia drivers from nvidia.com, can't get desktop now snowkitty Linux - Newbie 1 03-03-2014 09:16 PM
installed nvidia drivers Rita G. Debian 2 02-07-2008 07:08 AM
How to uninstall nvidia drivers installed from nvidia's site sureshot324 Linux - Software 2 09-27-2007 11:54 PM
Installed nVidia drivers ok but.... thoffland Linux - Newbie 1 07-07-2005 12:11 PM
Getting the NVIDIA Drivers Installed Pwnz3r Linux - Software 0 01-31-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration