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

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-02-08, 09:25 AM   #1
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Lightbulb NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Here are some compiled instructions to get this combo compiled and installed.
No idea if this will work on the 173.xx or older series.

I have combined these two patches and added an extra bit for the newer kernel:

http://www.nvnews.net/vbulletin/show...93&postcount=2
http://www.nvnews.net/vbulletin/showthread.php?t=116877

Then, to install, download the 177.13 driver and my nvidia-fixed.patch.txt
into the same directory (we'll use /tmp as an example).
After you have done so, do the following:

Code:
cd /tmp
sh NVIDIA-Linux-x86_64-177.13-pkg2.run -x
patch -i nvidia-fixed.patch.txt -p0
cd NVIDIA-Linux-x86_64-177.13-pkg2/
./nvidia-installer -an
Follow the standard nvidia install. I compiled all this from work remotely to a
Fedora rawhide box but after a reboot, X started no problems using the newly
compiled nvidia driver according to the Xorg log.
Attached Files
File Type: txt nvidia-fixed.patch.txt (12.6 KB, 1656 views)

Last edited by vallimar; 08-02-08 at 09:46 AM. Reason: Wrong link to one of the patches.
vallimar is offline   Reply With Quote
Old 08-02-08, 09:33 AM   #2
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Just to add some brief explanations on what the patch(es) do:

One of the patches strips out some XEN checks and such as the newer (Fedora at least) kernels include the XEN support by default now. The nvidia driver only has a problem when in a guest virtual machine, so these broke things as of 2.6.26 I believe.

The other patch resolves some changes done to smp and scheduling in the
2.6.27 kernel. The 'retry' argument was removed apparently in two of the functions.
I saw some suggestions to just lop off the last argument, that is incorrect as it's
the second-to-last that was removed. The provided patch does things in a cleaner
manner.

The additions I made had to do with the even newer change to exported symbols.
The PARAVIRT_OPS symbol was broken into several symbols, which were defined as
GPL ONLY - this broke the kernel module compilation. I have added a workaround to
this in the combined patch.
vallimar is offline   Reply With Quote
Old 08-02-08, 11:49 AM   #3
FrancoisVal
François
 
Join Date: Dec 2007
Posts: 8
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Unfortunately, this doesn't work yet in my case, the last error is the following:

Code:
  ld   --defsym pv_cpu_ops=0x --defsym pv_lock_ops=0x -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nv-kernel.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/os-agp.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/os-registry.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.13/work/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nvacpi.o
ld:--defsym pv_cpu_ops=0x: syntax error
I am using gentoo and the full build log is attached to this post.
Attached Files
File Type: log build.log (15.2 KB, 246 views)
FrancoisVal is offline   Reply With Quote
Old 08-02-08, 12:55 PM   #4
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

You probably don't need the extra symbols bits yet.
I needed them for the 2.6.27-rc1-git2 kernel from Fedora rawhide.
Either use the 2 individual patches I linked to, or comment out the
EXTRA_LDFLAGS bit in Makefile.kbuild in the patch, or post patch.

Either that or since you are using Gentoo, your System.map file
might have a different name scheme, in which case, edit the two
path checks to point to yours--instead of: /boot/System.map-$(shell uname -r)
vallimar is offline   Reply With Quote
Old 08-02-08, 06:42 PM   #5
uovobw
Registered User
 
Join Date: May 2006
Posts: 9
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by vallimar View Post
J
I saw some suggestions to just lop off the last argument, that is incorrect as it's
the second-to-last that was removed. The provided patch does things in a cleaner
manner.
i suppose that is the reason for some of the users complaining about lockups and so on, thank you very much!
-> http://nvnews.net/vbulletin/showpost...95&postcount=8
uovobw is offline   Reply With Quote
Old 08-04-08, 12:51 PM   #6
ellson
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

These patches work for me. Thanks very much.

(admin - can this thread be made sticky?)
ellson is offline   Reply With Quote
Old 08-06-08, 10:40 PM   #7
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

With the patch and kernel 2.6.27-rc2 I get the following error. It's complaining of "Unknown symbol init_mm".
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/.tmp_versions ; rm -f /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-2.6.27-rc2/scripts/Makefile.build obj=/usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv
(cat /dev/null; echo kernel//usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nvidia.ko > /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/modules.order
Building modules, stage 2.
make -f /usr/src/linux-2.6.27-rc2/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.27-rc2/Module.symvers -I /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/Module.symvers -o /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/Module.symvers -S -K /usr/src/linux-2.6.27-rc2/Module.markers -M /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/Module.markers -w -s
WARNING: could not find /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/.nv-kernel.o.cmd for /usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nv-kernel.o
WARNING: "init_mm" [/usr/src/NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/nvidia.ko] undefined!
NVIDIA: left KBUILD.
PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/local/bin:/usr/local/mybin:/usr/lib/java/jre/bin:/opt/netbeans/bin:/bin:/sbin" modprobe nvidia && \
echo "nvidia.ko installed successfully.";
FATAL: Error inserting nvidia (/lib/modules/2.6.27-rc2-smp/kernel/drivers/video/nvidia.ko): Unknown symbol in module, or unknown parameter (see dmesg)
make[1]: *** [package-install] Error 1
make: *** [install] Error 2

From dmesg:-
warning: process `nvidia-installe' used the deprecated sysctl system call with 1.23.
warning: process `nvidia-installe' used the deprecated sysctl system call with 1.23.
nvidia: module license 'NVIDIA' taints kernel.
nvidia: Unknown symbol init_mm
warning: process `nvidia-installe' used the deprecated sysctl system call with 1.23.
nvidia: Unknown symbol init_mm
siddly is offline   Reply With Quote
Old 08-07-08, 09:06 AM   #8
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Seems to be a new warning with 2.6.27-rc2 - I'm getting it too.
However, my module installs...

From "dmesg":
Quote:
warning: process `nvidia-installe' used the deprecated sysctl system call with 1.23.
warning: process `nvidia-installe' used the deprecated sysctl system call with 1.23.
nvidia: module license 'NVIDIA' taints kernel.
Symbol init_mm is marked as UNUSED, however this module is using it.
This symbol will go away in the future.
Please evalute if this is the right api to use and if it really is, submit a report the
linux kernel mailinglist together with submitting your code for inclusion.
nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
nvidia 0000:01:00.0: setting latency timer to 64
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 177.13 Tue Jun 10 16:42:55 PDT 2008
From "lsmod | grep nvidia":
Quote:
nvidia 7647440 26
i2c_core 29848 2 nvidia,i2c_i801
Don't know why yours is failing, hopefully the nvidia folks are paying attention
though because its woefully obvious they need to be working on a driver refresh
for the upcoming kernel.
vallimar is offline   Reply With Quote

Old 08-07-08, 09:17 AM   #9
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Did a manual kmod compile to compare, and I get this instead of 'undefined':
Quote:
WARNING: modpost: module nvidia.ko uses symbol 'init_mm' marked UNUSED
Not sure why the difference, I'm using kernel-2.6.27-0.237.rc2.fc10.x86_64 from
RedHat/Fedora Rawhide. Maybe the RH folks patch that call to mark it UNUSED instead
of removing it altogether? I don't feel like digging through the srpm to find out....
vallimar is offline   Reply With Quote
Old 08-07-08, 10:15 AM   #10
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by vallimar View Post
Did a manual kmod compile to compare, and I get this instead of 'undefined':

Not sure why the difference, I'm using kernel-2.6.27-0.237.rc2.fc10.x86_64 from
RedHat/Fedora Rawhide. Maybe the RH folks patch that call to mark it UNUSED instead
of removing it altogether? I don't feel like digging through the srpm to find out....
It's UNUSED in the vanilla kernels since 2.6.26 I think, but has only caused a problem since 2.6.26-git right through to latest.
From 2.6.27-rc1-git2
------------------------------------------------------------
arch/x86/kernel/init_task.c:EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */

barrabas:/usr/src/linux-2.6.27-rc2 # grep init_mm arch/x86/kernel/init_task.c
struct mm_struct init_mm = INIT_MM(init_mm);
EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */
siddly is offline   Reply With Quote
Old 08-07-08, 12:14 PM   #11
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Check your System.map file to see if it has init_mm - if not, then it somehow
got stripped from your kernel build, I'm not sure how to fix that if so.
vallimar is offline   Reply With Quote
Old 08-07-08, 06:43 PM   #12
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by vallimar View Post
Check your System.map file to see if it has init_mm - if not, then it somehow
got stripped from your kernel build, I'm not sure how to fix that if so.
It's there for all my kernels
# l System.map
lrwxrwxrwx 1 root root 25 2008-08-08 00:40 System.map -> System.map-2.6.27-rc2-smp

# grep init_mm /boot/System.map-2.6.27-rc2-smp
ffffffff80630020 D init_mm
siddly 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
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
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
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM
NVIDIA kernel not loading on boot-up, but insmod loads it Kyle NVIDIA Linux 3 09-10-02 12:01 AM

All times are GMT -5. The time now is 04:49 PM.


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