HOWTO: Nvidia 6629 on any Kernel
A new patch has been released on the Nvidia forum to use the 6629 nvidia driver on any kernel (this thread http://www.nvnews.net/vbulletin/showthread.php?t=56926). I have 6629 working on a custom 2.6.13-archck kernel right now, very useful if you had the "lockup all but mouse pointer", especially when using transparency/composite on newer drivers. Anyway here it is the howto modified from that thread...
1. Download the nvidia 6629 driver from the nvidia archive:
http://www.nvidia.com/object/linux_disp … -6629.html
2. Extract the nvidia drivers: " ./sh NVIDIA-Linux-x86-1.0-6629-pkg1.run -x"
2. Download the newer patch from the nvidia forum
http://www.nvnews.net/vbulletin/attachm … ntid=13474
3. cp NVIDIA-2.0-6629-02.28.2005+warpxmod-09.24.2005.diff.txt /path/where/u/have/extracted/NVIDIA-Linux-x86-1.0-6629-pkg1"
4. patch -p0 < NVIDIA-2.0-6629-02.28.2005+warpxmod-09.24.2005.diff.txt
5. Execute the nvidia-installer in the extracted directory
6. Edit /etc/X11/xorg.conf and add Option "NVAGP" "1" to the Device section and set Option "RenderAccel" "true" if you had to disable it previously.
7. Add nvidia module to rc.conf
8. If you are using udev, add the following to rc.local
# Create nvidia devices for v6629 driver
mknod /dev/nvidia0 c 195 0
mknod /dev/nvidia1 c 195 1
mknod /dev/nvidia2 c 195 2
mknod /dev/nvidia3 c 195 3
mknod /dev/nvidia4 c 195 4
mknod /dev/nvidia5 c 195 5
mknod /dev/nvidia6 c 195 6
mknod /dev/nvidia0 c 195 7
mknod /dev/nvidiactl c 195 255
NB It was mentioned you should uninstall your previous (newer) driver. I found it worked when installed on top of the newer version, but there you go. Also for some reason I get higher fps in glxgears with this driver.
Good Luck!
EDIT: Added steps 7 and 8.
Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 512 MB
Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
Similar Messages
-
[SOLVED] Can't compile any kernels or modules
I can't compile the kernel, or any kernel modules. I tried the [core] kernel from ABS and the linux-ck kernel from AUR. I also tried to build vhba and nvidia modules.
I tried the standard cflags and many others.
All kernel compiles fail (immediately) with:
scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
/* empty file to figure out endianness / word size */
^
edward_81 had the same problem, with a default makepkg.conf and linux-mainline, which was never resolved.
I don't know why this file is being compiled in PIC mode. I have not explicitly enabled PIC anywhere I know of. I checked everywhere I know to look.
Last edited by quequotion (2015-02-04 15:46:10)graysky wrote:Try building one of them in a clean chroot.
Will try.
Finally got this working:
Please add V=1 to the make command on line 89 and rebuild with MAKEFLAGS="-j1" to get verbose output.
make -f ./scripts/Makefile.build obj=scripts/genksyms
[...snip...]
gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -march=native -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c
scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode
/* empty file to figure out endianness / word size */
^
scripts/Makefile.build:257: recipe for target 'scripts/mod/empty.o' failed
Last edited by quequotion (2015-02-04 13:40:15) -
Help reverting to nvidia 6629 drivers
ok folks,
I need to revert to the 6629 driver for my nvidia mx 420 pci graphics card (64 MB). I have downloaded the installer, and am trying on a brand new install as of today. It says I need the kernel source....but shouldn't that be present? or is the supplied kernel not compiled using gcc 3.4.3? Do I need to simply recomplie the kernel or do I need additional packages? If someone could help me out that would be great.
Since my move from debian stable with the 6629 drivers I find that none of the newer versions are stable with my nforce 2 board...constant crashing, and have heard others find this to work. A quick walkthrough would be appriciated, as I am getting used to this new packaging system.THe installer doesn't prompt me with errors until after the build, where it says it was unable to build the module. I have attached my log. Any help would be great.
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jun 23 09:53:45 2005
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
7664). As part of installing this driver (version: 1.0-6629), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel source path: '/lib/modules/2.6.11.10-ARCH/build'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Performing rivafb module check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.11.10-ARCH/
build SYSOUT=/lib/modules/2.6.11.10-ARCH/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.11.10-ARCH/build SUBDIRS=/t
mp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv modules
mkdir -p /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.tmp_vers
ions
make -f scripts/Makefile.build obj=/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629
-pkg1/usr/src/nv
echo #define NV_COMPILER "`cc -v 2>&1 | tail -n 1`" > /tmp/selfgz2831/NVI
DIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include -D__KERNE
L__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -
mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -Iinclude/asm-i3
86/mach-default -Wdeclaration-after-statement -I/tmp/selfgz2831/NVIDIA-Linu
x-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wfor
mat -Wchar-subscript
s -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD
-Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNT
RM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VER
SION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6629 -DNV_UNIX -DNV_LINUX -
DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RAN
GE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DN
V_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DMODULE -DKBUILD_
BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz2831/NVIDIA-Linux-x86-1
.0-6629-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-
pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:19,
from include/linux/module.h:10,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:52,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:864,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:75,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
`nvidia_init_module':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:930: warning:
`pm_register' is deprecated (declared at include/linux/pm.h:106)
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
`nvidia_exit_module':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1051: warning
: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
`_get_phys_address':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2509: warning
: passing arg 1 of `pmd_offset' from incompatible pointer type
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
`nv_agp_init':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2992: warning
: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
cc -Wp,-MD,/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.nv-v
m.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include -D__KE
RNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-alias
ing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-flo
at -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -Iinclude/as
m-i386/mach-default -Wdeclaration-after-statement -I/tmp/selfgz2831
/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -W
switch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multic
har -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_
NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__
KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL
=6629 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_
DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -D
NV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_
CLASS_PRESENT -DMODULE -DKBUILD_BASENAME=nv_vm -DKBUILD_MODNAME=nvidia -c -
o /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.tmp_nv-vm.o /tm
p/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-vm.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:19,
from include/linux/module.h:10,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:52,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-vm.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:864,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:75,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-vm.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-vm.c: At top le
vel:
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-vm.c:59: warnin
g: 'cache_flush' defined but not used
cc -Wp,-MD,/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.os-a
gp.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include -D__K
ERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-alia
sing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-fl
oat -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -Iinclude/a
sm-i386/mach-default -Wdeclaration-after-statement -I/tmp/selfgz2831/NVIDIA
-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch
-Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -W
error -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -
D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL_
_ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6629
-DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -
DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_
DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_P
RESENT -DMODULE -DKBUILD_BA
SENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz2831/NVIDIA-Linux-x86
-1.0-6629-pkg1/usr/src/nv/.tmp_os-agp.o /tmp/selfgz2831/NVIDIA-Linux-x86-1.0
-6629-pkg1/usr/src/nv/os-agp.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:19,
from include/linux/module.h:10,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:52,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/os-agp.c:24:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:864,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:75,
from /tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: At top l
evel:
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: error
: parse error before '*' token
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: warni
ng: type defaults to `int' in declaration of `drm_agp_p'
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: warni
ng: data definition has no type or storage class
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernInitAGP':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:76: warni
ng: assignment discards qualifiers from pointer target type
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:85: error
: request for member `acquire' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:88: warni
ng: `inter_module_put' is deprecated (declared at include/linux/module.h:578
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:113: erro
r: request for member `copy_info' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:173: erro
r: request for member `enable' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:185: erro
r: request for member `release' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:186: warn
ing: `inter_module_put' is deprecated (declared at include/linux/module.h:57
8)
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernTeardownAGP':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:216: erro
r: request for member `release' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:218: warn
ing: `inter_module_put' is deprecated (declared at include/linux/module.h:57
8)
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernAllocAGPPages':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:265: erro
r: request for member `allocate_memory' in something not a structure or unio
n
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:273: erro
r: request for member `bind_memory' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:290: erro
r: request for member `unbind_memory' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:305: erro
r: request for member `free_memory' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernMapAGPPages':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:345: erro
r: request for member `unbind_memory' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernFreeAGPPages':
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:444: erro
r: request for member `unbind_memory' in something not a structure or union
/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:445: erro
r: request for member `free_memory' in something not a structure or union
make[3]: *** [/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-a
gp.o] Error 1
make[2]: *** [_module_/tmp/selfgz2831/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com. -
NVIDIA GeForce GT 130 Kernel Panics/Freezes in Lion & late Snow Leopard
I've found some other reports of these freezes scattered about the forums, but usually other people come in and post something about unrelated video cards. So this thread is specific to NVIDIA GeForce GT 130 running OS X Lion (10.7-10.7.3), to avoid confusion and cross-polination of different issues.
Hardware Overview:
Model Name: iMac
Model Identifier: iMac9,1
Processor Name: Intel Core 2 Duo
Processor Speed: 3.06 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 6 MB
Memory: 8 GB
Bus Speed: 1.07 GHz
Boot ROM Version: IM91.008D.B08
SMC Version (system): 1.37f3
NVIDIA GeForce GT 130:
Chipset Model: NVIDIA GeForce GT 130
Type: GPU
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 512 MB
Vendor: NVIDIA (0x10de)
Device ID: 0x062e
Revision ID: 0x00a1
ROM Revision: 3370
Since upgrading to Lion I have had many issues with crashes and kernel panics characterized by the following symptoms, listed here in detail so that people can find them when they search:
Pixellation - colored pixels appear in different areas of the screen, in seemingly random bunches.
Mosaics - squares appear redrawn in the wrong part of the screen. Sometimes these squares are large, other times tiny.
Recovery - sometimes the system recovers once it starts doing these. Other times it just keeps going until it freezes/panics.
Kernel Panics - I've only had the "grey screen" appear once or twice. Usually there is a complete system lockup before this can happen, and I have to reboot the system manually.
Some solutions/attempts to solve:
Turn off Energy Saving - This is horrible for the monitor and can lead to burn-in, but I found that many of my crashes occured when the system was trying to recover from "screen sleep". So now I run a screen saver instead, which doesn't seem to trigger it as much.
Screen Saver - Sometimes I can "refresh" the system by turning on the screen saver and then coming back. Other times, this doesn't work and the pixellation/mosaic remains. Sometimes I can't even initialize the screen saver at all (in which case a total freeze usually occurs right after).
Rebooting - seems to clear things up for a while, but inevitably, the problem resurfaces.
Running Windows - Not really a solution, but I have had absolutely no issues with this behavior while running Windows 7 on this same machine (under Bootcamp).
Downgrading to Snow Leopard - I have not attempted this, but I've read others say that their crashes went away when they did. I would like some more concrete evidence on this if anyone has it.
My diagnosis so far:
OS X Lion's NVIDIA driver kernel extensions (kexts) seem to be faulty with this GPU. The Windows drivers for this GPU work better on Apple's own hardware than OS X Lion's. Anectodal evidence indicates that Snow Leopard's drivers (at least up to 10.6.3 – more confirmation needed) do not display this issue. I can confirm that this never occurred in Snow Leopard until Lion was released and I upgraded to it.
My request for help and information:
If you are running this GPU (GeForce GT 130) and OS X Lion, please contribute to this thread offering any solutions you may have or, at the very least, listing your hardware and GPU profile.
If you can, post crash logs so that we can compare common issues (NVDA Resman seems to be a huge recurring kext in the crash logs, for instance).
Post screen shots or pictures taken of the pixellation (colored pixels) and mosaic (squares drawn in the wrong place) phenomenon, so we can build a body of evidence regarding this issue. I will continue to update this thread with the same.
I feel Apple has ignored these issues for far too long, and required too many people to simply purchase new computers and new GPUs. If we can build a solid body of evidence regarding this specific issue, it will be a thread that Apple Support can be referred to.Crashed again, this time while running screen saver. Here's the log:
Interval Since Last Panic Report: 258975 sec
Panics Since Last Report: 1
Anonymous UUID: 8A9BDB66-541D-4132-8BDD-D171D358B321
Thu May 10 03:48:23 2012
panic(cpu 1 caller 0xffffff7f8092a907): NVRM[0/2:0:0]: Read Error 0x0061002c: CFG 0x00000000 0x00000000 0x00000000, BAR0 0xd2000000 0xffffff80f3175000 0x094700a1, D0, P3/4
Backtrace (CPU 1), Frame : Return Address
0xffffff80f179bc80 : 0xffffff8000220702
0xffffff80f179bd00 : 0xffffff7f8092a907
0xffffff80f179bd90 : 0xffffff7f80a1aa64
0xffffff80f179bde0 : 0xffffff7f80c1e4dc
0xffffff80f179be00 : 0xffffff7f809e3673
0xffffff80f179be20 : 0xffffff7f80a8ba0a
0xffffff80f179be90 : 0xffffff7f809177d6
0xffffff80f179bf40 : 0xffffff7f808d143e
0xffffff80f179bf70 : 0xffffff800023db2c
0xffffff80f179bfb0 : 0xffffff8000820057
Kernel Extensions in backtrace:
com.apple.NVDAResman(7.1.8)[94BA87BA-B128-3310-9860-98EC67AB7FAF]@0xffffff7f808 ca000->0xffffff7f80ba3fff
dependency: com.apple.iokit.IOPCIFamily(2.6.8)[F63D4ABE-42DA-33EF-BADD-3415B0CB0179]@0xffff ff7f80846000
dependency: com.apple.iokit.IONDRVSupport(2.3.2)[4B3F84DC-18B3-3897-BC56-4E3940878047]@0xff ffff7f808b8000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[FE536983-1897-3D6B-965E-24B5A67080DA]@0 xffffff7f80880000
com.apple.nvidia.nv50hal(7.1.8)[7596DB8C-AE9D-3C87-B11A-0ED8F940CAF8]@0xffffff7 f80ba4000->0xffffff7f80ec5fff
dependency: com.apple.NVDAResman(7.1.8)[94BA87BA-B128-3310-9860-98EC67AB7FAF]@0xffffff7f808 ca000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
11D50b
Kernel version:
Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64
Kernel UUID: 7B6546C7-70E8-3ED8-A6C3-C927E4D3D0D6
System model name: iMac9,1 (Mac-F2218FC8)
System uptime in nanoseconds: 137075074753775
last loaded kext at 39719236478: com.apple.driver.AppleHWSensor 1.9.4d0 (addr 0xffffff7f81e72000, size 28672)
loaded kexts:
com.rogueamoeba.HermesAudio 3.0.2
com.orderedbytes.driver.ControllerMateFamily 4.4.3
com.attotech.driver.ATTOiSCSI 3.4.1b1
com.orderedbytes.driver.CMUSBDevices 4.4.3
com.TrustedData.driver.VendorSpecificType00 1.5.0
at.obdev.nke.LittleSnitch 2.4.0
com.apple.driver.AppleHWSensor 1.9.4d0
com.apple.filesystems.autofs 3.0
com.apple.filesystems.ntfs 3.10
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.driver.AppleTyMCEDriver 1.0.2d2
com.apple.driver.AppleHDA 2.1.7f9
com.apple.driver.AppleMikeyDriver 2.1.7f9
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AGPM 100.12.42
com.apple.GeForce 7.1.8
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.2
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.5d4
com.apple.driver.AppleMuxControl 3.0.16
com.apple.driver.AppleBacklight 170.1.9
com.apple.driver.AppleLPC 1.5.3
com.apple.driver.AppleIRController 312
com.apple.driver.AppleFireWireStorage 3.0.1
com.apple.driver.initioFWBridge 3.0.1
com.apple.driver.IOFireWireSerialBusProtocolSansPhysicalUnit 3.0.1
com.apple.driver.LSI_FW_500 3.0.1
com.apple.driver.Oxford_Semi 3.0.1
com.apple.driver.StorageLynx 3.0.1
com.apple.iokit.SCSITaskUserClient 3.0.3
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.IOAHCIBlockStorage 2.0.1
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.driver.AirPort.Brcm4331 513.20.19
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleUSBHub 4.5.0
com.apple.nvenet 2.0.17
com.apple.driver.AppleUSBEHCI 4.5.8
com.apple.driver.AppleUSBOHCI 4.4.5
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 167.3.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.1
com.apple.driver.AppleIntelCPUPowerManagement 167.3.0
com.apple.kext.triggers 1.0
com.apple.driver.AppleHDAHardwareConfigDriver 2.1.7f9
com.apple.driver.DspFuncLib 2.1.7f9
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.nvidia.nv50hal 7.1.8
com.apple.NVDAResman 7.1.8
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.driver.AppleUSBAudio 2.8.2f5
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOBluetoothSerialManager 4.0.3f12
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAVBFamily 1.0.0d22
com.apple.iokit.IOEthernetAVBController 1.0.0d5
com.apple.iokit.IOAudioFamily 1.8.6fc6
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.IOPlatformPluginFamily 4.7.5d4
com.apple.driver.AppleHDAController 2.1.7f9
com.apple.iokit.IOHDAFamily 2.1.7f9
com.apple.driver.AppleSMC 3.1.1d8
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.AppleFileSystemDriver 13
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.3f12
com.apple.driver.AppleUSBBluetoothHCIController 4.0.3f12
com.apple.iokit.IOBluetoothFamily 4.0.3f12
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.3
com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.1.0
com.apple.iokit.IOFireWireSBP2 4.2.0
com.apple.iokit.IOUSBMassStorageClass 3.0.1
com.apple.driver.AppleUSBComposite 4.5.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.3
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.iokit.IOAHCISerialATAPI 2.0.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.3
com.apple.driver.XsanFilter 403
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IO80211Family 412.2
com.apple.iokit.IOUSBUserClient 4.5.8
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOUSBFamily 4.5.8
com.apple.driver.NVSMU 2.2.9
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.3
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331.3
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.8
com.apple.iokit.IOACPIFamily 1.4 -
HOWTO: Can't display any resolution above 640x480, or other crappy res
I've been working on this problem for half the day, and finally figured it out after many hours of frustration. During my search for a solution, I've seen other people who had the same problem but was never resolved on these forums. Rather than bumping an old post, I've decided to create this "howto" hoping that someone experiencing the same problem may find this post.
The problem is that Xorg refuses to display any resolution above the minimum, which is 640x480. This was the resolution in my case, and searching around, it's the resolution many other people experienced, as well, who experienced this same problem.
Check your Xorg log in /var/log/Xorg.0.log . Search for "No valid modes for". If you see something like this, then you are experiencing the same problem I had:
(WW) NVIDIA(0): No valid modes for "1680x1050"; removing.
(WW) NVIDIA(0): No valid modes for "1024x768"; removing.
(WW) NVIDIA(0): No valid modes for "800x600"; removing.
(WW) NVIDIA(0): No valid modes for "640x480"; removing.
(WW) NVIDIA(0):
(WW) NVIDIA(0): Unable to validate any modes; falling back to the default mode
(WW) NVIDIA(0): "nvidia-auto-select".
(WW) NVIDIA(0):
In my case, this only occurred when I was using the nvidia driver (it went away when I just used nv).
Ok, so here's how to solve the problem...
Has your monitor worked with your machine before?
If your monitor, graphics card, etc. has worked with your machine and xorg file in the past, and it suddenly stopped working without anything changing, then try rebooting your monitor. (I'm serious!) Log out, turn off your monitor, and unplug it for several seconds. Plug it back in and log back in. This ended up solving my problem, after I edited my xorg file (see below)... but just editing the xorg file and rebooting X wasn't enough
If monitor rebooting didn't help, or you've never got your monitor/graphics card/xorg.conf working together in the past
If this is the case, your xorg.conf probably isn't configured correctly. Assuming you already have a xorg.conf file (this post is NOT meant to replace the other howto's on how to configure your xorg file), here's the basic rundown of what your xorg file should have...
Make sure that you have the "Modes" set in your Display subsection of Screen. Here's what my Screen section looks like:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1680x1050" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1680x1050" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
(the line(s) in bold are the ones you need to make sure you have)
If this still doesn't work, make sure that you have the appropriate Modeline set. I chose to make a Modes section like this:
Section "Modes"
Identifier "16:10"
Modeline "1680x1050 (GTF)" 154.20 1680 1712 2296 2328 1050 1071 1081 1103
EndSection
Your Modeline probably won't look like mine. Hopefully, you know the specs of your monitor (or can look them up). You can use this tool to generate the Modeline for you:
http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
Finally, make sure that the Monitor section includes your HorizSync and VertRefresh options. These are values specific to your monitor (again, you'll need to look up your monitor's specs)
Here's my Monitor section
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-83
VertRefresh 60
Option "DPMS"
UseModes "16:10"
EndSection
Log out and log back in. If the problem persists, reboot your monitor as described above.
I hope this post will help someone, someday!Hi-
You can plug a DVI-I dual link female into the DVI-I single male on a graphics card.
From the outside, the male has all the holes for all the pins on the DVI dual, there are just no wires attached to the center group of the DVI single male.
The Radeon 9800 is a DVI-I single link card. There is no getting around it.
The maximum supported digital resolution for a Radeon 9800 is 1920x1200:
http://ati.amd.com/products/radeon9800/radeon9800prome/specs.html
This said, the 30" Cinema Display requires a dual link DVI connection, as equipped on the graphics cards, as listed, in Malcolm's post above.
G4 AGP(450)Sawtooth Mac OS X (10.4.8) 2ghzPPC,1.62gbSDRAM, ATI9800, DVR-109,(IntHD)120&160,LaCie160,23"Cinema Display -
Nvidia module for custom kernel
Hi all. I've compiled a custom kernel using abs according to the instructions on the wiki, but I'm having a hard time installing the nvidia module using the instructions on the Nvidia page of the wiki. The install always aborts complaining of not being able to find the kernel source. I do have the kernel-headers installed:
[root@myhost greg]# pacman -Ss linux-headers
core/linux-headers 3.1.5-1 [installed]
Header files and scripts for building modules for linux kernel
I've also edited the nvidia.install and PKGBUILD files to point to the correct version file:
[greg@myhost ~]$ cat /lib/modules/3.1.5-1-test/extramodules/version
3.1.5-1-test
I've really searched hard, but can find no remedy. Any ideas?
Thanks in advance.From what I can see, the only installable package that was built is linux-test-3.1.5-1-x86_64.pkg.tar.xz. That's with the PKGBUILD file supplied from /var/abs/core/linux as per the wiki.
Last edited by pressman57 (2011-12-18 21:50:00) -
Compiling nvidia driver for custom kernel
I have a Toshiba M200 tablet PC running Arch Linux (which I love, btw) and it's running fine, including the tablet.
There's an irritating bug with suspend-to-ram (suspend-to-disk doesn't work with the nvidia driver) where the tablet pen stops working after resume.
There's a patch slated to be in some future kernel, but I compiled my own with that patch included. It boots fine and all seems to be well with it.
However, I need to compile the nvidia driver for it, since the binary does not work. So I copy /var/abs/extra/nvidia and modify the PKGBUILD and nvidia.install files per the instructions on this wiki page, and run makepkg -i -c .
I get a big error message early on, saying
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
I've checked everything I can think of.
$ uname -r
2.6.25-tablet
ls -l /usr/src shows linux-2.6.25-tablet, and linux is a symlink to it. /lib/modules/2.6.25-tablet/build is also symlinked to the right kernel source tree.
So I'm out of ideas for why the nvidia makefile can't seem to find the kernel source.
Thanks in advance.@klixon:
I think that may be the root of the trouble: I compiled the kernel on my desktop (C2D 2.8) rather than my wussy laptop (1.6 Centrino). It installed and ran fine and all that, but I only have the kernel source tree that was included in the package, not the one that really compiled the code. Would simply copying it suffice, or should I rebuild the kernel on my laptop? Also, the PKGBUILD is included below.
@shazeal:
I believe this is a subset of the problem I describe above?
The PKGBUILD, somewhat customized from the nvidia ABS. I don't think any of the changes are overly shocking.
I've tried dozens of different modifications of it now. The simplest one is just appending '-tablet' to pkgname and _kernver.
# $Id: PKGBUILD 1567 2008-05-13 10:11:25Z thomas $
# Maintainer : Thomas Baechler <[email protected]>
pkgname=nvidia-tablet
pkgver=169.12
_kernver='2.6.25-tablet'
pkgrel=4
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686')
ARCH=x86
url="http://www.nvidia.com/"
depends=('kernel2625-tablet' 'nvidia-utils')
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=nvidia.install
source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run
NVIDIA_kernel-169.12-2286310.diff)
md5sums=('e7aaca79c846e34cfe8111040bfee2d0'
'a6b6d9d7ff0306343be3fa40e72337fd')
[ "$CARCH" = "x86_64" ] && md5sums=('843a1e8bc1923ba2e4b60f6fab31ad3b'
'a6b6d9d7ff0306343be3fa40e72337fd')
build()
# Extract
cd $startdir/src/
sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
# Any extra patches are applied in here...
patch -Np0 -i ../NVIDIA_kernel-169.12-2286310.diff || return 1
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/usr/src/linux module || return 1
# install kernel module
mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install -
Does any kernel come prepatched with mppe?
Yeah... so do any of the alt kernels include mppe support for stupid MS VPNs?
If not, how could I create a module to bring it in.
Thanks,
RichAll the Arch kernel packages support PPP MPPE. The module is /lib/modules/<KERNEL_VERSION>/kernel/drivers/net/ppp_mppe.ko
-
Error: nvidia driver and custom kernel [SOLVED]
Hello guys , I have compiled custom kernel with wiki help and abs and want to install Nvidia driver, but i got the following error when I try to compile with abs..
==> Obteniendo Fuentes...
-> Se encontró NVIDIA-Linux-x86-256.35.run
==> Validando el archivo fuente con md5sums...
NVIDIA-Linux-x86-256.35.run ... Aprobado
==> Descomprimiendo fuentes...
==> Iniciando build()...
Creating directory NVIDIA-Linux-x86-256.35
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 256.35............................................................................................................................
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
Abortando...
my nvidia.install
post_install() {
KERNEL_VERSION='2.6.34-pahko'
depmod $KERNEL_VERSION
post_upgrade() {
post_install
rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
post_remove() {
KERNEL_VERSION='2.6.34-pahko'
depmod $KERNEL_VERSION
my PKGBUILD
# $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
# Maintainer : Thomas Baechler <[email protected]>
pkgname=nvidia-pahko
pkgver=256.35
_kernver='2.6.34-pahko'
pkgrel=1
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
depends=('kernel26>=2.6.34' 'kernel26<2.6.35' "nvidia-utils=${pkgver}")
makedepends=('kernel26-headers>=2.6.34' 'kernel26-headers<2.6.35')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
install=nvidia.install
if [ "$CARCH" = "i686" ]; then
_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('f6af8917a500de28396a438f3f548c88')
elif [ "$CARCH" = "x86_64" ]; then
_arch='x86_64'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('7b5924f14a4d2326b4d916efdb7852ff')
fi
build() {
cd $srcdir
sh ${_pkg}.run --extract-only
cd ${_pkg}/kernel
make SYSSRC=/lib/modules/${_kernver}/build module
package() {
install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
$pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
install -d -m755 $pkgdir/etc/modprobe.d
echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
uname -r
2.6.34-pahko
anybody can help me?
thank you and sorry about my english
Last edited by pahko (2010-07-14 04:56:01)They should be in the PKGBUILD, its a split PKGBUILD currently I think.
-
NVIDIA Tesla C1060 - any benefit for CS6?
Hello all
I'm posting this to the CS forum because I might get a more comprehensive answer - or not.
We have a couple of custom made workstations that have NVIDIA Tesla C1060 headless GPU processing cards in them. The company has decided not use the software that these machines were build to run, leaving some very nice processing hardware (the cards) to basically spin away the time doing nothing. I was thinking of pulling one of these things out and plugging it into my Photoshop workstation (win7 64, 24gb ram, CS Design Premium and Lightroom). If I did this and just fired the machine up could I expect any performance improvements from my Adobe apps? Anything AFA tweaks or things in the future makes a move like this worth it?
I read alot about NVIDIA GPU processing for Premiere Pro and After Effects, would this hardware help those programs out (I have those @home)? Seems a waste to have these things essentially doing nothing...
ThanksNope. That card is not supported in any Adobe program. Other than adding a tiny slice of processing power on a more generalised CUDA/ OpenCL level in Photoshop or Premiere Pro (with the tradeoff being that it may disable the more specialized Mercury Playback Engine in PPro and assuming there are no driver issues) I don't see it doing anything for you. Would probably make more sense if the company just gave them to some university computer science lab so students can experiment with CUDA and that...
Mylenium -
Nvidia TV-out gives kernel panic
Hello fellow Archers,
I am using Arch for years now and encountered a very weird problem. My multimedia machine has a new videocard, an Nvidia 6200 A-LE. With this card, I am unable to use the TV-out. By default, it sets NTSC as where my TV needs PAL-B. I took the xorg.conf which worked with my previous nvidia videocard.
The problem is, when I set this option in xorg.conf:
option "TVStandard" "PAL-B"
my system freezes when starting X. The flasing keyboard lights indicate a kernel panic, but when I do a hard reboot, nothing useful has been stored in either /var/log/Xorg.0.log or /var/log/messages, as suggested in other topics. When I uncomment this option, X starts up just fine (it only gives me a black and white screen due to the default NTSC). The annoying thing is that this configuration worked just fine with my old GeForce 4 card.
Does anyone know what what is causing this issue or how to find it?
Thanks!What video driver are you using? nVidia proprietary? Nouveau? These are the only two that support TV-out I believe, so try the other one. And file an upstream bug report for the one you're using.
Also, to tell if you've really had a kernel panic, it might make sense to enable the magic sysrq key in /etc/sysctl.conf, and try Alt+SysRq+{R,E,I,S,U,B} to safely reboot your computer. -
Problem inserting module for my dvb-s2 card on any kernel after 2.6.35
Firstly these drivers contain some proprietary bits so I have to download them from here. Basically it's some modified version of the cx23885 module from the mainline kernel.
Secondly here is a 10 page discussion on the TBS forums about this driver and getting it to work with kernels after 2.6.35.
Card is TBS 6891.
These proprietary drivers seem to be working with other distros such as Fedora and Ubuntu as witnessed in the previously linked thread, but, for some reason when I try and insert the module on my Arch Linux x86_64 box I get the following error.
# modprobe cx23885
FATAL: Error inserting cx23885 (/lib/modules/2.6.38-ARCH/kernel/drivers/media/video/cx23885/cx23885.ko): Unknown symbol in module, or unknown parameter (see dmesg)
# dmesg|tail -n1
[ 2373.648484] cx23885: Unknown symbol v4l2_i2c_new_subdev_cfg (err 0)
So I was wondering if anyone might be able to help with this. Maybe Fedora or Ubuntu have kernel config options different to Arch that I could try. Or kernel/v4l patches I could try.
Last edited by frontwheelskid (2011-06-08 10:48:01)"cody" has replied in the tbs forums with information to get this compiled and working with arch linux:
it seems though on ArchLinux you need to do one extra step before 'make install':
# rm -rf /lib/modules/<kernel_version>/kernel/drivers/media/
for example:
# rm -rf /lib/modules/2.6.39-ARCH/kernel/drivers/media/
because otherwise the existing V4L modules in ArchLinux mixed up in a wrong way with the one installed by TBS Linux driver package.
I hope this info shortens other peoples searches!
Ali. -
Nvidia 8800 GTX - Any expected date?
Hey,
I've been reading alot about people trying to install 8800 GTS in a Mac Pro (only sometimes successfully on boot camp)and I never really found a definite answer as to when Apple might actually release Mac Pros with Apple 8800 GTXs. Are they even planning on it? Is there an expected time frame until they do this? Or is it not really going to happen in this next year?
Thanks, I think this question answered would give alot of people an idea of when they will purchase their products. Planning can be everything; some people don't feel comfortable shelling out $$$ for a 8800 if it might not even work ;)(and then finding that apple releases the 8800 2 weeks later)
CheersApple has made no announcements of if or when newer graphics option will be made available for the mac pro.
I'd guess about one day before hades freezes over, given Apple's seeming indifference to this long standing issue. -
[Solved] Failed to initialize the NVIDIA kernel module
Hi all,
I've just made the jump to arch and have a fresh install. I'm having trouble getting the nvidia drivers to work. I am currently using the nouveau drivers without issue.
The method I am using - after much trial - is:
- uninstall nouveau and mesa lib
- install nvidia package
- remove nouveau module entry in mkinitcpio.conf
- run `mkinitcpio -p linux`
- edit .conf in xorg.conf.d with minimal required settings. Currently:
Section "Device"
Identifier "device0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
I have installed the linux-headers package and tried reinstalling nvidia again
Card:
01:00.0 VGA compatible controller: NVIDIA Corporation GF106 [GeForce GTS 450] (rev a1)
Kernel:
3.12.6-1-ARCH
My Xorg.0.log looks like:
[ 3.979]
X.Org X Server 1.14.5
Release Date: 2013-12-12
[ 3.979] X Protocol Version 11, Revision 0
[ 3.979] Build Operating System: Linux 3.12.5-1-ARCH x86_64
[ 3.979] Current Operating System: Linux arch.tempera 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64
[ 3.979] Kernel command line: initrd=\initramfs-linux.img root=/dev/sda2 rw
[ 3.979] Build Date: 13 December 2013 03:11:42PM
[ 3.979]
[ 3.979] Current version of pixman: 0.32.4
[ 3.979] Before reporting problems, check [url]http://wiki.x.org[/url]
to make sure that you have the latest version.
[ 3.979] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3.979] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 4 21:29:46 2014
[ 3.980] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 3.980] (==) No Layout section. Using the first Screen section.
[ 3.980] (==) No screen section available. Using defaults.
[ 3.980] (**) |-->Screen "Default Screen Section" (0)
[ 3.980] (**) | |-->Monitor "<default monitor>"
[ 3.981] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 3.981] (**) | |-->Device "device0"
[ 3.981] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 3.981] (==) Automatically adding devices
[ 3.981] (==) Automatically enabling devices
[ 3.981] (==) Automatically adding GPU devices
[ 3.984] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 3.984] Entry deleted from font path.
[ 3.984] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 3.984] Entry deleted from font path.
[ 3.984] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 3.984] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 3.984] Entry deleted from font path.
[ 3.984] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 3.984] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/Type1/
[ 3.984] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 3.984] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 3.984] (II) Loader magic: 0x7fec20
[ 3.984] (II) Module ABI versions:
[ 3.984] X.Org ANSI C Emulation: 0.4
[ 3.984] X.Org Video Driver: 14.1
[ 3.984] X.Org XInput driver : 19.1
[ 3.984] X.Org Server Extension : 7.0
[ 3.985] (--) PCI:*(0:1:0:0) 10de:0dc4:19da:1184 rev 161, Mem @ 0xf4000000/16777216, 0xe0000000/134217728, 0xe8000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 3.986] Initializing built-in extension Generic Event Extension
[ 3.986] Initializing built-in extension SHAPE
[ 3.986] Initializing built-in extension MIT-SHM
[ 3.986] Initializing built-in extension XInputExtension
[ 3.986] Initializing built-in extension XTEST
[ 3.986] Initializing built-in extension BIG-REQUESTS
[ 3.986] Initializing built-in extension SYNC
[ 3.986] Initializing built-in extension XKEYBOARD
[ 3.986] Initializing built-in extension XC-MISC
[ 3.986] Initializing built-in extension SECURITY
[ 3.986] Initializing built-in extension XINERAMA
[ 3.986] Initializing built-in extension XFIXES
[ 3.986] Initializing built-in extension RENDER
[ 3.986] Initializing built-in extension RANDR
[ 3.986] Initializing built-in extension COMPOSITE
[ 3.986] Initializing built-in extension DAMAGE
[ 3.986] Initializing built-in extension MIT-SCREEN-SAVER
[ 3.986] Initializing built-in extension DOUBLE-BUFFER
[ 3.986] Initializing built-in extension RECORD
[ 3.986] Initializing built-in extension DPMS
[ 3.986] Initializing built-in extension X-Resource
[ 3.986] Initializing built-in extension XVideo
[ 3.986] Initializing built-in extension XVideo-MotionCompensation
[ 3.986] Initializing built-in extension XFree86-VidModeExtension
[ 3.986] Initializing built-in extension XFree86-DGA
[ 3.986] Initializing built-in extension XFree86-DRI
[ 3.986] Initializing built-in extension DRI2
[ 3.986] (II) LoadModule: "glx"
[ 3.989] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 4.075] (II) Module glx: vendor="NVIDIA Corporation"
[ 4.075] compiled for 4.0.2, module version = 1.0.0
[ 4.075] Module class: X.Org Server Extension
[ 4.075] (II) NVIDIA GLX Module 331.20 Wed Oct 30 17:36:48 PDT 2013
[ 4.076] Loading extension GLX
[ 4.076] (II) LoadModule: "nvidia"
[ 4.076] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 4.082] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 4.082] compiled for 4.0.2, module version = 1.0.0
[ 4.082] Module class: X.Org Video Driver
[ 4.083] (II) NVIDIA dlloader X Driver 331.20 Wed Oct 30 17:16:53 PDT 2013
[ 4.083] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 4.083] (++) using VT number 7
[ 4.090] (II) Loading sub module "fb"
[ 4.090] (II) LoadModule: "fb"
[ 4.090] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 4.091] (II) Module fb: vendor="X.Org Foundation"
[ 4.091] compiled for 1.14.5, module version = 1.0.0
[ 4.091] ABI class: X.Org ANSI C Emulation, version 0.4
[ 4.091] (WW) Unresolved symbol: fbGetGCPrivateKey
[ 4.091] (II) Loading sub module "wfb"
[ 4.091] (II) LoadModule: "wfb"
[ 4.091] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 4.092] (II) Module wfb: vendor="X.Org Foundation"
[ 4.092] compiled for 1.14.5, module version = 1.0.0
[ 4.092] ABI class: X.Org ANSI C Emulation, version 0.4
[ 4.092] (II) Loading sub module "ramdac"
[ 4.092] (II) LoadModule: "ramdac"
[ 4.092] (II) Module "ramdac" already built-in
[ 4.093] (II) NVIDIA(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 4.093] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 4.093] (==) NVIDIA(0): RGB weight 888
[ 4.093] (==) NVIDIA(0): Default visual is TrueColor
[ 4.093] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 4.094] (**) NVIDIA(0): Enabling 2D acceleration
[ 4.095] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
[ 4.095] (EE) NVIDIA(0): system's kernel log for additional error messages and
[ 4.095] (EE) NVIDIA(0): consult the NVIDIA README for details.
[ 4.095] (EE) NVIDIA(0): *** Aborting ***
[ 4.095] (EE) NVIDIA(0): Failing initialization of X screen 0
[ 4.095] (II) UnloadModule: "nvidia"
[ 4.095] (II) UnloadSubModule: "wfb"
[ 4.095] (II) UnloadSubModule: "fb"
[ 4.095] (EE) Screen(s) found, but none have a usable configuration.
[ 4.095] (EE)
Fatal server error:
[ 4.095] (EE) no screens found(EE)
[ 4.095] (EE)
Please consult the The X.Org Foundation support
at [url]http://wiki.x.org[/url]
for help.
[ 4.095] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 4.095] (EE)
[ 4.107] (EE) Server terminated with error (1). Closing log file.
The only entry I found in `dmesg | grep nvidia` related to nvidia-drm, and seemed to say it was loaded successfully. I didn't save the exact entry and i've reinstalled nouveau now so that I could post this.
Any help much appriciated. I've been at this for a while. Learning a lot in the process!
Last edited by gnibbler (2014-01-04 22:31:49)Success! Several days of trying various things and I finally give in and make a post to this forum. One more attempt - which was only really so that I could add modprobe info to this post - and it works.
I had at some stage installed the driver xf86-video-nv, and this may have been causing the clash. I un-installed it, and followed the procedure above to reinstall nvidia.
I think the main hang up I'd had is that I had not been rebuilding my kernel image with mkinitcpio after installing nvidia during my previous attempts.
I hope some info in here helps some other stuck archer.
Edit: Thanks graysky. I had found the right nvidia driver using the arch wiki and followed this advice to remove the nouveau hook. Much appriciated.
Last edited by gnibbler (2014-01-04 22:35:00) -
[SOLVED] nVidia 87.76 Drivers installer fails to build kernel module
Hey,
I have a nVidia GeForce2 Integrated graphics card on my Asus A7N266 motherboard. According to the nVidia site, http://www.nvidia.com/object/IO_32667.html, the most recent driver that supports this is the 96.xx series. Yet as shown here, http://www.nvnews.net/vbulletin/showthread.php?t=87332, many people have found that the 96.xx series drivers cause graphical corruption when using a GeForce2 IGP.
Before coming to Arch, I had used Xubuntu 7.04 and managed to compile the last known working drivers, version 87.76, following the instructions here: http://kmandla.wordpress.com/2007/03/25 … 20-12-386/
That all went well but now I'm using Arch. I tried using the nvidia-96.xx driver in the repos just for testing sake but I still got the same graphical corruption.
Thus I have been trying to install the 87.76 drivers on Arch, but it always fails at the kernel module building stage. I had first applied this patch here, http://www.nvnews.net/vbulletin/showthr … ost1086669, before compling as the plain driver wont compile against recent kernels.
Here is the output from the installer:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Aug 5 11:57:53 2007
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.22-ARCH/build'
-> Kernel output path: '/lib/modules/2.6.22-ARCH/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.22-ARCH/bui
ld SYSOUT=/lib/modules/2.6.22-ARCH/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/build SUBDIRS=/home
/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
echo; \
/bin/false)
make[2]: *** No rule to make target `GLX'. Stop.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
Any ideas as to how I can get the kernel module to build?
I am using 'kernel26 2.6.22.1-4' with the 'kernel-headers 2.6.22.1-1' from the testing repo.
Last edited by Nameless One (2007-08-10 07:08:38)make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/buildSUBDIRS=/home/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
The name of the directory you placed the driver in contains spaces. That is why you get the no rule to make target GLX error.
It would be better not to circumvent pacman. I am using the following PKGBUILDs for the 8776 driver:
nvidia-8776:
pkgname=nvidia-8776
pkgver=1.0.8776
_nver=1.0-8776
_kernver='2.6.22-ARCH'
pkgrel=1
pkgdesc="NVIDIA drivers for Arch kernel."
arch=(i686 x86_64)
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=(kernel26 nvidia-8776-utils)
conflicts=('nvidia' 'nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
install=nvidia.install
source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run NVIDIA_kernel-1.0-8776-20061203.diff.txt)
md5sums=('93ad45fe7b974a5a80348e1890f9b7c9' '70e669f06ee4881c2583261672de292a')
[ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b' '70e669f06ee4881c2583261672de292a')
build()
# Extract
cd $startdir/src/
sh NVIDIA-Linux-$ARCH-${_nver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${_nver}-pkg0
# Any extra patches are applied in here...
patch -p0 < $startdir/NVIDIA_kernel-1.0-8776-20061203.diff.txt ||return 1
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/$_kernver/build module || return 1
# install kernel module
mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
Place the patch (NVIDIA_kernel-1.0-8776-20061203.diff.txt) and nvidia.install in the same directory as the PKGBUILD.
nvidia-utils:
pkgname=nvidia-8776-utils
pkgver=1.0.8776
_nver=1.0-8776
pkgrel=1
pkgdesc="NVIDIA drivers utilities and libraries."
arch=(i686 x86_64)
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=(xorg-server)
conflicts=('libgl' 'libgl-dri' 'ati-fglrx-utils' 'nvidia-legacy-utils' 'nvidia-71xx-utils' 'nvidia-96xx-utils')
provides=('libgl' )
#install=nvidia.install
source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run)
md5sums=('93ad45fe7b974a5a80348e1890f9b7c9')
[ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b')
build()
# override nvida install routine and do it the long way.
cd $startdir/src/
sh NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run --extract-only
cd NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/
mkdir -p $startdir/pkg/usr/{lib,bin,share/applications,share/pixmaps,man/man1}
mkdir -p $startdir/pkg/usr/lib/xorg/modules/{extensions,drivers}
mkdir -p $startdir/pkg/usr/share/licenses/nvidia/
install `find lib/ -iname \*.so\*` $startdir/pkg/usr/lib/
install lib/tls/* $startdir/pkg/usr/lib
install share/man/man1/* $startdir/pkg/usr/man/man1/
rm $startdir/pkg/usr/man/man1/nvidia-installer.1.gz
install X11R6/lib/libXv* $startdir/pkg/usr/lib/
install share/applications/nvidia-settings.desktop $startdir/pkg/usr/share/applications/
# fix nvidia .desktop file
sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $startdir/pkg/usr/share/applications/nvidia-settings.desktop
install share/pixmaps/nvidia-settings.png $startdir/pkg/usr/share/pixmaps/
install X11R6/lib/modules/drivers/nvidia_drv.so $startdir/pkg/usr/lib/xorg/modules/drivers
install X11R6/lib/modules/extensions/libglx.so.$pkgver $startdir/pkg/usr/lib/xorg/modules/extensions
install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $startdir/pkg/usr/bin/
cd $startdir/pkg/usr/lib/;
ln -s /usr/lib/libGL.so.$pkgver libGL.so
ln -s /usr/lib/libGL.so.$pkgver libGL.so.1
ln -s /usr/lib/libGLcore.so.$pkgver libGLcore.so.1
ln -s /usr/lib/libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1
ln -s /usr/lib/libnvidia-tls.so.$pkgver libnvidia-tls.so.1
cd $startdir/pkg/usr/lib/xorg/modules/extensions;
ln -s /usr/lib/xorg/modules/extensions/libglx.so.$pkgver libglx.so
install $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/LICENSE $startdir/pkg/usr/share/licenses/nvidia/
find $startdir/pkg/usr -type d -exec chmod 755 {} \;
# phew :)
Last edited by kappa (2007-08-09 11:14:42)
Maybe you are looking for
-
Texts send as iMessage to Samsung user
Hey Guys, I have a huge problem with texting people who switched phones from iPhone to ie Samsung or Sony and no longer have iMessage option. My iPhone still recognizes these contacts as iPhone(iMessage). Everytime I want to text them I have to switc
-
Why am I told that fonts are not available when the file was originally created in Fireworks?
I get the "Fonts not available" message when I open up a document, i.e. open up a png document in the program/computer/etc. where the program was created in the first place. I don't get this. How can the fonts not be available when I'm using the same
-
IBook G4 800mhz processor update?
I own a iBook G4 800mhz processor with 640mb ram. On another website I read "If you had an iBook G4 800, you can easily swap out the 800mhz board for a 1ghz" 1. Is this true and where does one obtain a 1ghz processor for my type of iBook? 2. Will thi
-
I've had no problem syncing iTouch Notes until I upgraded to the 2.0. Now my notes are gone. Any idea where I can retrieve them? Thank you.
-
Passing selections from one Jlist to Another
Think of the Outlook Contacts windows where you can select one or multiple email click on the "To" button and the selected emails are then copied to the blank selection list. but instead of emails I'm passing file names. package org.tiling.scheduling