FC5 kernel nvidia/ati how-to
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    cybrjackle Guest

    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
    Last edited by cybrjackle; 20th March 2006 at 06:24 PM.

  2. #2
    cybrjackle Guest
    Oh, edit the nvidia-kmod.spec and take out xen and kerneldump

    Change 1 to 0

    Code:
    %define buildxen 0
    %define buildkdump 0

  3. #3
    Join Date
    Nov 2004
    Location
    Norway
    Age
    35
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  4. #4
    cybrjackle Guest
    Either way, yum install or go d/l and rpm -ivh them.

  5. #5
    Join Date
    Nov 2004
    Location
    Norway
    Age
    35
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  6. #6
    cybrjackle Guest
    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

  7. #7
    Join Date
    Nov 2004
    Location
    Norway
    Age
    35
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

    %define kvariants %{?buildup:""} %{?buildsmp:smp} %{?buildxen:xen0} %{?buildkdump:kdump}
    to
    %define kvariants ""
    and it helped

  8. #8
    cybrjackle Guest
    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 ""
    Last edited by cybrjackle; 20th March 2006 at 06:23 PM.

  9. #9
    allyse Guest
    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

  10. #10
    cybrjackle Guest
    ls /home/allyse/rpmbuild/RPMS/i686

  11. #11
    totzo Guest
    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

  12. #12
    Join Date
    Dec 2004
    Location
    Canada
    Age
    30
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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)

  13. #13
    totzo Guest
    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!

  14. #14
    AdRy Guest
    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

  15. #15
    Join Date
    Dec 2004
    Location
    Canada
    Age
    30
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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)

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Kernel Update: Nvidia and Nvidia 96xx
    By GuyverScythe in forum Using Fedora
    Replies: 7
    Last Post: 14th March 2008, 09:39 PM
  2. nvidia driver version / nvidia kernel conflict
    By Wangberg in forum Using Fedora
    Replies: 16
    Last Post: 13th June 2007, 09:57 AM
  3. Replies: 16
    Last Post: 14th July 2005, 08:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •