Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-11-04, 12:01 PM   #1
fdm
Registered User
 
Join Date: Apr 2004
Posts: 7
Default Problem with nvidia driver on x86_64 2.6.5 kernel

Hello,

I've got a problem with the NVIDIA_kernel-1.0-5332 driver on my x86_64 platform using kernel 2.6.5. After applying the patch from www.minion.de (NVIDIA_kernel-1.0-5332-2.6.diff) the kernel module gets build and installed, but modprobe complains the module doesn't exist.
I noticed that the kernel modules in 2.6 now have the extension .ko instead of .o, so I tried renaming the module. This however results in the following error message from modprobe:
FATAL: Error inserting nvidia (/lib/modules/2.6.5/kernel/drivers/video/nvidia.ko): Invalid module format.

Does anyone have an idea how to fix this?

Frans
fdm is offline   Reply With Quote
Old 04-11-04, 05:18 PM   #2
molecular
Registered User
 
Join Date: Apr 2004
Posts: 10
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

I'm using 5336 on ia32 2.6.5.
it's a gentoo-system and I installed the driver via the gentoo package system "portage". I looked at the ebuild-file (used to describe how to install sth) to see what it would do to get the .ko-file. Indeed it just copies the .o-file as you suspected.
Maybe this helps a little. Probably not... posted anyway.
molecular is offline   Reply With Quote
Old 04-11-04, 08:26 PM   #3
Corona688
Registered User
 
Join Date: Feb 2004
Posts: 93
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

I have heard the problem is related to the 2.6.5 kernel using 8K stacks as opposed to the 4K ones the nvidia driver expects..

[edit] OK I had it backwards. See here. Not sure if this is related though.
Corona688 is offline   Reply With Quote
Old 04-12-04, 12:00 AM   #4
tamran
Registered User
 
Join Date: Feb 2004
Location: Ft. Myers, FL
Posts: 67
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Quote:
I've got a problem with the NVIDIA_kernel-1.0-5332 driver on my x86_64 platform using kernel 2.6.5. After applying the patch from www.minion.de (NVIDIA_kernel-1.0-5332-2.6.diff) the kernel module gets build and installed, but modprobe complains the module doesn't exist.
is there a symbolic link from your current kernel (/usr/src/kernel-source) to /usr/src/linux ?

Not having that link would cause what you described. To fix, use:

Code:
cd /usr/src/ && rm linux && ln -s linux-2.6.5 linux
Hope this helps,

Tamran
tamran is offline   Reply With Quote
Old 04-12-04, 07:52 AM   #5
fdm
Registered User
 
Join Date: Apr 2004
Posts: 7
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Hello,

First of all, thanks for all your replies.
Unfortunately, the problem is still there.

I've tried recompiling with the /usr/src/linux link pointing to linux-2.6.5, as tamran suggested, but this doesn't change the situation.

I don't know if my 2.6.5 kernel is using 4k stacks. From the link given by Corona668, I make up that it will be an experimental feature in the 2.6.6 kernels with a default of 'no'. I've checked if there is such an option in menuconfig for 2.6.5, but found none.

I think the problem is related to the way the module gets compiled and linked. Below you'll find:
-the compiler options used by the makefile for the kernel module;
-gcc version info
-ld version info

Compiler options:
-Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -mno-red-zone -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=5332 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNV_64_BITS -DNVCPU_X86_64 -DREMAP_PAGE_RANGE_5 -I. -I/lib/modules/2.6.5/build/include -Wno-cast-qual -Wno-error

gcc version info:
Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)

ld version info:
GNU ld version 2.14.90.0.5 20030722 (SuSE Linux)

Perhaps this info holds the key?

Thanks again,

Frans
fdm is offline   Reply With Quote
Old 04-12-04, 03:06 PM   #6
Phorem
Registered User
 
Join Date: Dec 2003
Location: Toronto
Posts: 34
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Try this prebuilt one instead.......

http://www.sh.nu/download/nvidia/lin...-5332-pkg0.run

It seems to work fine when the Nvidia official ones fail.
__________________
Gentoo Linux-64, AMD64 Athlon 3200, Asus K8V Deluxe, 1 gig(3200 400mhz) ram, GeForce FX5200 128, HP 400i DVD+R+RW, HP ScanJet 2200c, Epson Stylus C84, JVC DRV3000U (firewire - usb), Kodak CX6330
Phorem is offline   Reply With Quote
Old 04-12-04, 06:21 PM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

The "Invalid module format" insmod error message is typically accompanied by a bitter complaint from the kernel; check the output of 'dmesg', chances are it's a module version magic mismatch of some sort (e.g. mismatched compilers). FYI, there's no 4KSTACKS patch for x86_64, though it puts similar constraints on kernel stack usage (8K stacks, 64bit kernel).
zander is offline   Reply With Quote
Old 04-12-04, 07:29 PM   #8
mikygee
Registered User
 
Join Date: Apr 2004
Posts: 25
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

I know it's not a very good answer but the nvidia drivers work with 2.6.4, so why not sticking with this kernel ?

bye
mikygee is offline   Reply With Quote

Old 04-12-04, 08:11 PM   #9
tamran
Registered User
 
Join Date: Feb 2004
Location: Ft. Myers, FL
Posts: 67
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Interesting indeed, I had an issue with 2.6.5_rc2 and rc3 kernels. Nothing I did would make the nvidia drivers work. This was not the case with 2.6.5. Go figure?

Tamran
tamran is offline   Reply With Quote
Old 04-13-04, 02:45 PM   #10
fdm
Registered User
 
Join Date: Apr 2004
Posts: 7
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Thanks Phorem, the modified installer you suggested works. I had a quick look and it seems that that the module makefile has been changed in some ways.

I noticed that the installer only provides 64 bit libGL* files in the /usr/lib64 and /usr/lib64/tls directories. The mesa files under /usr/lib have not been replaced. Will this be a problem?
Could it be the reason why glxgears is running with approx. 6000 FPS, but the atlantis screen save only has 2.5?

Frans

Edit: Hmmm, the UT2004 demo for AMD64 crashes my machine. Could be related to the wrong GL lib files, l'll keep you informed.

Last edited by fdm; 04-13-04 at 05:28 PM. Reason: UT2004demo
fdm is offline   Reply With Quote
Old 04-13-04, 02:50 PM   #11
fdm
Registered User
 
Join Date: Apr 2004
Posts: 7
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Quote:
Originally Posted by zander
The "Invalid module format" insmod error message is typically accompanied by a bitter complaint from the kernel;
The message in dmesg was: No module found in object

Thanks for you help,

Frans
fdm is offline   Reply With Quote
Old 04-13-04, 02:59 PM   #12
fdm
Registered User
 
Join Date: Apr 2004
Posts: 7
Default Re: Problem with nvidia driver on x86_64 2.6.5 kernel

Quote:
Originally Posted by mikygee
I know it's not a very good answer but the nvidia drivers work with 2.6.4, so why not sticking with this kernel ?
Well, I started with the 2.6.4 kernel, but unfortunately it had a problem with missing symbols in the kernel. After some searching I learned that this is related to some mysterious linker problem that hasn't been solved yet, but for which a work-around exists. The next day 2.6.5 got released, already including the work-around I needed.
With the proper patch for 2.6.4, I could go back, however with Phorem's solution available, I'd rather stick with 2.6.5.

Thanks for your suggestion,

Frans
fdm is offline   Reply With Quote
Reply


Thread Tools

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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Nvidia driver stopped working after X restart and Kernel taint msgs during boot mikejuni NVIDIA Linux 10 05-21-12 08:30 PM
Lucid rt kernel can't load latest nvidia driver module, but generic does. marcod NVIDIA Linux 0 05-02-12 06:23 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM

All times are GMT -5. The time now is 12:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.