NVIDIA Driver with Kernel 3.3.x: Difference between revisions
>Samthecrazyman m Added 3.7.x problem |
>Samthecrazyman m Changed to be relevant for 3.7.x series |
||
| (One intermediate revision by the same user not shown) | |||
| Line 17: | Line 17: | ||
* Directories may need to be changed depending on factors of your system. There are two variants of the kernel - <code>kernel-desktop</code> and <code>kernel-deault</code>. You may also need to replace <code>x86_64</code> with <code>x86</code> if you are running a 32-bit system. | * Directories may need to be changed depending on factors of your system. There are two variants of the kernel - <code>kernel-desktop</code> and <code>kernel-deault</code>. You may also need to replace <code>x86_64</code> with <code>x86</code> if you are running a 32-bit system. | ||
* You may need to run this again in the future if you update the kernel again and the NVIDIA installer doesn't install again. Omit the kernel versions on the command line with the kernel version you are running. | * You may need to run this again in the future if you update the kernel again and the NVIDIA installer doesn't install again. Omit the kernel versions on the command line with the kernel version you are running. | ||
* '''When running for the 3.7.x kernel series,''' <code>x86_64</code> '''in the paths will be''' <code>x86</code> '''instead due to a change in the kernel.''' | |||
== Fixing the files == | == Fixing the files == | ||
| Line 27: | Line 28: | ||
# Run <code>make prepare</code>. The files needed are now generated, we need to copy them to the right place. | # Run <code>make prepare</code>. The files needed are now generated, we need to copy them to the right place. | ||
# Change directory to <code>/lib/modules</code> | # Change directory to <code>/lib/modules</code> | ||
# Run <code>dir</code>. You may be presented with a large list, depending on how many times you have updated the kernel. We need to use the folder with the same version and variant of the kernel as we are installing the driver under. This will more than likely be the highest version number. For the rest of the tutorial, we assume the kernel version 3. | # Run <code>dir</code>. You may be presented with a large list, depending on how many times you have updated the kernel. We need to use the folder with the same version and variant of the kernel as we are installing the driver under. This will more than likely be the highest version number. For the rest of the tutorial, we assume the kernel version 3.7.1-2. Yours may be different. | ||
# Change directory with either <code>/lib/modules/3. | # Change directory with either <code>/lib/modules/3.7.1-2-desktop/source/arch/x86/include</code> or <code>/lib/modules/3.7.1-2-default/source/arch/x86/include</code> depending on kernel variant. | ||
# Run the command <code>cp -v generated/asm/unistd*.h ./asm/</code>. Make sure there is no <code>/</code> before <code>generated</code> or this will fail. 3 files will then be copied to the correct location. | # Run the command <code>cp -v generated/asm/unistd*.h ./asm/</code>. Make sure there is no <code>/</code> before <code>generated</code> or this will fail. 3 files will then be copied to the correct location. | ||
# You are now ready to go, make sure your in runlevel 3 and run the installer again. | # You are now ready to go, make sure your in runlevel 3 and run the installer again. | ||