LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-25-2004, 11:30 PM   #1
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
Question Kernel 2.6.3 + nVidia drivers


Hi,

i want to install the lastest nVidia drivers for my 3d card (GeForce 4 MX 440.. ),
but i have this error with the kernel source ?

However, i have installed the kernel-source-2.6.3 on my Debian SID ...?
(apt-get install kernel-source-2.6.3)

There is a part of the log, anyone can help me?:

Code:
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: QM_MODULES: Function not implemented
   
   insmod: cannot open /proc/ksyms No such file or directory
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 nvidia website
Regards.

wiBo..
 
Old 02-26-2004, 04:52 AM   #2
Dave_bsr
LQ Newbie
 
Registered: Apr 2002
Location: Michigan (msu)
Distribution: mandrake
Posts: 27

Rep: Reputation: 15
google and slashdot are your freinds...

There was an article posted on slashdot today that answers this problem. basically, ksyms is the old kernel symbols file, and kallsyms is the 2.6 kernel symbols file.

int /etc/rc.sysinit, there is mention of these two things. The articles go into more detail, but basically wherever you see a reference to ksyms, you need to change it to kallsyms. If you want to go between kernels 2.4 and 2.6, then you'll need to do one thing if the kernel is 2.4, and another if the kernel is 2.6. here's what i did:

Code:
#set kernel version
VERSION=`uname -a | sed -e 's;.* \(2\.6\).*;\1;'`
if [ "x$VERSION" = "x" ] ; then
        VERSION="2.4"
fi
and from /etc/rc.sysinit:
Code:
#if 2.6 kernel, this next is true
if [[ -d /sys ]] && grep -q sysfs /proc/filesystems; then
        i=5
        while [ $i -ge 0 ]; do
                if [ -f /var/log/kallsyms.$i ]; then
                        mv /var/log/kallsyms.$i /var/log/kallsyms.$(($i+1))
                fi
                i=$(($i-1))
        done
        (/bin/date;
         /bin/uname -a;
         /bin/cat /proc/cpuinfo;
         [ -r /proc/modules ] && /bin/cat /proc/modules;
         [ -r /proc/kallsyms ] && /bin/cat /proc/kallsyms) >/var/log/kallsyms.0
fi

# if kernel 2.4, do this:
if [ "x$VERSION" = "x2.4" ] ; then
        i=5
        while [ $i -ge 0 ]; do
                if [ -f /var/log/ksyms.$i ]; then
                        mv /var/log/ksyms.$i /var/log/ksyms.$(($i+1))
                fi
                i=$(($i-1))
        done
        (/bin/date;
         /bin/uname -a;
         /bin/cat /proc/cpuinfo;
         [ -r /proc/modules ] && /bin/cat /proc/modules;
         [ -r /proc/ksyms ] && /bin/cat /proc/ksyms) >/var/log/ksyms.0

fi

The article can be found at: http://linuxdevices.com/articles/AT5793467888.html
 
Old 02-26-2004, 04:35 PM   #3
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Original Poster
Rep: Reputation: 30
Thx for your help, but i have found :

apt-get install module-init-tools

See ya.

wiBo.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New kernel + NVidia drivers Mad Merlin Linux - General 2 06-03-2006 08:36 PM
kernel 2.6.13 and nvidia drivers fllabron Debian 4 09-18-2005 12:18 PM
nvidia drivers and kernel 2.6.1 mikejedw Linux - Hardware 20 03-02-2004 09:23 AM
Kernel and NVidia Drivers AceTech747 Linux - Software 3 02-03-2004 03:10 AM
nvidia drivers in kernel?? Zig Linux - Software 3 06-29-2003 01:08 PM


All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration