LinHES Forums
http://forum.linhes.org/

R5F27 - Cannot install NVIDIA drivers
http://forum.linhes.org/viewtopic.php?f=14&t=16958
Page 1 of 1

Author:  nickca [ Sat Oct 13, 2007 7:30 pm ]
Post subject:  R5F27 - Cannot install NVIDIA drivers

I can't install the NVIDIA drivers on my R5F27 system using install-nvidia-debian.sh or just running the installer directly. I've never had a problem doing this with any other version of KM. I first tried it with just the kernel headers, then the full kernel source. I ran "make oldconfig && make prepare" in the kernel source directory, but the installer log still says the kernel isn't configured properly. Here is the installer log:

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Oct 13 20:31:07 2007

option status:
  license pre-accepted    : true
  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            : true
  silent                  : true
  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
  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                      : none
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using built-in stream user interface
-> License accepted by command line option.
-> 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.18-chw-13/build'
-> Kernel output path: '/lib/modules/2.6.18-chw-13/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen 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 nvacpi.
   o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.o nvidi
   a.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 Modules.symvers
   rm -f -rf .tmp_versions
   rm -f Makefile
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.18-chw-13/b
   uild SYSOUT=/lib/modules/2.6.18-chw-13/build'...
   sh ./conftest.sh "cc" "cc" /lib/modules/2.6.18-chw-13/build /lib/modules/2.6
   .18-chw-13/build cc_sanity_check full_output
   sh ./conftest.sh "cc" "cc" /lib/modules/2.6.18-chw-13/build /lib/modules/2.6
   .18-chw-13/build select_makefile full_output
   make --no-print-directory -f Makefile module
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.18-chw-13/build SUBDIRS=/us
   r/src/NVIDIA-Linux-x86-100.14.11-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 /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_versions
   rm -f /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_versions/*
   make -f scripts/Makefile.build obj=/usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/
   usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /usr/src/NVIDIA-Lin
   ux-x86-100.14.11-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.nv.o.d  -n
   ostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL__ -Iin
   clude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -
   Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float -mpref
   erred-stack-boundary=2  -march=i586  -ffreestanding -Iinclude/asm-i386/mach-
   default -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-state
   ment -Wno-pointer-sign -I/usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv
   -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenth
   eses -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_VERSION_STRING=\"100.14.11\" -UDEBUG -U_D
   EBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGA
   RT_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV
   _PM_MESSAGE_T_PRESENT -DNV_IRQ_HANDLER_WITH_PTREGS_PRESENT -DNV_PCI_CHOOSE_S
   TATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT
   -DNV_ACPI_DEVICE_OPS_MATCH_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_
   PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT  -DMO
   DULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODN
   AME=KBUILD_STR(nvidia)" -c -o /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/s
   rc/nv/nv.o /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c
   In file included from include/linux/list.h:8,
                    from include/linux/lockdep.h:12,
                    from include/linux/spinlock_types.h:12,
                    from include/linux/spinlock.h:78,
                    from include/linux/capability.h:45,
                    from include/linux/sched.h:51,
                    from include/linux/module.h:9,
                    from /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv
   -linux.h:51,
                    from /usr/src/NVIDIA-Linux-x86-100.14.11-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:564,
                    from /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv
   -linux.h:78,
                    from /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv
   .c:14:
   include/asm/io.h: In function 'check_signature':
   include/asm/io.h:245: warning: wrong type argument to increment
   In file included from /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv
   -linux.h:151,
                    from /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv
   .c:14:
   include/linux/i2c.h:32:26: error: linux/i2c-id.h: No such file or directory
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c: In function '__nv_
   setup_pat_entries':
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:950: warning: compa
   rison between signed and unsigned
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c: In function '__nv_
   restore_pat_entries':
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:976: warning: compa
   rison between signed and unsigned
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c: In function 'nv_ke
   rn_cpu_callback':
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:1282: warning: comp
   arison between signed and unsigned
   /usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:1289: warning: comp
   arison between signed and unsigned
   make[3]: *** [/usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.o] Erro
   r 1
   make[2]: *** [_module_/usr/src/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv] E
   rror 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.

Author:  nickca [ Sat Oct 13, 2007 7:58 pm ]
Post subject: 

Never mind, I fixed it. I ran (in /usr/src)

Code:
cd /usr/src/linux (/usr/src/linux is a symlink to /usr/src/linux-source-2.6.18-chw-13
cp /boot/config ./.config
make prepare-all
cd /usr/src
sh ./NVIDIA-Linux-x86-100.14.19-pkg1.run --kernel-source-path=/usr/src/linux-source-2.6.18-chw-13


and it somehow worked. I've never needed to specify the source path before, but whatever. Hopefully this helps someone else.

Author:  mediathreat [ Mon Oct 15, 2007 6:28 am ]
Post subject: 

im still having issues compiling nvidia drivers under this new version of knoppmyth

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/