LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-10-2005, 05:02 AM   #1
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
Nvidia problem with 2.6.10


this one has held me in thrall for about a week now - i cant install the Nvidia drivers, and the graphic acceloeration dosent work any more - initially i thought my recientally updated xorg.conf was the problem but this was discounted with some reserch.

It appears the old kenrel module wonrt work with 2.6.10 - which makes sence.
however, trying to reinstall the driver yealds some pritty ood errors:

Code:
-> 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: 
-> Kernel messages:
   [<c012c628>] sys_init_module+0x148/0x1f0
   [<c014e62f>] filp_close+0x4f/0x80
   [<c0102f87>] syscall_call+0x7/0xb
   Code: 24 04 83 c4 08 c3 8b 1c 24 8b 74 24 04 83 c4 08 e9 59 cb 21 00 89 f6
   8d bc 27 00 00 00 00 55 57 56 53 83 ec 08 89 d3 89 44 24 04 <8b> 48 48 8b 50
   08 ff 4a 68 0f 88 c9 00 00 00 8b 51 0c 8d 6a fc
the previous module IS unloaded when i run the install program and i am certin the source files are correct.

after this, lsmod shows that a new nvidia.ko is loaded, but x dosent work.
this module cant be unloaded (device or reasource buissey)
and when i try to reboot i get a kernel panic and have to reboot manually

uppon restart the old module loads and i have graphics if not any 3d.

I have tried patching the kernel using a cko patch which makes the old driver compile, i also tried patching the driver files using patches found on the nvidia forums,
boath patchings report that there is a previously installed patch, and then give errors and needles to say, dont work at all.

dose anyone have any ideas?
 
Old 02-10-2005, 08:18 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
I had similar problems last summer, the older Nvidia-drivers doesn't work with kernel 2.6
Have you tried downloading a recent driver from Nvidia?
 
Old 02-10-2005, 05:24 PM   #3
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
the above is the most recient
 
Old 02-10-2005, 05:43 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
This problem may occur if you have altered the "/usr/src/<kernel version>/.config" file of the kernel you use. If you have the original configuration file of the installed kernel, do a make xconfig, choose load configuration from a file, load the config file of the installed kernel,then save configuration, and try to reinstall the driver. This is why I always save the configuration file in /boot under the same name with the kernel, as it is done by default In slackware:
Code:
skalkoto@darkstar:~$ ls -l /boot/
total 3142
lrwxrwxrwx  1 root root      37 2005-02-08 13:51 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
lrwxrwxrwx  1 root root      21 2005-02-08 13:51 System.map -> System.map-ide-2.4.26
-rw-r--r--  1 root root  620999 2004-06-15 05:29 System.map-ide-2.4.26
-rw-r--r--  1 root root     512 2005-02-08 15:07 boot.0300
-rw-r--r--  1 root root     209 2005-02-08 17:35 boot_message.txt
lrwxrwxrwx  1 root root      17 2005-02-08 13:51 config -> config-ide-2.4.26
-rw-r--r--  1 root root   41017 2004-06-15 05:29 config-ide-2.4.26
-rw-r--r--  1 root root    5032 2004-05-21 10:19 diag1.img
-rw-------  1 root root   30720 2005-02-08 17:44 map
-r--------  1 root root 1248111 2005-02-08 15:01 vmlinuz
-rw-r--r--  1 root root 1248111 2004-06-15 05:29 vmlinuz-ide-2.4.26
skalkoto@darkstar:~$

Last edited by perfect_circle; 02-10-2005 at 05:47 PM.
 
Old 02-10-2005, 06:04 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What does 'uname -r' say. Does it match,
/usr/src/<kernel-version>
as well as the directory before the build link.
lib/modules/<example 2.6.9>/build

Also, does the build link point to the correct source directory?
The nvidia installer actually uses the uname -r command to determine the directory. /lib/mocules/`uname -r`/build/
 
Old 02-10-2005, 07:38 PM   #6
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by jschiwal
What does 'uname -r' say. Does it match,
/usr/src/<kernel-version>
actually no, it dosent :S - fixing that using cp -r linux-2.6.10 ./linux-2.6.10-cko3

....

unfortunitally this kernel has been re-compiled so meny times i have actually forgotton to keep a log of the .config files - espically not from the origional kernal version.
 
Old 02-10-2005, 09:12 PM   #7
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
no luck with the directory re-pointing

in compleetly unrelated news i now have sound working

DAMMIT! its either sound or graphics, ill never get this machene working for games :'(
 
Old 02-10-2005, 09:22 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
come on, don't loose hope.
What is the kernel name, (uname -r).
Make a /usr/src/linux-'uname -r' directory.
Have you added an extra version field or is it just 2.6.10?
Why don't you recompile the kernel.
Do you have 2 kernels?
 
Old 02-11-2005, 04:14 AM   #9
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
my kernel is called :

2.6.10-cko3

Code:
bash-2.05b# ls  
linux                    linux-2.6.10              linux-2.6.9
linux-2.4.26-gentoo-r14  linux-2.6.10-cko3         patch
linux-2.4.26-lck1        linux-2.6.10-cko3-backup  patch-2.6.10-cko3
linux-2.4.28-gentoo-r5   linux-2.6.8.1-ck6

ALSO:
bash-2.05b# ls /boot | grep kernel
kernel-2.6.10-cko3
kernel-2.6.10-cko3-f
kernel-2.6.8.1-ck3-crm-fs
ill fix the linux symlink in /usr/src and delleet the old kernel directory. - not that that will help, but a cleen compute ris a helthy computer :P

Last edited by crm; 02-11-2005 at 04:16 AM.
 
Old 02-11-2005, 05:44 AM   #10
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
this is not what i meant. What is the version of the kernel? is it just 2.6.10? do uname -r
Because if you want to recompile the same kernel and have them both you add something in the extra version field of the /usr/src/linux<version>/Makefile. Mine looks like this:
Code:
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
EXTRAVERSION =

KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Is your kernel version 2.6.10-ck03?.
If not and you have just renamed the bzImage to linux-2.6.10-cko3 make sure your kernel source is in /usr/src/linux-2.6.20/. If Not then /usr/src/linux-2.6.20-cho3/.
I don't know for certain what the nvidia installer checks, but make sure that everythink matches. Where are your modules stored?
they should be in /lib/modules/<version>. Do you have more than one of those directories?
 
Old 02-11-2005, 06:04 AM   #11
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
bash-2.05b$ uname -r
2.6.10-cko3

so yeah - the /usr/src/linux link points to the right directory, everything is set up right otherwise more things would be going brests aloft...

the top of the makefile looks like this:

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 10
EXTRAVERSION =-cko3
NAME=Woozy Numbat

hemmm
Code:
bash-2.05b# ls /lib/modules/2.6.10-cko3/
kernel         modules.ccwmap       modules.inputmap   modules.symbols
misc           modules.dep          modules.isapnpmap  modules.usbmap
modules.alias  modules.ieee1394map  modules.pcimap     video
cant see any mention of the nvidia module there :S -- ahha! its in the video directory:

bash-2.05b# ls /lib/modules/2.6.10-cko3/video/
nvidia.ko
 
Old 02-11-2005, 08:12 AM   #12
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
/usr/src/linux link points to the right directory,
I don't think the installer checks the /usr/src/linux link.
I think you need to have a /usr/src/linux-2.6.10-cko3/.
Also do a make xconfig, in the 2.6.10-cko3 source, open a config file and then save it again.
I had this kind of problems when i recompiled my default 2.4.26 kernel and named it 2.4.26-1, but it's fixable.
The difference is that i did keep the .config files for every kernel. Is your kernel patched?
 
Old 02-13-2005, 05:19 PM   #13
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
yes - the cko3 patch for rieser fs 4 - will that majke a difference?

also: i implemented your load-save config... its quite late and ive been out having fun most of the weekend so ui wil ltry and rebuild the nvidia driver tomorrow and see if it works *fingers crossed in sleep*
 
Old 02-14-2005, 10:34 AM   #14
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Original Poster
Rep: Reputation: 30
ok, that didnt work at all:
here are the logs in full if they help:
Code:
-> 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:
-> Kernel messages:
   [<c012c628>] sys_init_module+0x148/0x1f0
   [<c014e62f>] filp_close+0x4f/0x80
   [<c0102f87>] syscall_call+0x7/0xb
would a re-install of the kernel, source and patches help?
is anyone else having this problem?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia problem derobonson Linux - Games 6 10-05-2005 03:25 PM
Nvidia fx5500 mandrake 10.1 problem:Nvidia in /etc/modprobe.preload doesn't work eikeland Linux - Hardware 5 01-17-2005 02:09 PM
nvidia problem mm3000 Slackware 18 12-03-2004 09:14 AM
nvidia problem bjwbell Linux - General 4 01-02-2003 11:30 AM
Nvidia Problem Config Linux - Hardware 4 04-25-2002 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:41 AM.

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
Open Source Consulting | Domain Registration