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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-09-08, 10:37 PM   #1
toylet
Registered User
 
Join Date: Jul 2008
Location: Hung Hom, Kowloon
Posts: 10
Default Kernel 2.6.27 patch for legacy driver 96.43.07

Well, Linux kernel 2.6.27 has just been released. My question is a bit too early.
toylet is offline   Reply With Quote
Old 10-09-08, 11:20 PM   #2
bbj
Registered User
 
Join Date: Oct 2008
Posts: 3
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Quote:
Originally Posted by toylet View Post
Well, Linux kernel 2.6.27 has just been released. My question is a bit too early.
You may want to try some patch like this one (it works fine for me):

$ cat nvidia-96.43.07-for-2.6.27.patch
Code:
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/nv.c NVIDIA-Linux-x86-
173.14.12-pkg0/usr/src/nv/nv.c
--- usr/src/nv/nv.c   2008-07-18 03:42:50.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c   2008-08-12 00:35:45.000000
000 +0200
@@ -1296,14 +1296,22 @@
             if (get_cpu() == cpu)
                 __nv_setup_pat_entries(NULL);
             else
+          #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+      smp_call_function(__nv_setup_pat_entries, hcpu, 1);
+      #else
                 smp_call_function(__nv_setup_pat_entries, hcpu, 1, 1);
+      #endif
             put_cpu();
             break;
         case CPU_DOWN_PREPARE:
             if (get_cpu() == cpu)
                 __nv_restore_pat_entries(NULL);
             else
+          #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+      smp_call_function(__nv_restore_pat_entries, hcpu, 1);
+      #else
                 smp_call_function(__nv_restore_pat_entries, hcpu, 1, 1);
+      #endif
             put_cpu();
             break;
     }
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/nv-linux.h NVIDIA-Linu
x-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h
--- usr/src/nv/nv-linux.h   2008-07-18 03:42:51.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h   2008-08-12 00:44:27.
000000000 +0200
@@ -104,7 +104,10 @@
 #endif

 #include <linux/spinlock.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+#else
 #include <asm/semaphore.h>
+#endif
 #include <linux/completion.h>
 #include <linux/highmem.h>

@@ -665,13 +668,21 @@
 #if defined(preempt_disable)
     preempt_disable();
 #endif
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = smp_call_function(func, info, 1);
+    #else
     ret = smp_call_function(func, info, 1, 1);
+    #endif
     func(info);
 #if defined(preempt_enable)
     preempt_enable();
 #endif
 #else
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = on_each_cpu(func, info, 1);
+    #else
     ret = on_each_cpu(func, info, 1, 1);
+    #endif
 #endif
     return ret;
 }
diff -Nru NVIDIA-Linux-x86-173.14.12-pkg0.orig/usr/src/nv/os-interface.c NVIDIA-
Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c
--- usr/src/nv/os-interface.c   2008-07-18 03:42:50.000000000 +0200
+++ NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/os-interface.c   2008-08-12 00:48
:07.000000000 +0200
@@ -48,7 +48,11 @@
 #endif
     local_bh_disable();
     atomic_set(&os_smp_barrier, 1);
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = smp_call_function(ipi_handler, NULL, 0);
+    #else
     ret = smp_call_function(ipi_handler, NULL, 1, 0);
+    #endif
 #endif
     return (ret == 0) ? RM_OK : RM_ERROR;
 }
@@ -704,7 +708,9 @@
     U032 sig
 )
 {
+    #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
     return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+    #endif
 }

 /******************************************************************************                                                            */
bbj is offline   Reply With Quote
Old 10-10-08, 03:55 AM   #3
toylet
Registered User
 
Join Date: Jul 2008
Location: Hung Hom, Kowloon
Posts: 10
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Quote:
Originally Posted by bbj View Post
You may want to try some patch like this one (it works fine for me):
Code:
$ cat nvidia-96.43.07-for-2.6.27.patch
I noticed "NVIDIA-Linux-x86-173.14.12-pkg0.orig" in the patch file. How do I apply the patch to 96.43.07?

Anyway, thank you, Your Honor!
toylet is offline   Reply With Quote
Old 10-11-08, 03:49 AM   #4
bbj
Registered User
 
Join Date: Oct 2008
Posts: 3
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Quote:
Originally Posted by toylet View Post
I noticed "NVIDIA-Linux-x86-173.14.12-pkg0.orig" in the patch file. How do I apply the patch to 96.43.07?

Anyway, thank you, Your Honor!
Save the patch as file.patch. Then:

$ bash NVIDIA-Linux-x86-96.43.07-pkg0.run --apply-patch file.patch

You'll have a custom package to use.
bbj is offline   Reply With Quote
Old 10-11-08, 06:25 AM   #5
toylet
Registered User
 
Join Date: Jul 2008
Location: Hung Hom, Kowloon
Posts: 10
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Quote:
Originally Posted by bbj View Post
Save the patch as file.patch. Then:
$ bash NVIDIA-Linux-x86-96.43.07-pkg0.run --apply-patch file.patch
You'll have a custom package to use.
The resulting (*custom.run) file is smaller than the original one. Is it normal?

Code:
root@server:/home/nvidia# ls -l
total 19556
-rw------- 1 toylet toylet     3040 2008-10-11 10:23 2.6.27.txt
-rw------- 1 toylet toylet     2807 2008-07-31 14:39 fix-nvidia-x86-173.14.09.patch
-rwx------ 1 toylet toylet  6607925 2008-10-11 10:24 NVIDIA-Linux-x86-96.43.07-pkg1-custom.run
-r-x------ 1 toylet toylet 13403397 2008-07-16 14:18 NVIDIA-Linux-x86-96.43.07-pkg1.run
toylet is offline   Reply With Quote
Old 10-11-08, 06:38 AM   #6
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Great, post. I too just upgrade my debian system to 2.6.27 and applied the patch your recommended to get my GF4MX to work. The 96.43.07-custom installed, but when I rebooted, I couldn't get into X. Here is my /var/log/Xorg.0.log

Code:
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.1~git20080131-3)
Current Operating System: Linux mythtv-test 2.6.27 #1 SMP PREEMPT Sat Oct 11 06:34:35 EDT 2008 i686
Build Date: 02 April 2008  01:11:22PM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 11 07:31:47 2008
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "XFree86 Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Keyboard0"
(**) |-->Input Device "USB Mouse"
(**) Option "AllowMouseOpenFail" "true"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/Speedo" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/PEX" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
	Entry deleted from font path.
(WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
	Entry deleted from font path.
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/truetype".
	Entry deleted from font path.
	(Run 'mkfontdir' on "/usr/share/fonts/truetype").
(WW) The directory "/usr/share/fonts/latex-ttf-fonts" does not exist.
	Entry deleted from font path.
(==) Including the default font path /usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType.
(**) FontPath set to:
	/usr/share/fonts/X11/misc:unscaled,
	/usr/share/fonts/X11/75dpi:unscaled,
	/usr/share/fonts/X11/100dpi:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/cyrillic,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
(**) RgbPath set to "/usr/share/X11/rgb"
(**) ModulePath set to "/usr/lib/xorg/modules"
(II) Open ACPI successful (/var/run/acpid.socket)
(II) Loader magic: 0x81d9ec0
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.3
	X.Org Video Driver: 2.0
	X.Org XInput driver : 2.0
	X.Org Server Extension : 0.3
	X.Org Font Renderer : 0.5
(II) Loader running on linux
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.0.0
	ABI class: X.Org Video Driver, version 2.0
(--) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 10de,01e0 card 1043,80ac rev c1 class 06,00,00 hdr 80
(II) PCI: 00:00:1: chip 10de,01eb card 1043,80ac rev c1 class 05,00,00 hdr 80
(II) PCI: 00:00:2: chip 10de,01ee card 1043,80ac rev c1 class 05,00,00 hdr 80
(II) PCI: 00:00:3: chip 10de,01ed card 1043,80ac rev c1 class 05,00,00 hdr 80
(II) PCI: 00:00:4: chip 10de,01ec card 1043,80ac rev c1 class 05,00,00 hdr 80
(II) PCI: 00:00:5: chip 10de,01ef card 1043,80ac rev c1 class 05,00,00 hdr 80
(II) PCI: 00:01:0: chip 10de,0060 card 1043,80ad rev a4 class 06,01,00 hdr 80
(II) PCI: 00:01:1: chip 10de,0064 card 1043,0c11 rev a2 class 0c,05,00 hdr 80
(II) PCI: 00:02:0: chip 10de,0067 card 1043,0c11 rev a4 class 0c,03,10 hdr 80
(II) PCI: 00:02:1: chip 10de,0067 card 1043,0c11 rev a4 class 0c,03,10 hdr 80
(II) PCI: 00:02:2: chip 10de,0068 card 1043,0c11 rev a4 class 0c,03,20 hdr 80
(II) PCI: 00:05:0: chip 10de,006b card 1043,0c11 rev a2 class 04,01,00 hdr 00
(II) PCI: 00:06:0: chip 10de,006a card 1043,8095 rev a1 class 04,01,00 hdr 00
(II) PCI: 00:08:0: chip 10de,006c card 0000,0000 rev a3 class 06,04,00 hdr 01
(II) PCI: 00:09:0: chip 10de,0065 card 1043,0c11 rev a2 class 01,01,8a hdr 00
(II) PCI: 00:0d:0: chip 10de,006e card 1043,809a rev a3 class 0c,00,10 hdr 00
(II) PCI: 00:1e:0: chip 10de,01e8 card 0000,0000 rev c1 class 06,04,00 hdr 01
(II) PCI: 01:04:0: chip 11ab,4320 card 1043,811a rev 13 class 02,00,00 hdr 00
(II) PCI: 01:0b:0: chip 1095,3112 card 1095,6112 rev 02 class 01,04,00 hdr 00
(II) PCI: 03:00:0: chip 10de,0181 card 0000,0000 rev a4 class 03,00,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,3), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
	[0] -1	0	0x00000000 - 0x0000ffff (0x10000) IX[b]
(II) Bus 0 non-prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[b]
(II) Bus 0 prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[b]
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:1:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
(II) PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:8:0), (0,1,1), BCTRL: 0x0002 (VGA_EN is cleared)
(II) Bus 1 I/O range:
	[0] -1	0	0x0000a000 - 0x0000bfff (0x2000) IX[b]
(II) Bus 1 non-prefetchable memory range:
	[0] -1	0	0xdf000000 - 0xe0ffffff (0x2000000) MX[b]
(II) Bus 1 prefetchable memory range:
	[0] -1	0	0x50000000 - 0x500fffff (0x100000) MX[b]
(II) PCI-to-PCI bridge:
(II) Bus 3: bridge is at (0:30:0), (0,3,3), BCTRL: 0x000a (VGA_EN is set)
(II) Bus 3 non-prefetchable memory range:
	[0] -1	0	0xdd000000 - 0xdeffffff (0x2000000) MX[b]
(II) Bus 3 prefetchable memory range:
	[0] -1	0	0xd8000000 - 0xdbffffff (0x4000000) MX[b]
(--) PCI:*(3:0:0) nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] rev 164, Mem @ 0xdd000000/24, 0xd8000000/26
(II) Addressable bus resource ranges are
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[b]
	[1] -1	0	0x00000000 - 0x0000ffff (0x10000) IX[b]
(II) OS-reported resource ranges:
	[0] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[b]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[b]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[b]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[b]
	[5] -1	0	0x00000000 - 0x000000ff (0x100) IX[b]
(II) PCI Memory resource overlap reduced 0xd0000000 from 0xd7ffffff to 0xcfffffff
(II) Active PCI resource ranges:
	[0] -1	0	0xe0004000 - 0xe00041ff (0x200) MX[b]
	[1] -1	0	0xe0000000 - 0xe0003fff (0x4000) MX[b]
	[2] -1	0	0xe1084000 - 0xe108403f (0x40) MX[b]
	[3] -1	0	0xe1083000 - 0xe10837ff (0x800) MX[b]
	[4] -1	0	0xe1086000 - 0xe1086fff (0x1000) MX[b]
	[5] -1	0	0xe1000000 - 0xe107ffff (0x80000) MX[b]
	[6] -1	0	0xe1082000 - 0xe10820ff (0x100) MX[b]
	[7] -1	0	0xe1081000 - 0xe1081fff (0x1000) MX[b]
	[8] -1	0	0xe1085000 - 0xe1085fff (0x1000) MX[b]
	[9] -1	0	0xd0000000 - 0xcfffffff (0x0) MX[b]O
	[10] -1	0	0xd8000000 - 0xdbffffff (0x4000000) MX[b](B)
	[11] -1	0	0xdd000000 - 0xddffffff (0x1000000) MX[b](B)
	[12] -1	0	0x0000b400 - 0x0000b40f (0x10) IX[b]
	[13] -1	0	0x0000b000 - 0x0000b003 (0x4) IX[b]
	[14] -1	0	0x0000ac00 - 0x0000ac07 (0x8) IX[b]
	[15] -1	0	0x0000a800 - 0x0000a803 (0x4) IX[b]
	[16] -1	0	0x0000a400 - 0x0000a407 (0x8) IX[b]
	[17] -1	0	0x0000a000 - 0x0000a0ff (0x100) IX[b]
	[18] -1	0	0x0000f000 - 0x0000f00f (0x10) IX[b]
	[19] -1	0	0x0000d000 - 0x0000d07f (0x80) IX[b]
	[20] -1	0	0x0000e000 - 0x0000e0ff (0x100) IX[b]
	[21] -1	0	0x0000dc00 - 0x0000dc1f (0x20) IX[b]
(II) Active PCI resource ranges after removing overlaps:
	[0] -1	0	0xe0004000 - 0xe00041ff (0x200) MX[b]
	[1] -1	0	0xe0000000 - 0xe0003fff (0x4000) MX[b]
	[2] -1	0	0xe1084000 - 0xe108403f (0x40) MX[b]
	[3] -1	0	0xe1083000 - 0xe10837ff (0x800) MX[b]
	[4] -1	0	0xe1086000 - 0xe1086fff (0x1000) MX[b]
	[5] -1	0	0xe1000000 - 0xe107ffff (0x80000) MX[b]
	[6] -1	0	0xe1082000 - 0xe10820ff (0x100) MX[b]
	[7] -1	0	0xe1081000 - 0xe1081fff (0x1000) MX[b]
	[8] -1	0	0xe1085000 - 0xe1085fff (0x1000) MX[b]
	[9] -1	0	0xd0000000 - 0xcfffffff (0x0) MX[b]O
	[10] -1	0	0xd8000000 - 0xdbffffff (0x4000000) MX[b](B)
	[11] -1	0	0xdd000000 - 0xddffffff (0x1000000) MX[b](B)
	[12] -1	0	0x0000b400 - 0x0000b40f (0x10) IX[b]
	[13] -1	0	0x0000b000 - 0x0000b003 (0x4) IX[b]
	[14] -1	0	0x0000ac00 - 0x0000ac07 (0x8) IX[b]
	[15] -1	0	0x0000a800 - 0x0000a803 (0x4) IX[b]
	[16] -1	0	0x0000a400 - 0x0000a407 (0x8) IX[b]
	[17] -1	0	0x0000a000 - 0x0000a0ff (0x100) IX[b]
	[18] -1	0	0x0000f000 - 0x0000f00f (0x10) IX[b]
	[19] -1	0	0x0000d000 - 0x0000d07f (0x80) IX[b]
	[20] -1	0	0x0000e000 - 0x0000e0ff (0x100) IX[b]
	[21] -1	0	0x0000dc00 - 0x0000dc1f (0x20) IX[b]
(II) OS-reported resource ranges after removing overlaps with PCI:
	[0] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[b]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[b]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[b]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[b]
	[5] -1	0	0x00000000 - 0x000000ff (0x100) IX[b]
(II) All system resource ranges:
	[0] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[b]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[b]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[b]
	[4] -1	0	0xe0004000 - 0xe00041ff (0x200) MX[b]
	[5] -1	0	0xe0000000 - 0xe0003fff (0x4000) MX[b]
	[6] -1	0	0xe1084000 - 0xe108403f (0x40) MX[b]
	[7] -1	0	0xe1083000 - 0xe10837ff (0x800) MX[b]
	[8] -1	0	0xe1086000 - 0xe1086fff (0x1000) MX[b]
	[9] -1	0	0xe1000000 - 0xe107ffff (0x80000) MX[b]
	[10] -1	0	0xe1082000 - 0xe10820ff (0x100) MX[b]
	[11] -1	0	0xe1081000 - 0xe1081fff (0x1000) MX[b]
	[12] -1	0	0xe1085000 - 0xe1085fff (0x1000) MX[b]
	[13] -1	0	0xd0000000 - 0xcfffffff (0x0) MX[b]O
	[14] -1	0	0xd8000000 - 0xdbffffff (0x4000000) MX[b](B)
	[15] -1	0	0xdd000000 - 0xddffffff (0x1000000) MX[b](B)
	[16] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[b]
	[17] -1	0	0x00000000 - 0x000000ff (0x100) IX[b]
	[18] -1	0	0x0000b400 - 0x0000b40f (0x10) IX[b]
	[19] -1	0	0x0000b000 - 0x0000b003 (0x4) IX[b]
	[20] -1	0	0x0000ac00 - 0x0000ac07 (0x8) IX[b]
	[21] -1	0	0x0000a800 - 0x0000a803 (0x4) IX[b]
	[22] -1	0	0x0000a400 - 0x0000a407 (0x8) IX[b]
	[23] -1	0	0x0000a000 - 0x0000a0ff (0x100) IX[b]
	[24] -1	0	0x0000f000 - 0x0000f00f (0x10) IX[b]
	[25] -1	0	0x0000d000 - 0x0000d07f (0x80) IX[b]
	[26] -1	0	0x0000e000 - 0x0000e0ff (0x100) IX[b]
	[27] -1	0	0x0000dc00 - 0x0000dc1f (0x20) IX[b]
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded by default.
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.3
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.1
(II) NVIDIA GLX Module  96.43.05  Tue Jan 22 20:11:30 PST 2008
(II) Loading extension GLX
(II) LoadModule: "freetype"
(II) Loading /usr/lib/xorg/modules//fonts/libfreetype.so
CONTINUED ON THE NEXT POST DUE TO CHARACTER LIMITATION
darksky is offline   Reply With Quote
Old 10-11-08, 06:39 AM   #7
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Code:
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
	compiled for 1.4.0.90, module version = 2.1.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.5
(II) Loading font FreeType
(II) LoadModule: "type1"
(WW) Warning, couldn't open module type1
(II) UnloadModule: "type1"
(EE) Failed to load module "type1" (module does not exist, 0)
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.3
(II) Loading extension RECORD
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.3
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: X.Org Video Driver
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.4.0, module version = 1.2.2
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.0
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.4.0, module version = 1.2.2
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.0
(II) NVIDIA dlloader X Driver  96.43.05  Tue Jan 22 19:38:46 PST 2008
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 03:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset NVIDIA GPU found
(II) NVIDIA(0): Found 1 NVIDIA X Screens
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.3
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"(II) Module "ramdac" already built-in
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/lib/xorg/modules//libxaa.so
(II) Module xaa: vendor="X.Org Foundation"
	compiled for 1.4.0.90, module version = 1.2.0
	ABI class: X.Org Video Driver, version 2.0
(II) resource ranges after xf86ClaimFixedResources() call:
	[0] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[b]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[b]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[b]
	[4] -1	0	0xe0004000 - 0xe00041ff (0x200) MX[b]
	[5] -1	0	0xe0000000 - 0xe0003fff (0x4000) MX[b]
	[6] -1	0	0xe1084000 - 0xe108403f (0x40) MX[b]
	[7] -1	0	0xe1083000 - 0xe10837ff (0x800) MX[b]
	[8] -1	0	0xe1086000 - 0xe1086fff (0x1000) MX[b]
	[9] -1	0	0xe1000000 - 0xe107ffff (0x80000) MX[b]
	[10] -1	0	0xe1082000 - 0xe10820ff (0x100) MX[b]
	[11] -1	0	0xe1081000 - 0xe1081fff (0x1000) MX[b]
	[12] -1	0	0xe1085000 - 0xe1085fff (0x1000) MX[b]
	[13] -1	0	0xd0000000 - 0xcfffffff (0x0) MX[b]O
	[14] -1	0	0xd8000000 - 0xdbffffff (0x4000000) MX[b](B)
	[15] -1	0	0xdd000000 - 0xddffffff (0x1000000) MX[b](B)
	[16] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[b]
	[17] -1	0	0x00000000 - 0x000000ff (0x100) IX[b]
	[18] -1	0	0x0000b400 - 0x0000b40f (0x10) IX[b]
	[19] -1	0	0x0000b000 - 0x0000b003 (0x4) IX[b]
	[20] -1	0	0x0000ac00 - 0x0000ac07 (0x8) IX[b]
	[21] -1	0	0x0000a800 - 0x0000a803 (0x4) IX[b]
	[22] -1	0	0x0000a400 - 0x0000a407 (0x8) IX[b]
	[23] -1	0	0x0000a000 - 0x0000a0ff (0x100) IX[b]
	[24] -1	0	0x0000f000 - 0x0000f00f (0x10) IX[b]
	[25] -1	0	0x0000d000 - 0x0000d07f (0x80) IX[b]
	[26] -1	0	0x0000e000 - 0x0000e0ff (0x100) IX[b]
	[27] -1	0	0x0000dc00 - 0x0000dc1f (0x20) IX[b]
(II) resource ranges after probing:
	[0] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[b]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[b]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[b]
	[4] -1	0	0xe0004000 - 0xe00041ff (0x200) MX[b]
	[5] -1	0	0xe0000000 - 0xe0003fff (0x4000) MX[b]
	[6] -1	0	0xe1084000 - 0xe108403f (0x40) MX[b]
	[7] -1	0	0xe1083000 - 0xe10837ff (0x800) MX[b]
	[8] -1	0	0xe1086000 - 0xe1086fff (0x1000) MX[b]
	[9] -1	0	0xe1000000 - 0xe107ffff (0x80000) MX[b]
	[10] -1	0	0xe1082000 - 0xe10820ff (0x100) MX[b]
	[11] -1	0	0xe1081000 - 0xe1081fff (0x1000) MX[b]
	[12] -1	0	0xe1085000 - 0xe1085fff (0x1000) MX[b]
	[13] -1	0	0xd0000000 - 0xcfffffff (0x0) MX[b]O
	[14] -1	0	0xd8000000 - 0xdbffffff (0x4000000) MX[b](B)
	[15] -1	0	0xdd000000 - 0xddffffff (0x1000000) MX[b](B)
	[16] 0	0	0x000a0000 - 0x000affff (0x10000) MS[b]
	[17] 0	0	0x000b0000 - 0x000b7fff (0x8000) MS[b]
	[18] 0	0	0x000b8000 - 0x000bffff (0x8000) MS[b]
	[19] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[b]
	[20] -1	0	0x00000000 - 0x000000ff (0x100) IX[b]
	[21] -1	0	0x0000b400 - 0x0000b40f (0x10) IX[b]
	[22] -1	0	0x0000b000 - 0x0000b003 (0x4) IX[b]
	[23] -1	0	0x0000ac00 - 0x0000ac07 (0x8) IX[b]
	[24] -1	0	0x0000a800 - 0x0000a803 (0x4) IX[b]
	[25] -1	0	0x0000a400 - 0x0000a407 (0x8) IX[b]
	[26] -1	0	0x0000a000 - 0x0000a0ff (0x100) IX[b]
	[27] -1	0	0x0000f000 - 0x0000f00f (0x10) IX[b]
	[28] -1	0	0x0000d000 - 0x0000d07f (0x80) IX[b]
	[29] -1	0	0x0000e000 - 0x0000e0ff (0x100) IX[b]
	[30] -1	0	0x0000dc00 - 0x0000dc1f (0x20) IX[b]
	[31] 0	0	0x000003b0 - 0x000003bb (0xc) IS[b]
	[32] 0	0	0x000003c0 - 0x000003df (0x20) IS[b]
(II) Setting vga for screen 0.
(**) 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): Option "XvMCUsesTextures" "false"
(**) NVIDIA(0): Option "UseEdidDpi" "FALSE"
(**) NVIDIA(0): Option "DPI" "100 x 100"
(**) NVIDIA(0): Option "UseEvents" "true"
(==) NVIDIA(0): Using HW cursor
(**) NVIDIA(0): Enabling RENDER acceleration
(==) NVIDIA(0): Video key set to default value of 0x101fe
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "xaa"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
darksky is offline   Reply With Quote
Old 10-11-08, 07:06 AM   #8
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Here is my /etc/X11/xorg.conf

Code:
Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
# PS/2 Mouse not detected
# Serial Mouse not detected
        InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "ServerFlags"
	Option "AllowMouseOpenFail"  "true"
	
EndSection

Section "Files"
	RgbPath      "/usr/share/X11/rgb"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi:unscaled"
	FontPath     "/usr/share/fonts/X11/100dpi:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/Speedo"
	FontPath     "/usr/share/fonts/X11/PEX"
# Additional fonts: Locale, Gimp, TTF...
	FontPath     "/usr/share/fonts/X11/cyrillic"
#	FontPath     "/usr/share/fonts/X11/latin2/75dpi"
#	FontPath     "/usr/share/fonts/X11/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "/usr/share/fonts/truetype"
	FontPath     "/usr/share/fonts/latex-ttf-fonts"
EndSection

Section "Module"
# Comments: see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346408
	Load  "dbe" # Double Buffering Extension, very important.
#	Load  "dri" # This shouldn't be available choice if user has selected driver vga, vesa or nv.
	Load  "glx" # GLX Extension.
	Load  "freetype" # Freetype fonts.
	Load  "type1"  # Type 1 fonts
	Load  "record" # Developer extension, usually not needed
#	Load  "extmod" # This is okay, but if you look into "man xorg.conf" you'll find option NOT to include DGA extension with extmod, and for a good reason.. DGA causes instability as it access videoram without consulting X about it.
	SubSection      "extmod"
		Option          "omit xfree86-dga"
	EndSubSection
#	Load  "speedo" # Speedo fonts, this module doesn't exist in Xorg 7.0.17
# The following are deprecated/unstable/unneeded in Xorg 7.0
#       Load  "ddc"  # ddc probing of monitor, this should be never present, as it gets automatically loaded.
#	Load  "GLcore" # This should be never present, as it gets automatically loaded.
#       Load  "bitmap" # Should be never present, as it gets automatically loaded. This is a font module, and loading it in xorg.conf makes X try to load it twice.
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
        Option      "CoreKeyboard"
	Option "XkbRules" "xorg"
	Option "XkbModel" "pc105"
	Option "XkbLayout" "us"

EndSection

Section "InputDevice"
	Identifier  "Serial Mouse"
	Driver      "mouse"
	Option      "Protocol" "Microsoft"
	Option      "Device" "/dev/ttyS0"
	Option      "Emulate3Buttons" "true"
	Option      "Emulate3Timeout" "70"
	Option	    "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
	Identifier  "PS/2 Mouse"
	Driver      "mouse"
	Option      "Protocol" "auto"
Option          "ZAxisMapping"          "4 5"
	Option      "Device" "/dev/psaux"
	Option      "Emulate3Buttons" "true"
	Option      "Emulate3Timeout" "70"
	Option	    "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
	Option		"SendCoreEvents"	"true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"               "5"
EndSection

# Auto-generated by KNOPPIX mkxf86config

Section "Monitor"
	Identifier	"Monitor0"
	Option	"DPMS"	"true"
	Option "UseEdidDpi" "FALSE"
	Option "DPI" "100 x 100"
	VendorName	"__["
	ModelName	"__[dffe"
#	HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
	HorizSync    28.0 - 96.0 # Warning: This may fry old Monitors
	VertRefresh  50.0 - 75.0 # Very conservative. May flicker.
#	VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
	# These are the DDC-probed settings reported by your monitor.
	# 1280x1024, 75.0Hz; hfreq=79.98, vfreq=75.03
	ModeLine "1280x1024"	135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
	# 1024x768, 75.0Hz; hfreq=60.02, vfreq=75.03
	ModeLine "1024x768"	 78.75 1024 1040 1136 1312  768  769  772  800 +hsync +vsync
	# 1024x768, 70.0Hz; hfreq=56.48, vfreq=70.07
	ModeLine "1024x768"	 75.00 1024 1048 1184 1328  768  771  777  806 -hsync -vsync
	# 1024x768, 60.0Hz; hfreq=48.36, vfreq=60.00
	ModeLine "1024x768"	 65.00 1024 1048 1184 1344  768  771  777  806 -hsync -vsync
	# 800x600, 75.0Hz; hfreq=46.88, vfreq=75.00
	ModeLine "800x600"	 49.50  800  816  896 1056  600  601  604  625 +hsync +vsync
	# 800x600, 72.0Hz; hfreq=48.08, vfreq=72.19
	ModeLine "800x600"	 50.00  800  856  976 1040  600  637  643  666 +hsync +vsync
	# 800x600, 60.0Hz; hfreq=37.88, vfreq=60.32
	ModeLine "800x600"	 40.00  800  840  968 1056  600  601  605  628 +hsync +vsync
	# 800x600, 56.0Hz; hfreq=35.16, vfreq=56.25
	ModeLine "800x600"	 36.00  800  824  896 1024  600  601  603  625 +hsync +vsync
	# 640x480, 72.0Hz; hfreq=37.86, vfreq=72.81
	ModeLine "640x480"	 31.50  640  656  696  816  480  481  484  504 -hsync -vsync
	# 640x480, 60.0Hz; hfreq=31.47, vfreq=59.94
	ModeLine "640x480"	 25.17  640  648  744  784  480  482  484  509 -hsync -vsync
	# Extended modelines with GTF timings
	# 640x480 @ 100.00 Hz (GTF) hsync: 50.90 kHz; pclk: 43.16 MHz
	ModeLine "640x480"  43.16  640 680 744 848  480 481 484 509  -HSync +Vsync
	# 768x576 @ 60.00 Hz (GTF) hsync: 35.82 kHz; pclk: 34.96 MHz
	ModeLine "768x576"  34.96  768 792 872 976  576 577 580 597  -HSync +Vsync
	# 768x576 @ 72.00 Hz (GTF) hsync: 43.27 kHz; pclk: 42.93 MHz
	ModeLine "768x576"  42.93  768 800 880 992  576 577 580 601  -HSync +Vsync
	# 768x576 @ 75.00 Hz (GTF) hsync: 45.15 kHz; pclk: 45.51 MHz
	ModeLine "768x576"  45.51  768 808 888 1008  576 577 580 602  -HSync +Vsync
	# 768x576 @ 85.00 Hz (GTF) hsync: 51.42 kHz; pclk: 51.84 MHz
	ModeLine "768x576"  51.84  768 808 888 1008  576 577 580 605  -HSync +Vsync
	# 768x576 @ 100.00 Hz (GTF) hsync: 61.10 kHz; pclk: 62.57 MHz
	ModeLine "768x576"  62.57  768 816 896 1024  576 577 580 611  -HSync +Vsync
	# 800x600 @ 100.00 Hz (GTF) hsync: 63.60 kHz; pclk: 68.18 MHz
	ModeLine "800x600"  68.18  800 848 936 1072  600 601 604 636  -HSync +Vsync
	# 1024x768 @ 100.00 Hz (GTF) hsync: 81.40 kHz; pclk: 113.31 MHz
	ModeLine "1024x768"  113.31  1024 1096 1208 1392  768 769 772 814  -HSync +Vsync
	# 1152x864 @ 60.00 Hz (GTF) hsync: 53.70 kHz; pclk: 81.62 MHz
	ModeLine "1152x864"  81.62  1152 1216 1336 1520  864 865 868 895  -HSync +Vsync
	# 1152x864 @ 85.00 Hz (GTF) hsync: 77.10 kHz; pclk: 119.65 MHz
	ModeLine "1152x864"  119.65  1152 1224 1352 1552  864 865 868 907  -HSync +Vsync
	# 1152x864 @ 100.00 Hz (GTF) hsync: 91.50 kHz; pclk: 143.47 MHz
	ModeLine "1152x864"  143.47  1152 1232 1360 1568  864 865 868 915  -HSync +Vsync
	# 1280x960 @ 72.00 Hz (GTF) hsync: 72.07 kHz; pclk: 124.54 MHz
	ModeLine "1280x960"  124.54  1280 1368 1504 1728  960 961 964 1001  -HSync +Vsync
	# 1280x960 @ 75.00 Hz (GTF) hsync: 75.15 kHz; pclk: 129.86 MHz
	ModeLine "1280x960"  129.86  1280 1368 1504 1728  960 961 964 1002  -HSync +Vsync
	# 1280x960 @ 100.00 Hz (GTF) hsync: 101.70 kHz; pclk: 178.99 MHz
	ModeLine "1280x960"  178.99  1280 1376 1520 1760  960 961 964 1017  -HSync +Vsync
	# 1280x1024 @ 100.00 Hz (GTF) hsync: 108.50 kHz; pclk: 190.96 MHz
	ModeLine "1280x1024"  190.96  1280 1376 1520 1760  1024 1025 1028 1085  -HSync +Vsync
	# 1400x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 122.61 MHz
	ModeLine "1400x1050"  122.61  1400 1488 1640 1880  1050 1051 1054 1087  -HSync +Vsync
	# 1400x1050 @ 72.00 Hz (GTF) hsync: 78.77 kHz; pclk: 149.34 MHz
	ModeLine "1400x1050"  149.34  1400 1496 1648 1896  1050 1051 1054 1094  -HSync +Vsync
	# 1400x1050 @ 75.00 Hz (GTF) hsync: 82.20 kHz; pclk: 155.85 MHz
	ModeLine "1400x1050"  155.85  1400 1496 1648 1896  1050 1051 1054 1096  -HSync +Vsync
	# 1400x1050 @ 85.00 Hz (GTF) hsync: 93.76 kHz; pclk: 179.26 MHz
	ModeLine "1400x1050"  179.26  1400 1504 1656 1912  1050 1051 1054 1103  -HSync +Vsync
	# 1400x1050 @ 100.00 Hz (GTF) hsync: 111.20 kHz; pclk: 214.39 MHz
	ModeLine "1400x1050"  214.39  1400 1512 1664 1928  1050 1051 1054 1112  -HSync +Vsync
	# 1600x1200 @ 100.00 Hz (GTF) hsync: 127.10 kHz; pclk: 280.64 MHz
	ModeLine "1600x1200"  280.64  1600 1728 1904 2208  1200 1201 1204 1271  -HSync +Vsync
	# 1680x1050 (Notebook)
	ModeLine "1680x1050" 154.2 1680 1712 2296 2328   1050 1071 1081 1103
	# 1920x1200 @ 60.00 Hz (GTF)  hsync: 74.52; pclk: 193.16 MHz
	ModeLine "1920x1200" 193.16  1920 2048 2256 2592  1200 1201 1204 1242  -HSync +HSync
EndSection

Section "Device"
	### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
        #Option     "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
	Identifier  "Card0"
# The following line is auto-generated by KNOPPIX mkxf86config
	Driver      "nvidia"
	Option "XvmcUsesTextures" "false"
	Option "UseEvents" "true"
	VendorName  "All"
	BoardName   "All"
#	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultColorDepth 24
	SubSection "Display"
		Depth     1
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     32
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection
darksky is offline   Reply With Quote

Old 10-11-08, 09:14 PM   #9
snaboofypop
Registered User
 
Join Date: Aug 2003
Posts: 29
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Tried the patch, using it now. Results are as follows:
:~$ glxinfo | grep direct
direct rendering: Yes
:~$ uname -a
Linux opus 2.6.27 #1 PREEMPT Sat Oct 11 18:30:21 MDT 2008 i686 GNU/Linux
(so all is well). I use a home-made installer script to get things going, called runme9643-07-custom with contents as follows:
#/sbin/modprobe -q agpgart
/etc/init.d/gdm stop
#/etc/init.d/xdm stop
cd NVIDIA-Linux-x86-96.43.07-pkg1-custom
./nvidia-installer -k `uname -r` --kernel-source-path=/usr/src/kernels/linux-`uname -r | sed s/-.*//` --kernel-install-path=/lib/modules/`uname -r`
# ./nvidia-installer
rm -f /usr/local/lib/libGL.so.1
ln -s /usr/lib/libGL.so.96.43.07 /usr/local/lib/libGL.so.1
# sh NVIDIA-Linux-x86-1.0-9631-pkg1.run
/etc/init.d/gdm start
#/etc/init.d/xdm start

.....
and, (of course) I updated the links. In ubuntu, the source files should be in /usr/src (I don't really have the kernel source there though, so I do soft links) so my /usr/src file has a soft link called linux which is really where I keep my linux kernel source. When I list it, it looks like:
ls -al linux
linux -> /data/kernel/temp/linux-2.6.27
(the path and top level directory where I keep my source)
there is also a kernels directory in /usr/src and in it I do the same:
linux-2.6.27 -> /data/kernel/temp/linux-2.6.27
(and without these two references, things just don't work). But with them, everything is happy, happy. Thanks for the post. Hopefully this helps someone.
snaboofypop is offline   Reply With Quote
Old 10-16-08, 04:52 AM   #10
toylet
Registered User
 
Join Date: Jul 2008
Location: Hung Hom, Kowloon
Posts: 10
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

I upgraded to kernel 2.6.27.1 and run the patched installer. It works!
toylet is offline   Reply With Quote
Old 10-18-08, 04:26 AM   #11
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

...any ideas what's going wrong in my system?
darksky is offline   Reply With Quote
Old 10-31-08, 09:34 AM   #12
pilson66
Registered User
 
Join Date: Oct 2008
Posts: 1
Send a message via ICQ to pilson66
Default Re: Kernel 2.6.27 patch for legacy driver 96.43.07

Patched patch
Now it`s working with 96.43.07 without errors or warnings

Code:
./NVIDIA-Linux-x86-96.43.07-pkg1.run --apply-patch nv-96.43.07-kernel-2.6.27.patch
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 96.43.07...
patching file usr/src/nv/nv-linux.h
patching file usr/src/nv/os-interface.c
Adding files to archive named "NVIDIA-Linux-x86-96.43.07-pkg1-custom.run"...

patch:
Code:
diff -u -N --recursive NVIDIA-Linux-x86-96.43.07-pkg1/usr/src/nv/nv-linux.h patched/usr/src/nv/nv-linux.h
--- NVIDIA-Linux-x86-96.43.07-pkg1/usr/src/nv/nv-linux.h patched/usr/src/nv/nv-linux.h
+++ usr/src/nv/nv-linux.h       2008-10-31 16:11:53.000000000 +0200
@@ -103,7 +103,10 @@
 #endif

 #include <linux/spinlock.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+#else
 #include <asm/semaphore.h>
+#endif
 #include <linux/completion.h>
 #include <linux/highmem.h>

@@ -618,13 +621,21 @@
 #if defined(preempt_disable)
     preempt_disable();
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+    ret = smp_call_function(func, info, 1);
+#else
     ret = smp_call_function(func, info, 1, 1);
+#endif
     func(info);
 #if defined(preempt_enable)
     preempt_enable();
 #endif
 #else
-    ret = on_each_cpu(func, info, 1, 1);
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+       ret = on_each_cpu(func, info, 1);
+    #else
+       ret = on_each_cpu(func, info, 1, 1);
+    #endif
 #endif
     return ret;
 }
diff -u -N --recursive NVIDIA-Linux-x86-96.43.07-pkg1/usr/src/nv/os-interface.c patched/usr/src/nv/os-interface.c
--- NVIDIA-Linux-x86-96.43.07-pkg1/usr/src/nv/os-interface.c patched/usr/src/nv/os-interface.c
+++ usr/src/nv/os-interface.c   2008-10-31 16:15:53.000000000 +0200
@@ -48,7 +48,11 @@
 #endif
     local_bh_disable();
     atomic_set(&os_smp_barrier, 1);
-    ret = smp_call_function(ipi_handler, NULL, 1, 0);
+    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
+       ret = smp_call_function(ipi_handler, NULL, 0);
+    #else
+       ret = smp_call_function(ipi_handler, NULL, 1, 0);
+    #endif
 #endif
     return (ret == 0) ? RM_OK : RM_ERROR;
 }
@@ -632,7 +636,9 @@
     U032 sig
 )
 {
-    return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+    #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26)
+       return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+    #endif
 }

 /*******************************************************************************/
Attached Files
File Type: txt nv-96.43.07-kernel-2.6.27.patch.txt (2.0 KB, 281 views)
pilson66 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
NVIDIA Driver 295.53 installs into kernel 3.4 without a patch! jdmcdaniel3 NVIDIA Linux 3 06-08-12 09:41 AM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM

All times are GMT -5. The time now is 05:00 PM.


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