View previous topic :: View next topic |
Author |
Message |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 2:43 am Post subject: Nvidia: invalid module format? [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 2:56 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 3:32 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 5:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
phranzee Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1187072809473959c78064e.jpg)
Joined: 22 Nov 2003 Posts: 397 Location: katowice/pl
|
Posted: Tue Jul 27, 2004 6:22 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 6:38 am Post subject: |
|
|
That didn't seem to work.. thanks though. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
phranzee Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1187072809473959c78064e.jpg)
Joined: 22 Nov 2003 Posts: 397 Location: katowice/pl
|
Posted: Tue Jul 27, 2004 6:55 am Post subject: |
|
|
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' ![Smile :)](images/smiles/icon_smile.gif) _________________ signature fault
post dumped ;] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 7:03 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bennettp Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/272902448427ca532a7644.png)
Joined: 22 Feb 2004 Posts: 335 Location: on my back and tumbling
|
Posted: Tue Jul 27, 2004 10:25 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Alapan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jul 2004 Posts: 43
|
Posted: Tue Jul 27, 2004 11:24 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
placeholder Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Tue Jul 27, 2004 12:53 pm Post subject: |
|
|
The sym link /usr/src/linux points to the right kernel sources, correct? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 2:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Tue Jul 27, 2004 11:44 pm Post subject: |
|
|
Sorry.. but bump..
I can't seem to figure this out on my own.. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
AstralStorm Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/145417507340b5ad4f29e43.png)
Joined: 06 Nov 2003 Posts: 80 Location: /dev/null
|
Posted: Tue Jul 27, 2004 11:55 pm Post subject: |
|
|
Check if you load X.org module 'glx' - it's required.
Also try:
opengl-update nvidia |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Wed Jul 28, 2004 12:16 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Wed Jul 28, 2004 3:47 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Wed Jul 28, 2004 6:42 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
b-llwyd Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/3e4209d33d4f789f326b1.jpg)
Joined: 24 Jul 2002 Posts: 302 Location: Uppsala, Sweden
|
Posted: Wed Jul 28, 2004 9:56 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Celtis l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1262362168404dfaa2e665f.jpg)
Joined: 05 Jul 2003 Posts: 737
|
Posted: Wed Jul 28, 2004 10:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Wed Jul 28, 2004 10:15 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Celtis l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1262362168404dfaa2e665f.jpg)
Joined: 05 Jul 2003 Posts: 737
|
Posted: Wed Jul 28, 2004 10:20 am Post subject: |
|
|
miqorz wrote: |
... I love you ....
This worked first try ... wow man! Thank you! |
Glad it worked, I trust this means you'll be sticking with Gentoo a bit longer then! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
miqorz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10152806574178ea3606782.jpg)
Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Wed Jul 28, 2004 10:26 am Post subject: |
|
|
You bet! I'm still customizing everything to get "perfect" but wow this was the ONE thing bugging me! ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sammy n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Jul 2004 Posts: 1 Location: Kyiv, Ukraine
|
Posted: Wed Jul 28, 2004 2:07 pm Post subject: NVidia |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lsiden Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_bender.gif)
Joined: 09 Feb 2003 Posts: 116 Location: Ann Arbor, MI, USA
|
Posted: Wed Jul 28, 2004 3:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Celtis l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1262362168404dfaa2e665f.jpg)
Joined: 05 Jul 2003 Posts: 737
|
Posted: Wed Jul 28, 2004 3:43 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|