nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   error driver 256.44 and linux 2.6.33.7-rt29 (http://www.nvnews.net/vbulletin/showthread.php?t=153770)

eskuai 08-04-10 04:18 PM

error driver 256.44 and linux 2.6.33.7-rt29
 
Hello,

As usually, i got probleman installing nvidia module into linux 2.6.33.7-rt29 ..

The following is the log

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Aug 4 23:17:03 2010
installer version: 256.44

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : false
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 : true
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
no X server check : false
no cc version check : true
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 : 2.6.33.7-rt29
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
-> Only installing a kernel module for a non-running kernel; skipping the "is
an X server running?" test.
-> Only installing a kernel module for a non-running kernel; skipping the "is
an NVIDIA kernel module loaded?" test.
-> License accepted.
-> Installing NVIDIA driver version 256.44.
-> Not probing for precompiled kernel interfaces.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.33.7-rt29/source'
-> Kernel output path: '/lib/modules/2.6.33.7-rt29/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./kernel; make clean'...
-> Building kernel module:
executing: 'cd ./kernel; make module SYSSRC=/lib/modules/2.6.33.7-rt29/sourc
e SYSOUT=/lib/modules/2.6.33.7-rt29/build'...
NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.33.7-rt29/build \
KBUILD_SRC=/usr/src/kernels/linux-2.6.33.7-rt29 \
KBUILD_EXTMOD="/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel" -f /usr/src/
kernels/linux-2.6.33.7-rt29/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are
missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/.tmp_versions ; rm -
f /tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/.tmp_versions/*
make -f /usr/src/kernels/linux-2.6.33.7-rt29/scripts/Makefile.build obj=/tmp
/selfgz2864/NVIDIA-Linux-x86-256.44/kernel
cc -Wp,-MD,/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/.nv.o.d -nostdi
nc -isystem /usr/lib/gcc/i686-redhat-linux/4.4.4/include -I/usr/src/kernels/
linux-2.6.33.7-rt29/arch/x86/include -Iinclude -I/usr/src/kernels/linux-2.6
.33.7-rt29/include -include include/generated/autoconf.h -I/tmp/selfgz2864
/NVIDIA-Linux-x86-256.44/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototyp
es -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function
-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -
msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -ma
rch=i686 -mtune=core2 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fs
tack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-s
ign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno
-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-siblin
g-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fno-dwarf2-cfi-asm -fconserve-stack -I/tmp/selfgz2864/NVIDIA-Linux-x86-25
6.44/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__
-DMODULE -DNVRM -DNV_VERSION_STRING=\"256.44\" -UDEBUG -
U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_ST
R(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2864/NVIDIA-
Linux-x86-256.44/kernel/nv.o /tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/
nv.c
In file included from /usr/src/kernels/linux-2.6.33.7-rt29/arch/x86/include/
asm/uaccess.h:571,
from include/linux/poll.h:13,
from /tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv-linu
x.h:84,
from /tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:13
:
/usr/src/kernels/linux-2.6.33.7-rt29/arch/x86/include/asm/uaccess_32.h: In f
unction ‘copy_from_user’:
/usr/src/kernels/linux-2.6.33.7-rt29/arch/x86/include/asm/uaccess_32.h:209:
warning: comparison between signed and unsigned integer expressions
In file included from /tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:13
:
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv-linux.h: At top level:
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv-linux.h:221: error: expect
ed ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nv_
spinlock_t’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv-linux.h:1366: error: expec
ted specifier-qualifier-list before ‘nv_spinlock_t’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c: In function ‘nv_alloc
_file_private’:
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2047: error: implicit de
claration of function ‘semaphore_init’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2048: error: ‘nv_file_
private_t’ has no member named ‘waitqueue’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2049: error: implicit de
claration of function ‘atomic_spin_lock_init’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2049: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c: In function ‘nv_kern_
poll’:
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2837: error: ‘nv_file_
private_t’ has no member named ‘waitqueue’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2840: error: implicit de
claration of function ‘atomic_spin_lock_irqsave’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2840: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2851: error: implicit de
claration of function ‘atomic_spin_unlock_irqrestore’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:2851: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c: In function ‘nv_post_
event’:
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:4206: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:4223: error: ‘nv_file_
private_t’ has no member named ‘waitqueue’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:4224: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c: In function ‘nv_get_e
vent’:
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:4238: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:4241: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.c:4266: error: ‘nv_file_
private_t’ has no member named ‘fp_lock’
make[4]: *** [/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel/nv.o] Error 1
make[3]: *** [_module_/tmp/selfgz2864/NVIDIA-Linux-x86-256.44/kernel] Error
2
make[2]: *** [sub-make] 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.


Thank you

cr1ogen 08-09-10 03:07 PM

Re: error driver 256.44 and linux 2.6.33.7-rt29
 
I Have the some problem

eskuai 08-10-10 04:02 PM

Re: error driver 256.44 and linux 2.6.33.7-rt29
 
Resolved:

Here is the patch i use for the nvidia driver:

From bff65cf087bae512ae9f485f4556e89d304f99a9 Mon Sep 17 00:00:00 2001
From: Joakim B Hernberg <jbh@alchemy.lu>
Date: Sun, 8 Aug 2010 12:39:34 +0200
Subject: [PATCH] Patch nvidia proprietary video driver 256.44 for rt patched
kernel 2.6.33.7-rt29

---
kernel/nv-linux.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
index 3ba43e7..e95460a 100644
--- a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -218,16 +218,16 @@ extern int nv_pat_mode;
#endif

#if defined(CONFIG_PREEMPT_RT)
-typedef atomic_spinlock_t nv_spinlock_t;
-#define NV_SPIN_LOCK_INIT(lock) atomic_spin_lock_init(lock)
-#define NV_SPIN_LOCK_IRQ(lock) atomic_spin_lock_irq(lock)
-#define NV_SPIN_UNLOCK_IRQ(lock) atomic_spin_unlock_irq(lock)
-#define NV_SPIN_LOCK_IRQSAVE(lock,flags) atomic_spin_lock_irqsave(lock,flags)
+typedef raw_spinlock_t nv_spinlock_t;
+#define NV_SPIN_LOCK_INIT(lock) raw_spin_lock_init(lock)
+#define NV_SPIN_LOCK_IRQ(lock) raw_spin_lock_irq(lock)
+#define NV_SPIN_UNLOCK_IRQ(lock) raw_spin_unlock_irq(lock)
+#define NV_SPIN_LOCK_IRQSAVE(lock,flags) raw_spin_lock_irqsave(lock,flags)
#define NV_SPIN_UNLOCK_IRQRESTORE(lock,flags) \
- atomic_spin_unlock_irqrestore(lock,flags)
-#define NV_SPIN_LOCK(lock) atomic_spin_lock(lock)
-#define NV_SPIN_UNLOCK(lock) atomic_spin_unlock(lock)
-#define NV_SPIN_UNLOCK_WAIT(lock) atomic_spin_unlock_wait(lock)
+ raw_spin_unlock_irqrestore(lock,flags)
+#define NV_SPIN_LOCK(lock) raw_spin_lock(lock)
+#define NV_SPIN_UNLOCK(lock) raw_spin_unlock(lock)
+#define NV_SPIN_UNLOCK_WAIT(lock) raw_spin_unlock_wait(lock)
#else
typedef spinlock_t nv_spinlock_t;
#define NV_SPIN_LOCK_INIT(lock) spin_lock_init(lock)
@@ -791,7 +791,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
}

#if defined(CONFIG_PREEMPT_RT)
-#define NV_INIT_MUTEX(mutex) semaphore_init(mutex)
+#define NV_INIT_MUTEX(mutex) sema_init(mutex,1)
#else
#if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER)
#define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER
--
1.7.2.1

cr1ogen 08-10-10 08:50 PM

Re: error driver 256.44 and linux 2.6.33.7-rt29
 
Quote:

Originally Posted by eskuai (Post 2300415)
Resolved:

Here is the patch i use for the nvidia driver:

From bff65cf087bae512ae9f485f4556e89d304f99a9 Mon Sep 17 00:00:00 2001
From: Joakim B Hernberg <jbh@alchemy.lu>
Date: Sun, 8 Aug 2010 12:39:34 +0200
Subject: [PATCH] Patch nvidia proprietary video driver 256.44 for rt patched
kernel 2.6.33.7-rt29

---
kernel/nv-linux.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
index 3ba43e7..e95460a 100644
--- a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -218,16 +218,16 @@ extern int nv_pat_mode;
#endif

#if defined(CONFIG_PREEMPT_RT)
-typedef atomic_spinlock_t nv_spinlock_t;
-#define NV_SPIN_LOCK_INIT(lock) atomic_spin_lock_init(lock)
-#define NV_SPIN_LOCK_IRQ(lock) atomic_spin_lock_irq(lock)
-#define NV_SPIN_UNLOCK_IRQ(lock) atomic_spin_unlock_irq(lock)
-#define NV_SPIN_LOCK_IRQSAVE(lock,flags) atomic_spin_lock_irqsave(lock,flags)
+typedef raw_spinlock_t nv_spinlock_t;
+#define NV_SPIN_LOCK_INIT(lock) raw_spin_lock_init(lock)
+#define NV_SPIN_LOCK_IRQ(lock) raw_spin_lock_irq(lock)
+#define NV_SPIN_UNLOCK_IRQ(lock) raw_spin_unlock_irq(lock)
+#define NV_SPIN_LOCK_IRQSAVE(lock,flags) raw_spin_lock_irqsave(lock,flags)
#define NV_SPIN_UNLOCK_IRQRESTORE(lock,flags) \
- atomic_spin_unlock_irqrestore(lock,flags)
-#define NV_SPIN_LOCK(lock) atomic_spin_lock(lock)
-#define NV_SPIN_UNLOCK(lock) atomic_spin_unlock(lock)
-#define NV_SPIN_UNLOCK_WAIT(lock) atomic_spin_unlock_wait(lock)
+ raw_spin_unlock_irqrestore(lock,flags)
+#define NV_SPIN_LOCK(lock) raw_spin_lock(lock)
+#define NV_SPIN_UNLOCK(lock) raw_spin_unlock(lock)
+#define NV_SPIN_UNLOCK_WAIT(lock) raw_spin_unlock_wait(lock)
#else
typedef spinlock_t nv_spinlock_t;
#define NV_SPIN_LOCK_INIT(lock) spin_lock_init(lock)
@@ -791,7 +791,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
}

#if defined(CONFIG_PREEMPT_RT)
-#define NV_INIT_MUTEX(mutex) semaphore_init(mutex)
+#define NV_INIT_MUTEX(mutex) sema_init(mutex,1)
#else
#if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER)
#define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER
--
1.7.2.1

Thanks!!!

you can tell me how apply de patch?

Sorry for my english

cr1ogen 08-10-10 09:01 PM

Re: error driver 256.44 and linux 2.6.33.7-rt29
 
Quote:

Originally Posted by cr1ogen (Post 2300522)
Thanks!!!

you can tell me how apply de patch?

Sorry for my english

i Tried apply the patch in nvidia.run and i have this error


patching file b/kernel/nv-linux.h
/usr/bin/patch: **** malformed patch at line 33: typedef spinlock_t nv_spinlock_t;

i'm tried so in a kernel and i have the some error

patching file kernel/nv-linux.h
patch: **** malformed patch at line 32: typedef spinlock_t nv_spinlock_t;

eskuai 08-12-10 05:32 PM

Re: error driver 256.44 and linux 2.6.33.7-rt29
 
1 Attachment(s)
Hello,

I've attached the patch, ... rename file p.txt to p.patch and ....

I usually do (as root)

1) Uncompress source nvidia ... ./NVIDIA-Linux-x86-256.44.run -x
2) Apply the patch ...
Copy the patch file (p.patch) to the following directory and backup nv-linux.h before continue,

<your dir extracted>/NVIDIA-Linux-x86-256.44/kernel

3) CD to the directory and then ... patch < p.patch

4)From your root of extracted nvidia files, run

./nvidia-installer -K --kernel-name=2.6.33.7-rt29

And it is all folks

cr1ogen 08-12-10 07:35 PM

Re: error driver 256.44 and linux 2.6.33.7-rt29
 
Quote:

Originally Posted by eskuai (Post 2301400)
Hello,

I've attached the patch, ... rename file p.txt to p.patch and ....

I usually do (as root)

1) Uncompress source nvidia ... ./NVIDIA-Linux-x86-256.44.run -x
2) Apply the patch ...
Copy the patch file (p.patch) to the following directory and backup nv-linux.h before continue,

<your dir extracted>/NVIDIA-Linux-x86-256.44/kernel

3) CD to the directory and then ... patch < p.patch

4)From your root of extracted nvidia files, run

./nvidia-installer -K --kernel-name=2.6.33.7-rt29

And it is all folks

It's Works!!!!
Thank you So Much!!!!!!!!!!!!

Regards from Argentina


All times are GMT -5. The time now is 03:30 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.