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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-20-04, 04:08 PM   #1
snaboofypop
Registered User
 
Join Date: Aug 2003
Posts: 29
Default 2.6.9-bk4 breaks 6111 vmalloc patch

Hi. I realise that I'm running an experimental kernel, but I've had success building test kernels up to and including 2.6.9 and 2.6.9-bk3 (both work fine with the nvidia 6111 driver, when I also add a vmalloc roll-back patch (so the nvidia 6111 drivers will work). Unfortunately with 2.6.9-bk4 simply rolling back changes to vmalloc no longer work (the kernel build doesn't complain, but when I try to install the 6111 driver it complains that it's looking for source files...). I've tried building twice (and yes, I made sure that I ran the vmalloc rollback patch), without success. I can always go back to 2.6.9-bk3 (It's what I'm using right now). I'm running FC2, my card is a Ti4200 with 128MB. Thanks in advance.
snaboofypop is offline   Reply With Quote
Old 10-20-04, 05:57 PM   #2
zyphr
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: 2.6.9-bk4 breaks 6111 vmalloc patch

I got it working under debian

I used the patch included in some gentoo patch (nvidia-kernel-1.0.6111-r3.tar.bz2), which I downloaded from:
http://www.nvnews.net/vbulletin/showthread.php?t=38827

first do a:
NVIDIA-Linux-x86-1.0-6111-pkg1.run --extract-only

then:
apply the following 2 patches: (both are included in the .bz2 from the file above)
fix_pci_find_class.patch
vmalloc-reserve.diff

works fine for me with kernel-2.6.9-bk4
zyphr is offline   Reply With Quote
Old 10-21-04, 04:36 AM   #3
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default Re: 2.6.9-bk4 breaks 6111 vmalloc patch

I am using 2.6.9 release (not the -final nonsense) in the Fedora rawhide kernel 2.6.9-1-637 and do nothing other than this:

Code:
--- nv.c.orig   2004-10-18 13:25:45.825785765 -0700
+++ nv.c        2004-10-12 20:53:33.957353480 -0700
@@ -19,6 +19,9 @@
 MODULE_ALIAS_CHARDEV_MAJOR(NV_MAJOR_DEVICE_NUMBER);
 #endif

+/* fix for 2.6.9-rc# kernels where __VMALLOC_RESERVE is not exported */
+#define __VMALLOC_RESERVE (128 << 20)
+
 /*
  * our global state; one per device
  */
A hint: install the driver with one kernel (your older one is fine, an FC2 installed rpm kernel where you have kernel-source or kernel-sourcecode). Then use the --extract-only option to the driver, patch the source it extracts. Boot to your new kernel and do a make module in the extracted sources directory. For this to work you need your kernel source tree available from where you built the kernel, and it needs to be configured with your config. You don't need to reinstall the glx libraries if you have them working with another kernel, you only need to build the module.

This is a better way to go about the entire process btw, I'll cross link you to FedoraForum on this one:
http://www.fedoraforum.org/forum/sho...7&postcount=76
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.
LordMorgul is offline   Reply With Quote
Old 10-21-04, 08:47 AM   #4
Papol
Registered User
 
Join Date: Dec 2003
Posts: 31
Default Re: 2.6.9-bk4 breaks 6111 vmalloc patch

I ran into the same thing, but a dmesg quickly showed that since 2.6.9-bk4 (through 6 at least), that nv.c in the 6111 pkg searches for pci_find_class (this is in kernel source under ./drivers/pci/search.c.

Its been replaced with "pci_get_class", so change nv.c in 3 or 4 places where it occurs as follows:

// dev = pci_find_class(class << 8, NULL);
dev = pci_get_class(class << 8, NULL);

and make the entire package again (if you like the .run files) and run it. It works fine on -bk4, 5, and today's.

PS: To make this use an executable that contains something like this but for your setup:

sh NVIDIA-Linux-x86-1.0-6111-pkg1/usr/bin/makeself.sh \
--target-os Linux --target-arch x86 \
NVIDIA-Linux-x86-1.0-6111-pkg1 \
6111-bk.run \
"NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-6111" \
./nvidia-installer

GL,

Papol
Papol 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


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


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