|
|
#1 | |
|
Registered User
Join Date: Aug 2010
Posts: 9
|
I have a kernel real-time, and give me this error
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jun 5 19:17:04 2011
installer version: 270.41.06
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
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
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
no X server check : false
no cc version check : true
run distro scripts : true
no nouveau check : false
run nvidia-xconfig : false
sigwinch work around : true
force tls : (not specified)
force compat32 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)
compat32 install chroot : (not specified)
compat32 install prefix : (not specified)
compat32 install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
installer prefix : (not specified)
doc install prefix : (not specified)
kernel name : 2.6.33.13-real-time
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
precompiled kernel interfaces path : (not specified)
precompiled kernel interfaces url : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
selinux chcon type : (not specified)
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 270.41.06.
-> There appears to already be a driver installed on your system (version: 270.
41.06). As part of installing this driver (version: 270.41.06), the existin
g driver will be uninstalled. Are you sure you want to continue? ('no' will
abort installation) (Answer: Yes)
-> Not probing for precompiled kernel interfaces.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.33.13-real-time/source'
-> Kernel output path: '/lib/modules/2.6.33.13-real-time/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.13-real-time
/source SYSOUT=/lib/modules/2.6.33.13-real-time/build'...
NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.33.13-real-time/build \
KBUILD_SRC=/usr/src/linux-2.6.33.13 \
KBUILD_EXTMOD="/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel" -f /usr/
src/linux-2.6.33.13/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 /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/.tmp_versions ;
rm -f /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/.tmp_versions/*
make -f /usr/src/linux-2.6.33.13/scripts/Makefile.build obj=/home/cr1ogen/NV
IDIA-Linux-x86_64-270.41.06/kernel
cc -Wp,-MD,/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/.nv.o.d -no
stdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include -I/usr/src/linux
-2.6.33.13/arch/x86/include -Iinclude -I/usr/src/linux-2.6.33.13/include -i
nclude include/generated/autoconf.h -I/home/cr1ogen/NVIDIA-Linux-x86_64-27
0.41.06/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-
format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-r
ed-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-
protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-c
ompare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dno
w -Wframe-larger-than=2048 -fomit-frame-pointer -g -Wdeclaration-after-state
ment -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-s
tack -I/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel -Wall -MD -Wsign
-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION
_STRING=\"270.41.06\" -Wno-unused-function -mno-red-zone -mcmodel=kernel -UD
EBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENA
ME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/cr1og
en/NVIDIA-Linux-x86_64-270.41.06/kernel/.tmp_nv.o /home/cr1ogen/NVIDIA-Linux
-x86_64-270.41.06/kernel/nv.c
In file included from /usr/src/linux-2.6.33.13/arch/x86/include/asm/uaccess.
h:573:0,
from include/linux/poll.h:13,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-
linux.h:84,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:
/usr/src/linux-2.6.33.13/arch/x86/include/asm/uaccess_64.h: In function ‘c
opy_from_user’:
/usr/src/linux-2.6.33.13/arch/x86/include/asm/uaccess_64.h:35:6: warning: co
mparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from include/linux/mm.h:588:0,
from /usr/src/linux-2.6.33.13/arch/x86/include/asm/tlbflush
.h:4,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-
linux.h:90,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:
include/linux/vmstat.h: In function ‘count_vm_event’:
include/linux/vmstat.h:91:1: warning: variable ‘pto_tmp__’ set but not u
sed [-Wunused-but-set-variable]
include/linux/vmstat.h:91:1: warning: variable ‘pto_tmp__’ set but not u
sed [-Wunused-but-set-variable]
include/linux/vmstat.h:91:1: warning: variable ‘pto_tmp__’ set but not u
sed [-Wunused-but-set-variable]
include/linux/vmstat.h:91:1: warning: variable ‘pto_tmp__’ set but not u
sed [-Wunused-but-set-variable]
include/linux/vmstat.h: In function ‘count_vm_events’:
include/linux/vmstat.h:106:1: warning: variable ‘pto_tmp__’ set but not
used [-Wunused-but-set-variable]
include/linux/vmstat.h:106:1: warning: variable ‘pto_tmp__’ set but not
used [-Wunused-but-set-variable]
include/linux/vmstat.h:106:1: warning: variable ‘pto_tmp__’ set but not
used [-Wunused-but-set-variable]
include/linux/vmstat.h:106:1: warning: variable ‘pto_tmp__’ set but not
used [-Wunused-but-set-variable]
In file included from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-
linux.h:90:0,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:
/usr/src/linux-2.6.33.13/arch/x86/include/asm/tlbflush.h: In function ‘res
et_lazy_tlbstate’:
/usr/src/linux-2.6.33.13/arch/x86/include/asm/tlbflush.h:183:2: warning: var
iable ‘pto_tmp__’ set but not used [-Wunused-but-set-variable]
/usr/src/linux-2.6.33.13/arch/x86/include/asm/tlbflush.h:184:2: warning: var
iable ‘pto_tmp__’ set but not used [-Wunused-but-set-variable]
In file included from include/linux/irq.h:29:0,
from /usr/src/linux-2.6.33.13/arch/x86/include/asm/hardirq.
h:5,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:12,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-
linux.h:95,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:
/usr/src/linux-2.6.33.13/arch/x86/include/asm/irq_regs.h: In function ‘set
_irq_regs’:
/usr/src/linux-2.6.33.13/arch/x86/include/asm/irq_regs.h:26:2: warning: vari
able ‘pto_tmp__’ set but not used [-Wunused-but-set-variable]
In file included from /usr/src/linux-2.6.33.13/arch/x86/include/asm/hardirq.
h:5:0,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:12,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-
linux.h:95,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:442:8: warning: variable ‘gfp’ set but not used [-Wu
nused-but-set-variable]
In file included from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-
linux.h:124:0,
from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:
include/linux/pagemap.h: In function ‘fault_in_pages_readable’:
include/linux/pagemap.h:415:16: warning: variable ‘c’ set but not used [
-Wunused-but-set-variable]
In file included from /home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.
c:13:0:
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-linux.h: At top level:
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-linux.h:250:1: error:
unknown type name ‘atomic_spinlock_t’
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c: In function ‘nvid
ia_init_module’:
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c:1249:22: warning: va
riable ‘__edx’ set but not used [-Wunused-but-set-variable]
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c: In function ‘nv_a
lloc_file_private’:
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c:1728:5: error: impli
cit declaration of function ‘semaphore_init’ [-Werror=implicit-function-
declaration]
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c:1730:5: error: impli
cit declaration of function ‘atomic_spin_lock_init’ [-Werror=implicit-fu
nction-declaration]
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c: In function ‘nv_k
ern_mmap’:
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c:2347:22: warning: va
riable ‘i’ set but not used [-Wunused-but-set-variable]
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c: In function ‘nv_k
ern_poll’:
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c:2521:5: error: impli
cit declaration of function ‘atomic_spin_lock_irqsave’ [-Werror=implicit
-function-declaration]
/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.c:2532:5: error: impli
cit declaration of function ‘atomic_spin_unlock_irqrestore’ [-Werror=imp
licit-function-declaration]
cc1: some warnings being treated as errors
make[4]: *** [/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel/nv.o] Error
1
make[3]: *** [_module_/home/cr1ogen/NVIDIA-Linux-x86_64-270.41.06/kernel] Er
ror 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.
Thanks, Sorry for my english |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Aug 2010
Posts: 9
|
Don't know if that has already been posted but here is a way to make NVIDIA drivers work on RT kernels 2.6.33.13-real-time
1. Download the NVIDIA driver you want to use (270.41.06 for example) and make it executable 2. Run : /[path to the downloaded driver]/NVIDIA-Linux-x86_64-270.41.06.run -x this will only extract the package content 3. Open the file /usr/src/NVIDIA-Linux-x86_64-270.41.06/kernel/nv-linux.h and make those changes : Replace : #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) #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) #else typedef spinlock_t nv_spinlock_t; #define NV_SPIN_LOCK_INIT(lock) spin_lock_init(lock) by #if defined(CONFIG_PREEMPT_RT) 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) \ 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) and Cita: #if defined(CONFIG_PREEMPT_RT) #define NV_INIT_MUTEX(mutex) semaphore_init(mutex) #else #if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER) #define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER by Cita: #if defined(CONFIG_PREEMPT_RT) #define NV_INIT_MUTEX(mutex) sema_init(mutex,1) #else #if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER) #define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER 4. Run: NVIDIA-Linux-x86_64-270.41.06/nvidia-installer You're done ! That work like a charm for me. That's inspired (for not saying totaly ripped ) from there : http://www.spinics.net/lists/linux-r.../msg06142.html Beware the patch posted in that page can't be applyed directly since the line numbers change from version to version of the driver |
|
|
|
|
![]() |
| Thread Tools | |
|
|