Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Forcefully SOLVED] - Xorg 6.8.2-r1 + nvidia 1.0.7174 issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
sectoid
n00b
n00b


Joined: 05 Jun 2004
Posts: 44
Location: 127.0.0.1

PostPosted: Tue Apr 12, 2005 8:26 pm    Post subject: [Forcefully SOLVED] - Xorg 6.8.2-r1 + nvidia 1.0.7174 issue Reply with quote

I performed a fresh installation with the 2005.0 live cd and set the system up for udev usage.
I have GCC 3.4.3-20050110-r2 recompiled 3 times(3rd time because of emerge -e system).
I emerged x11-base/xorg-x11-6.8.2-r1 with no problems.
When I emerged nvidia-kernel & nvidia-glx, one msg stuck out at me "nvidia.ko): Invalid module format"
:arrow: Which is basically the same message Xorg is giving me when I run startx:

...
FATAL: Error inserting nvidia (/lib/modules/2.6.11-gentoo-r6/video/nvidia.ko): Invalid module format
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.
...

:arrow: Now when I check the nvidia-installer.log file from an earlier attempt-- the module was built fine but:

...
-> done.
-> 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 'kerne-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: error inserting './usr/src/nv/nvidia.ko': -1 Invalid module format.
-> Kernel messages:
...
nvidia: version magic '2.6.11-gentoo-r6 SMP preempt K7 gcc-3.4' should be '2.6.11-gentoo-r6 SMP preempt K7 gcc-3.3'
...

I have only one version of the kernel source installed (being a fresh installation and all). Which is 2.6.11-gentoo-r6 via gentoo-sources.
:arrow: From the Xorg.0.log logfile:

...
(II) Loading extension X-Resource
(II) LoadModule: "glx"
(II) Loading /usr/lib/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.7174
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/modules/drivers/nvidia_drv.o
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.7174
Module class: XFree86 Server Extension
...
(II) NVIDIA X Driver 1.0-7174 Tue Mar 22 06:48:37 PST 2005
(II) NVIDIA Unified Driver for all NVIDIA GPUs
(II) Primary Device is: PCI 03:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset NVIDIA GPU found
...

(I noticed that the other modules being loaded, like the mouse, say compiled for 6.8.2-- I do have module versioning support enabled in the kernel)

Anyone have any ideas on how to get the nvidia module to compile correctly so that Xorg will load it?
TIA


Last edited by sectoid on Wed Apr 13, 2005 1:17 am; edited 1 time in total
Back to top
View user's profile Send private message
sectoid
n00b
n00b


Joined: 05 Jun 2004
Posts: 44
Location: 127.0.0.1

PostPosted: Tue Apr 12, 2005 10:27 pm    Post subject: Reply with quote

I was able to get the module to load despite it saying the file magic didn't match. But in truth the kernel has been compiled under gcc 3.4 not 3.3 as the module complains about. Since I'm using UDev and not devfs, I removed two entries that were set to =y in my .config file:
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
so i set these to 'n'.

I recompiled the kernel with
make clean && make && make modules_install
copied the kernel/System.map/.config to the mounted /boot
rebooted and tried modprobe nvidia:
FATAL: Error inserting nvidia (/lib/modules/2.6.11-gentoo-r6/video/nvidia.ko): Invalid module format
but with modprobe --force nvidia:
# _
so at least now I can force it to load-- how do I force load a kernel module during boot?

:idea: :arrow: Edit /etc/modules.autoload.d/kernel-2.6 and place in there:
nvidia --force
with just 'nvidia' an error occurs and the module is refused.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5021
Location: Dark side of the mood

PostPosted: Sun Apr 24, 2005 2:16 pm    Post subject: Reply with quote

I had that error too after I migrated GCC from version 3.3 to 3.4.

Here's how (I think) the error went away:

1. Recompile your kernel with GCC 3.4
2. Re-emerge nvidia-kernel, nvidia-glx
3. Re-emerge nvidia-settings if you have it.
4. Reboot

I didn't have to --force loading nvidia module. Both the module and the kernel must be compiled with the same version of GCC.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
sectoid
n00b
n00b


Joined: 05 Jun 2004
Posts: 44
Location: 127.0.0.1

PostPosted: Mon Apr 25, 2005 10:50 pm    Post subject: Reply with quote

Well I unmerged gentoo-sources, nvidia-kernel & nvidia-glx.. removed the remaining .ko modules, rebooted, and recompiled all 3 of those.. and rebooted again..
But for some reason it still did not work and the modules still want --force appended to them.
Judging from the msgs I received earlier, the modules are being identified as being compiled with 3.4.3 but claims the kernel is wanting 3.3 modules, though the kernel has been completely recompiled with 3.4.3 (and installed/booted from the /boot partition)
Other than the --force addition, everything seems to be running just fine.
Back to top
View user's profile Send private message
gruppus
n00b
n00b


Joined: 15 Mar 2005
Posts: 5

PostPosted: Tue Apr 26, 2005 2:31 am    Post subject: Reply with quote

How are all your 3D apps runnung? Are there any stability issues?

I ask because I am having the exact same problem. 6629, 7174 all give me the exact same error.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5021
Location: Dark side of the mood

PostPosted: Tue Apr 26, 2005 1:17 pm    Post subject: Reply with quote

sectoid wrote:
Well I unmerged gentoo-sources, nvidia-kernel & nvidia-glx.. removed the remaining .ko modules, rebooted, and recompiled all 3 of those.. and rebooted again..
But for some reason it still did not work and the modules still want --force appended to them.
Judging from the msgs I received earlier, the modules are being identified as being compiled with 3.4.3 but claims the kernel is wanting 3.3 modules, though the kernel has been completely recompiled with 3.4.3 (and installed/booted from the /boot partition)
Other than the --force addition, everything seems to be running just fine.

To be sure you clean compiled modules, you have to run make mrproper (I think). Otherwise emerge -C (or --unmerge) doesn't remove compiled modules; they're still there. Or just
Code:
rm -r /usr/src/linux
USE="symlink" emerge gentoo-sources


There are also a couple of checkpoints:
- What does gcc-config -l say?
- Have you run env-update && . /etc/profile after - if needed - switching to GCC 3.4?
- Have you run modprobe -r nvidia before emerging the drivers?
- Have you run modules-update (not sure it matters more than the above)?

As I'm with my Gentoo box right now, other things migth come to my mind later on.

Hope this helps.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
sectoid
n00b
n00b


Joined: 05 Jun 2004
Posts: 44
Location: 127.0.0.1

PostPosted: Thu Apr 28, 2005 11:24 pm    Post subject: Reply with quote

gruppus wrote:
How are all your 3D apps runnung? Are there any stability issues?

I ask because I am having the exact same problem. 6629, 7174 all give me the exact same error.


Runs just fine.. Haven't had any system/program crashes while using GL programs (or anything else relating to the forcefully injected kernel modules)-- seems stable. And I leave my machine running all the time (this being the system I use the most).
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Sep 20, 2005 5:09 pm    Post subject: Reply with quote

Moved from Desktop Environments to Duplicate Threads in favour of 'modprobe nvidia' fails.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
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