View Single Post
Old 03-28-06, 03:14 PM   #8
galaxy66
Registered User
 
Join Date: Oct 2005
Posts: 4
Default Re: ia64 driver for 2.6?

OK, I decided to try the patch listed above to 5336 for ia64. OS is RHEL4 Update 3. Here's what I did:
Code:
[root@wslinux ~]# cd /opt/nvidia/
[root@wslinux nvidia]# ll
total 12416
-rw-rw-r--  1 root root     15785 Mar 27 16:48 nvidia_5336_2.6_patch.txt
-rwxr-xr-x  1 root root  12673593 Mar 27 11:12 NVIDIA-Linux-ia64-1.0-5336-pkg1.run
[root@wslinux nvidia]#
[root@wslinux nvidia]#
[root@wslinux nvidia]# ./NVIDIA-Linux-ia64-1.0-5336-pkg1.run -x
Creating directory NVIDIA-Linux-ia64-1.0-5336-pkg1
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-ia64 1.0-5336...................
..............................................
[root@wslinux nvidia]#
[root@wslinux nvidia]#
[root@wslinux nvidia]# cd NVIDIA-Linux-ia64-1.0-5336-pkg1
[root@wslinux NVIDIA-Linux-ia64-1.0-5336-pkg1]# cat ../nvidia_5336_2.6_patch.txt | patch -p1
patching file usr/src/nv/Makefile.kbuild
patching file usr/src/nv/conftest.sh
patching file usr/src/nv/nv-linux.h
patching file usr/src/nv/nv.c
patching file usr/src/nv/os-agp.c
patching file usr/src/nv/os-interface.c
[root@wslinux NVIDIA-Linux-ia64-1.0-5336-pkg1]# ./nvidia-installer
Of course the last command launches the curses installer so here is the nvidia-installer.log:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Mar 28 14:28:56 2006

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
  XFree86 install prefix  : /usr/X11R6
  OpenGL install prefix   : /usr
  Installer install prefix: /usr
  kernel source path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp site                : ftp://download.nvidia.com

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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.9-34.ELzx2/build'
-> Performing cc_version_check with CC="cc".
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.9-34.ELzx2/
   build'...
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /opt/nvidia/NVIDIA-
   Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv_compiler.h
     CC [M]  /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.o
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nv
   os_probe_devices':
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c:215: warning: im
   plicit declaration of function `pci_get_class'
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c:215: warning: as
   signment makes pointer from integer without a cast
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c:309: warning: as
   signment makes pointer from integer without a cast
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nv
   os_find_agp_by_class':
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c:626: warning: as
   signment makes pointer from integer without a cast
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c:637: warning: as
   signment makes pointer from integer without a cast
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nv
   _agp_init':
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nv.c:2886: warning: `
   inter_module_put' is deprecated (declared at include/linux/module.h:572)
     CC [M]  /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.o
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c: In function
   `KernInitAGP':
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c:114: warning
   : `inter_module_put' is deprecated (declared at include/linux/module.h:572)
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c:149: warning
   : `inter_module_put' is deprecated (declared at include/linux/module.h:572)
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c:161: warning
   : `inter_module_put' is deprecated (declared at include/linux/module.h:572)
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c:173: warning
   : `inter_module_put' is deprecated (declared at include/linux/module.h:572)
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c: In function
   `KernTeardownAGP':
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-agp.c:220: warning
   : `inter_module_put' is deprecated (declared at include/linux/module.h:572)
     CC [M]  /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-interfac
   e.o
   /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-interface.c:741: w
   arning: 'wb_list' defined but not used
     CC [M]  /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/os-registry
   .o
     LD [M]  /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nvidia.o
     Building modules, stage 2.
     MODPOST
   *** Warning: "pci_get_class" [/opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/us
   r/src/nv/nvidia.ko] undefined!
     CC      /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nvidia.mod.
   o
     LD [M]  /opt/nvidia/NVIDIA-Linux-ia64-1.0-5336-pkg1/usr/src/nv/nvidia.ko
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.ko'.  This is most likely
       because the kernel module was built using the wrong kernel source files.
       Please make sure you have installed the kernel source files for your
       kernel; on Red Hat Linux systems, for example, be sure you have the
       'kernel-source' rpm installed.  If you know the correct kernel source
       files are installed, you may specify the kernel source path with the
       '--kernel-source-path' commandline option.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
   -1 Unknown symbol in 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.
I'm 100% certain that the kernel source matches the kernel because I compiled it myself. I simply did a 'make oldconfig' against the stock .config to insure that the source tree is complete. I also booted the new kernel.

Looks like there are many depreciated function calls in the nvidia source files.

The email thread linked above references a patch for the 6629 driver which I can't find anywhere on nVidia's site.

We are very pleased with our seven HP zx2000/6000 workstations with the exception of poor graphics card driver support. Are there any ia64 experts who are willing to help with this?
galaxy66 is offline   Reply With Quote