View Single Post
Old 03-02-07, 02:52 AM   #1
Boomer
Registered User
 
Join Date: Nov 2006
Posts: 12
Default 2.6.20-rt8 kernel patch

I'm trying to install the nvidia driver on the kernel patched with this patch but it fails:

Code:
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/kernels/linux-2.6.2
   0-rt8rt/ SYSOUT=/usr/src/kernels/linux-2.6.20-rt8rt/'...
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/kernels/linux-2.6.20-rt8rt/ SUBDIRS
   =/tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-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)
   mkdir -p /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/.tmp_vers
   ions
   rm -f /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/.tmp_version
   s/*
   make -f scripts/Makefile.build obj=/tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631
   -pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz3570/NVI
   DIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/.nv.o
   .d  -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERN
   EL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-pro
   totypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-flo
   at -mpreferred-stack-boundary=2  -march=athlon -mregparm=3 -ffreestanding -m
   accumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -I
   include/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protector -Wd
   eclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz3570/NVIDIA-Linux-
   x86-1.0-9631-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wforma
   t -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror -
   O -fno-common -msoft-float -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D
   _LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_MAJOR_VERSION=1 -DNV_
   MINOR_VERSION=0 -DNV_PATCHLEVEL=9631  -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_
   STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT 
   -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_
   STATE_PRESENT -
   DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PF
   N_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE 
   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=K
   BUILD_STR(nvidia)" -c -o /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/
   src/nv/.tmp_nv.o /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/n
   v.c
   In file included from include/linux/list.h:8,
                    from include/linux/plist.h:77,
                    from include/linux/rtmutex.h:16,
                    from include/linux/rt_lock.h:13,
                    from include/linux/spinlock.h:116,
                    from include/linux/capability.h:45,
                    from include/linux/sched.h:46,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src
   /nv/nv-linux.h:19,
                    from /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-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 a
   rithmetic
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c: At top level
   :
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c:110: warning:
   ‘kmem_cache_t’ is deprecated
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c: In function 
   ‘nv_kern_open’:
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c:1849: error: 
   ‘SA_INTERRUPT’ undeclared (first use in this function)
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c:1849: error: 
   (Each undeclared identifier is reported only once
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c:1849: error: 
   for each function it appears in.)
   /tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.c:1849: error: 
   ‘SA_SHIRQ’ undeclared (first use in this function)
   make[3]: *** [/tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src/nv/nv.o
   ] Error 1
   make[2]: *** [_module_/tmp/selfgz3570/NVIDIA-Linux-x86-1.0-9631-pkg1/usr/src
   /nv] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
Any idea if/how I can get it to work?
Boomer is offline   Reply With Quote