NVIDIA: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
'''NVIDIA_Kernel Module.'''
== Introduction to NVIDIA ==


Download Source: http://www.nvidia.com/object/linux_display_amd64_{{NVIDIA-Version}}.html
== Dependencies ==
Download Pathces:
No patches required for this version.


Dependancies: Linux Kernel Sources.
=== Required ===
* Linux Kernel Source (Note: ''This package requires the kernel sources. If you have removed the kernel sources then I suggest that you build it again. No need for installtion though.'')
* [[X Window System]]


Description:
== Extra Options ==
    This is the NVIDIA's kernel module (driver) for x86_64 Unix System.


Note: This package requires the kernel sources. If you have removed the kernel sources then I suggest that you build it again. No need for installtion though.( Don't forget to install the linux-headers package as well.)
If for whatever reason you're building inside of a chroot or not running the kernel you plan to use with the nVidia driver, also pass the following:


How to Install:
--kernel-source-path=''[path to kernel source]''
    Once you download the NVIDIA-kernel-{{NVIDIA-Version}}.run file, from the
 
command prompt issue the following:
The default path is ''/lib/modules/`uname -r`/build''.
    $ sh NVIDIA-kernel-{{NVIDIA-Version}}
 
    The package will unpack and will (try to) run the nvidia-installer.  
You can also pass the following to disable building the kernel module:
If it says that it can't find the file then do the following.
 
    $ sh NVIDIA-kernel-{{NVIDIA-Version}} -x   ; ie . extract only.
--no-kernel-module
    This will extract the contents of the package.
 
    Then issue
== Non-Multilib ==
    $ make SYSSRC="path/to/kernel source" modules
 
    This will build the module for the kernel.
{| style="text-align: left; background-color: AliceBlue;"
    Then issue
|-
    $ make install
!Download Source:
    This will install the module (nvidia_drv.so) in
| http://www.nvidia.com/object/linux_display_ia32_{{NVIDIA-Version}}.html
/lib/modules/<kernel-version>/drivers/video.
|}
    Reboot the system.  
 
    Check the output of dmesg to verify the module is being loaded.
=== x86 ===
    It will read:
 
    Loading NVIDIA UNIX x86_64 Kernel Module{{NVIDIA-Version}}
First we need to make the downloaded file executable:
    To use it in your X11 copy the so file in $XORG_PREFIX/lib/xorg/modules/drivers.
 
    Change the line Driver "nv" to Driver "nvidia" in your xorg.conf.new
chmod +x NVIDIA-Linux-x86-{{NVIDIA-Version}}-pkg1.run
or /etc/X11/xorg.conf. Also remove the lines Load dri, Load glcore from
 
the same.
Install the driver with the following command (see above for more options):
    Test the X server with the
 
    $ X -config <your config file>
./NVIDIA-Linux-x86-{{NVIDIA-Version}}-pkg1.run \
    You will see NVIDIA's logo and then the normal server screen.
    --x-prefix=$(pkg-config --variable=prefix xorg-server) \
    --no-precompiled-interface
 
== x86_64 ==
{| style="text-align: left; background-color: AliceBlue;"
|-
!Download Source:
| http://www.nvidia.com/object/linux_display_amd64_{{NVIDIA-Version}}.html
|}
 
=== Multilib ===
 
First we need to make the downloaded file executable:
 
chmod +x NVIDIA-Linux-x86_64-{{NVIDIA-Version}}-pkg2.run
 
Install the driver with the following command (see above for more options):
 
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./NVIDIA-Linux-x86_64-{{NVIDIA-Version}}-pkg2.run \
    --x-prefix=$(pkg-config --variable=prefix xorg-server) \
    --no-precompiled-interface
 
=== Pure64 ===
 
TODO
 
== Configuring ==
 
To generate a new xorg.conf run the following:
 
nvidia-xconfig --output-xconfig=xorg.conf.new
 
Test the X server configuration with:
 
X -config xorg.conf.new
 
You should see nVidia's logo and then the normal server screen.
 
If it works properly move it to it's proper location:
 
mv -v xorg.conf.new /etc/X11/xorg.conf

Revision as of 06:00, 23 February 2007

Introduction to NVIDIA

Dependencies

Required

  • Linux Kernel Source (Note: This package requires the kernel sources. If you have removed the kernel sources then I suggest that you build it again. No need for installtion though.)
  • X Window System

Extra Options

If for whatever reason you're building inside of a chroot or not running the kernel you plan to use with the nVidia driver, also pass the following:

--kernel-source-path=[path to kernel source]

The default path is /lib/modules/`uname -r`/build.

You can also pass the following to disable building the kernel module:

--no-kernel-module

Non-Multilib

Download Source: http://www.nvidia.com/object/linux_display_ia32_1.0-9755.html

x86

First we need to make the downloaded file executable:

chmod +x NVIDIA-Linux-x86-1.0-9755-pkg1.run

Install the driver with the following command (see above for more options):

./NVIDIA-Linux-x86-1.0-9755-pkg1.run \
    --x-prefix=$(pkg-config --variable=prefix xorg-server) \
    --no-precompiled-interface

x86_64

Download Source: http://www.nvidia.com/object/linux_display_amd64_1.0-9755.html

Multilib

First we need to make the downloaded file executable:

chmod +x NVIDIA-Linux-x86_64-1.0-9755-pkg2.run

Install the driver with the following command (see above for more options):

PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./NVIDIA-Linux-x86_64-1.0-9755-pkg2.run \
    --x-prefix=$(pkg-config --variable=prefix xorg-server) \
    --no-precompiled-interface

Pure64

TODO

Configuring

To generate a new xorg.conf run the following:

nvidia-xconfig --output-xconfig=xorg.conf.new

Test the X server configuration with:

X -config xorg.conf.new

You should see nVidia's logo and then the normal server screen.

If it works properly move it to it's proper location:

mv -v xorg.conf.new /etc/X11/xorg.conf
Retrieved from "?title=NVIDIA&oldid=7908"