Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th March 2006, 02:45 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
FC5 kernel nvidia/ati how-to

Just a short how-to/FYI

If the new kernel isn't in updates by the time you eager beavers install

Code:
$ su -
# cd /etc/yum.repos.d
# vi dave-kernels.repo
the file
cat /etc/yum.repos.d/dave-kernels.repo
Code:
[dave-kernels]
name=Fedora Core $releasever - $basearch - Dave's Kernels
baseurl=http://people.redhat.com/davej/kernels/Fedora/FC5/RPMS.kernel/
enabled=1
gpgcheck=0
Update the kernel and some other things you need

Code:
# yum update kernel
# yum install kernel-devel fedora-rpmdevtools subversion 
# reboot
As your user

Code:
$ fedora-buildrpmtree
$ cd $HOME/rpmbuild
$ mkdir src.rpms && cd src.rpms

The nvidia driver:

$ wget -c http://rpm.livna.org/fedora/development/SRPMS/xorg-x11-drv-nvidia-1.0.8178-7.lvn5.src.rpm
$ rpm -ivh xorg-x11-drv-nvidia-1.0.8178-7.lvn5.src.rpm
$ cd ../SPECS
$ rpmbuild -ba xorg-x11-drv-nvidia.spec 

The kernel module
$ cd $HOME/rpmbuild/src.rpms
$ svn co svn://svn.livna.org/rlo/packages/nvidia-kmod/
$ cd nvidia-kmod/devel
$ cp * $HOME/rpmbuild/SOURCES/
$ cp nvidia-kmod.spec $HOME/rpmbuild/SPECS
$ cd $HOME/rpmbuild/SOURCES
$  wget -c http://www.leemhuis.info/files/fedorarpms/KMODFILES.lvn/nvidia-glx-kmod-data-1.0.8178.tar.bz2
$ cd $HOME/rpmbuild/SPECS
$ vi nvidia-kmod.spec
change these two values
#%define   kversion 2.6.15-1.20_FC5
%define   kversion `uname -r`

#%define kvariants %{?buildup:""} %{?buildsmp:smp} %{?buildxen:xen0} %{?buildkdump:kdump}
%define kvariants ""

$ rpmbuild -ba  nvidia-kmod.spec --target $(uname -m)

Finishing up

$ su -
# cd $USERS_HOME/rpmbuild/RPMS/${ARCH}/
# rpm -ivh kmod-nvidia* xorg-x11-drv-nvidia*
# /usr/sbin/nvidia-config-display enable
# init 3; init 5
Done, now go play games or setup twinview.....


THe same process should work for ati
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0

Last edited by cybrjackle; 20th March 2006 at 05:24 PM.
Reply With Quote
  #2  
Old 20th March 2006, 02:52 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Oh, edit the nvidia-kmod.spec and take out xen and kerneldump

Change 1 to 0

Code:
%define buildxen 0
%define buildkdump 0
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #3  
Old 20th March 2006, 03:01 PM
egr Offline
Registered User
 
Join Date: Nov 2004
Location: Norway
Age: 27
Posts: 168
Thank you for info and for kernels, but isn't the first step too complicated?
I think it's easier just to visit
http://people.redhat.com/davej/kerne...5/RPMS.kernel/
and download what you need
Reply With Quote
  #4  
Old 20th March 2006, 03:09 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Either way, yum install or go d/l and rpm -ivh them.
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #5  
Old 20th March 2006, 04:27 PM
egr Offline
Registered User
 
Join Date: Nov 2004
Location: Norway
Age: 27
Posts: 168
hmmm, when I try to build kernel module for ati by command:
rpmbuild -ba fglrx-kmod.spec --target $(uname -m)
it tries to build it for
i686, xen0, kdump and smp kernels, it stops with error while building module for xen0, how can I build the module just for i686?
Reply With Quote
  #6  
Old 20th March 2006, 04:44 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Quote:
Originally Posted by egr
hmmm, when I try to build kernel module for ati by command:
rpmbuild -ba fglrx-kmod.spec --target $(uname -m)
it tries to build it for
i686, xen0, kdump and smp kernels, it stops with error while building module for xen0, how can I build the module just for i686?
vi fglrx*
and change 1 to 0

%define buildsmp 0
%define buildxen 0
%define buildkdump 0
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #7  
Old 20th March 2006, 05:05 PM
egr Offline
Registered User
 
Join Date: Nov 2004
Location: Norway
Age: 27
Posts: 168
thank you for your advice, but it didnt help me, I think something wrong with the script, but I figured out that I can just define kvariants to nothing

Quote:
%define kvariants %{?buildup:""} %{?buildsmp:smp} %{?buildxen:xen0} %{?buildkdump:kdump}
to
Quote:
%define kvariants ""
and it helped
Reply With Quote
  #8  
Old 20th March 2006, 05:12 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Quote:
Originally Posted by egr
thank you for your advice, but it didnt help me, I think something wrong with the script, but I figured out that I can just define kvariants to nothing


to

and it helped

Yep, sorry I missed that portion when I was editing

Thx!

Code:
#%define   kversion 2.6.15-1.20_FC5
%define   kversion `uname -r`

#%define kvariants %{?buildup:""} %{?buildsmp:smp} %{?buildxen:xen0} %{?buildkdump:kdump}
%define kvariants ""
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0

Last edited by cybrjackle; 20th March 2006 at 05:23 PM.
Reply With Quote
  #9  
Old 20th March 2006, 07:53 PM
allyse Offline
Registered User
 
Join Date: Apr 2005
Location: Norway
Posts: 48
hmm I get:

[root@allyse i686]# rpm -ivh kmod-nvidia* xorg-x11-drv-nvidia*
error: File not found by glob: xorg-x11-drv-nvidia*
error: Failed dependencies:
nvidia-kmod-common = 1.0.8178 is needed by kmod-nvidia-1.0.8178-3.2.6.15_1.2059_FC5.i686
Reply With Quote
  #10  
Old 20th March 2006, 11:26 PM
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
ls /home/allyse/rpmbuild/RPMS/i686
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #11  
Old 21st March 2006, 04:12 AM
totzo Offline
Registered User
 
Join Date: Dec 2004
Location: Scotland
Posts: 14
Quote:
Originally Posted by allyse
hmm I get:

[root@allyse i686]# rpm -ivh kmod-nvidia* xorg-x11-drv-nvidia*
error: File not found by glob: xorg-x11-drv-nvidia*
error: Failed dependencies:
nvidia-kmod-common = 1.0.8178 is needed by kmod-nvidia-1.0.8178-3.2.6.15_1.2059_FC5.i686

me too
Reply With Quote
  #12  
Old 21st March 2006, 04:28 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
See My howto on the same subject for more info -- You have to install 2 rpms and build 2 more:
install -> kernel & kernel-devel
build -> xorg-drv-nvidia & nvidia-kmod
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #13  
Old 21st March 2006, 01:59 PM
totzo Offline
Registered User
 
Join Date: Dec 2004
Location: Scotland
Posts: 14
Quote:
Originally Posted by Firewing1
See My howto on the same subject for more info -- You have to install 2 rpms and build 2 more:
install -> kernel & kernel-devel
build -> xorg-drv-nvidia & nvidia-kmod
Firewing1

cheers for that, worked a treat!
Reply With Quote
  #14  
Old 22nd March 2006, 06:59 PM
AdRy Offline
Registered User
 
Join Date: Mar 2006
Posts: 1
Please help me,
when i do
Code:
 # rpm -ivh kmod-nvidia* xorg-x11-drv-nvidia*
at the end
I always get this error msg:
Code:
[root@localhost i686]# rpm -ivh kmod-nvidia* xorg-x11-drv-nvidia*
error: Failed dependencies:
        nvidia-kmod-common = 1.0.8178 is needed by kmod-nvidia-1.0.8178-5.2.6.16_1.2070_FC5.i686
following files are in this folder:
kmod-nvidia-1.0.8178-5.2.6.16_1.2070_FC5.i686.rpm
nvidia-kmod-debuginfo-1.0.8178-5.2.6.16_1.2070_FC5.i686.rpm
xorg-x11-drv-nvidia-1.0.8178-7.lvn5.src.rpm
Reply With Quote
  #15  
Old 22nd March 2006, 09:56 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
I dunno there -- Those are the instructions that worked for my computer... I guess we'll have to wait for Livna to release the offical RPMS.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
Reply

Tags
fc5, howto, kernel, nvidia or ati

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Kernel Update: Nvidia and Nvidia 96xx GuyverScythe Using Fedora 7 14th March 2008 09:39 PM
nvidia driver version / nvidia kernel conflict Wangberg Using Fedora 16 13th June 2007 09:57 AM
yum install nvidia-glx kernel-module-nvidia-`(uname -r)` DIDN'T WORK :( jmachine Using Fedora 16 14th July 2005 08:57 PM


Current GMT-time: 06:43 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat