1
0
forked from ports/contrib

nvidia-legacy-96xx: new port

This commit is contained in:
Danny Rawlins 2007-05-22 18:41:07 +10:00
parent 1e51722d52
commit 07eb0a9aeb
5 changed files with 213 additions and 0 deletions

View File

@ -0,0 +1,36 @@
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/modules/
drwxr-xr-x root/root lib/modules/<kernel-version>/
drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/
drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/video/
-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/video/nvidia.ko
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nvidia-settings
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/nvidia/
drwxr-xr-x root/root usr/include/nvidia/GL/
-r--r--r-- root/root usr/include/nvidia/GL/gl.h
-r--r--r-- root/root usr/include/nvidia/GL/glext.h
-r--r--r-- root/root usr/include/nvidia/GL/glx.h
-r--r--r-- root/root usr/include/nvidia/GL/glxext.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libGL.la
-rwxr-xr-x root/root usr/lib/libGL.so.1.0.9631
-rwxr-xr-x root/root usr/lib/libGLcore.so.1.0.9631
-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.1.0.9631
-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.1.0.9631
drwxr-xr-x root/root usr/lib/tls/
-rwxr-xr-x root/root usr/lib/tls/libnvidia-tls.so.1.0.9631
drwxr-xr-x root/root usr/lib/xorg/
-r--r--r-- root/root usr/lib/xorg/libXvMCNVIDIA.a
-rwxr-xr-x root/root usr/lib/xorg/libXvMCNVIDIA.so.1.0.9631
drwxr-xr-x root/root usr/lib/xorg/modules/
drwxr-xr-x root/root usr/lib/xorg/modules/drivers/
-rwxr-xr-x root/root usr/lib/xorg/modules/drivers/nvidia_drv.so
drwxr-xr-x root/root usr/lib/xorg/modules/extensions/
-rwxr-xr-x root/root usr/lib/xorg/modules/extensions/libglx.so.1.0.9631
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/nvidia-installer.1.gz

View File

@ -0,0 +1,2 @@
3676f622897d22f1815365b44139899e NVIDIA-Linux-x86-1.0-9631-pkg1.run
544ac021f572c0aca5025dcca9d01510 nvidia-makefile.patch

View File

@ -0,0 +1,51 @@
# Description: nVIDIA Linux Display Driver
# URL: http://www.nvidia.com/
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
# Packager: Matt Housh, jaeger at morpheus dot net
# Depends on: xorg
# Nice to have: gl-select-x11r7
name=nvidia-legacy-96xx
version=1.0-9631-$(uname -r)
release=1
source=(http://download.nvidia.com/XFree86/Linux-x86/${version%-*}/NVIDIA-Linux-x86-${version%-*}-pkg1.run \
nvidia-makefile.patch)
build() {
sh NVIDIA-Linux-x86-${version%-*}-pkg1.run --extract-only
cd NVIDIA-Linux-x86-${version%-*}-pkg1
# patch Makefile.kbuild for normal users and no load during build
patch -p0 -i $SRC/nvidia-makefile.patch usr/src/nv/Makefile.kbuild
# create directories the Makefile expects
mkdir -p $PKG/usr/lib \
$PKG/usr/lib/xorg/modules/drivers \
$PKG/usr/lib/xorg/modules/extensions \
$PKG/usr/bin $PKG/usr/man/man1
# install libraries
cp -a usr/X11R6/lib/* $PKG/usr/lib/xorg/
cp -a usr/lib/* $PKG/usr/lib/
sed -i -e 's|__LIBGL_PATH__|/usr/lib|' $PKG/usr/lib/libGL.la
# copy includes
mkdir -p $PKG/usr/include/nvidia
cp -r usr/include/GL $PKG/usr/include/nvidia/
# install xconfig/settings programs and manpages
install -m 0755 usr/bin/nvidia-settings $PKG/usr/bin/
install -m 0644 usr/share/man/man1/nvidia-installer.1.gz \
$PKG/usr/man/man1/
# build the module
cd usr/src/nv
sed -i -e 's/config.h/utsrelease.h/' nv-linux.h # fix for later kernels
ln -s Makefile{.kbuild,}
SYSSRC="/usr/src/linux-$(uname -r)" IGNORE_CC_MISMATCH=1 make module
# install it
install -m 0644 -D nvidia.ko \
$PKG/lib/modules/`uname -r`/kernel/drivers/video/nvidia.ko
}

85
nvidia-legacy-96xx/README Normal file
View File

@ -0,0 +1,85 @@
**** NOTE for nvidia with udev ****
If using udev, add your user to the "video" group to be able to
use the nvidia devices required for 3d to function properly.
POST-INSTALL
Use opt/gl-select from ports to select the correct gl/glx
libraries and extensions like so:
# gl-select nvidia
POST-REMOVE
Use opt/gl-select from ports to revert to the x11r7 gl/glx
libraries and extensions like so:
# gl-select xorg
When UPGRADING/DOWNGRADING the nvidia port (where the version changes),
use gl-select to revert to xorg and then re-select nvidia in order to
refresh the libGLcore and libGL symlinks, like so:
# prt-get update nvidia-legacy-96xx
# gl-select xorg
# gl-select nvidia
NOTES:
The following GPUs are no longer supported in the regular NVIDIA Unified UNIX Graphics Driver. Instead, these GPUs will continue to be supported through special "Legacy GPU" drivers that will be updated periodically to add support for new versions of Linux system components (e.g., new Linux kernels, new versions of the X server, etc).
There are presently two Legacy GPU driver series. The 1.0-71xx series supports TNT, TNT2, GeForce 256, and GeForce2 GPUs. The 1.0-96xx series supports GeForce2 MX, GeForce3, GeForce4, and Quadro4 GPUs. For a complete list of the GPUs supported in each of the Legacy GPU driver series, see the lists below.
The 1.0-96xx driver supports the following set of GPUs:
NVIDIA chip name Device PCI ID
GeForce2 MX/MX 400 0x0110
GeForce2 MX 100/200 0x0111
GeForce2 Go 0x0112
Quadro2 MXR/EX/Go 0x0113
GeForce4 MX 460 0x0170
GeForce4 MX 440 0x0171
GeForce4 MX 420 0x0172
GeForce4 MX 440-SE 0x0173
GeForce4 440 Go 0x0174
GeForce4 420 Go 0x0175
GeForce4 420 Go 32M 0x0176
GeForce4 460 Go 0x0177
Quadro4 550 XGL 0x0178
GeForce4 440 Go 64M 0x0179
Quadro NVS 0x017A
Quadro4 500 GoGL 0x017C
GeForce4 410 Go 16M 0x017D
GeForce4 MX 440 with AGP8X 0x0181
GeForce4 MX 440SE with AGP8X 0x0182
GeForce4 MX 420 with AGP8X 0x0183
GeForce4 MX 4000 0x0185
Quadro4 580 XGL 0x0188
Quadro NVS 280 SD 0x018A
Quadro4 380 XGL 0x018B
Quadro NVS 50 PCI 0x018C
GeForce2 Integrated GPU 0x01A0
GeForce4 MX Integrated GPU 0x01F0
GeForce3 0x0200
GeForce3 Ti 200 0x0201
GeForce3 Ti 500 0x0202
Quadro DCC 0x0203
GeForce4 Ti 4600 0x0250
GeForce4 Ti 4400 0x0251
GeForce4 Ti 4200 0x0253
Quadro4 900 XGL 0x0258
Quadro4 750 XGL 0x0259
Quadro4 700 XGL 0x025B
GeForce4 Ti 4800 0x0280
GeForce4 Ti 4200 with AGP8X 0x0281
GeForce4 Ti 4800 SE 0x0282
GeForce4 4200 Go 0x0286
Quadro4 980 XGL 0x0288
Quadro4 780 XGL 0x0289
Quadro4 700 GoGL 0x028C
Referenced from: http://www.nvidia.com/object/IO_32667.html

View File

@ -0,0 +1,39 @@
--- Makefile.kbuild.orig 2006-04-13 11:14:18.437632472 -0500
+++ Makefile.kbuild 2006-04-13 11:15:28.789937296 -0500
@@ -269,10 +269,10 @@
#
suser-sanity-check:
- @if ! $(CONFTEST) suser_sanity_check; then exit 1; fi
+ #@if ! $(CONFTEST) suser_sanity_check; then exit 1; fi
rmmod-sanity-check:
- @if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi
+ #@if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi
gcc-sanity-check:
@if ! $(CONFTEST) cc_sanity_check full_output; then exit 1; fi
@@ -311,9 +311,9 @@
#
module-install: suser-sanity-check module
- @mkdir -p $(MODULE_ROOT)/video; \
- install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
- PATH="$(PATH):/bin:/sbin" depmod -ae;
+ #@mkdir -p $(MODULE_ROOT)/video; \
+ #install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
+ #PATH="$(PATH):/bin:/sbin" depmod -ae;
#
# This target builds, then installs, then creates device nodes and inserts
@@ -321,8 +321,8 @@
#
package-install: module-install rmmod-sanity-check
- PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
- echo "$(MODULE_OBJECT) installed successfully.";
+ #PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
+ #echo "$(MODULE_OBJECT) installed successfully.";
#
# Build an object file suitable for further processing by the installer and