forked from ports/contrib
nvidia-legacy-96xx: dropped
This commit is contained in:
parent
63d7cc677d
commit
a3e612bbc0
@ -1,38 +0,0 @@
|
||||
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.96.43.07
|
||||
lrwxrwxrwx root/root usr/lib/libGLcore.so -> libGLcore.so.96.43.07
|
||||
-rwxr-xr-x root/root usr/lib/libGLcore.so.96.43.07
|
||||
-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.96.43.07
|
||||
-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.96.43.07
|
||||
drwxr-xr-x root/root usr/lib/tls/
|
||||
-rwxr-xr-x root/root usr/lib/tls/libnvidia-tls.so.96.43.07
|
||||
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.96.43.07
|
||||
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/
|
||||
lrwxrwxrwx root/root usr/lib/xorg/modules/extensions/libGLcore.so -> /usr/lib/libGLcore.so
|
||||
-rwxr-xr-x root/root usr/lib/xorg/modules/extensions/libglx.so.96.43.07
|
||||
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
|
@ -1,3 +0,0 @@
|
||||
8fa2b7c5e4629850d4bd33033ec46166 NVIDIA-Linux-x86-96.43.07-pkg0.run
|
||||
cd4a68b5a88be6976b90cd0df6bfe89e kernel-2.6.27.patch
|
||||
544ac021f572c0aca5025dcca9d01510 nvidia-makefile.patch
|
@ -1,55 +0,0 @@
|
||||
# Description: nVIDIA Linux Display Driver.
|
||||
# URL: http://www.nvidia.com/
|
||||
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
||||
# Packager: Matt Housh, jaeger at morpheus dot net
|
||||
# Depends on: xorg gl-select
|
||||
|
||||
name=nvidia-legacy-96xx
|
||||
version=96.43.07
|
||||
release=2
|
||||
source=(http://us.download.nvidia.com/XFree86/Linux-x86/$version/NVIDIA-Linux-x86-$version-pkg0.run \
|
||||
nvidia-makefile.patch
|
||||
kernel-2.6.27.patch)
|
||||
|
||||
build() {
|
||||
sh NVIDIA-Linux-x86-$version-pkg0.run --extract-only
|
||||
cd NVIDIA-Linux-x86-$version-pkg0
|
||||
|
||||
# patch Makefile.kbuild for normal users and no load during build
|
||||
patch -p 0 -i $SRC/nvidia-makefile.patch usr/src/nv/Makefile.kbuild
|
||||
|
||||
# kernel patch
|
||||
patch -p 1 -i $SRC/kernel-2.6.27.patch
|
||||
|
||||
# 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
|
||||
ln -s libGLcore.so.$version $PKG/usr/lib/libGLcore.so
|
||||
ln -sf /usr/lib/libGLcore.so $PKG/usr/lib/xorg/modules/extensions/libGLcore.so
|
||||
|
||||
# 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
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
REQUIREMENTS:
|
||||
|
||||
Add your users to the "video" group to be able to use the nvidia
|
||||
devices required for 3d to function properly.
|
||||
|
||||
PRECAUTION:
|
||||
|
||||
PRE-INSTALL:
|
||||
|
||||
POST-INSTALL
|
||||
|
||||
Use opt/gl-select from ports to select the correct gl/glx libraries
|
||||
and extensions like so:
|
||||
|
||||
# gl-select nvidia
|
||||
|
||||
PRE-REMOVE:
|
||||
|
||||
POST-REMOVE
|
||||
|
||||
Use opt/gl-select from ports to revert to the xorg 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
|
||||
|
@ -1,87 +0,0 @@
|
||||
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/nv.c NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c
|
||||
--- usr/src/nv/nv.c 2008-07-18 03:42:50.000000000 +0200
|
||||
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c 2008-08-12 00:35:45.000000000 +0200
|
||||
@@ -1296,14 +1296,22 @@
|
||||
if (get_cpu() == cpu)
|
||||
__nv_setup_pat_entries(NULL);
|
||||
else
|
||||
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
|
||||
+ smp_call_function(__nv_setup_pat_entries, hcpu, 1);
|
||||
+ #else
|
||||
smp_call_function(__nv_setup_pat_entries, hcpu, 1, 1);
|
||||
+ #endif
|
||||
put_cpu();
|
||||
break;
|
||||
case CPU_DOWN_PREPARE:
|
||||
if (get_cpu() == cpu)
|
||||
__nv_restore_pat_entries(NULL);
|
||||
else
|
||||
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
|
||||
+ smp_call_function(__nv_restore_pat_entries, hcpu, 1);
|
||||
+ #else
|
||||
smp_call_function(__nv_restore_pat_entries, hcpu, 1, 1);
|
||||
+ #endif
|
||||
put_cpu();
|
||||
break;
|
||||
}
|
||||
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/nv-linux.h NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h
|
||||
--- usr/src/nv/nv-linux.h 2008-07-18 03:42:51.000000000 +0200
|
||||
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h 2008-08-12 00:44:27.000000000 +0200
|
||||
@@ -104,7 +104,10 @@
|
||||
#endif
|
||||
|
||||
#include <linux/spinlock.h>
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
|
||||
+#else
|
||||
#include <asm/semaphore.h>
|
||||
+#endif
|
||||
#include <linux/completion.h>
|
||||
#include <linux/highmem.h>
|
||||
|
||||
@@ -665,13 +668,21 @@
|
||||
#if defined(preempt_disable)
|
||||
preempt_disable();
|
||||
#endif
|
||||
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
|
||||
+ ret = smp_call_function(func, info, 1);
|
||||
+ #else
|
||||
ret = smp_call_function(func, info, 1, 1);
|
||||
+ #endif
|
||||
func(info);
|
||||
#if defined(preempt_enable)
|
||||
preempt_enable();
|
||||
#endif
|
||||
#else
|
||||
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
|
||||
+ ret = on_each_cpu(func, info, 1);
|
||||
+ #else
|
||||
ret = on_each_cpu(func, info, 1, 1);
|
||||
+ #endif
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/os-interface.c NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c
|
||||
--- usr/src/nv/os-interface.c 2008-07-18 03:42:50.000000000 +0200
|
||||
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c 2008-08-12 00:48:07.000000000 +0200
|
||||
@@ -48,7 +48,11 @@
|
||||
#endif
|
||||
local_bh_disable();
|
||||
atomic_set(&os_smp_barrier, 1);
|
||||
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
|
||||
+ ret = smp_call_function(ipi_handler, NULL, 0);
|
||||
+ #else
|
||||
ret = smp_call_function(ipi_handler, NULL, 1, 0);
|
||||
+ #endif
|
||||
#endif
|
||||
return (ret == 0) ? RM_OK : RM_ERROR;
|
||||
}
|
||||
@@ -704,7 +708,9 @@
|
||||
U032 sig
|
||||
)
|
||||
{
|
||||
+ #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
|
||||
return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
|
||||
+ #endif
|
||||
}
|
||||
|
||||
/*******************************************************************************/
|
@ -1,39 +0,0 @@
|
||||
--- 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
|
Loading…
x
Reference in New Issue
Block a user