kernel 2.4.0-test11, TNT2 and XFree 4

kernel 2.4.0-test11, TNT2 and XFree 4

Post by Brian C. Kiefe » Sun, 17 Dec 2000 14:17:25



Hello all,

I recently installed Linux on my pc and have been trying to get the
NVidia drivers for my TNT2 (both kernel and OpenGL) to compile, but they
will not with the my kernel.  Does anyone have any ideas how I can
compile the modules for my kernel or has anyone gotten this to work for
them?

TIA,

Brian Kiefer

 
 
 

kernel 2.4.0-test11, TNT2 and XFree 4

Post by Tony Spinill » Sun, 17 Dec 2000 20:53:00


Brian,

I attached the patch that I got from the nvidia IRC channel
at nvidia#irc.openprojects.net

I am using the nvidia kernel module with 2.4.test13-pre2

Give it a whirl,

Tony


> Hello all,

> I recently installed Linux on my pc and have been trying to get the
> NVidia drivers for my TNT2 (both kernel and OpenGL) to compile, but they
> will not with the my kernel.  Does anyone have any ideas how I can
> compile the modules for my kernel or has anyone gotten this to work for
> them?

> TIA,

> Brian Kiefer

[ patch-nvdriver-2.4.0-test11-3 1K ]
diff -ru NVIDIA_kernel-0.9-5/nv.c ../projects/nvdriver_/nv.c
--- NVIDIA_kernel-0.9-5/nv.c    Sat Aug 26 02:48:38 2000

 #include <linux/modversions.h>
 #endif

+#ifndef mem_map_dec_count
+  #define mem_map_dec_count(p) atomic_dec(&((p)->count));
+#endif
+#ifndef mem_map_inc_count
+  #define mem_map_inc_count(p) atomic_inc(&((p)->count));
+#endif
+
 #include <nv.h>                          // needs to precede other headers (SMP)

 #include <linux/stddef.h>
diff -ru NVIDIA_kernel-0.9-5/os-interface.c ../projects/nvdriver_/os-interface.c
--- NVIDIA_kernel-0.9-5/os-interface.c  Fri Sep  1 04:19:17 2000

     char *parmp;
     char ch;

+    spinlock_t unload_lock = SPIN_LOCK_UNLOCKED;
+    struct module *mp = THIS_MODULE;
+    struct module_symbol *sym;
+    int i;
+
     if ((strlen(regParmStr) + NV_SYM_PREFIX_LENGTH) > NV_MAX_SYM_NAME)
         goto done;

     *symp = '\0';

-    symbol_value = get_module_symbol(NV_MODULE_NAME, symbol_name);
-    
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0)
-    put_module_symbol(symbol_value);
-#endif
+    spin_lock(&unload_lock);
+    if (MOD_CAN_QUERY(mp) && (mp->nsyms > 0)) {
+        for (i = mp->nsyms, sym = mp->syms;
+             i > 0; --i, ++sym) {
+
+            if (strcmp(sym->name, symbol_name) == 0) {
+                symbol_value = sym->value;
+                break;
+            }
+        }
+    }
+    spin_unlock(&unload_lock);

  done:
     return (void *) symbol_value;

 
 
 

1. Problem with XFree 4.0.2 and kernel 2.4.0-test11

Hi,

Until recently I had a pretty stable XFree86 4.0.2 running on my machine.
 But as I have a Matrox G400 DH graphics card I thought I'd try to get
the OpenGL acceleration working.  Having installed kernel 2.4.0-test11, I
proceeded to set up the DRI stuff for my graphics card, selecting the
option for stuff like AGP and the relevent options for my card and MoBo.
I modified the XF86Config to use 16bit colour depth.  I re-compiled and
installed the new kernel, rebooted and started X windows (through 'gdm').

When I checked the XFree log file I found the following error msg:

--- 8< snip 8< -------------
(II) MGA(0): [drm] Sarea 2176+624: 2800
(0): [drm] created "mga" driver at busid "PCI:1:0:0"
(0): [drm] added 4096 byte SAREA at 0xc580d000
(0): [drm] mapped SAREA 0xc580d000 to 0x40019000
(0): [drm] framebuffer handle = 0xe8000000
(0): [drm] added 1 reserved context for kernel
(EE) MGA(0): [drm] MGADRIScreenInit failed (DRM version = 2.0.1, expected 1.0.x).  Disabling DRI.
(0): [drm] failed to remove DRM signal handler

Fatal server error:
Caught signal 11.  Server aborting
--- 8< snip 8< -------------

So then I attempted to close X windows and the screen went black, there
was a bit of disk activity then it just sat there, not responding to any
keyboard input, therefore requiring a power cycle to get it back.

Any clues?

System:
Abit BP6 MoBo, dual 466 Celeron,
Matrox G400 32MB DH,
196 MB RAM
13GB HD,
SuSE 6.3
Kernel 2.4.0-test11
XFree86 4.0.2

--

"If something is hard to do it's not worth doing."
  - Homer J Simpson

2. HELP:glibc 2.0.6 compile problem

3. NVdriver and kernel 2.4.0-test11

4. How come I can't compile simple Xt and Xm programs?

5. ppp 2.4.0 & 2.4.0-test11 kernel

6. Manipulate Netscape, forbid new window

7. getting pppoe with 2.4.0-test11 kernel

8. diald: only gateway computer will trigger dialing

9. Intel 815E chipset on-board video and Linux Kernel 2.4.0-test11-pre*

10. atyfb and kernel 2.6-test11 problem

11. Kernel 2.4.0-test11 does not boot after Mainboard exchange

12. kernel 2.4.0-test11 and Linksys Etherfast 10/100 PCMCIA card

13. kernel 2.4.0-test11 problem