View Single Post
Old 03-20-12, 05:51 PM   #8
jdmcdaniel3
Its James again in Austin
 
jdmcdaniel3's Avatar
 
Join Date: Dec 2010
Location: Austin, Texas
Posts: 16
Smile Re: Installing last nvidia-driver on 3.3.0-rc7

I wrote the following script to automatically modify the latest kernel 3.3 version to allow the nVIDIA driver 295.20 to properly compile.

Code:
#!/bin/bash

#: Title       : userfix
#: Date Created: Sun Feb 19 12:24:18 CST 2012
#: Last Edit   : Sun Feb 19 12:24:18 CST 2012
#: Author      : James D. McDaniel
#: Version     : 1.00
#: Description : 
#: Options     : 

version=$(uname -r | cut -c -3)
folder="/lib/modules/$(uname -r)/source/arch/x86/include"
if [ "$version" == "3.3" ] ; then
  if [ -d "$folder" ] ; then
    cd $folder 
    cp generated/asm/*.h ./asm
    echo
    echo "Kernel Fix for nVIDIA driver was executed!"
    echo
  fi
fi

exit 0

# End Of Script
For openSUSE users, I have a bash script I call SANDI, that can use DKMS to automatically install the nVIDIA driver when you update the kernel AND the above script can be set to run before the nVIDIA driver gets installed. Check it out here. If you use a different Linux distribution, consider modifying the script to work with what you are using. Just leave me comments and questions to the following blog, if you have them.

http://forums.opensuse.org/blogs/jdm...sion-1-00-103/

AND anyone just wanting a nice bash script to install the nVIDIA driver, take a look here:

http://forums.opensuse.org/blogs/jdm...rsion-1-10-32/

I look forward to any fix in the nVIDIA driver that no longer needs a fix to use the kernel version 3.3, now in final release: http://www.kernel.org/

I have a good kernel compiler, useful for the latest script you can find here:

http://forums.opensuse.org/blogs/jdm...rsion-2-50-34/

For anyone wanting to get ANY kernel version, back to 2006, might want to look at this bash script:

http://forums.opensuse.org/blogs/jdm...rsion-1-31-53/

Please, I want to hear any and all comments you might have and thanks nVIDIA for your very fine hardware.

Thank You,
jdmcdaniel3 is offline   Reply With Quote