FedoraForum.org - Fedora Support Forums and Community
Page 1 of 8 123 ... LastLast
Results 1 to 15 of 107
  1. #1
    Join Date
    Oct 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    NVIDIA kernel Driver - a better solution

    Hi,

    in this forum a solution was posted how in the alpha/beta kernel the nvidia drivers could be activated.
    However this is much effort and it didn't work for me, because my kernel always crashed when i turned of the debugging options as suggested by the author. Therefore after some internet search i have another solution. Basically the problem is one kernel function which has a GPL Tag and this will make some checking in the build fail. Therefore if we don't set the GPL symbol in the build, the check will not fail. This is a bandaid i know. But the current nouveau driver are a mess for my two linux computers both with nvidia cards.

    1. Create directory "nvidia"

    2. Download the Nvidia Driver from http://www.nvidia.de/Download/Find.aspx

    use the current BETA DRIVER
    at time of writing this is "NVIDIA-Linux-x86_64-190.32-pkg2.run"

    3. Create the files "build-nvidia.sh" and "Makefile.kbuild.patch"
    (see below)

    4. Before you can run the build script you need to make sure that the
    nouveau driver is not activated on boot. Therefore you need
    to add nouveau.modeset=0 to the kernel options. See example
    below , add only the text in bold!

    5. Reboot

    5. Go to linux console, turn off X-Server e.g. with "init 3"

    6. run "build-nvidia.sh NVIDIA-Linux-x86_64-190.32-pkg2.run"

    7. Now it should build and work as expected ;-)

    Have Fun!

    Mandragor


    The following files need to be in the directory "nvidia"

    File "build-nvidia.sh"
    Code:
    #!/bin/sh
    NVIDIA_PACKAGE=$1
    if [ ! $NVIDIA_PACKAGE  ];then
      echo "build-nvidia.sh PACKAGE_NAME"
      exit
    fi
    
    TARGET=nvidia-module
    if [ -d $TARGET ]; then
      rm -rf $TARGET
    fi
    sh $NVIDIA_PACKAGE -x --target $TARGET
    
    cd $TARGET
    cat ../Makefile.kbuild.patch |patch -p1
    ./nvidia-installer -a
    File Makefile.kbuild.patch
    Code:
    --- nvidia-module/usr/src/nv/Makefile.kbuild    2009-09-02 12:42:28.000000000 +0200
    +++ nvidia-module/usr/src/nv/Makefile.kbuild.mod        2009-10-04 10:38:36.000000000 +0200
    @@ -77,6 +77,9 @@
     EXTRA_CFLAGS += -I$(src)
     EXTRA_CFLAGS += -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -mcmodel=kernel -mno-red-zone -fno-defer-pop -MD $(DEFINES) $(INCLUDES) -Wsign-compare -Wno-cast-qual -Wno-error
    
    +LOCKDEP_INIT_MAP:=$(shell grep "T lockdep_init_map" /boot/System.map-$(shell uname -r) |colrm 17)
    +EXTRA_LDFLAGS := --defsym lockdep_init_map=0x$(LOCKDEP_INIT_MAP)
    +
     #
     # We rely on these two definitions below; if they aren't set, we set them to
     # reasonable defaults (Linux 2.4's KBUILD, and top-level passes will not set


    Example Entry for grub.conf with nouveau.option added. DO NOT COPY THIS INTO "grub.conf".
    Only add the nouveau.conf (in bold) at the end of the line in your grub.conf.


    Code:
    title Fedora (2.6.31.1-56.local.fc12.x86_64)
            kernel /vmlinuz-2.6.31.1-56.local.fc12.x86_64 ro root=UUID=XXX rhgb quiet SYSFONT=latarcyrheb-sun16 LANG=de_DE.UTF-8 KEYTABLE=de-latin1-nodeadkeys rd_plytheme=text nouveau.modeset=0
            initrd /initramfs-2.6.31.1-56.local.fc12.x86_64.img

  2. #2
    leigh123linux Guest
    It would be better to use 190.36 (it supports the Xorg version) , there is a easier way to patch the driver

    http://www.nvnews.net/vbulletin/show....php?p=2091962



    64 bit

    Code:
    su
    wget ftp://download.nvidia.com/XFree86/Linux-x86_64/190.36/NVIDIA-Linux-x86_64-190.36-pkg2.run
    wget http://leigh123linux.fedorapeople.org/pub/patches/2.6.31_patch/nvidia.patch
    chmod +x NVIDIA-Linux-x86_64-190.36-pkg2.run
    ./NVIDIA-Linux-x86_64-190.36-pkg2.run --apply-patch nvidia.patch
    This creates a patched .run file that can be installed .



    P.S thanks for the patch, I will test it later on my F12 install.







    .

  3. #3
    Join Date
    Oct 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    thanks for the advice. Works fine - at least on my computer ;-)

    Regards

  4. #4
    leigh123linux Guest
    Thank you for the patch it works fine here.

  5. #5
    Join Date
    Jun 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, good solution, but here is some update because of usage specific app "colrm". It's better to use "cut"
    LOCKDEP_INIT_MAP:=$(shell grep "T lockdep_init_map" /boot/System.map-$(shell uname -r) |cut -d" " -f1)

  6. #6
    Join Date
    Jun 2007
    Location
    Aubagne France
    Age
    71
    Posts
    675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank for that...
    I install nvidia drivers with Leigh method, and that work...

  7. #7
    Join Date
    Jun 2007
    Location
    Aubagne France
    Age
    71
    Posts
    675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There working one day...
    yesterday , there are been updates (among which xorg-x11-server-Xorg-1.7.0-1.fc12.x86_64 and xorg-x11-server-common-1.7.0-1.fc12.x86_64 ) and now I have no open-gl , desktop effects of kde won't work...
    Should I uninstall the nvidia drivers when there is update of xorg?

  8. #8
    leigh123linux Guest
    Quote Originally Posted by chepioq
    There working one day...
    yesterday , there are been updates (among which xorg-x11-server-Xorg-1.7.0-1.fc12.x86_64 and xorg-x11-server-common-1.7.0-1.fc12.x86_64 ) and now I have no open-gl , desktop effects of kde won't work...
    Should I uninstall the nvidia drivers when there is update of xorg?

    The Xorg update has overwritten some of the nvidia files, rerun the nvidia installer.

  9. #9
    Join Date
    Jun 2007
    Location
    Aubagne France
    Age
    71
    Posts
    675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank leigh, but re-run the nvidia installer don't work.
    Do an --uninstall and run the nvidia installer work...

  10. #10
    Join Date
    Apr 2005
    Location
    Owatonna, Minnesota
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you mandragor and leigh!

    Time to bring my Rawhide installation up to date. I've been running xorg-x11-server-Xorg-1.6.1.901-1.fc11 and kernel-2.6.31-0.190.rc8.fc12.x86_64 for more than three weeks now just so I could have a working X. In fact, recent nightly composes wouldn't give a working X even when using the vesa driver. The patched nvidia driver worked without a hitch with the LXDE Oct 7 nightly compose running off a live USB stick. Thanks again.
    RockDoctor
    Registered Linux user #360200

  11. #11
    Join Date
    Mar 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It works fine for us. Thank you
    http://www.fedoraonline.it/modules/m...?lid=237&cid=7

    Mailga (fedoraonline.it - the italian Fedora community)

  12. #12
    Join Date
    Jun 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by chepioq
    There working one day...
    yesterday , there are been updates (among which xorg-x11-server-Xorg-1.7.0-1.fc12.x86_64 and xorg-x11-server-common-1.7.0-1.fc12.x86_64 ) and now I have no open-gl , desktop effects of kde won't work...
    Should I uninstall the nvidia drivers when there is update of xorg?
    There is a simple solution:
    1. Login under root
    2. Go to /usr/lib(64)/xorg/modules/extensions
    3. Move libglx.so to libglx.so.orig (it may be removed but I don't recommed it)
    4. Linking nvidia libglx.so.193.36 within libglx.so
    5. Logout and Login

  13. #13
    Join Date
    Oct 2005
    Posts
    1,952
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    getting this error

    Code:
    [root@jongi-main video]# ./NVIDIA-Linux-x86_64-190.36-pkg2.run --apply-patch nvidia.patch
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 190.36.............................................................................................................................................................
    Couldn't locate the 'patch' utility.
    [root@jongi-main video]# ls
    NVIDIA-Linux-x86_64-190.36-pkg2.run  nvidia.patch
    Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

  14. #14
    Join Date
    Jun 2007
    Location
    Aubagne France
    Age
    71
    Posts
    675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jongi
    getting this error

    Code:
    [root@jongi-main video]# ./NVIDIA-Linux-x86_64-190.36-pkg2.run --apply-patch nvidia.patch
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 190.36.............................................................................................................................................................
    Couldn't locate the 'patch' utility.
    [root@jongi-main video]# ls
    NVIDIA-Linux-x86_64-190.36-pkg2.run  nvidia.patch
    Have you the package patch installed?
    Code:
    yum install patch patchutils

  15. #15
    Join Date
    Oct 2005
    Posts
    1,952
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no i had not
    Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

Page 1 of 8 123 ... LastLast

Similar Threads

  1. nvidia driver version / nvidia kernel conflict
    By Wangberg in forum Using Fedora
    Replies: 16
    Last Post: 13th June 2007, 09:57 AM
  2. NVidia driver: kernel driver compilation
    By DJ Wings in forum Hardware
    Replies: 21
    Last Post: 23rd November 2006, 06:15 PM
  3. Replies: 30
    Last Post: 14th February 2005, 03:56 AM

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
  •