Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia: invalid module format? [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 2:43 am    Post subject: Nvidia: invalid module format? [SOLVED] Reply with quote

Im using 2.6.7 vanilla from portage and emerged nvidia-kernel and nvidia-glx .
I am also using Xorg and udev. (Don't know if that matters?)

Well after I emerged that I did "lsmod" and nothing was there.. I expected to just see "nvidia" but nothing was there..

So I tried to load it manually.. and it said invalid format..

Any ideas?


Last edited by miqorz on Wed Jul 28, 2004 10:16 am; edited 1 time in total
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 2:56 am    Post subject: Reply with quote

Allright using nvidia-kernel and nvidia-glx from ~x86 seems to let it load fine but Xorg cant use it.. startx just fails..

Reading posts about this just confuses me more.. heh
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 3:32 am    Post subject: Reply with quote

Here's a part of my Xorg.0.log

Code:

(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(--) NVIDIA(0): Linear framebuffer at 0xD8000000
(--) NVIDIA(0): MMIO registers at 0xE4000000
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
    at http://wiki.X.Org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 5:06 am    Post subject: Reply with quote

Could a mod move this to Desktop Enviroments? I think it's more relevant over there and just may get a better responce.
Back to top
View user's profile Send private message
phranzee
Guru
Guru


Joined: 22 Nov 2003
Posts: 397
Location: katowice/pl

PostPosted: Tue Jul 27, 2004 6:22 am    Post subject: Reply with quote

run
Code:

    mknod -m 660 /dev/nvidia0 c 195 0 > /dev/null 2>&1
    chown root:video /dev/nvidia0 > /dev/null 2>&1
    mknod -m 660 /dev/nvidiactl c 195 255 > /dev/null 2>&1
    chown root:video /dev/nvidiactl > /dev/null 2>&1
before X. also chceck NVmakedevices.sh script. it's udev fault
_________________
signature fault
post dumped ;]
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 6:38 am    Post subject: Reply with quote

That didn't seem to work.. thanks though.
Back to top
View user's profile Send private message
phranzee
Guru
Guru


Joined: 22 Nov 2003
Posts: 397
Location: katowice/pl

PostPosted: Tue Jul 27, 2004 6:55 am    Post subject: Reply with quote

miqorz wrote:
That didn't seem to work.. thanks though.
provide more info on this error. i use xorg, udev and drivers 5336 work fine with above 'script' :)
_________________
signature fault
post dumped ;]
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 7:03 am    Post subject: Reply with quote

I don't know what more I can add..

I'm using udev and nvidia drivers from ~x86.. xorg from regular x86...

development-sources kernel..

My name is in the "video" group in /etc/group.. *shrugs*
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Tue Jul 27, 2004 10:25 am    Post subject: Reply with quote

The old (4496) nvidia drivers will fail with the "invalid module format" error message on kernels later than about 2.6.5. This is because they still use the old 2.4 module format which was abandoned in the recent 2.6 kernels.

The solution was to upgrade to either 5336 (which didn't work on my computer anyhow), or to version 6109.

However, if you emerge nvidia-kernel, make sure that you also emerge nvidia-glx, and that the same version is being installed for each. So, if you install the 6109 kernel module, make sure you install nvidia-glx version 6109, or you will get errors!

Finally, exit X, and rmmod nvidia, then start up X again, and hopefully it should work!
Back to top
View user's profile Send private message
Alapan
n00b
n00b


Joined: 21 Jul 2004
Posts: 43

PostPosted: Tue Jul 27, 2004 11:24 am    Post subject: Reply with quote

I had the same problem recently - when I realised I had not run "modprobe nvidia" after all the updates. Have you done this? Just a thought ...
Back to top
View user's profile Send private message
placeholder
Advocate
Advocate


Joined: 07 Feb 2004
Posts: 2500

PostPosted: Tue Jul 27, 2004 12:53 pm    Post subject: Reply with quote

The sym link /usr/src/linux points to the right kernel sources, correct?
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 2:52 pm    Post subject: Reply with quote

No offence but did anyone read this thread though, heh.

I got it to load with using the updated driver in ~x86 but now it won't startx.

And yes linux -> linux-2.6.7
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Tue Jul 27, 2004 11:44 pm    Post subject: Reply with quote

Sorry.. but bump..

I can't seem to figure this out on my own..
Back to top
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Tue Jul 27, 2004 11:55 pm    Post subject: Reply with quote

Check if you load X.org module 'glx' - it's required.
Also try:
opengl-update nvidia
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Wed Jul 28, 2004 12:16 am    Post subject: Reply with quote

Yes I am loading glx :)

I just noticed when I startx it says something like (I'm paraphrasing..)

API mismatch kernel module is ... (version) .. and X module is ... (version)...

It makes it sound like the nvidia version is too new for my X o_O
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Wed Jul 28, 2004 3:47 am    Post subject: Reply with quote

Feh. I give up.. I just wont use gentoo / linux for a few more months...

it seems like once one issue is cleared up and I think i can get a good desktop system working again..

Something like this happens.
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Wed Jul 28, 2004 6:42 am    Post subject: Reply with quote

Grr.. I hope no one gets mad at all this bumping..

I just don't want to give up on this..

Here's everything I've tried..

I've tried like 3 different drivers. I've disabled 4k stacks.

I'm back at step one where nvidia won't load..

If I go to nvidia from ~x86 it WILL load but X won't start with it..

X works with the nv driver but that's really slow.. =\
Back to top
View user's profile Send private message
b-llwyd
Guru
Guru


Joined: 24 Jul 2002
Posts: 302
Location: Uppsala, Sweden

PostPosted: Wed Jul 28, 2004 9:56 am    Post subject: Reply with quote

grep EE /var/log/Xorg.0.log ... there could be some hidden explanation in there, but it sounds like you might have a config problem in xorg.conf
Back to top
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Wed Jul 28, 2004 10:00 am    Post subject: Reply with quote

I had the same problem with the Kernel version not matching driver version and it turned out that there were two versions of the nvidia drivers in /lib/modules/2.6.X/video directory (IIRC there was nvidia.o and nvidia.ko). I renamed them both and re-emerged the latest nvidia drivers and used modprobe to load it.
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Wed Jul 28, 2004 10:15 am    Post subject: Reply with quote

Celtis wrote:
I had the same problem with the Kernel version not matching driver version and it turned out that there were two versions of the nvidia drivers in /lib/modules/2.6.X/video directory (IIRC there was nvidia.o and nvidia.ko). I renamed them both and re-emerged the latest nvidia drivers and used modprobe to load it.



... I love you ....

This worked first try ... wow man! Thank you!
Back to top
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Wed Jul 28, 2004 10:20 am    Post subject: Reply with quote

miqorz wrote:

... I love you ....

This worked first try ... wow man! Thank you!

:lol: Glad it worked, I trust this means you'll be sticking with Gentoo a bit longer then!
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Wed Jul 28, 2004 10:26 am    Post subject: Reply with quote

You bet! I'm still customizing everything to get "perfect" but wow this was the ONE thing bugging me! 8)
Back to top
View user's profile Send private message
sammy
n00b
n00b


Joined: 28 Jul 2004
Posts: 1
Location: Kyiv, Ukraine

PostPosted: Wed Jul 28, 2004 2:07 pm    Post subject: NVidia Reply with quote

I had such a problem.
I have merged 2.6.5 kernel & nvidia kernel 1.0.4496 + nv glx.
It is working for now(QIII seems to work good).
A new version of kernel is released every mounth or week or day but
drivers & soft....
Back to top
View user's profile Send private message
lsiden
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2003
Posts: 116
Location: Ann Arbor, MI, USA

PostPosted: Wed Jul 28, 2004 3:33 pm    Post subject: Reply with quote

Celtis wrote:
I had the same problem with the Kernel version not matching driver version and it turned out that there were two versions of the nvidia drivers in /lib/modules/2.6.X/video directory (IIRC there was nvidia.o and nvidia.ko). I renamed them both and re-emerged the latest nvidia drivers and used modprobe to load it.


Can you explain your response a bit further? What do you mean by "I renamed them both"? You mean you renamed them to something other than "nvidia.x" so that "modprobe nvidia" would no longer find them?

Next, what do you mean by "remerged nvidia drivers". Do you mean you did "emerge nvidia-kernel" again?

I tried doing "emerge -C nvidia-kerel", then re-merging, but to no avail.

Sorry to bother you.
_________________
-ls

"In Heaven, if everyone is supposed to be happy, who cleans the toilets?"
--Jordan Siden, age 10
Back to top
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Wed Jul 28, 2004 3:43 pm    Post subject: Reply with quote

lsiden wrote:
Can you explain your response a bit further?
Sure ;)
lsiden wrote:
What do you mean by "I renamed them both"?
As I said, in that directory I had two files (they were called nvidia.ko and nvidia.o if I remember correctly). One was the new driver while one was from the old driver that, for some reason, hadn't been removed when the old nvidia drivers were unmerged. I told miqorz to rename them because I didn't want to be the one responsible for telling him to delete them only to find that he still needed them (you should always keep a backup just in case ;) ).
lsiden wrote:
You mean you renamed them to something other than "nvidia.x" so that "modprobe nvidia" would no longer find them?
Correct

lsiden wrote:
Next, what do you mean by "remerged nvidia drivers". Do you mean you did "emerge nvidia-kernel" again?
Yes.

lsiden wrote:
I tried doing "emerge -C nvidia-kerel", then re-merging, but to no avail.
As I said, the old driver was left over when the old package was unmerged, so running emerge -C nvidia-kernel did nothing as the driver *should* have gone (as far as portage was concerned).

To make sure you have the right version of the nvidia drivers, do "modprobe nvidia" then "lsmod". You should see that the nVidia drivers size is somewhere in the region of 4819508 (for comparision, the 5336-r2 drivers were 2073640)

lsiden wrote:
Sorry to bother you.
No bother at all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum