LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-09-2008, 10:11 PM   #1
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Mageia
Posts: 46

Rep: Reputation: 15
Problem compiling nvidia drivers under Mandriva 2008.0


I'm trying to compile the latest nvidia drivers on a new laptop and I'm running into some problems. The laptop is an Acer Aspire 5520-5579 with an nvidia 7000M video system (chipset is nvidia 610M/MCP67-MV). I am running the 32-bit version of Mandriva 2008.0. At the moment I can't tell if it's a Mandriva problem or an nvidia problem. When I try to run the "NVIDIA-Linux-x86-169.12.pkg1.run" everything appears to compile, but when it tries to load the kernel module during the installation process I get the following error:

Code:
ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most
frequently when this kernel module was built against the wrong or improperly 
configured kernel sources, with a version of gcc that differs from the one 
used to build the target kernel, or if a driver such as rivafb/nvidiafb is 
present and prevents the NVIDIA kernel module from obtaining ownership 
of the NVIDIA graphics device(s).
As far as I can tell, I have the correct kernel sources installed and they are configured properly:

Code:
localhost ~ $ uname -r
2.6.22.18-laptop-1mdv

localhost ~ $ rpm -qa|grep kernel
kernel-source-2.6.22.18-1mdv-1-1mdv2008.0
kernel-laptop-latest-2.6.22.18-1mdv2008.0
kernel-laptop-2.6.22.18-1mdv-1-1mdv2008.0
kernel-laptop-2.6.22.9-1mdv-1-1mdv2008.0
kernel-source-latest-2.6.22.18-1mdv2008.0
And the version of gcc that's being used appears to be the same as the one that was used to compile the kernel:

Code:
localhost ~ $ cat /proc/version
Linux version 2.6.22.18-laptop-1mdv (qateam@mercury.mandriva.com) 
(gcc version 4.2.2 20071128 (prerelease) (4.2.2-3.1mdv2008.0)) 
#1 SMP Mon Feb 11 15:20:57 EST 2008

localhost ~ $ gcc -v
Using built-in specs.
Target: i586-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr 
--libexecdir=/usr/lib --with-slibdir=/lib 
--mandir=/usr/share/man --infodir=/usr/share/info 
--enable-checking=release 
--enable-languages=c,c++,ada,fortran,objc,obj-c++,java 
--host=i586-mandriva-linux-gnu --with-cpu=generic 
--with-system-zlib --enable-threads=posix 
--enable-shared --enable-long-long 
--enable-__cxa_atexit --disable-libunwind-exceptions 
--enable-clocale=gnu --enable-java-awt=gtk 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
--enable-gtk-cairo --disable-libjava-multilib 
--enable-ssp --disable-libssp
Thread model: posix
gcc version 4.2.2 20071128 (prerelease) (4.2.2-3.1mdv2008.0)
I don't think that either rivafb or nvidiafb are running, but just to be sure I tried doing "modprobe -r rivafb" and "modprobe -r nvidiafb" before running the installer and it still fails. Ironically, I was able to get everything to compile when I was running 64-bit Mandriva 2008.0 and it worked great, but I switched back to the 32-bit version because I wanted compatibility with other software.

Mandriva does offer an rpm package called "x11-driver-video-nvidia-current-169.12-1mdv2008.0.i586.rpm" that is obviously supposed to provide the precompiled drivers, but that package doesn't seem to work for me either. It installs ok, but it doesn't provide all the files it says it comes with; namely the kernel module and libraries. The setup programs like nvidia-settings are also missing.

The only thing I did notice (and I don't know if this is really a problem or not) is the following "error" (or maybe it's a warning) that appears near the end of nvidia-installer.log:

Code:
nvidia: version magic '2.6.22.18-1mdvcustom mod_unload 686 ' should be '2.6.22.18-laptop-1mdv SMP mod_unload 686 '
nvidiafb: cannot request PCI regions
Does anyone have any ideas about what's causing my problems? I really need to get this nvidia driver working; without it I have to use the generic vesa driver (the nv driver doesn't work with this particular hardware configuration). There's always a chance that it's a dumb problem on my part since I'm still kind of new to some of this stuff. Thanks.

Last edited by 81bones; 03-09-2008 at 10:18 PM. Reason: Adding better tags
 
Old 03-10-2008, 02:16 AM   #2
SkittleLinux18
LQ Newbie
 
Registered: Mar 2008
Location: Provo, UT
Distribution: Linux Mint 4.0 KDE Edition
Posts: 12

Rep: Reputation: 0
You should just be able to install the drivers via package manager. Mandriva's is a little different, but it works. Open up "Install/Remove Programs" from your kde start menu and do a search for video card drivers.

If it's your first time opening that program, you'll have to add some media. Just follow the options and click yes until you come to a screen with a list of mirror sites. Selecte the one(s) you want and you should be good to go.

Good Luck!
 
Old 03-10-2008, 05:55 AM   #3
Ixthusdan
Member
 
Registered: Jun 2006
Location: Mishawaka, IN USA
Distribution: Open Suse
Posts: 194
Blog Entries: 1

Rep: Reputation: 32
This error is typical when you have installed the wrong kernel sources. Make sure that the sources match the running kernel. I would suggest using Easy-Urpmi at http://easyurpmi.zarb.org to set up your software media and then in a console simply type "urpmi nvidia". Urpmi will select and install the correct sources along with the driver.
 
Old 03-10-2008, 06:01 AM   #4
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 238

Rep: Reputation: 55
I believe that on Mandriva, you should use kernel-laptop-devel for compiling third party drivers, not the full kernel sources (which are intended to be used only when re-compiling the kernel). Install the kernel-laptop-devel-latest package to ensure that the kernel-laptop-devel package is always updated automatically whenever you update the kernel.

Jim
 
Old 03-10-2008, 12:05 PM   #5
SkittleLinux18
LQ Newbie
 
Registered: Mar 2008
Location: Provo, UT
Distribution: Linux Mint 4.0 KDE Edition
Posts: 12

Rep: Reputation: 0
And be careful, because Mandriva 2008 is notorious for breaking when kernels are upgraded and other updates and drivers are added. You will probably be fine, I just wanted to give you the heads up.
 
Old 03-10-2008, 06:26 PM   #6
Ixthusdan
Member
 
Registered: Jun 2006
Location: Mishawaka, IN USA
Distribution: Open Suse
Posts: 194
Blog Entries: 1

Rep: Reputation: 32
I am not sure that Mandriva is known to "break" with kernel upgrades any more than any other distro. Naturally, an nvidia driver must be compiled for a new kernel; dkms handles this quite nicely. It causes the first boot to last a little longer, but all is well afterwards. I would always recommend doing a kernel upgrade separately from other upgrades.
 
Old 03-10-2008, 06:50 PM   #7
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Mageia
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for all the replies. Turns out that I didn't have the right source packages installed as jkerr82508 suggested. After installing "kernel-laptop-devel-latest" the drivers compiled fine and everything works great. I'm still not sure why the Mandriva rpm of the drivers didn't work though. I have urpmi configured correctly (use it all the time) and the package did install -- it places documentation in the /usr/share/doc/x11-driver-video-nvidia directory and leaves some other files in the apporpriate places, but the main files (like the binaries and the modules) are no where to be found. Weird.

Anyway, there's just one other quick thing (now that the drivers work). There are still several devices listed in my hardware control center with names like "unknown device 0547" or "unknown device 0563." Most of them seem to be properly categorized under a type of hardware (devices 0547, 0548, 0541, 0561, and 0563 are all under Bridges and System Controllers, and device 054c is under Ethernet Card, for example). But there's at least one that is completely unknown; it's only listed as "unknown device 0543." They all seem to be related to the nvidia chipset. Is there any way to configure these devices so they are properly recognized? Particularly device 0543. Thanks again!
 
Old 03-11-2008, 05:46 AM   #8
Ixthusdan
Member
 
Registered: Jun 2006
Location: Mishawaka, IN USA
Distribution: Open Suse
Posts: 194
Blog Entries: 1

Rep: Reputation: 32
Install the linux nforce drivers. On my systems, "urpmi nvidia" always installs both chip set and video card drivers.
 
Old 03-11-2008, 07:23 AM   #9
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Mageia
Posts: 46

Original Poster
Rep: Reputation: 15
I'm pretty sure the nforce drivers are already installed. The SATA controller is using the ahci module, my IDE controller is using the amd74xx module, my audio system is using the snd_hda_intel module, and my ethernet controller is using the forcedeth module, and those are all nvidia nforce modules. It's just that for some reason a lot of the devices are listed as unknown. Perhaps this chipset is a little too new to be fully recognized? I also checked for any nvidia packages related to the nforce drivers using urpmi and rpmfind.net, but all I could find were the packages for the video drivers.
 
  


Reply

Tags
nvidia, nvidia drivers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to compiz on nvidia 7300gs, mandriva-2008 rushadrenaline Linux - Software 2 02-17-2008 05:21 AM
LXer: The Perfect Desktop - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-16-2007 07:20 PM
LXer: The Perfect Server - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-11-2007 09:41 PM
Problem with install nVidia drivers on Mandriva 07 ocikaj Linux - Software 2 08-19-2007 09:37 AM
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM


All times are GMT -5. The time now is 09:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration